:root {
  color-scheme: light dark;
  --bg: #f5f6f3;
  --bg-deep: #eceee9;
  --surface: #ffffff;
  --surface-2: #eff2ee;
  --border: #dbe0da;
  --border-strong: #c3cbc4;
  --text: #17201b;
  --text-muted: #56625b;
  --accent: #0f766e;
  --accent-hover: #0b5f58;
  --accent-contrast: #ffffff;
  --accent-soft: #dcefec;
  --accent-text: #0b5f58;
  --blue: #2563eb;
  --violet: #7c5cc4;
  --contour: rgb(15 118 110 / 0.13);
  --shadow: 0 1px 2px rgb(20 30 25 / 0.06), 0 8px 28px rgb(20 30 25 / 0.08);
  --shadow-big: 0 2px 4px rgb(20 30 25 / 0.05), 0 24px 60px rgb(20 30 25 / 0.14);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  accent-color: var(--accent);

  @media (prefers-color-scheme: dark) {
    --bg: #0e1311;
    --bg-deep: #0a0e0c;
    --surface: #151c19;
    --surface-2: #1b2420;
    --border: #2a3530;
    --border-strong: #3a4842;
    --text: #e4ebe7;
    --text-muted: #9aa8a0;
    --accent: #2bc4b0;
    --accent-hover: #4fd6c4;
    --accent-contrast: #04211e;
    --accent-soft: #123a35;
    --accent-text: #6fe0d0;
    --blue: #7aa5ff;
    --violet: #b9a2f2;
    --contour: rgb(43 196 176 / 0.12);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.3);
    --shadow-big: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 60px rgb(0 0 0 / 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--text-muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background:
    radial-gradient(circle at 30% 35%, rgb(255 255 255 / 0.35) 0 18%, transparent 19%),
    linear-gradient(135deg, #0f766e, #2563eb);
}
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--text-muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.sign-in { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.sign-in:hover { color: var(--accent-text); }
@media (max-width: 960px) { .site-nav { display: none; } .site-header .sign-in { margin-left: auto; } }
@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; }
  .brand { font-size: 16px; }
  .site-header .button.small { padding: 0 12px; font-size: 14px; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { border-color: var(--text-muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%),
    radial-gradient(50% 45% at 5% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.contours { position: absolute; inset: 0 0 auto; z-index: -1; width: 100%; height: 620px; color: var(--contour); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); letter-spacing: -0.025em; margin: 0 0 20px; max-width: 19ch; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.hero-actions .button { min-height: 50px; padding: 0 24px; font-size: 17px; }
.hero-shot { margin: 56px 0 0; }

/* ---------- screenshot frame ---------- */
.frame {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-big); overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.frame-bar .url { width: auto; height: auto; border-radius: 6px; margin-left: 12px; padding: 2px 12px; font-size: 12px; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
.zoom img { width: 100%; background: #f5f6f3; }
figcaption { font-size: 14px; color: var(--text-muted); margin-top: 12px; }


/* ---------- sections ---------- */
section { padding: 96px 0 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
.section-head p { font-size: 19px; color: var(--text-muted); margin-top: 16px; }

/* positioning */
.versus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.vs-card .against { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.vs-card h3 { font-size: 21px; margin: 10px 0 12px; letter-spacing: -0.01em; }
.vs-card p { color: var(--text-muted); font-size: 16px; }
@media (max-width: 900px) { .versus { grid-template-columns: 1fr; } }

/* features */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature.wide { grid-template-columns: 1fr; gap: 36px; }
.feature.wide .feature-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.feature.wide .feature-text .checks { margin-top: 0; }
.feature.wide .feature-text p { margin-top: 14px; color: var(--text-muted); font-size: 18px; }
figure { margin: 0; }
.side-note { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: center; }
.side-note figcaption { margin-top: 0; }
.feature h3 { font-size: clamp(25px, 3vw, 32px); letter-spacing: -0.015em; }
.feature .feature-text > p { margin-top: 14px; color: var(--text-muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: 16px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.stack { display: grid; gap: 18px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .feature.wide .feature-text { grid-template-columns: 1fr; gap: 0; }
  .feature.wide .feature-text .checks { margin-top: 22px; }
  .pair { grid-template-columns: 1fr; }
}

/* reach cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--text-muted); }
.grid-4.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .grid-4.grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast); font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--text-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* use cases */
.departments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.department { border-top: 3px solid var(--accent); padding-top: 18px; }
.department:nth-child(3n+2) { border-color: var(--blue); }
.department:nth-child(3n) { border-color: var(--violet); }
.department h3 { font-size: 20px; margin-bottom: 12px; }
.questions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.questions li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 16px; }
@media (max-width: 900px) { .departments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .departments { grid-template-columns: 1fr; } }

.more { margin-top: 28px; }

/* how to buy */
.buy { display: grid; grid-template-columns: 7fr 5fr; gap: 18px; align-items: start; }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.buy-card.main { border: 2px solid var(--accent); }
.buy-card h3 { font-size: 24px; }
.buy-card > p:not(.tag) { color: var(--text-muted); margin-top: 10px; }
.buy-card .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.buy-card .button { margin-top: 26px; }
@media (max-width: 900px) { .buy { grid-template-columns: 1fr; } }


/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--text-muted); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 20px; color: var(--text-muted); font-size: 16px; }

/* closing */
.closing { margin: 104px 0 0; padding: 64px 32px; text-align: center; border-radius: 22px; background: linear-gradient(135deg, #0f766e, #1d4ed8); color: #fff; position: relative; overflow: hidden; }
.closing h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.closing p { margin: 16px auto 0; max-width: 56ch; color: rgb(255 255 255 / 0.85); font-size: 18px; }
.closing .button { margin-top: 30px; background: #fff; color: #0b5f58; border-color: #fff; min-height: 50px; padding: 0 26px; font-size: 17px; }
.closing .button:hover { background: #e9f6f4; }
.closing .mail { margin-top: 18px; font-size: 15px; }
.closing .mail a { color: #fff; }

/* ---------- security page ---------- */
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.doc .wrap > section, .doc-head { max-width: 900px; }
.doc-head { padding: 64px 0 0; }
.doc-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.025em; margin-bottom: 18px; }
.doc-head .lead { font-size: clamp(18px, 2.2vw, 20px); color: var(--text-muted); max-width: 62ch; }
.doc section { padding: 64px 0 0; }
.doc section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 22px; }
.doc .checks { margin-top: 0; }
.note { margin-top: 18px; font-size: 16px; color: var(--text-muted); }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.node { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); font-size: 15px; }
.node.main { border: 2px solid var(--accent); }
.node-kind { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.node h3 { font-size: 18px; margin-bottom: 8px; }
.node p:not(.node-kind), .node li { color: var(--text-muted); }
.node ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.link { font-size: 13px; color: var(--text-muted); text-align: center; display: grid; gap: 4px; }
.arrow { font-size: 24px; line-height: 1; color: var(--accent); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .link { padding: 4px 24px; }
  .arrow span { display: inline-block; transform: rotate(90deg); }
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border); }
th { font-size: 14px; color: var(--text-muted); background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; width: 42%; }

footer { padding: 56px 0 48px; font-size: 14px; color: var(--text-muted); }
footer .wrap { display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 28px; }

/* ---------- image viewer ---------- */
dialog.viewer { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; }
dialog.viewer::backdrop { background: rgb(8 12 10 / 0.78); backdrop-filter: blur(3px); }
dialog.viewer img { max-width: min(96vw, 1600px); max-height: 86vh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); background: #f5f6f3; }
dialog.viewer p { color: #e4ebe7; font-size: 14px; margin-top: 10px; text-align: center; }
dialog.viewer .close { position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #17201b; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / 0.3); }
@media (max-width: 600px) { dialog.viewer .close { top: -48px; right: 0; } }
