@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent2: #6366f1;
  --success: #059669;
  --warn: #d97706;
  --card-peach: #fff5f0;
  --card-mint: #ecfdf5;
  --card-sky: #eff6ff;
  --card-violet: #f5f3ff;
  --radius: 14px;
  --font-h: "Outfit", system-ui, sans-serif;
  --font-b: "Instrument Sans", system-ui, sans-serif;
  --nav-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.mfd-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Top strip — hosting reference */
.host-strip {
  background: var(--ink);
  color: #e2e8f0;
  font-size: 0.85rem;
}

.host-strip-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.host-strip a {
  color: #93c5fd;
  font-weight: 600;
}

.host-strip a:hover,
.host-strip a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
}

.site-header {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.site-header.scr {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  border-bottom-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: var(--nav-h);
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-h);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.nav-main {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1 1 auto;
  justify-content: center;
}

@media (min-width: 880px) {
  .nav-main {
    display: flex;
  }
}

.nav-main a:hover,
.nav-main a:focus-visible {
  color: var(--ink);
  outline: none;
}

.nav-main a {
  position: relative;
  padding-block: 0.25rem;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.28s ease;
}

.nav-main a:hover::after,
.nav-main a:focus-visible::after {
  width: 100%;
}

.nav-social {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (min-width: 880px) {
  .nav-social {
    display: flex;
  }
}

.soc {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.soc a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  transition:
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.soc a:hover,
.soc a:focus-visible {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.15);
  outline: none;
}

.soc .mfd-ico {
  flex-shrink: 0;
}

.drawer-soc-label {
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.drawer-soc {
  flex-direction: row;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.hero {
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--card-sky);
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.hero-panel h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.kpi-mini {
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
}

.kpi-mini strong {
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-h);
}

.bg-peach {
  background: var(--card-peach);
}

.bg-mint {
  background: var(--card-mint);
}

.bg-sky {
  background: var(--card-sky);
}

.bg-violet {
  background: var(--card-violet);
}

.section {
  padding: 3rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-h);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plans-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card.popular {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.plan-card h3 {
  font-family: var(--font-h);
  margin: 0;
  font-size: 1.15rem;
}

.plan-price {
  font-family: var(--font-h);
  font-size: 1.65rem;
  font-weight: 700;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.plan-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.plan-card .btn {
  width: 100%;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  max-width: 560px;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 40%);
}

.footer-fin {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .footer-fin {
    grid-template-columns: 1.1fr 1fr 1fr;
    align-items: start;
  }
}

.footer-logo {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin: 0.45rem 0 0;
  max-width: 22rem;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-soc {
  justify-content: flex-start;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), var(--surface));
  border: 1px solid var(--line);
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.back-top.vis {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.2);
  outline: none;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.flash-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.flash-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem;
}

.auth-card h1 {
  font-family: var(--font-h);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.auth-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ham {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (min-width: 880px) {
  .ham {
    display: none;
  }
}

.ham span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.35s,
    opacity 0.25s;
}

.ham[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ham[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.ham[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.35);
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(20rem, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-panel a {
  color: var(--muted);
  font-weight: 500;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  outline: none;
}
