/* Shared style of the text pages (privacy, terms, guide): the landing's
   palette, type and shapes, in its light variant only. */
:root {
  --ink: #0A1633;
  --ink-2: #33415F;
  --muted: #5B6886;
  --paper: #F5F8FD;
  --white: #FFFFFF;
  --line: #DCE4F1;
  --brand: #3166B4;
  --brand-deep: #1B3F7E;
  --electric: #4F8CFF;
  --display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  /* The landing's hero glow, light: it fades out behind the sheet instead of
     ending at an edge. */
  background:
    radial-gradient(1000px 560px at 88% -80px, rgba(79, 140, 255, 0.16), transparent 70%) no-repeat,
    radial-gradient(800px 520px at -120px 240px, rgba(49, 102, 180, 0.09), transparent 70%) no-repeat,
    var(--paper);
  font: 500 17px/1.65 var(--display); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(245, 248, 253, 0.82);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 16px rgba(20, 45, 100, 0.16); }
.top nav { display: flex; gap: 6px; margin-left: auto; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: rgba(49, 102, 180, 0.08); }
.top nav a[aria-current="page"] { color: var(--brand); background: rgba(49, 102, 180, 0.1); }
@media (max-width: 640px) { .top nav { display: none; } }

/* ------------------------------------------------------------ page head */
.head {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px) clamp(36px, 5vw, 56px);
}
.head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(49, 102, 180, 0.16) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000 20%, transparent 70%);
}
.head .wrap { max-width: 1000px; }
.eyebrow {
  margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
  font: 800 13px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--electric), var(--brand)); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.025em; color: var(--ink); }
.head h1 { margin: 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; max-width: 16em; }
.head .meta { margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; max-width: 40em; }

/* ------------------------------------------------------------ content sheet */
.sheet {
  max-width: 1000px; margin: 0 auto clamp(56px, 8vw, 96px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 30px 70px rgba(20, 45, 100, 0.08);
}
.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }
.sheet p, .sheet ul, .sheet ol { margin: 0 0 14px; }
.sheet p, .sheet li { max-width: 68ch; color: var(--ink-2); }
.sheet strong { color: var(--ink); font-weight: 800; }
.sheet ul { padding-left: 1.3em; }
.sheet li { margin-bottom: 6px; }
.sheet li::marker { color: var(--brand); }
.sheet h2 { margin: 48px 0 14px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 800; }
.sheet h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.3; font-weight: 800; }
.sheet hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0 22px; font-size: 15.5px;
  display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
/* Mid widths: the table box scrolls if it must; its body still fills the width. */
table > tbody { display: table; width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
th { background: var(--paper); color: var(--muted); font: 800 12px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
/* Narrow screens: every row becomes a card. The first cell is its title, the
   others carry their column name from data-label, so nothing scrolls sideways. */
@media (max-width: 640px) {
  table, table > tbody, tr, td { display: block; width: auto; }
  table { border: 0; border-radius: 0; overflow: visible; font-size: 15.5px; }
  tr:first-child:has(th) { display: none; }
  tr { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--white); }
  tr + tr { margin-top: 10px; }
  tr:nth-child(2) { margin-top: 0; }
  td { padding: 0; border: 0; }
  td + td { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  td:first-child { color: var(--ink); font-weight: 700; }
  td + td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    color: var(--muted); font: 800 11.5px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.1em;
  }
}

code, .tag { font-family: var(--mono); font-size: 0.86em; font-weight: 600; }
code { color: var(--brand-deep); background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.tag { color: var(--brand-deep); background: rgba(49, 102, 180, 0.09); padding: 3px 8px; border-radius: 8px; white-space: nowrap; }

/* ------------------------------------------------------------ guide */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 24px; margin: 24px 0;
}
.card p { max-width: none; }
.card p:last-child { margin-bottom: 0; }

ol.steps { padding-left: 0; list-style: none; counter-reset: step; margin: 26px 0 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 30px 60px; max-width: none; margin: 0; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  font: 800 16px/1 var(--mono); color: #fff; background: var(--brand);
  box-shadow: 0 10px 24px rgba(49, 102, 180, 0.3);
}
ol.steps h3 { margin: 6px 0 8px; }
ol.steps > li:last-child { padding-bottom: 0; }

/* Each step of the in-app walk sits next to the screen it describes. */
ol.steps.illustrated > li { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; padding: 0 60px 44px 60px; }
ol.steps.illustrated > li:last-child { padding-bottom: 0; }
ol.steps.illustrated .step-body { min-width: 0; }
ol.steps.illustrated .step-body p:last-child { margin-bottom: 0; }
figure.shot { margin: 0; }
/* Screens are 1206x2622; keep that ratio everywhere so nothing is cropped. */
figure.shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: contain;
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 24px 50px rgba(20, 45, 100, 0.16);
}

figure.diagram { margin: 22px 0 28px; }
figure.diagram img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 20px; }
figcaption { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 10px; }

@media (max-width: 720px) {
  ol.steps > li { padding-left: 54px; }
  ol.steps.illustrated > li { grid-template-columns: 1fr; gap: 18px; padding-right: 0; padding-left: 54px; }
  figure.shot { max-width: 240px; }
}

/* ------------------------------------------------------------ footer */
footer {
  border-top: 1px solid var(--line); background: var(--white); color: var(--muted);
  padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 15px; font-weight: 600;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 700; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--brand); }
footer .mail a { font: 600 14px/1 var(--mono); color: var(--brand); }
