/* VastuLab site. Tokens and fonts follow the app (docs/DESIGN.md §2–§4): warm paper, one indigo
   action colour, saffron and gold accents, Lora headings, Inter text. Fonts are served from this
   site (no external requests). */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/fonts/lora-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Lora Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/fonts/lora-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #fbf6ee;
  --card: #fffdf8;
  --sunken: #f3eadb;
  --fg: #2a2140;
  --muted: #645a72;
  --line: #e7dccb;
  --line-strong: #d5c6ae;
  --accent: #3d2e8c;
  --accent-2: #5a47c0;
  --accent-fg: #ffffff;
  --accent-ink: #4a3aa8;
  --accent-soft: #eeeafb;
  --saffron: #e8a33d;
  --gold: #c9963e;
  --saffron-soft: #fcefd6;
  --saffron-ink: #8a5300;
  --glow-1: #fde7bf;
  --glow-2: #f3e9fb;
  --focus: #5a47c0;
  --shadow-1: 0 1px 2px rgba(42, 33, 64, 0.06), 0 4px 14px rgba(61, 46, 140, 0.07);
  --shadow-2: 0 10px 34px rgba(42, 33, 64, 0.16);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --serif: "Lora Variable", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15112a;
    --card: #201a3b;
    --sunken: #2a2350;
    --fg: #f4eee3;
    --muted: #b9afcb;
    --line: #3a3163;
    --line-strong: #4d4380;
    --accent: #f2b552;
    --accent-2: #f6c977;
    --accent-fg: #1f1838;
    --accent-ink: #c9b8ff;
    --accent-soft: #2d2557;
    --saffron: #f2b552;
    --gold: #d9aa55;
    --saffron-soft: #3a2c1a;
    --saffron-ink: #f2c374;
    --glow-1: #3b2d5e;
    --glow-2: #231c42;
    --focus: #f6c977;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 10px 34px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 4vw, 32px); margin-top: 0; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ---- header ---- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 21px/1 var(--serif); margin-right: auto; min-height: 44px; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.nav li + li { margin-top: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--fg); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 650; }
.nav .lang { border: 1px solid var(--line-strong); margin-left: 6px; font-size: 14px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: var(--r-lg); font: 600 17px/1.2 var(--sans); text-decoration: none; border: 0; }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-fg); box-shadow: 0 6px 18px rgba(61, 46, 140, 0.28); }
.btn-primary:hover { filter: brightness(1.07); }
.btn svg { width: 22px; height: 22px; flex: none; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.store-soon { background: var(--card); color: var(--fg); border: 1.5px dashed var(--line-strong); cursor: default; }
.store-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 40px 0 48px; background: linear-gradient(160deg, var(--saffron-soft) 0%, var(--bg) 45%, var(--accent-soft) 100%); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero .lead { font-size: 19px; color: var(--fg); max-width: 34em; }
.hero-mandala { width: min(220px, 56vw); height: auto; margin-bottom: 12px; }
.hero-shot { justify-self: center; }
.eyebrow { font: 700 13px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 12px; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.trust li + li { margin-top: 0; }
.trust li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }

/* ---- phone frames ---- */
.phone { width: min(280px, 78vw); border-radius: 30px; padding: 9px; background: #231c42; box-shadow: var(--shadow-2); }
.phone img { border-radius: 22px; width: 100%; }

/* ---- sections ---- */
.section { padding: 56px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { color: var(--muted); font-size: 18px; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 20px 18px; box-shadow: var(--shadow-1); counter-increment: step; }
.section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 10px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: 56px; }
.feature .phone { justify-self: center; }

.callout { border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 12px; }
.callout-title { display: block; font: 700 12px/1.3 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.callout-simple { background: linear-gradient(135deg, var(--saffron-soft), var(--card)); border: 1.5px solid var(--gold); }
.callout-effect { background: var(--accent-soft); border-left: 4px solid var(--accent-ink); }
.callout-effect .callout-title { color: var(--accent-ink); }
.callout-fallback { background: var(--saffron-soft); border-left: 4px solid var(--gold); }
.callout-fallback .callout-title { color: var(--saffron-ink); }
.callout-safety { background: var(--sunken); border-left: 4px solid var(--gold); }
.callout p:last-child { margin-bottom: 0; }

.gets { display: grid; gap: 14px; list-style: none; padding: 0; margin: 24px 0 0; }
.gets li { margin: 0; display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.section.alt .gets li { background: var(--bg); }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.d-n { background: #2f64b0; } .d-ne { background: #5bbbd0; } .d-e { background: #e39a1e; } .d-se { background: #c2441e; }
.d-s { background: #985a26; } .d-sw { background: #6e4a2c; } .d-w { background: #5c6b85; } .d-nw { background: #a693d8; }

.privacy-band { display: grid; gap: 16px; background: var(--sunken); border-radius: var(--r-lg); padding: 24px; }
.privacy-band p { margin: 0; }

.cards { display: grid; gap: 16px; list-style: none; padding: 0; margin: 24px 0 0; }
.cards li { margin: 0; }
.card { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-1); text-decoration: none; color: var(--fg); }
.section.alt .card { background: var(--bg); }
.card:hover { border-color: var(--accent-ink); }
.card h2, .card h3 { color: var(--accent-ink); margin-bottom: 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.cta { text-align: center; }
.cta .store { align-items: center; }

/* ---- documents (privacy, terms, support, articles) ---- */
.doc { padding: 40px 0 56px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); }
.doc h2 { font-size: 24px; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .lead { font-size: 18px; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; }
.doc th { font-weight: 650; }
.table-scroll { overflow-x: auto; }
.breadcrumbs { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 14px 16px; min-height: 44px; font-weight: 650; list-style-position: outside; margin-left: 18px; }
.faq details > div { padding: 0 16px 6px; }
.contact { background: var(--accent-soft); border-radius: var(--r-md); padding: 18px 20px; margin: 24px 0; }
.contact p:last-child { margin-bottom: 0; }

.measure { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 6px; margin: 0 0 16px; box-shadow: var(--shadow-1); }
.measure > p:first-child { font-weight: 600; }
.article-cta { margin-top: 32px; background: linear-gradient(135deg, var(--saffron-soft), var(--accent-soft)); border-radius: var(--r-lg); padding: 24px; }

/* ---- footer ---- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-footer li + li { margin-top: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--fg); }
.site-footer p { margin: 0; }

/* ---- mandala (same drawing as the app start screen, docs/DESIGN.md §8) ---- */
.m-glow1 { stop-color: var(--glow-1); }
.m-glow2 { stop-color: var(--glow-2); }
.m-line { stroke: var(--accent-ink); stroke-width: 1.6; fill: none; }
.m-thin { stroke-width: 1; opacity: 0.55; }
.m-faint { stroke-width: 0.8; opacity: 0.25; }
.m-paper { fill: var(--card); fill-opacity: 0.75; }
.m-center { fill: var(--saffron-soft); stroke: var(--gold); stroke-width: 1.2; }
.m-gold { stroke: var(--gold); stroke-width: 2; fill: none; }
.m-gold-fill { fill: var(--saffron); }
.m-petal { fill: var(--saffron); fill-opacity: 0.22; stroke: var(--gold); stroke-width: 1.1; }
.m-dot { stroke: var(--card); stroke-width: 2; }

@media (min-width: 760px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gets { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip > .phone { order: 2; }
  .privacy-band { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .nav a { transition: filter 0.15s, border-color 0.15s, background-color 0.15s; }
}
