/* Contamos — getcontamos.com
   One stylesheet for every page. A light, neutral theme: white and soft-gray
   sections, near-black type and buttons, one restrained indigo accent. The
   real app screenshots carry the color. */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --surface: #ffffff;
  --border: #e6e8ec;
  --border-strong: #d4d8de;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -16px rgba(16, 24, 40, 0.14);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 40px 80px -32px rgba(16, 24, 40, 0.28);

  --text: #0b0d12;
  --text-2: #4b5263;
  --muted: #6b7280;

  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --accent-soft: #eef2ff;
  --accent-line: #c7d2fe;
  --warning: #b45309;
  --warning-soft: #fff7ed;
  --negative: #dc2626;

  --radius: 18px;
  --radius-sm: 12px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 17px/1.65 var(--font);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #c7d2fe; color: var(--text); }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--text); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- icons */

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- cards */

.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font: 500 15.5px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.4s var(--spring), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn.is-pressed { animation: press 0.5s var(--spring); }
@keyframes press {
  0% { transform: scale(0.95); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.btn-primary { background: var(--text); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { color: #fff; background: #1f2330; box-shadow: 0 8px 20px -8px rgba(16, 24, 40, 0.45); }

.btn-glass { background: #fff; border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-glass:hover { color: var(--text); border-color: #b9bec7; background: #fafbfc; }

.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

.store-btn { gap: 11px; padding: 0 18px 0 14px; text-align: left; }
.store-btn small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 3px; }
.store-btn span { line-height: 1.05; }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 650 17px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav-links { display: none; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 7px 13px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; text-decoration: none; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(56, 189, 248, 0.08), transparent 70%),
    linear-gradient(180deg, #fbfbfd, #fff 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
@media (min-width: 900px) { .hero { padding: 88px 0 104px; } }
.hero-inner, .hero-copy { display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none;
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.hero h1 { margin-top: 22px; max-width: 14em; font-size: clamp(40px, 7vw, 74px); font-weight: 680; letter-spacing: -0.045em; line-height: 1.03; }
.grad { background: linear-gradient(92deg, #4338ca, #6366f1 50%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; max-width: 36em; color: var(--text-2); font-size: clamp(17px, 1.9vw, 19.5px); line-height: 1.6; }
.hero .lede { margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .cta-row { justify-content: center; }
.fine { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.br-wide { display: none; }
@media (min-width: 720px) { .br-wide { display: inline; } }

/* ------------------------------------------------------- device frames */

/* Real app screenshots sit in simple device frames. */
.phone {
  position: relative;
  width: 100%; max-width: 300px;
  padding: 9px;
  border-radius: 46px;
  background: #0d0f14;
  box-shadow: 0 0 0 1px #2a2d35, inset 0 0 0 1px #3a3e48, var(--shadow-lg);
}
.phone img { width: 100%; border-radius: 37px; background: #f2f4f3; }
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%);
  border-radius: 999px; background: #0d0f14;
}
.phone.notch-less::after { display: none; }

.duo-frame {
  position: relative;
  padding: 10px;
  border-radius: 34px;
  background: #0d0f14;
  box-shadow: 0 0 0 1px #2a2d35, inset 0 0 0 1px #3a3e48, var(--shadow-lg);
}
.duo-frame img { width: 100%; border-radius: 25px; background: #f2f4f3; }

.hero-stage { position: relative; width: 100%; max-width: 1060px; margin: 56px auto 0; padding: 0 0 0 12%; }
.hero-stage .phone { position: absolute; left: 0; bottom: -40px; width: 25%; min-width: 120px; max-width: 260px; z-index: 2; }
@media (max-width: 559px) {
  .hero-stage { padding-left: 18%; margin-top: 40px; }
  .hero-stage .phone { width: 36%; bottom: -28px; padding: 6px; border-radius: 30px; }
  .hero-stage .phone img { border-radius: 25px; }
  .hero-stage .phone::after { top: 12px; height: 14px; }
}

/* ------------------------------------------------------------- sections */

section { position: relative; }
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 128px 0; } }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font: 600 12.5px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
}
.section h2 { margin-top: 14px; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.035em; }
.section-lede { margin-top: 18px; max-width: 36em; color: var(--text-2); font-size: clamp(17px, 1.7vw, 18.5px); }

.trust { padding: 26px 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14.5px; }
.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust .ic { color: var(--text); width: 18px; height: 18px; }

/* Feature rows: copy on one side, a real screenshot on the other. */
.feature-row { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature-row.flip > :first-child { order: 2; }
}
.feature-row .shot { display: flex; justify-content: center; }
.points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.points .ic-box { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.points .ic-box .ic { width: 17px; height: 17px; }
.points b { display: block; color: var(--text); font-weight: 600; font-size: 16px; }
.points span { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }

.shot-pair { position: relative; display: flex; justify-content: center; gap: 0; }
.shot-pair .phone { max-width: 270px; }
.shot-pair .phone + .phone { margin-left: -48px; margin-top: 64px; }
@media (max-width: 559px) { .shot-pair .phone { max-width: 200px; } .shot-pair .phone + .phone { margin-left: -36px; margin-top: 44px; } }

/* --------------------------------------------------------- fold showcase */

.fold-demo { margin-top: 48px; }
.fold-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.fold-view { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.fold-view [data-fold-shot] { transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.fold-view .duo-frame { width: 100%; max-width: 1000px; }
.fold-view .cover-frame { width: 100%; max-width: 420px; }
.fold-view [hidden] { display: none; }
.fold-view .is-entering { animation: paneIn 0.6s var(--ease); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: #eef0f3; border: 1px solid var(--border); }
.seg button {
  appearance: none; border: 0; cursor: pointer;
  min-height: 34px; padding: 0 15px; border-radius: 8px;
  background: transparent; color: var(--text-2); font: 500 14px/1 var(--font);
  transition: background 0.3s var(--ease), color 0.2s, transform 0.4s var(--spring), box-shadow 0.3s;
}
.seg button:hover { color: var(--text); }
.seg button:active { transform: scale(0.95); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), 0 0 0 1px var(--border); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------- screen tour */

.tour { margin-top: 48px; }
.tour-tabs { display: flex; justify-content: center; margin-bottom: 36px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs .seg { flex: none; }
.tour-panel { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .tour-panel { grid-template-columns: 1fr 1fr; gap: 72px; } }
.tour-panel[hidden] { display: none; }
.tour-panel .shot { display: flex; justify-content: center; animation: paneIn 0.6s var(--ease); }
.tour-panel h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.tour-panel p { margin-top: 14px; color: var(--text-2); }

/* -------------------------------------------------------------- grids */

.features { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 640px) { .features.two, .features.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features.three { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 26px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.5s var(--spring); }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 20px 40px -20px rgba(16, 24, 40, 0.2); }
.feature .ic-box { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.feature h3 { margin-top: 18px; font-size: 17.5px; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

.sec-grid { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 720px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sec-grid { grid-template-columns: repeat(4, 1fr); } }

.shots-three { display: grid; gap: 28px; margin-top: 52px; justify-items: center; }
@media (min-width: 720px) { .shots-three { grid-template-columns: repeat(3, 1fr); } }
.shots-three figure { margin: 0; display: grid; justify-items: center; gap: 22px; text-align: center; }
.shots-three .phone { max-width: 260px; }
.shots-three figcaption b { display: block; color: var(--text); font-size: 17px; font-weight: 600; }
.shots-three figcaption span { display: block; margin-top: 4px; max-width: 22em; font-size: 15px; color: var(--text-2); }

/* ------------------------------------------------------------- forecast */

.forecast { margin-top: 48px; padding: 24px; }
@media (min-width: 720px) { .forecast { padding: 36px; } }
.fc-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.fc-head { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 28px; }
.fc-head small { color: var(--muted); font-size: 13.5px; }
.fc-big { font: 650 clamp(30px, 4.4vw, 42px)/1.05 var(--font-display); letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 6px; }
.fc-sub { margin-top: 6px; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fc-chart { position: relative; margin-top: 24px; }
.fc-chart svg { width: 100%; height: auto; overflow: visible; }
.fc-chart .band { fill: rgba(79, 70, 229, 0.10); transition: d 0.6s var(--ease); }
.fc-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; transition: d 0.6s var(--ease); }
.fc-chart .floor { stroke: var(--warning); stroke-width: 1.25; stroke-dasharray: 4 5; }
.fc-chart .floor-label { fill: var(--warning); font: 600 11px var(--font); }
.fc-chart .grid line { stroke: #eceef2; }
.fc-chart .axis text { fill: var(--muted); font: 500 11px var(--font); }
.fc-chart .low { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.fc-chart .low.under { stroke: var(--warning); }
.fc-chart .ev { fill: #0ea5e9; }
.fc-chart .ev.out { fill: #f97316; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.fc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fc-legend i { width: 8px; height: 8px; border-radius: 50%; background: #0ea5e9; }
.fc-legend i.out { background: #f97316; }
.fc-legend i.dash { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed var(--warning); background: none; }
.fc-legend i.band { width: 14px; height: 8px; border-radius: 3px; background: rgba(79, 70, 229, 0.18); }

.fc-controls { display: grid; gap: 24px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
@media (min-width: 860px) { .fc-controls { grid-template-columns: 1fr 1fr; gap: 48px; } }
.ctl label { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 14.5px; margin-bottom: 10px; }
.ctl output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #e3e6eb var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #e3e6eb; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 1px solid var(--border-strong); box-shadow: 0 2px 6px rgba(16, 24, 40, 0.18); transition: transform 0.35s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 1px solid var(--border-strong); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, 0.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

.note-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.note-box.warn { border-color: #fed7aa; background: var(--warning-soft); color: var(--warning); }
.note-box .ic { margin-top: 2px; }
.note-box strong { display: block; font-size: 15px; }
.note-box p { color: var(--text-2); font-size: 14px; margin-top: 2px; }

/* ------------------------------------------------------------------ FAQ */

.faq { margin: 44px auto 0; display: grid; gap: 10px; max-width: 780px; }
.faq details { padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; cursor: pointer; list-style: none; color: var(--text); font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.45s var(--spring), color 0.2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }

/* ------------------------------------------------------------ final CTA */

.final {
  margin: 0 auto; padding: 64px 24px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(99, 102, 241, 0.12), transparent 70%), #fff;
}
@media (min-width: 720px) { .final { padding: 88px 48px; } }
.final h2 { font-size: clamp(30px, 4.6vw, 50px); max-width: 14em; margin: 22px auto 0; }
.final p { margin: 16px auto 0; color: var(--text-2); max-width: 32em; }
.final .cta-row { justify-content: center; }
.final img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto; box-shadow: 0 16px 36px -12px rgba(16, 24, 40, 0.35); }

/* --------------------------------------------------------------- footer */

.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h4 { color: var(--text); font-size: 13.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.foot-tag { margin-top: 12px; }
.foot-note { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 12.5px; line-height: 1.65; }
.foot-note p { max-width: 72em; }

/* ---------------------------------------------------------------- forms */

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--text); font-weight: 500; }
.input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--border-strong); color: var(--text);
  font: 400 15px/1.2 var(--font-mono);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #9aa0ab; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14); }
.input[aria-invalid="true"] { border-color: var(--negative); }
.hint { font-size: 13px; color: var(--muted); }
.hint.err { color: var(--negative); }
.hint.ok { color: #047857; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form .input { flex: 1 1 220px; }

/* -------------------------------------------------------- start portal */

.portal { padding: 64px 0 24px; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 70%); }
.portal h1 { font-size: clamp(36px, 6vw, 58px); margin-top: 20px; letter-spacing: -0.04em; }
.steps { display: grid; gap: 14px; margin-top: 44px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step::after { counter-increment: step; content: counter(step); position: absolute; top: 22px; right: 22px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); font: 600 13px/1 var(--font); }
.step h2 { font-size: 20px; letter-spacing: -0.02em; padding-right: 36px; }
.step p { color: var(--text-2); font-size: 15px; }
.step .cta-row { margin-top: auto; padding-top: 8px; }
.step > .btn { align-self: flex-start; margin-top: auto; }
.step.is-current { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.device-note { margin-top: 28px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; font-size: 14px; }
.device-note p { color: var(--text-2); }
.device-note[hidden] { display: none; }

/* ---------------------------------------------------------------- legal */

.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), #fff); }
.legal-hero h1 { font-size: clamp(36px, 6vw, 56px); margin-top: 14px; letter-spacing: -0.04em; }
.legal-hero .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 14px; }
.legal-summary { margin-top: 32px; padding: 24px 26px; max-width: 820px; }
.legal-summary h2 { font: 600 12.5px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.legal-summary ul { margin: 16px 0 0; padding-left: 20px; color: var(--text-2); font-size: 15.5px; display: grid; gap: 8px; }
.legal-summary li::marker { color: var(--muted); }
.legal-summary .hint { margin-top: 14px; }

.legal-layout { display: grid; gap: 40px; padding: 48px 0 80px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } }
.toc { font-size: 14px; }
.toc h2 { font: 600 12px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.toc a { display: block; padding: 6px 12px; border-radius: 0 8px 8px 0; color: var(--text-2); text-decoration: none; border-left: 2px solid var(--border); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--text); background: var(--bg-2); }
.toc a.is-current { color: var(--accent-ink); border-left-color: var(--accent); background: var(--accent-soft); }
@media (min-width: 1000px) { .toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; } }
@media (max-width: 999px) {
  .toc { padding: 18px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
}

.prose { max-width: 720px; color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.prose section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.prose h2 { font-size: 25px; margin-bottom: 18px; letter-spacing: -0.025em; }
.prose h3 { font-size: 17px; margin: 30px 0 10px; letter-spacing: -0.01em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose .table-wrap + p, .prose p + .table-wrap, .prose .callout + p, .prose p + .callout { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0; display: grid; gap: 8px; }
.prose li::marker { color: var(--muted); }
.prose .caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; line-height: 1.7; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text-2); }
.callout .ic { color: var(--accent); margin-top: 4px; }
.callout.warn { background: var(--warning-soft); border-color: #fed7aa; }
.callout.warn .ic { color: var(--warning); }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; min-width: 560px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); font-weight: 600; background: var(--bg-2); }
.prose tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ 404 */

.nf { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 96px 0; }
.nf h1 { font-size: clamp(72px, 14vw, 150px); letter-spacing: -0.06em; }
.nf p { color: var(--text-2); }
.nf .cta-row { justify-content: center; margin-top: 12px; }

/* --------------------------------------------------------------- reveal */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.08s; }
.js [data-reveal="3"] { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .skip { display: none !important; }
  .legal-layout { display: block; }
}
