/* =========================================================
   NotaSubito — Landing page
   Design tokens + modern fintech UI (dark/light)
   ========================================================= */

:root {
  --brand: #4f7cff;
  --brand-2: #22d3a8;
  --brand-3: #7c5cff;

  --bg: #0b1220;
  --bg-2: #0e1626;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #eaf0ff;
  --text-dim: #a6b3cf;
  --text-mute: #7f8db0;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 10px 40px -10px rgba(79, 124, 255, 0.55);

  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Sora', var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f6f8fe;
  --bg-2: #eef2fb;
  --surface: rgba(13, 23, 50, 0.03);
  --surface-2: rgba(13, 23, 50, 0.05);
  --border: rgba(13, 23, 50, 0.10);
  --border-strong: rgba(13, 23, 50, 0.16);

  --text: #0d1733;
  --text-dim: #475173;
  --text-mute: #6b76a0;
  --shadow: 0 24px 60px -28px rgba(31, 50, 110, 0.30);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }

/* ---------- Background decor ---------- */
.bg-aurora, .bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-aurora {
  background:
    radial-gradient(45rem 32rem at 12% -8%, rgba(79,124,255,.30), transparent 60%),
    radial-gradient(40rem 30rem at 92% 4%, rgba(124,92,255,.24), transparent 60%),
    radial-gradient(46rem 34rem at 70% 100%, rgba(34,211,168,.18), transparent 60%);
  filter: saturate(1.1);
}
.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
  opacity: .5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -10px rgba(79,124,255,.7); }
.btn--ghost { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.btn--ghost:hover { transform: translateY(-2px); background: var(--surface); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__logo { border-radius: 9px; box-shadow: 0 4px 14px -4px rgba(0,0,0,.5); }
.brand__name { font-family: var(--font-head); font-size: 19px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 6px; margin-left: 8px; margin-right: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--text-dim); transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s;
}
.lang__btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.lang__btn svg { transition: transform .2s; color: var(--text-mute); }
.lang.open .lang__btn svg { transform: rotate(180deg); }
.lang__flag { font-size: 16px; line-height: 1; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px; max-height: 60vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
  z-index: 60; animation: pop .18s var(--ease);
}
.lang__menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.lang__menu li:hover { background: var(--surface-2); }
.lang__menu li[aria-selected="true"] { background: var(--surface-2); color: var(--brand); font-weight: 700; }
.lang__menu li .flag { font-size: 17px; }
.lang__menu li .name { flex: 1; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Theme toggle icons */
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Burger */
.nav__burger { display: none; flex-direction: column; gap: 4px; }
.nav__burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 62%, var(--brand)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-dim); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__cta--center { justify-content: center; }
.hero__points { margin-top: 28px; display: grid; gap: 9px; }
.hero__points li { color: var(--text-dim); font-size: 15px; font-weight: 500; }

/* Store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  transition: transform .2s var(--ease), box-shadow .25s; box-shadow: var(--shadow);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.store-badge svg { flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 11px; opacity: .8; font-weight: 500; }
.store-badge strong { font-size: 16px; font-family: var(--font-head); }

/* Trust strip */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 64px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.trust__item { text-align: center; }
.trust__item b { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.trust__item span { color: var(--text-mute); font-size: 14px; font-weight: 500; }

/* ---------- Phone mockup ---------- */
.hero__art { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: 290px; height: 590px;
  background: linear-gradient(160deg, #1b2540, #0c1322);
  border-radius: 44px; padding: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: floaty 6s ease-in-out infinite;
}
[data-theme="light"] .phone { background: linear-gradient(160deg, #20305a, #0e1730); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #05080f; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--bg-2); position: relative;
}
.app { padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.app__bar { display: flex; align-items: center; justify-content: space-between; }
.app__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); }
.app__avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-3)); }

