/* oripilot.com in the web app's Phase D design (apps/web/src/styles.css): its light tokens,
   Inter (served from this site: font-src 'self'), pill buttons, 20px cards, the 2px focus
   ring. Copy a value from there rather than inventing one. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --page: #e8ecf1;
  --shell: #f8f9fb;
  --panel: #f1f4f8;
  --surface: #ffffff;
  --ink: #14223a;
  --text: #1d2b42;
  --nav: #3d4a60;
  --muted: #56627a;
  --line: #e3e8ee;
  --line-strong: #7b8799;
  --line-button: #cfd6df;
  --accent: #0077d4;
  --accent-hover: #005ba3;
  --accent-text: #ffffff;
  --accent-tint: #e8f1fb;
  --accent-ink: #005ba3;
  --neutral-tint: #edf0f4;
  --shadow-btn: 0 1px 2px rgb(20 34 58 / 10%);
  --shadow-primary: 0 1px 2px rgb(0 91 163 / 35%);
  --shadow-card: 0 1px 2px rgb(20 34 58 / 5%), 0 8px 24px rgb(20 34 58 / 6%);
  --shadow-shell: 0 1px 3px rgb(20 34 58 / 6%), 0 30px 80px rgb(20 34 58 / 10%);
  --radius-notice: 16px;
  --radius-card: 20px;
  --radius-dialog: 24px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

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

/* The app's page title (30/700) for sections; the hero's title is the same face, larger. */
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font-size: 52px; line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 48px); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── header and footer ───────────────────────────────────────────────────── */
.top { background: var(--shell); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 121px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--nav); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: var(--neutral-tint); }
.top nav .nav-signin { margin-left: 4px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line-button); box-shadow: var(--shadow-btn); color: var(--ink); font-weight: 600; }
.top nav .nav-signin:hover { background: var(--neutral-tint); }
.nav-short { display: none; }

.foot { border-top: 1px solid var(--line); background: var(--shell); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.foot ul { display: flex; gap: 4px 12px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* ── buttons: the app's pills ────────────────────────────────────────────── */
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: var(--shadow-primary);
  color: var(--accent-text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.button-secondary { background: var(--surface); border-color: var(--line-button); box-shadow: var(--shadow-btn); color: var(--ink); }
.button-secondary:hover { background: var(--neutral-tint); border-color: var(--line-button); color: var(--ink); }

/* Badges: 26px pills; the eyebrow above a page title is one. */
.badge, .eyebrow { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--neutral-tint); color: var(--muted); }
.eyebrow, .badge-info { background: var(--accent-tint); color: var(--accent-ink); }
.eyebrow::before, .badge-info::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.lead { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 34em; }
.fineprint { color: var(--muted); font-size: 13.5px; }
.section-lead { color: var(--muted); max-width: 44em; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { background: var(--page); padding: 72px 0 80px; }
.hero-copy, .hero-plain .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-dialog); box-shadow: var(--shadow-shell); background: var(--ink); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

/* ── sections ────────────────────────────────────────────────────────────── */
.band { padding: 88px 0; }
.band-paper { background: var(--shell); border-block: 1px solid var(--line); }
.band-head { display: flex; flex-direction: column; gap: 12px; max-width: 46em; margin-bottom: 40px; }
.band > .wrap > h2 { margin-bottom: 32px; }
.band ul + .section-lead, .band ol + .section-lead { margin-top: 24px; }

/* Cards: white, 20px corners, a soft shadow and no border. */
.steps, .facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps > li, .facts > li { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.steps p, .facts p { font-size: 14.5px; }

/* A real sequence, so it is numbered. */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 2px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 14px; }
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Notices: a tint and 16px corners, no border. */
.notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: var(--radius-notice); background: var(--accent-tint); font-size: 14px; }
.notice::before { content: "i"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 1px; border: 1.8px solid var(--accent-ink); border-radius: 50%; color: var(--accent-ink); font-size: 11px; font-weight: 700; }

.forms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.forms abbr { text-decoration: none; cursor: help; }
.forms-more { margin-top: 16px; color: var(--muted); font-size: 13.5px; max-width: 52em; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--surface); border-radius: var(--radius-notice); box-shadow: var(--shadow-card); padding: 0 20px; }
.narrow > .faq + .faq { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.faq[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq p { padding-bottom: 18px; font-size: 14.5px; }
.narrow > .actions { margin-top: 28px; }

.closing { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.closing-copy { display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.closing-copy p { color: var(--muted); font-size: 13.5px; }
.closing .actions { margin-top: 0; }
.handoff { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.handoff div { display: flex; flex-direction: column; gap: 4px; max-width: 40em; }
.handoff p { color: var(--muted); font-size: 13.5px; }
.handoff > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── the link preview picture (og.mjs renders static/og.png from it) ─────── */
.desk { display: flex; align-items: center; justify-content: center; }
.package-preview { width: min(100%, 380px); margin: 0 auto; padding: 28px; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.preview-heading > span { color: var(--muted); font-size: 12px; }
.preview-form { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; font-size: 14px; font-weight: 600; }
.preview-label { color: var(--muted); font-size: 12px; margin-top: 24px; }
.preview-signed { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 13.5px; color: var(--muted); }
.preview-fields { display: grid; grid-template-columns: 1fr 0.5fr; gap: 12px; margin-top: 8px; }
.preview-fields > span { padding: 10px 12px; background: var(--accent-tint); color: var(--accent-ink); border: 1px solid #b7d7f2; border-radius: 4px; font-size: 13px; }
.preview-note { color: var(--muted); margin-top: 28px; font-size: 12px; }

/* ── small screens (the app's breakpoints, 920 and 600) ──────────────────── */
@media (max-width: 1060px) {
  h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  h1 { font-size: 34px; line-height: 1.12; }
  h2 { font-size: 24px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .top-row { min-height: 60px; flex-wrap: nowrap; gap: 8px; }
  .brand img { width: 106px; height: 28px; }
  .top nav { gap: 2px; flex-wrap: nowrap; }
  .top nav a { padding: 0 10px; font-size: 14px; }
  .nav-home { display: none; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { gap: 32px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .lead { font-size: 16px; }
  .hero .actions { width: 100%; }
  .hero .actions .button { flex: 1 1 100%; }
  .band { padding: 56px 0; }
  .band-head { margin-bottom: 28px; }
  .steps, .steps-three, .facts { grid-template-columns: minmax(0, 1fr); }
  .steps > li, .facts > li { padding: 20px; }
  .closing { padding: 22px; }
  .closing .actions, .closing .button { width: 100%; }
}
