/* ============================================================
   farmonX — Лендинг · тёплый премиум, бордовый акцент
   ============================================================ */

/* ---------- Tokens : light ---------- */
:root, [data-theme="light"] {
  --brand: #0D9488; --brand-600: #0B7C72; --brand-700: #08605A;
  --brand-50: #E6F6F4; --brand-100: #C8ECE8; --brand-glow: rgba(13,148,136,.32);
  --ai: #8B5CF6; --ai-600: #7C3AED; --ai-50: #F5F1FF; --ai-glow: rgba(139,92,246,.36);
  --gold: #C2820B; --gold-50: #FBF4E4;
  --success: #0F9D6B; --success-50: #E7F8F1;
  --warning: #D9820B; --warning-50: #FDF3E4;
  --danger: #DC2626; --danger-50: #FEECEC;

  --bg: #F7F5F1; --bg-2: #EFEDE7; --ink-bg: #1A1012;
  --card: #FFFFFF; --sunken: #F2F0EA; --line: #E6E2D9; --line-soft: #EEEBE3;
  --text: #19140F; --text-2: #463F38; --muted: #7A716A; --faint: #A39A90;

  --shadow-sm: 0 1px 2px rgba(40,28,18,.05), 0 1px 3px rgba(40,28,18,.06);
  --shadow-md: 0 2px 4px rgba(40,28,18,.04), 0 8px 22px rgba(40,28,18,.08);
  --shadow-lg: 0 6px 14px rgba(40,28,18,.06), 0 24px 56px rgba(40,28,18,.12);
  --shadow-pop: 0 12px 24px rgba(40,28,18,.10), 0 40px 90px rgba(40,28,18,.20);
  --hairline: rgba(25,20,15,.07);
  --paper: radial-gradient(1100px 600px at 82% -10%, var(--brand-50), transparent 55%),
           radial-gradient(900px 500px at 5% 8%, var(--gold-50), transparent 50%);
  color-scheme: light;
}

