/* Wweer. Light off-white base with near-black type, one teal accent taken from
   the glass logo, 1px grid lines, mono labels and glass surfaces. Plain CSS. */

:root {
  --bg: #f7f7f4;
  --bg-2: #efefea;
  --surface: rgb(255 255 255 / 0.72);
  --surface-solid: #ffffff;
  --text: #0b0c0e;
  --muted: #4d5259;
  --line: #e2e2dc;
  --line-strong: #c9c9c1;
  --accent: #0f766e;
  --accent-hover: #0c5f58;
  --accent-ink: #ffffff;
  --accent-soft: #dff1ee;
  --accent-line: rgb(15 118 110 / 0.28);
  --glass-top: rgb(255 255 255 / 0.9);
  --glass-bottom: rgb(255 255 255 / 0.55);
  --glass-edge: rgb(255 255 255 / 0.95);
  --glass-shadow: 0 1px 2px rgb(11 12 14 / 0.04), 0 30px 60px -40px rgb(11 12 14 / 0.35);
  --inner-light: inset 0 1px 0 rgb(255 255 255 / 0.55);
  --tactile: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 -2px 0 rgb(0 0 0 / 0.18), 0 1px 2px rgb(11 12 14 / 0.2);
  --dot: rgb(11 12 14 / 0.12);
  --code-bg: #0d1413;
  --code-line: #1d2b29;
  --code-text: #d5f2ec;
  --code-muted: #7fa39b;
  --code-key: #7ee2cf;
  --danger-bg: #fdf1ee;
  --danger-line: #e9b8ab;
  --danger-text: #7a2e1d;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c0c;
    --bg-2: #101414;
    --surface: rgb(255 255 255 / 0.05);
    --surface-solid: #111616;
    --text: #f2f4f3;
    --muted: #a7aeb0;
    --line: #223030;
    --line-strong: #2e3e3d;
    --accent: #5eead4;
    --accent-hover: #7af0dc;
    --accent-ink: #04130f;
    --accent-soft: #112a27;
    --accent-line: rgb(94 234 212 / 0.3);
    --glass-top: rgb(255 255 255 / 0.1);
    --glass-bottom: rgb(255 255 255 / 0.025);
    --glass-edge: rgb(255 255 255 / 0.14);
    --glass-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 30px 60px -36px rgb(0 0 0 / 0.9);
    --inner-light: inset 0 1px 0 rgb(255 255 255 / 0.1);
    --tactile: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 -2px 0 rgb(0 0 0 / 0.22), 0 1px 2px rgb(0 0 0 / 0.5);
    --dot: rgb(255 255 255 / 0.1);
    --danger-bg: #2a1713;
    --danger-line: #6b3328;
    --danger-text: #f2c1b5;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0c0c;
  --bg-2: #101414;
  --surface: rgb(255 255 255 / 0.05);
  --surface-solid: #111616;
  --text: #f2f4f3;
  --muted: #a7aeb0;
  --line: #223030;
  --line-strong: #2e3e3d;
  --accent: #5eead4;
  --accent-hover: #7af0dc;
  --accent-ink: #04130f;
  --accent-soft: #112a27;
  --accent-line: rgb(94 234 212 / 0.3);
  --glass-top: rgb(255 255 255 / 0.1);
  --glass-bottom: rgb(255 255 255 / 0.025);
  --glass-edge: rgb(255 255 255 / 0.14);
  --glass-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 30px 60px -36px rgb(0 0 0 / 0.9);
  --inner-light: inset 0 1px 0 rgb(255 255 255 / 0.1);
  --tactile: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 -2px 0 rgb(0 0 0 / 0.22), 0 1px 2px rgb(0 0 0 / 0.5);
  --dot: rgb(255 255 255 / 0.1);
  --danger-bg: #2a1713;
  --danger-line: #6b3328;
  --danger-text: #f2c1b5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Japanese pages: system Japanese faces, no web fonts. */
:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Meiryo", var(--font-sans); }
:lang(ja) body { line-height: 1.85; letter-spacing: 0.01em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { line-height: 1.35; letter-spacing: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.035em; }

h1 { font-size: clamp(2.5rem, 6.2vw, 5.1rem); font-weight: 720; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; }

p { margin: 0; }

code, .mono { font-family: var(--font-mono); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mono labels and section numbers */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker .num { color: var(--accent); }

.kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; }

.wordmark {
  font-weight: 740;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 20px;
}

.site-nav a,
.link-quiet {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover,
.link-quiet:hover { color: var(--text); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switch: a segmented control with two real links */
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-solid);
}

.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lang a:hover { color: var(--text); }

.lang a[aria-current="page"] {
  background: var(--text);
  color: var(--bg);
}

/* Buttons: solid accent with a soft inner edge */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible,
.lang a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--tactile);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn-block { width: 100%; }

@media (hover: hover) {
  .btn:hover { border-color: var(--muted); transform: translateY(-1px); }
  .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
}

/* Glass surfaces */
.glass,
.card {
  background: linear-gradient(160deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), var(--inner-light);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.card { padding: 24px; }

/* A visible grid: 1px lines drawn as gaps between cells */
.grid-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.grid-lines > li {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--surface-solid);
}

.dots {
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);
  background-size: 22px 22px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .card:hover,
  .js .reveal.is-visible.card:hover {
    transform: translateY(-4px);
  }
  .grid-lines > li { transition: background-color 0.2s ease; }
  .grid-lines > li:hover { background: color-mix(in srgb, var(--surface-solid) 94%, var(--accent)); }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 80px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
  opacity: 0.7;
}

.blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
}

.blob-a { width: 40vw; height: 40vw; max-width: 480px; max-height: 480px; right: -8vw; top: -6vw; background: #2dd4bf; }
.blob-b { width: 30vw; height: 30vw; max-width: 360px; max-height: 360px; left: -6vw; bottom: -8vw; background: #818cf8; animation-duration: 26s; opacity: 0.22; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3vw, 2vw, 0) scale(1.06); }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin: 22px 0 22px; }

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fine {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Live demo: search bar, result cards and a spec panel */
.demo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.demo-bar {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.demo-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgb(11 12 14 / 0.05);
}

.demo-search svg { flex: none; color: var(--muted); }

.demo-query { min-width: 0; overflow: hidden; white-space: nowrap; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

.demo-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.demo-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-solid);
}

.result h3 {
  font-size: 0.9rem;
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.result p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.result .pill { margin-top: 8px; padding: 3px 8px; font-size: 0.66rem; }

.thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.35) 1px, transparent 0) 0 0 / 10px 10px,
    linear-gradient(135deg, var(--c1), var(--c2));
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 22% 18%;
  border: 2px solid rgb(255 255 255 / 0.85);
  border-radius: 6px;
}

.g1 { --c1: #2dd4bf; --c2: #0f766e; }
.g2 { --c1: #cbd5e1; --c2: #475569; }
.g3 { --c1: #fde68a; --c2: #a16207; }
.g4 { --c1: #e2e8f0; --c2: #334155; }

.spec {
  border-radius: 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 14px 16px;
  overflow: hidden;
  white-space: pre;
}

.spec .k { color: var(--code-key); }
.spec .c { color: var(--code-muted); }

.demo figcaption {
  padding: 0 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* Sections */
.section {
  position: relative;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-alt { background: var(--bg-2); }

.section-head {
  max-width: 44em;
  margin-bottom: 44px;
}

.section-head h2 { margin-top: 18px; }

.section-lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 40em;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.grid-lines h3 { margin-top: 18px; }

.grid-lines p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

.grid-lines .pill { margin-bottom: 4px; }

.steps { grid-template-columns: 1fr; }

.features { grid-template-columns: 1fr; }

.queries {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queries li {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
}

.flow { grid-template-columns: 1fr; }

.flow h3 { margin-top: 18px; }

.flow p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

.split { display: grid; gap: 32px; align-items: start; }

.audience {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.audience li {
  padding: 22px 24px;
  background: var(--surface-solid);
  color: var(--muted);
}

.audience strong { color: var(--text); }

.plain {
  color: var(--muted);
  font-size: 1.05rem;
}

.security { grid-template-columns: 1fr; }

/* FAQ with a designed disclosure marker */
.faq { display: grid; gap: 10px; }

.faq details {
  overflow: hidden;
  padding: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq .marker {
  flex: none;
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--tactile);
}

.faq .marker::before,
.faq .marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.faq .marker::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.25s ease; }

.faq details[open] .marker::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq .answer p + p { margin-top: 10px; }

/* About */
.about { grid-template-columns: 1fr; }

.about address {
  font-style: normal;
  color: var(--muted);
}

.about address p + p { margin-top: 6px; }

.about h3 { margin-bottom: 14px; }

/* Launch */
.launch {
  display: grid;
  gap: 28px;
  align-items: center;
}

.launch-action { display: grid; gap: 14px; justify-items: start; }

.contact-line {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-inner p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Reveal on scroll: only when JavaScript runs, never with reduced motion */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Demo: results then the spec panel, staggered after the query is typed */
.js .demo .result,
.js .demo .spec {
  opacity: 0;
  transform: translateY(14px);
}

.js .demo.is-ready .result {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

.js .demo.is-ready .spec {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .blob { animation: none; }
  .caret { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .demo .result,
  .js .demo .spec { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Generated illustrations: framed, labelled, never mistaken for product photos */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot.wide img { aspect-ratio: 21 / 9; }

.shot-label {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-shot { margin-top: 56px; }

.who-stack { display: grid; gap: 20px; }

.who-stack .shot { margin-top: 0; }

/* Auth pages */
.auth-main {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 56px 16px 80px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
}

.auth-card h1 { font-size: 2rem; }

.auth-sub {
  margin-top: 10px;
  color: var(--muted);
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.field input {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  box-shadow: inset 0 1px 2px rgb(11 12 14 / 0.05);
}

.field input:focus-visible { border-color: var(--accent); }

.notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 0.95rem;
}

.notice a { color: inherit; }

.notice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.auth-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.92rem;
}

/* Privacy notice */
.doc-main { padding: 64px 0 96px; }

.doc-head {
  max-width: 46em;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.doc-head h1 { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 3.6rem); }

.doc-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.prose { max-width: 44em; }

.prose h2 {
  font-size: 1.4rem;
  margin: 48px 0 12px;
}

.prose p,
.prose li { color: var(--muted); }

.prose p + p { margin-top: 12px; }

.prose ul { padding-left: 1.25em; margin: 12px 0 0; }

.prose li + li { margin-top: 8px; }

.prose strong { color: var(--text); }

.prose a { overflow-wrap: anywhere; }

/* Wide screens */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 80px 0 112px; }
  .hero-grid { grid-template-columns: 1fr 1.02fr; gap: 64px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .launch { grid-template-columns: 1fr auto; gap: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 40px 36px; }
  .auth-main { padding-top: 96px; }
  .demo-results { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 719px) {
  .site-nav {
    display: flex;
    order: 3;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 0 16px 12px;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
  .header-actions { margin-left: auto; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .card { padding: 20px; }
  .grid-lines > li { padding: 22px 20px 24px; }
}

@media (max-width: 479px) {
  .hide-sm { display: none; }
  .hero-actions .btn { width: 100%; }
  .header-actions .btn-small { padding: 0 14px; }
  .lang a { padding: 0 10px; }
  .wordmark { font-size: 1.08rem; }
  .demo-search { font-size: 0.88rem; }
  .spec { font-size: 0.72rem; }
  .auth-card { padding: 28px 22px; }
}

@media (max-width: 389px) {
  .btn { padding: 0 14px; }
}
