/* CorrConnect early access. Open Water look (dark first, daylight on request),
   tokens from the CorrCoach v3 graphite palette. Sibling brand, own file. */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #070A0E;
  --canvas-2: #0B1218;
  --surface: #10171E;
  --raised: #16202A;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.2);
  --text: #F4F6F8;
  --text2: #A9B2BD;
  --text3: #8993A0;
  --accent: #33D7E3;
  --accent-text: #33D7E3;
  --lime: #B8E657;
  --iris: #7C9CFF;
  --ok: #34D399;
  --danger: #FF8A8A;
  --glow-a: rgba(51, 215, 227, 0.2);
  --glow-b: rgba(124, 156, 255, 0.14);
  --lane: rgba(255, 255, 255, 0.1);
  --code-bg: #0A1015;
  --code-text: #D6DEE6;
  --btn-bg: #F4F6F8;
  --btn-ink: #070A0E;
  --gradient: linear-gradient(90deg, #33D7E3, #B8E657 55%, #38C7A3);
  --gutter: 16px;
  --max: 1120px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --canvas: #F5F5F2; --canvas-2: #ECEEEA; --surface: #FFFFFF; --raised: #FFFFFF;
    --stroke: rgba(11, 12, 14, 0.12); --stroke-strong: rgba(11, 12, 14, 0.3);
    --text: #0B0C0E; --text2: #475058; --text3: #5C646D;
    --accent: #0E7C86; --accent-text: #00606A; --lime: #4A6B00; --iris: #3553C9; --ok: #08875A; --danger: #B3261E;
    --glow-a: rgba(14, 124, 134, 0.14); --glow-b: rgba(53, 83, 201, 0.1);
    --lane: rgba(11, 12, 14, 0.12);
    --code-bg: #0E1419; --code-text: #D6DEE6;
    --btn-bg: #0B0C0E; --btn-ink: #F5F5F2;
    --gradient: linear-gradient(90deg, #0E7C86, #4A6B00 60%, #08875A);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --canvas: #F5F5F2; --canvas-2: #ECEEEA; --surface: #FFFFFF; --raised: #FFFFFF;
  --stroke: rgba(11, 12, 14, 0.12); --stroke-strong: rgba(11, 12, 14, 0.3);
  --text: #0B0C0E; --text2: #475058; --text3: #5C646D;
  --accent: #0E7C86; --accent-text: #00606A; --lime: #4A6B00; --iris: #3553C9; --ok: #08875A; --danger: #B3261E;
  --glow-a: rgba(14, 124, 134, 0.14); --glow-b: rgba(53, 83, 201, 0.1);
  --lane: rgba(11, 12, 14, 0.12);
  --btn-bg: #0B0C0E; --btn-ink: #F5F5F2;
  --gradient: linear-gradient(90deg, #0E7C86, #4A6B00 60%, #08875A);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--stroke-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: var(--gutter); background: var(--raised); color: var(--text); padding: 10px 14px; z-index: 20; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 84%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--stroke); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text2); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .pill { color: var(--btn-ink); background: var(--btn-bg); padding: 0 16px; border-radius: 999px; font-weight: 600; min-height: 40px; }
.nav .pill:hover { color: var(--btn-ink); opacity: 0.88; }
/* Home header (owner, 2026-10-22): three links from 721 px, the request link and the pill from 601 px,
   the request link alone below that; 14 px text keeps it on one line on 360 px phones. */
@media (max-width: 720px) { .nav .hide-md { display: none; } }
@media (max-width: 600px) { .nav .hide-narrow { display: none; } }
@media (max-width: 400px) { .nav { font-size: 14px; } }
@media (max-width: 520px) { .nav .hide-sm { display: none; } }

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(42px, 8.4vw, 92px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; font-weight: 650; }
.lede { color: var(--text2); font-size: clamp(18px, 2vw, 22px); max-width: 36em; margin: 0; }
.eyebrow { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text3); font-weight: 650; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons: restrained, one solid and one outline */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 620; font-size: 16px; text-decoration: none; border: 1px solid var(--stroke-strong); background: transparent; color: var(--text); cursor: pointer; }
.button:hover { border-color: var(--text2); }
.button.primary { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.button.primary:hover { opacity: 0.9; }
.button[disabled] { opacity: 0.55; cursor: progress; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 15% 0%, var(--glow-a), transparent 70%),
    radial-gradient(50% 60% at 90% 10%, var(--glow-b), transparent 70%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-2) 100%); }
.lanes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.lanes line { stroke: var(--lane); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lanes .floats { stroke: url(#laneGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 18; vector-effect: non-scaling-stroke; opacity: 0.75; animation: drift 40s linear infinite; }
@keyframes drift { to { stroke-dashoffset: -400; } }
.hero .wrap { display: grid; gap: 28px; }
.hero h1 { max-width: 11em; }
.badge { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--stroke-strong);
  border-radius: 999px; font-size: 14px; color: var(--text2); background: color-mix(in srgb, var(--canvas) 60%, transparent); }
.badge b { background: var(--gradient); color: #07100F; border-radius: 999px; padding: 3px 12px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
:root[data-theme="light"] .badge b { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .badge b { color: #fff; } }

/* Sections */
section.block { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--stroke); }
.block .head { display: grid; gap: 16px; max-width: 42em; margin-bottom: clamp(28px, 4vw, 48px); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stroke); }
.cols > div { padding: 26px 26px 6px 0; display: grid; gap: 10px; align-content: start; }
.cols > div + div { padding-left: 26px; border-left: 1px solid var(--stroke); }
.cols p { margin: 0; color: var(--text2); }
.n { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 650; color: var(--accent-text); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; background: var(--surface); }
.numbers div { padding: 22px 20px; display: grid; gap: 2px; }
.numbers div + div { border-left: 1px solid var(--stroke); }
.numbers b { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--text2); font-size: 14px; }
.muted { color: var(--text2); }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--text2); max-width: 40em; }
.note strong { color: var(--text); }

pre.code { margin: 0; padding: 18px 20px; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--stroke); border-radius: 14px; overflow-x: auto; line-height: 1.6; }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, legend { font-weight: 620; font-size: 15px; }
.hint { color: var(--text3); font-size: 14px; font-weight: 400; }
input[type="email"], input[type="text"], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--text); background: var(--canvas);
  border: 1px solid var(--stroke-strong); border-radius: 12px; }