.scan-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 12px;
}
.scan-card__shot { position: relative; background: #fff; border-radius: 11px; padding: 14px; overflow: hidden; }
.receipt { display: grid; gap: 7px; }
.receipt__line { height: 8px; border-radius: 4px; background: #d9dee8; }
.receipt__line.w90 { width: 90%; } .receipt__line.w70 { width: 70%; }
.receipt__line.w50 { width: 50%; } .receipt__line.w40 { width: 40%; }
.receipt__total { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 9px; border-top: 1.5px dashed #c2c9d6; }
.receipt__total span { font-size: 10px; letter-spacing: .12em; color: #8a93a6; font-weight: 700; }
.receipt__total b { font-size: 16px; color: #0d1733; font-family: var(--font-head); }
.scan-laser {
  position: absolute; left: 0; right: 0; height: 34px;
  background: linear-gradient(180deg, transparent, rgba(34,211,168,.55), transparent);
  box-shadow: 0 0 16px 3px rgba(34,211,168,.5);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: -10%; } 50% { top: 92%; } }
.scan-card__ocr { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.ocr-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--brand-2); background: rgba(34,211,168,.14); padding: 3px 7px; border-radius: 6px; }

.exp-row { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; }
.exp-ico { font-size: 18px; }
.exp-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.exp-meta b { font-size: 13.5px; color: var(--text); }
.exp-meta small { font-size: 11px; color: var(--text-mute); }
.exp-amt { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text); }
.app__fab {
  margin-top: auto; padding: 13px; border: none; border-radius: 14px; cursor: default;
  font-weight: 700; font-size: 14px; color: #fff; font-family: var(--font-head);
  background: linear-gradient(135deg, var(--brand), var(--brand-3)); box-shadow: var(--shadow-glow);
}

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--bg-2) 86%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip span:first-child { font-size: 16px; }
.chip-1 { top: 16%; left: -6%; animation-delay: .6s; }
.chip-2 { bottom: 14%; right: -7%; animation-delay: 1.4s; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--surface); border-block: 1px solid var(--border);
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.section__head p { margin-top: 16px; color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.12rem); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(20rem 14rem at var(--mx,50%) 0%, rgba(79,124,255,.14), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card__ico {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px;
  border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(79,124,255,.18), rgba(34,211,168,.14));
  border: 1px solid var(--border-strong);
}
.card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
}
.step__n {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff;
  border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); box-shadow: var(--shadow-glow);
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); gap: 24px; justify-content: center; align-items: stretch; }
.plan {
  position: relative; padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column;
}
.plan--featured {
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 16%, var(--bg-2)), var(--bg-2));
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow);
}
.plan--enterprise {
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand-2) 12%, var(--bg-2)), var(--bg-2));
  border-color: color-mix(in srgb, var(--brand-2) 38%, var(--border));
}
.plan__price--quote { font-size: 1.7rem; color: var(--brand-2); }
.plan__ribbon {
  position: absolute; top: -13px; right: 26px;
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3)); box-shadow: var(--shadow-glow);
}
.plan__name { font-size: 1.4rem; }
.plan__price { margin: 14px 0 6px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; }
.plan__tag { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; }
.plan__list { display: grid; gap: 13px; margin-bottom: 26px; }
.plan__list li { position: relative; padding-left: 28px; color: var(--text-dim); font-size: 15px; }
.plan__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--brand-2);
  width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(34,211,168,.14); font-size: 12px;
}
.plan a, .plan .btn { margin-top: auto; }
.plans__note { text-align: center; margin-top: 32px; color: var(--text-mute); font-size: 15px; }