/* ---------- Tokens : dark ---------- */
[data-theme="dark"] {
  --brand: #2DD4C4; --brand-600: #14B8A6; --brand-700: #0D9488;
  --brand-50: rgba(45,212,196,.14); --brand-100: rgba(45,212,196,.22); --brand-glow: rgba(45,212,196,.4);
  --ai: #B197FC; --ai-600: #9B7DF8; --ai-50: rgba(177,151,252,.14); --ai-glow: rgba(139,92,246,.5);
  --gold: #E6B450; --gold-50: rgba(230,180,80,.13);
  --success: #34D399; --success-50: rgba(52,211,153,.13);
  --warning: #FBBF24; --warning-50: rgba(251,191,36,.13);
  --danger: #F87171; --danger-50: rgba(248,113,113,.13);

  --bg: #100B0D; --bg-2: #0A0709; --ink-bg: #0A0608;
  --card: #181215; --sunken: #120D10; --line: #2A2126; --line-soft: #211A1F;
  --text: #F6F1F2; --text-2: #D2C7CB; --muted: #9D8F93; --faint: #6E6266;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 2px 6px rgba(0,0,0,.5), 0 10px 26px rgba(0,0,0,.45);
  --shadow-lg: 0 8px 18px rgba(0,0,0,.55), 0 28px 60px rgba(0,0,0,.6);
  --shadow-pop: 0 14px 30px rgba(0,0,0,.6), 0 46px 100px rgba(0,0,0,.75);
  --hairline: rgba(255,255,255,.08);
  --paper: radial-gradient(1100px 600px at 82% -10%, var(--brand-50), transparent 55%),
           radial-gradient(900px 500px at 5% 8%, var(--gold-50), transparent 50%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum" 1; }
.display { font-family: 'Fraunces', Georgia, serif; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
input { font-family: inherit; }
::selection { background: var(--brand-100); color: var(--brand-700); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
img, svg { display: block; }

.wrap { width: min(1200px, 92vw); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-700); background: var(--brand-50);
  padding: 7px 14px; border-radius: 30px; border: 1px solid var(--brand-100);
  white-space: nowrap;
}
[data-theme="dark"] .eyebrow { color: var(--brand); }
.eyebrow i { font-size: 14px; }
.h-sec {
  font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.06; margin: 16px 0 0;
  text-wrap: balance;
}
.sub-sec { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 14px 0 0; max-width: 640px; }
.center { text-align: center; }
.center .sub-sec { margin-left: auto; margin-right: auto; }
section { position: relative; }
.sec-pad { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 13px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s;
}
.btn i { font-size: 17px; }
.btn-primary {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; box-shadow: 0 10px 26px var(--brand-glow), var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px var(--brand-glow), var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.btn-lg { height: 58px; padding: 0 32px; font-size: 16.5px; border-radius: 15px; }
.btn-block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.logo {
  display: inline-flex; align-items: baseline;
  font-family: 'Fraunces', Georgia, serif; font-weight: 700;
  font-size: 27px; letter-spacing: -.015em; color: var(--text); line-height: 1;
}
.logo__word { display: inline-block; }
.logo b { color: var(--brand); font-weight: 700; }
[data-theme="dark"] .logo b { color: var(--brand); }
.nav__links { display: flex; gap: 4px; margin-left: 18px; }
.nav__links a {
  padding: 8px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
  color: var(--text-2); transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--sunken); color: var(--text); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__login { font-size: 14.5px; font-weight: 600; padding: 8px 12px; color: var(--text-2); }
.nav__login:hover { color: var(--brand); }
.theme-btn {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: var(--muted); font-size: 18px;
  border: 1px solid var(--line); background: var(--card);
  transition: color .15s, border-color .15s;
}
.theme-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.nav__burger { display: none; }

/* reading-mode button (shares theme-btn look) */
.read-btn {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: var(--muted); font-size: 18px;
  border: 1px solid var(--line); background: var(--card);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.read-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.read-btn.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(150deg, var(--brand), var(--brand-700));
  box-shadow: 0 4px 12px var(--brand-glow);
}

/* ============================================================
   READING MODE — comfortable, larger body text + more leading
   Layered on top of light/dark; toggled via [data-reading="on"]
   ============================================================ */
[data-reading="on"] .hero__p { font-size: 21px; line-height: 1.7; }
[data-reading="on"] .sub-sec { font-size: 20px; line-height: 1.65; }
[data-reading="on"] .prob__p { font-size: 16.5px; line-height: 1.72; }
[data-reading="on"] .feat__list li { font-size: 17px; line-height: 1.62; }
[data-reading="on"] .feat__result { font-size: 16px; }
[data-reading="on"] .tl-tx { font-size: 16px; line-height: 1.62; }
[data-reading="on"] .plan__feats li { font-size: 15.5px; line-height: 1.55; }
[data-reading="on"] .pline { font-size: 15px; }
[data-reading="on"] .faq-q { font-size: 17px; }
[data-reading="on"] .faq-a__in { font-size: 16.5px; line-height: 1.72; }
[data-reading="on"] .final-box p { font-size: 21px; line-height: 1.65; }
[data-reading="on"] .footer__about p { font-size: 15px; line-height: 1.7; }
[data-reading="on"] .footer__col a { font-size: 15px; }
[data-reading="on"] .bubble { font-size: 14.5px; line-height: 1.55; }

/* language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  height: 42px; padding: 3px; border-radius: 11px; border: 1px solid var(--line); background: var(--card);
}
.lang-switch button {
  padding: 6px 9px; border-radius: 8px; line-height: 1;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted);
  transition: color .15s, background .15s, box-shadow .15s;
}
.lang-switch button:hover:not(.active) { color: var(--brand); }
.lang-switch button.active {
  color: #fff; background: linear-gradient(150deg, var(--brand), var(--brand-700));
  box-shadow: 0 4px 12px var(--brand-glow);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 132px 0 80px; background: var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero__h {
  font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(36px, 5.2vw, 62px); line-height: 1.02; margin: 22px 0 0;
  text-wrap: balance;
}
.hero__h em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero__h em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .12em;
  background: var(--brand); opacity: .22; border-radius: 4px;
}
.hero__p { font-size: clamp(16px, 1.8vw, 20px); color: var(--text-2); line-height: 1.55; margin: 22px 0 0; max-width: 540px; }
.hero__p b { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { display: flex; align-items: center; gap: 18px; margin-top: 26px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.hero__trust .it { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust i { color: var(--success); font-size: 16px; }

/* hero mockup */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-pop); overflow: hidden; position: relative;
  transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transform-origin: left center;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: var(--sunken); }
.mock__dot { width: 11px; height: 11px; border-radius: 50%; }
.mock__title { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mock__live { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--success); display: inline-flex; align-items: center; gap: 5px; }
.mock__live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: blip 1.6s infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.mock__body { padding: 18px; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mstat { background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 13px; padding: 13px 14px; }
.mstat .n { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 25px; letter-spacing: -.03em; line-height: 1; }
.mstat .l { font-size: 11px; color: var(--muted); margin-top: 5px; }
.mstat.b .n { color: var(--brand); }
.mstat.g .n { color: var(--success); }
.mstat.v .n { color: var(--ai-600); }
[data-theme="dark"] .mstat.v .n { color: var(--ai); }
.mrow { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-soft); margin-top: 9px; background: var(--card); }
.mrow__av { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.mrow__main { min-width: 0; flex: 1; }
.mrow__t { font-size: 13px; font-weight: 600; }
.mrow__s { font-size: 11.5px; color: var(--muted); }
.mrow__sum { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; }
.mrow__sum .c { font-size: 10px; color: var(--muted); }
.mock__float {
  position: absolute; right: -22px; bottom: 38px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 12px 15px; display: flex; align-items: center; gap: 11px;
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.mock__float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--ai-50); color: var(--ai-600); }
[data-theme="dark"] .mock__float .ic { color: var(--ai); }
.mock__float .t { font-size: 12px; font-weight: 600; }
.mock__float .s { font-size: 10.5px; color: var(--muted); }

.logos-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 28px 0; }
.logos-strip .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 60px); flex-wrap: wrap; }
.logos-strip .lbl { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.logos-strip .firm { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: var(--faint); opacity: .8; }

/* ============================================================
   PROBLEMS
   ============================================================ */
.problems { background: var(--bg); }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.prob {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.prob:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prob::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--danger); opacity: .7; }
.prob__ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: var(--danger-50); color: var(--danger); margin-bottom: 18px; }
.prob__t { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.prob__p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 10px; }
.prob-note {
  margin-top: 40px; text-align: center; font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; letter-spacing: -.01em;
}
.prob-note span { color: var(--brand); }
.prob-cta { text-align: center; margin-top: 26px; }