textarea { min-height: 132px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { text-align: right; color: var(--text3); font-size: 13px; }
.notice { margin: 0; color: var(--text2); font-size: 14px; }
.status { margin: 0; min-height: 1.5em; font-size: 15px; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--danger); font-weight: 600; }
.closed-note { padding: 14px 16px; border: 1px dashed var(--stroke-strong); border-radius: 12px; color: var(--text2); }
.done { display: none; }
.done h3 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
form[hidden] { display: none; }

/* Request a device or app (Ticket 1495) */
.request-page { padding: clamp(40px, 7vw, 88px) 0 96px; }
.request-wrap { max-width: 720px; display: grid; gap: clamp(24px, 4vw, 36px); }
.request-page .head { display: grid; gap: 16px; }
.step { display: grid; gap: 16px; }
.step[hidden], .status[hidden] { display: none; }
.step h2 { font-size: clamp(22px, 3vw, 28px); }
.step:focus { outline: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 6px; }
.small { font-size: 14px; margin: 0; }
.text-button { min-height: 44px; padding: 0; font: inherit; color: var(--accent-text); background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover { color: var(--text); }
.step .actions { margin-top: 8px; }

/* Docs */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(36px, 6vw, 72px); padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 4px; font-size: 15px; }
.toc a { color: var(--text2); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.toc a:hover { color: var(--text); }
.doc article { min-width: 0; }
.doc article > h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 16px; }
.doc article h2 { font-size: clamp(24px, 3vw, 32px); margin: 56px 0 14px; letter-spacing: -0.02em; }
.doc article h3 { margin: 28px 0 8px; }
.doc article p, .doc article li { color: var(--text2); max-width: 46em; overflow-wrap: anywhere; }
.doc article strong { color: var(--text); }
.doc article pre.code { margin: 16px 0 20px; }
.doc article :not(pre) > code { color: var(--text); background: var(--surface); border: 1px solid var(--stroke); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--stroke); vertical-align: top; overflow-wrap: anywhere; }
.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); font-weight: 650; }
.doc td { color: var(--text2); }
.table-scroll { overflow-x: auto; margin: 16px 0 24px; }
.banner { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px; border: 1px solid var(--stroke-strong); border-radius: 999px; font-size: 14px; color: var(--text2); margin-bottom: 20px; }
.banner b { background: var(--gradient); color: #07100F; border-radius: 999px; padding: 2px 10px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .banner b { color: #fff; } }
:root[data-theme="light"] .banner b { color: #fff; }

.site-footer { border-top: 1px solid var(--stroke); padding: 40px 0 56px; color: var(--text3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-footer p { margin: 0; max-width: 34em; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > div, .cols > div + div { padding: 22px 0 8px; border-left: 0; border-top: 1px solid var(--stroke); }
  .cols > div:first-child { border-top: 0; }
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .numbers div + div { border-left: 0; border-top: 1px solid var(--stroke); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