/* ---------- Contact modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(5, 9, 18, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease);
}
.modal__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 34px; animation: modalIn .3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__x {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  transition: background .2s, color .2s;
}
.modal__x:hover { background: var(--surface-2); color: var(--text); }
.modal__head { text-align: center; margin-bottom: 24px; }
.modal__badge {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px;
  border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border-strong);
}
.modal__head h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.modal__sub { margin-top: 10px; color: var(--text-dim); font-size: 15px; }

/* Form */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.field__opt { color: var(--text-mute); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 96px; }
/* native validation styling after a submit attempt */
.cform.was-validated :invalid { border-color: #ff6b6b; }
.cform.was-validated :invalid:focus { box-shadow: 0 0 0 3px rgba(255, 107, 107, .25); }

.cform__consent {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px;
  font-size: 14px; color: var(--text-dim); cursor: pointer; line-height: 1.5;
}
.cform__consent input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.cform.was-validated .cform__consent input:invalid { outline: 2px solid #ff6b6b; outline-offset: 2px; border-radius: 4px; }

.cform__error {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  color: #ffd9d9; background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .35);
}
.cform__actions { display: flex; gap: 12px; margin-top: 22px; }
.cform__actions .btn { flex: 1; }
.cform__actions .btn--primary[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* Success view */
.modal__success { text-align: center; padding: 20px 0 6px; }
.success-ring {
  width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), #18b890); box-shadow: 0 10px 30px -8px rgba(34, 211, 168, .6);
  animation: popIn .4s var(--ease);
}
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.modal__success h2 { font-size: 1.5rem; }
.modal__success p { margin: 12px auto 24px; color: var(--text-dim); max-width: 38ch; }

body.modal-open { overflow: hidden; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 20px; transition: border-color .25s, background .25s;
}
.faq__item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.04rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--brand);
  transition: transform .25s var(--ease); flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-dim); font-size: 15px; padding: 0 0 18px; max-width: 60ch; }

/* CTA */
.cta { padding-top: 40px; }
.cta__box {
  text-align: center; padding: 64px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 20%, var(--bg-2)), color-mix(in srgb, var(--brand-3) 14%, var(--bg-2)));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta__box::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(30rem 18rem at 50% -20%, rgba(34,211,168,.22), transparent 60%);
}
.cta__box > * { position: relative; z-index: 1; }
.cta__box h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 18ch; margin: 0 auto; }
.cta__box p { margin: 16px auto 30px; color: var(--text-dim); font-size: 1.1rem; max-width: 44ch; }

/* Footer */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--border); background: var(--surface); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; color: var(--text-mute); font-size: 14px; max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 4px; }
.footer__col a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: 14px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__sub, .hero__points { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__points { justify-items: center; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 16px;
    padding: 12px; box-shadow: var(--shadow); margin: 0;
  }
  .nav__links.open a { padding: 12px 14px; }
  .nav__cta-text { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .cform__grid { grid-template-columns: 1fr; }
  .modal__dialog { padding: 26px 20px; }
  .section { padding: 72px 0; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero__cta { flex-direction: column; }
  .store-badge { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  display: flex; justify-content: center;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.cookie-banner.show { transform: none; }
.cookie-banner__inner {
  width: 100%; max-width: 920px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 20px 22px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.cookie-banner__body { flex: 1 1 320px; min-width: 0; }
.cookie-banner__title { font-size: 1.05rem; margin-bottom: 6px; }
.cookie-banner__text { color: var(--text-dim); font-size: 14px; }
.cookie-banner__link {
  display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600;
  color: var(--brand); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.cookie-banner__link:hover { border-color: currentColor; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* ---------- Legal / privacy page ---------- */
.legal { padding: 56px 0 80px; }
.legal__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.legal__head h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal__updated { margin-top: 14px; color: var(--text-mute); font-size: 14px; }
.legal__body { max-width: 760px; margin: 0 auto; }
.legal__body section { margin-top: 40px; scroll-margin-top: 90px; }
.legal__body h2 {
  font-size: 1.35rem; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.legal__body h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal__body p { color: var(--text-dim); margin-top: 12px; }
.legal__body ul { margin: 12px 0 0; padding-left: 0; display: grid; gap: 8px; }
.legal__body li { color: var(--text-dim); padding-left: 22px; position: relative; }
.legal__body li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.legal__body a { color: var(--brand); border-bottom: 1px solid transparent; transition: border-color .2s; }
.legal__body a:hover { border-color: currentColor; }
.legal__body strong { color: var(--text); }
.legal__table {
  width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.legal__table th, .legal__table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal__table th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 48px; color: var(--text-dim); font-weight: 600; font-size: 15px;
}
.legal__back:hover { color: var(--text); }
.lang-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-toggle button {
  border: 0; background: transparent; color: var(--text-dim); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
