/* Strandgate marketing site. Brand: Navy #10223A, Blue #2B6C9E, Light Blue #6FA8D6, Off-white #F4F6F8. Font: Sora (self-hosted). */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/sora-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #10223A;
  --blue: #2B6C9E;
  --light-blue: #6FA8D6;
  --off-white: #F4F6F8;
  /* Tints of the brand colours for surfaces, lines and secondary text */
  --surface: rgba(244, 246, 248, 0.055);
  --surface-strong: rgba(244, 246, 248, 0.09);
  --line: rgba(244, 246, 248, 0.2);
  --muted: rgba(244, 246, 248, 0.78);
  --danger: #FF9C9C;
  --radius: 14px;
  --gutter: 20px;
  --maxw: 1120px;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; background: var(--navy); color: var(--off-white); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--light-blue); text-underline-offset: 3px; }
a:hover { color: var(--off-white); }
:focus-visible { outline: 3px solid var(--light-blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--off-white); color: var(--navy); padding: 10px 16px; border-radius: 8px; z-index: 10; font-weight: 600; }
.skip:focus { top: 12px; }

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

/* Header */
.site-header { padding: 18px 0; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 34px; width: auto; display: block; }

/* Typography */
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; }
.eyebrow { color: var(--light-blue); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 40rem; }

/* Sections */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; gap: 22px; }
.hero h1 { max-width: 18ch; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { margin-bottom: 28px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { background: #3a7db2; border-color: #3a7db2; color: #fff; }
.btn-secondary { background: transparent; border-color: var(--light-blue); color: var(--off-white); }
.btn-secondary:hover { background: var(--surface-strong); border-color: var(--light-blue); color: var(--off-white); }
.btn[disabled] { opacity: .65; cursor: progress; }
.hero .btn { width: 100%; }

/* Cards */
.cards { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .num { display: block; color: var(--light-blue); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; letter-spacing: 0.04em; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Flow */
.flow { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; }
.flow li { counter-increment: step; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.flow li::before { content: counter(step); display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.9rem; }

/* Two-column band (founding partners, survey teaser) */
.band { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.band p { color: var(--muted); max-width: 44rem; }
.band .btn { justify-self: start; margin-top: 6px; }
.limit { color: var(--off-white); font-weight: 600; }

/* Forms */
.form-wrap { max-width: 640px; }
.form-wrap > h2 { margin-bottom: 24px; }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
label, legend { font-weight: 600; }
.hint { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--off-white);
  background: rgba(244, 246, 248, 0.08); border: 1.5px solid rgba(244, 246, 248, 0.5); border-radius: 10px;
}
textarea { min-height: 112px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--off-white) 50%), linear-gradient(135deg, var(--off-white) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: var(--navy); color: var(--off-white); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--light-blue); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 14px; border: 1.5px solid rgba(244, 246, 248, 0.35); border-radius: 10px; background: var(--surface); font-weight: 400; cursor: pointer; }
.choice:hover { background: var(--surface-strong); }
.choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--light-blue); }
.choice:has(input:checked) { border-color: var(--light-blue); background: var(--surface-strong); }
.choice:has(input:focus-visible) { outline: 3px solid var(--light-blue); outline-offset: 2px; }
.has-error input[type="text"], .has-error input[type="email"], .has-error select, .has-error textarea, .has-error .choice { border-color: var(--danger); }
.error { color: var(--danger); font-weight: 600; font-size: 0.95rem; }
.error::before { content: "\26A0\00a0"; }
.fineprint { color: var(--muted); font-size: 0.9rem; }

/* Honeypot: off-screen, not display:none (some bots skip those) */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Status / error summary */
.status { border-radius: 12px; padding: 16px 18px; border: 1.5px solid var(--line); }
.status[hidden] { display: none; }
.status.ok { border-color: var(--light-blue); background: rgba(111, 168, 214, 0.14); }
.status.err { border-color: var(--danger); background: rgba(255, 156, 156, 0.1); }
.status h3 { font-size: 1rem; margin-bottom: 6px; }
.status ul { margin: 6px 0 0; padding-left: 20px; }
.status a { color: var(--off-white); }
.turnstile { min-height: 65px; }

/* Success card: replaces the form after a successful send */
.done-card { max-width: 640px; display: grid; gap: 14px; justify-items: start; background: var(--surface); border: 1.5px solid var(--light-blue); border-radius: var(--radius); padding: 28px 24px; }
.done-card[hidden], [data-form-area][hidden] { display: none; }
.done-card h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.done-card p { color: var(--muted); }
.done-card .btn { margin-top: 6px; }

/* Prose pages */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.prose p { color: var(--off-white); margin-bottom: 12px; }
.prose .meta { color: var(--muted); }
.blank { background: rgba(111, 168, 214, 0.2); border-radius: 4px; padding: 0 5px; font-weight: 600; white-space: nowrap; }
.page-head { padding: 48px 0 8px; }
.page-head .wrap { display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); max-width: 22ch; }
.page-body { padding: 24px 0 72px; }

/* Preview illustrations (replace with real screen recordings as app pages are finished) */
.hero-media { margin: 18px 0 0; display: grid; gap: 10px; }
.hero-media img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.hero-media figcaption { color: var(--muted); font-size: 0.85rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--off-white); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--blue); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 7px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.hero-ticks { max-width: 44rem; }

/* Header navigation */
.nav { display: none; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav a { color: var(--off-white); text-decoration: none; }
.nav a:hover { color: var(--light-blue); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.nav .btn-small { color: #fff; }

/* Trades strip */
.trades { border-top: 1px solid var(--line); padding: 20px 0; }
.trades .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.trades-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.trades ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trades li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 0.9rem; font-weight: 600; }
.trades li.later { color: var(--muted); font-weight: 400; border-style: dashed; }

/* Feature blocks */
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 44rem; margin: -12px 0 40px; }
.feature { display: grid; gap: 24px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-text { display: grid; gap: 14px; }
.feature h3 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.feature-media { display: block; width: 100%; border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3); }

/* Roles, steps, FAQ */
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.role h3 { margin-bottom: 6px; }
.role p { color: var(--muted); }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; }
.steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--muted); }
.why h2 { max-width: 30ch; }
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--light-blue); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--off-white); }

/* Wider screens */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .logo img { height: 40px; }
  .hero { padding: 88px 0 96px; }
  .hero .btn { width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .roles, .steps { grid-template-columns: repeat(2, 1fr); }
  .choices.cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .section { padding: 80px 0; }
  .band { padding: 40px; }
  .nav { display: flex; }
  .feature { grid-template-columns: 5fr 7fr; gap: 48px; padding: 44px 0; }
  .feature.flip .feature-text { order: 2; }
  .roles, .steps { grid-template-columns: repeat(4, 1fr); }
}