/* ============================================================
   SOLUTION
   ============================================================ */
.solution { background: var(--bg-2); }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.feat:nth-child(even) .feat__visual { order: -1; }
.feat__tag {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: 30px; letter-spacing: .02em;
}
.feat__tag.crm { background: var(--brand-50); color: var(--brand-700); }
.feat__tag.tt { background: var(--success-50); color: var(--success); }
.feat__tag.ai { background: var(--ai-50); color: var(--ai-600); }
[data-theme="dark"] .feat__tag.crm { color: var(--brand); }
[data-theme="dark"] .feat__tag.ai { color: var(--ai); }
.feat__tag .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; }
.feat__tag.crm .ic { background: var(--brand); color: #fff; }
.feat__tag.tt .ic { background: var(--success); color: #fff; }
.feat__tag.ai .ic { background: var(--ai); color: #fff; }
.feat__h { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.1; margin: 18px 0 0; text-wrap: balance; }
.feat__list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.feat__list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text-2); line-height: 1.45; }
.feat__list i { color: var(--success); font-size: 19px; flex: none; margin-top: 1px; }
.feat__result {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.feat__result i { font-size: 18px; }
.feat__result.crm i { color: var(--brand); }
.feat__result.tt i { color: var(--success); }
.feat__result.ai i { color: var(--ai-600); }
[data-theme="dark"] .feat__result.ai i { color: var(--ai); }

.feat__visual { display: grid; place-items: center; }
.panel {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel__h { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.panel__h .av { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 19px; }
.panel__h .nm { font-weight: 700; font-size: 15px; }
.panel__h .sub { font-size: 12px; color: var(--muted); }
.panel__b { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.pline { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--text-2); }
.pline i { font-size: 16px; color: var(--brand); width: 20px; text-align: center; }
.pline .r { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12.5px; color: var(--text); }
.pline .tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--sunken); color: var(--muted); margin-left: auto; }

/* timer visual */
.tt-clock {
  font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 44px;
  text-align: center; letter-spacing: .02em; padding: 14px 0 6px; color: var(--success);
}
.tt-clockcase { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.tt-clockcase .code { font-family: 'JetBrains Mono', monospace; color: var(--text-2); font-weight: 600; }
.tt-bars { display: flex; flex-direction: column; gap: 11px; }
.tt-bar { display: flex; align-items: center; gap: 11px; }
.tt-bar .nm { font-size: 12.5px; width: 86px; flex: none; color: var(--text-2); }
.tt-bar .track { flex: 1; height: 9px; border-radius: 20px; background: var(--sunken); overflow: hidden; }
.tt-bar .track i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #34D399, var(--success)); }
.tt-bar .v { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 600; width: 38px; text-align: right; color: var(--muted); }

/* ai chat visual */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 86%; padding: 12px 15px; border-radius: 15px; font-size: 13.5px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: var(--sunken); color: var(--text-2); border-bottom-left-radius: 5px; border: 1px solid var(--line-soft); }
.bubble.ai b { color: var(--text); }
.chat__sources { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.chat__sources .s { font-size: 11px; font-family: 'JetBrains Mono', monospace; padding: 4px 9px; border-radius: 8px; background: var(--ai-50); color: var(--ai-600); border: 1px solid color-mix(in srgb, var(--ai) 25%, transparent); }
[data-theme="dark"] .chat__sources .s { color: var(--ai); }

/* ============================================================
   DAY TIMELINE
   ============================================================ */
.day { background: var(--bg); }
.tl { margin-top: 52px; position: relative; max-width: 760px; margin-left: auto; margin-right: auto; }
.tl::before { content: ""; position: absolute; left: 84px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 64px 1fr; gap: 44px; padding-bottom: 30px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-time { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; color: var(--brand); text-align: right; padding-top: 14px; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 14px; position: relative; }
.tl-card::before { content: ""; position: absolute; left: -29px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--brand); }
.tl-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 19px; background: var(--brand-50); color: var(--brand); }
.tl-tx { font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.tl-tx b { color: var(--text); font-weight: 600; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg-2); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.feat-plan {
  border: 1.5px solid var(--brand); box-shadow: var(--shadow-lg), 0 0 0 4px var(--brand-50);
  transform: scale(1.03);
}
.plan.feat-plan:hover { transform: scale(1.03) translateY(-4px); }
.plan__badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--brand); padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }
.plan__tier { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.plan__name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 28px; letter-spacing: -.01em; margin: 4px 0 0; }
.plan__price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan__price .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 32px; letter-spacing: -.03em; }
.plan__price .per { font-size: 13.5px; color: var(--muted); }
.plan__usd { font-size: 12.5px; color: var(--faint); }
.plan__feats { list-style: none; margin: 22px 0; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__feats li { display: flex; gap: 11px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.plan__feats i { color: var(--success); font-size: 17px; flex: none; margin-top: 1px; }
.plan__feats li.lead { font-weight: 600; color: var(--text); }
.plan__feats li.lead i { color: var(--brand); }
.pricing-note { text-align: center; margin-top: 36px; font-size: 14.5px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }
.pricing-note i { color: var(--success); }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc { background: var(--bg); }
.calc-box {
  margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.calc-inputs { padding: 38px; display: flex; flex-direction: column; gap: 28px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.calc-field label .val { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; color: var(--brand); }
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 20px;
  background: var(--sunken); outline: none; cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); border: 4px solid var(--card); box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
  cursor: grab;
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand);
  border: 4px solid var(--card); box-shadow: var(--shadow-md); cursor: grab;
}
.calc-result {
  padding: 38px; color: #ECFAF8; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 120% at 100% 0%, rgba(13,148,136,.6), transparent 60%), linear-gradient(160deg, #07332F, #04201D);
  position: relative; overflow: hidden;
}
.calc-result::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 0% 100%, rgba(45,212,196,.28), transparent 60%); }
.calc-result .lbl { font-size: 13.5px; color: rgba(255,255,255,.7); z-index: 1; }
.calc-result .big {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(34px, 4.5vw, 50px); line-height: 1.05; margin: 8px 0; z-index: 1;
  text-shadow: 0 2px 24px rgba(13,148,136,.45); font-variant-numeric: tabular-nums;
}
.calc-result .big .cur { font-size: .5em; color: #5EEAD4; }
.calc-result .sub2 { font-size: 13.5px; color: rgba(255,255,255,.6); z-index: 1; }
.calc-result .payback { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; gap: 12px; z-index: 1; }
.calc-result .payback i { font-size: 22px; color: #34D399; }
.calc-result .payback b { color: #fff; }
.calc-result .btn { margin-top: 26px; z-index: 1; align-self: flex-start; }
.calc-result .btn-white { background: #fff; color: var(--brand-700); }
.calc-result .btn-white:hover { background: #CFF5F0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg-2); }
.faq-list { margin-top: 44px; max-width: 760px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; font-size: 16px; font-weight: 600; }
.faq-q .ic { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sunken); color: var(--brand); font-size: 17px; transition: transform .25s, background .2s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a__in { padding: 0 22px 22px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--bg); }
.final-box {
  border-radius: 26px; padding: clamp(48px, 7vw, 80px) clamp(32px, 6vw, 72px);
  color: #ECFAF8; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 20% 0%, rgba(13,148,136,.62), transparent 55%), linear-gradient(155deg, #07332F, #04201D 70%);
  box-shadow: var(--shadow-pop);
}
.final-box::after { content: ""; position: absolute; right: -10%; bottom: -30%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(45,212,196,.28), transparent 60%); }
.final-box h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.02em; line-height: 1.05; margin: 0; z-index: 1; position: relative; text-wrap: balance; }
.final-box p { font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,.78); margin: 18px auto 0; max-width: 540px; z-index: 1; position: relative; }
.final-box .btn-white { background: #fff; color: var(--brand-700); margin-top: 32px; z-index: 1; position: relative; }
.final-box .btn-white:hover { background: #CFF5F0; }
.final-contacts { display: flex; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; z-index: 1; position: relative; }
.final-contacts a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff; transition: background .15s; }
.final-contacts a:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--hairline); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__about { max-width: 320px; }
.footer__about .logo { margin-bottom: 16px; }
.footer__about p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.footer__made { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); margin-top: 16px; }
.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.footer__col a, .footer__col span { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 11px; transition: color .15s; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 90vw);
}
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 13px; padding: 14px 18px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in .35s cubic-bezier(.2,.8,.2,1);
}
.toast i.ok { color: var(--success); font-size: 19px; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: 2; }
  .mock { transform: none; }
  .mock__float { right: 10px; }
  .feat { grid-template-columns: 1fr; gap: 30px; }
  .feat:nth-child(even) .feat__visual { order: 0; }
  .prob-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .plan.feat-plan { transform: none; }
  .plan.feat-plan:hover { transform: translateY(-4px); }
  .calc-box { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__about { grid-column: 1 / -1; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 104px 0 60px; }
  .mock__stats { grid-template-columns: 1fr 1fr; }
  .nav__login { display: none; }
  .tl::before { left: 64px; }
  .tl-item { grid-template-columns: 54px 1fr; gap: 34px; }
  .tl-card::before { left: -29px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .lang-switch button { padding: 5px 7px; font-size: 11.5px; }
  .nav .wrap { gap: 12px; }
}
