/* varak.app — one stylesheet for every page. Tokens first, then structure, then components. */
:root {
  /* the VARAK interface palette, verbatim from the app's stylesheet */
  --paper: #F5F5F7; --paper-2: #FFFFFF; --ink: #1B1F2A; --ink-2: #4A4F5C; --muted: #8A8F9C; --line: #E3E3E8;
  --blue: #1A7CF2; --blue-2: #0F6AD6; --blue-soft: #E8F1FF; --blue-deep: #1A7CF2; --blue-ink: #0F6AD6; --red: #E5484D;
  --serif: -apple-system, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px; --gutter: clamp(20px, 5vw, 64px);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1C1C1F; --paper-2: #26262B; --ink: #EDEDF0; --ink-2: #B5B8C2; --muted: #7C808C; --line: #34353B; --blue: #3B8DF5; --blue-2: #2F7FE6; --blue-soft: #14233A; --blue-deep: #3B8DF5; --blue-ink: #2F7FE6; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- type scale ---------- */
h1, h2, h3, .display { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 7px 0; border-top: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- structure ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 128px) 0; }
section + section { padding-top: 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
nav.primary { display: flex; gap: 26px; align-items: center; font-size: 15px; }
nav.primary a { color: var(--ink-2); }
nav.primary a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { nav.primary a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--blue) 88%, black); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--paper-2); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.store svg { width: 16px; height: 16px; }
.btn.small { padding: 9px 14px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 112px); }
.hero h1 { max-width: 14ch; }
.hero .lead { margin: 26px 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.hero .fine { font-size: 14px; color: var(--muted); }
.shot { margin-top: clamp(40px, 6vw, 80px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(10, 20, 60, .35), 0 2px 6px rgba(0,0,0,.06); background: var(--paper-2); }
.shot img { width: 100%; }

/* ---------- three promises ---------- */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.promises h3 { margin-bottom: 12px; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }

/* ---------- feature tour ---------- */
.tour { display: grid; gap: clamp(56px, 8vw, 110px); }
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.feat.flip { grid-template-columns: 7fr 5fr; }
.feat.flip .copy { order: 2; }
.feat .copy h3 { margin-bottom: 14px; }
.feat .copy p { margin-bottom: .8em; }
.feat .shot { margin: 0; }
@media (max-width: 860px) { .feat, .feat.flip { grid-template-columns: 1fr; } .feat.flip .copy { order: 0; } }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: 24px; }
.tools div p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

/* ---------- pricing: the one bold panel ---------- */
.price { background: var(--blue-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); position: relative; overflow: hidden; }

.price h2 { color: var(--ink); }
.price .tag { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; color: var(--blue); font-size: clamp(56px, 8vw, 104px); line-height: .95; margin: 8px 0 4px; }
.price .tag small { font-weight: 500; letter-spacing: 0; font-size: 18px; margin-left: 8px; color: var(--ink-2); }
.price .col h3 { color: var(--ink); margin-bottom: 14px; font-size: 20px; }
.price ul.plain li { border-color: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--ink-2); }
.price .btn.primary { margin-top: 22px; }
.price .note { color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* ---------- comparison ---------- */
table.cmp { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15.5px; }
table.cmp th, table.cmp td { text-align: left; padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 14px; }
table.cmp th.varak { color: var(--blue); font-weight: 700; }
table.cmp tbody th { font-weight: 500; color: var(--ink); width: 34%; }
table.cmp td.yes { color: var(--ink); font-weight: 600; }
table.cmp td.no { color: var(--muted); }
@media (max-width: 640px) { table.cmp { font-size: 14px; } table.cmp th, table.cmp td { padding: 10px 6px; } }

/* ---------- privacy band ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 64px) 0; }
.band .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .band .grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1; color: var(--muted); flex: none; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 0 20px; color: var(--ink-2); max-width: 72ch; }
details .a p:last-child { margin-bottom: 0; }

/* ---------- long-form legal / support pages ---------- */
.doc { max-width: 76ch; }
.doc h1 { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: clamp(28px, 3vw, 36px); margin: 56px 0 14px; }
.doc h3 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { max-width: none; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code, .doc kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.doc .callout { border-left: 3px solid var(--blue); padding: 8px 0 8px 18px; margin: 20px 0; color: var(--ink-2); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.doc thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 14px; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 0 0 40px; background: var(--paper-2); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; color: var(--muted); }
footer.site .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: var(--ink); font-size: 14px; }
footer.site ul.plain li { border: 0; padding: 4px 0; }
footer.site a { color: var(--ink-2); }
footer.site .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 720px) { footer.site .grid { grid-template-columns: 1fr; } }
