/* Cybortax landing — design tokens + components, per blueprint/02-design-system.md.
   Phone-first: base styles are 390px; desktop adapts via min-width queries. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-display.woff2") format("woff2");
  font-weight: 560; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif-display.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

/* ---------- tokens (01-brand + 02-design-system) ---------- */
:root {
  --ink: #101C2C;
  --paper: #FAF7F1;
  --card: #FFFFFF;
  --card-border: #E8E2D8;
  --input-border: #D8D2C6;
  --verde: #1E7A5A;
  --gold: #C9A54A;
  --ambar: #B97F24;
  --teja: #B3402E;
  --text: #1D2A3A;
  --text-2: #5A6675;
  --text-3: #9AA3AE;

  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --r-card: 16px; --r-btn: 12px; --r-chip: 8px;
  --shadow: 0 1px 3px rgba(16,28,44,.06), 0 8px 24px rgba(16,28,44,.06);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
:lang(ru) { --display: "Source Serif 4", Georgia, serif; }

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--verde); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--s5); }
section { padding: var(--s8) 0; }

h1, h2, .display { font-family: var(--display); font-weight: 560; line-height: 1.15; color: var(--ink); }
:lang(ru) h1, :lang(ru) h2, :lang(ru) .display { font-weight: 600; }
h1 { font-size: clamp(34px, 6vw, 54px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 32px); margin-bottom: var(--s5); }
.lead { font-size: 18px; color: var(--text-2); }
.small { font-size: 14px; color: var(--text-2); }
.caption { font-size: 12px; color: var(--text-3); }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s5) 0;
}
.wordmark {
  font-family: var(--display); font-size: 26px; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em;
}
.lang { display: flex; gap: var(--s3); font-size: 14px; }
.lang a { color: var(--text-2); text-decoration: none; padding: var(--s2); }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px var(--body); cursor: pointer; text-decoration: none;
  border: none; border-radius: var(--r-btn);
  min-height: 52px; padding: 0 var(--s5);
  transition: transform 80ms var(--ease), box-shadow 150ms var(--ease), background 150ms var(--ease);
  width: 100%;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #0a1420; box-shadow: var(--shadow); }
@media (min-width: 720px) { .btn { min-height: 48px; width: auto; } }

/* ---------- waitlist form ---------- */
.waitlist { display: flex; flex-direction: column; gap: var(--s3); max-width: 560px; }
.waitlist input[type="email"] {
  min-height: 52px; padding: 0 var(--s4);
  background: var(--card); border: 1px solid var(--input-border);
  border-radius: var(--r-btn); font: 400 16px var(--body); color: var(--text);
  width: 100%;
}
.waitlist input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
.waitlist .ok {
  display: none; align-items: center; gap: var(--s3);
  color: var(--verde); font-weight: 600;
}
.waitlist.done form { display: none; }
.waitlist.done .ok { display: flex; }
.waitlist .err { display: none; color: var(--teja); font-weight: 600; }
.waitlist.fail .err { display: block; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 720px) {
  .waitlist form { display: flex; gap: var(--s3); }
  .waitlist input[type="email"] { flex: 1; }
}

/* ---------- hero ---------- */
.hero { padding-top: var(--s6); }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero .lead { margin: var(--s5) 0 var(--s6); max-width: 560px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* the Green Moment phone mock */
.phone {
  width: min(300px, 78vw); margin: 0 auto;
  background: var(--ink); border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow);
}
.phone-screen {
  background: var(--paper); border-radius: 30px;
  padding: var(--s7) var(--s5) var(--s6);
  text-align: center; min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s4);
}
.tick-badge {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--verde); display: grid; place-items: center;
  margin-bottom: var(--s2);
}
.tick-badge svg { width: 48px; height: 40px; }
.tick-draw {
  stroke: #fff; stroke-width: 9; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .js .tick-draw {
    stroke-dasharray: 120; stroke-dashoffset: 120;
    animation: draw 400ms var(--ease) 300ms forwards;
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.phone-screen .checked { font-family: var(--display); font-size: 22px; color: var(--ink); }
.phone-screen .sub { font-size: 13px; color: var(--text-2); }
.phone-chip {
  font-size: 12px; color: var(--text-2);
  border: 1px solid var(--card-border); border-radius: var(--r-chip);
  padding: var(--s1) var(--s3); background: var(--card);
}
.preview-label { text-align: center; margin-top: var(--s3); }

/* ---------- pain columns ---------- */
.cols { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow);
}
.card h3 { font-family: var(--display); font-size: 20px; color: var(--ink); margin-bottom: var(--s3); }
.card p { color: var(--text-2); font-size: 15px; }

/* ---------- steps ---------- */
.step { display: flex; gap: var(--s4); margin-bottom: var(--s5); }
.step-n {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font: 600 16px var(--body);
}
.step h3 { font-size: 18px; margin-bottom: var(--s1); color: var(--ink); }
.step p { color: var(--text-2); font-size: 15px; max-width: 560px; }

/* ---------- the check section ---------- */
.check-section { background: var(--ink); color: var(--paper); border-radius: var(--r-card); }
.check-section .inner { padding: var(--s8) var(--s5); }
.check-section h2 { color: var(--paper); }
.check-section p { color: rgba(250,247,241,.75); max-width: 640px; }
.flag-mocks { display: grid; gap: var(--s5); margin: var(--s6) 0; }
@media (min-width: 720px) { .flag-mocks { grid-template-columns: 1fr 1fr; } }
.flag-card { background: var(--card); border-radius: var(--r-card); padding: var(--s5); color: var(--text); }
.flag-card.serious { border-left: 4px solid var(--teja); }
.flag-card.green { border-left: 4px solid var(--verde); }
.flag-card .t { font-weight: 600; color: var(--ink); margin-bottom: var(--s2); }
.flag-card p { color: var(--text-2); font-size: 14px; }
.guarantee {
  font-family: var(--display); font-size: clamp(22px, 3.4vw, 30px);
  color: var(--gold); line-height: 1.3; max-width: 640px;
}
@media (min-width: 720px) { .check-section .inner { padding: var(--s8); } }

/* ---------- price ---------- */
.price-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: var(--s7) var(--s5); max-width: 460px; margin: 0 auto; text-align: center;
}
.price {
  font-family: var(--display); font-size: 54px; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.price small { font-size: 18px; color: var(--text-2); font-family: var(--body); }
.price-alt { color: var(--text-2); margin: var(--s2) 0 var(--s4); }
.compare { text-align: center; margin-top: var(--s4); }

/* ---------- for / not for ---------- */
.forgrid { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .forgrid { grid-template-columns: 1fr 1fr; } }
.forgrid .card h3 { display: flex; align-items: center; gap: var(--s2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.v { background: var(--verde); } .dot.a { background: var(--ambar); }

/* ---------- faq ---------- */
details {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--r-card); padding: var(--s4) var(--s5); margin-bottom: var(--s3);
}
summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
summary::marker { color: var(--verde); }
details p { color: var(--text-2); padding: var(--s3) 0 var(--s2); font-size: 15px; }

/* ---------- final cta / footer ---------- */
.final { text-align: center; }
.final .waitlist { margin: var(--s6) auto 0; }
.final .caption { margin-top: var(--s3); }
footer {
  border-top: 1px solid var(--card-border);
  padding: var(--s6) 0; margin-top: var(--s7);
  display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5);
  font-size: 14px; color: var(--text-2);
}
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
