/* FolioHarbour website.
   Fonts: Lexend (headings) and Source Sans 3 (text), both chosen for readability, served from /fonts (no outside requests).
   Colours are set once in :root (light) and the dark-mode block below it. */
@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #0d1b34;          /* headings, primary buttons */
  --text: #1c2638;
  --muted: #4b5668;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --tint: #edf1f6;
  --line: #dfe5ed;
  --teal: #1d6c67;
  --teal-soft: #e4f0ee;
  --gold: #946f2c;          /* used sparingly: labels and fine rules */
  --navy-band: #0f2140;
  --btn-bg: #0d1b34;
  --btn-bg-hover: #1b3156;
  --btn-text: #ffffff;
  --focus: #c98a12;
  --shadow-sm: 0 1px 2px rgb(13 27 52 / 0.06), 0 2px 8px rgb(13 27 52 / 0.05);
  --shadow-lg: 0 2px 6px rgb(13 27 52 / 0.06), 0 24px 60px -12px rgb(13 27 52 / 0.22);
  --radius: 16px;
  --radius-sm: 12px;
  --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8;
    --text: #dfe5ee;
    --muted: #aab5c5;
    --bg: #0c1424;
    --surface: #131e33;
    --tint: #101a2d;
    --line: #26344d;
    --teal: #74c7bf;
    --teal-soft: #14302f;
    --gold: #dcb366;
    --navy-band: #16294a;
    --btn-bg: #e9eef6;
    --btn-bg-hover: #ffffff;
    --btn-text: #0c1424;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 24px 60px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  font-size: 1.25rem; /* 20px: larger than usual on purpose, for easy reading */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0 0 0.55em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.small { font-size: 1.0625rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.body-lg { font-size: 1.3rem; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.2em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 16px; }

/* Buttons: one shape (12px corners) everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1.125rem; letter-spacing: -0.005em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 1px 2px rgb(13 27 52 / 0.2), 0 8px 20px -8px rgb(13 27 52 / 0.45); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary .icon { transition: transform 0.2s ease; }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-quiet, .btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover, .btn-secondary:hover { border-color: var(--ink); }
.btn-small { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .icon { transition: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.top-nav { display: flex; gap: 32px; margin-left: auto; }
.top-nav a { color: var(--text); text-decoration: none; font-size: 1.0625rem; }
.top-nav a:hover { color: var(--teal); }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--tint); }
.section-title { max-width: 22ch; }
.lead { font-size: 1.375rem; line-height: 1.55; color: var(--muted); max-width: 34ch; }
.caption { text-align: center; color: var(--muted); font-size: 1.0625rem; margin-top: 18px; }

/* Framed screenshots */
.frame { margin: 0; border-radius: var(--radius); background: var(--surface); padding: 6px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.frame img, .frame video { border-radius: 11px; }
.frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0f2140; }

/* 1. Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 3.9vw, 3.3rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stage { position: relative; padding: 40px 0 48px 40px; }
.hero-stage::before {
  content: ""; position: absolute; inset: 0 -40vw 0 0; border-radius: 28px 0 0 28px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(255 255 255 / 0.10), transparent 55%),
    linear-gradient(160deg, #18315a 0%, #0d1b34 70%);
}
.hero-main { position: relative; }
.hero-float { position: absolute; width: 38%; left: 0; bottom: 0; padding: 4px; }
.hero-float img { border-radius: 9px; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-row { list-style: none; margin-block: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts-row li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.125rem; color: var(--muted); }
.facts-row strong { color: var(--ink); font-weight: 600; }
.facts-row .icon { width: 30px; height: 30px; color: var(--teal); margin-top: 1px; }

/* 2. Problem */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: 0.42em;
  width: 8px; height: 15px; border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.statement { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 32px 24px; box-shadow: var(--shadow-lg); }
.statement-label { font-family: var(--font-head); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.statement-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.statement-table th, .statement-table td { padding: 13px 2px; text-align: left; }
.statement-table td:last-child, .statement-table th:last-child { text-align: right; }
.statement-table thead th { font-size: 1rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.statement-table tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.statement-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 16px -12px 18px; padding: 18px 14px; border-radius: var(--radius-sm);
  background: var(--tint); font-family: var(--font-head);
}
.statement-total span { color: var(--ink); font-weight: 500; }
.statement-total strong { color: var(--ink); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* 3. How it works */
.steps { list-style: none; padding: 0; margin: 56px 0 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 56px; right: calc(33% - 8px); height: 1px; background: var(--line); }
.steps li { position: relative; }
.step-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--teal); margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.step-icon .icon { width: 28px; height: 28px; }
.step-num { color: var(--teal); }
.steps p { color: var(--muted); }
.wide-shot { max-width: 1000px; margin-inline: auto; }
.cta-center { text-align: center; margin-top: 48px; }

/* 4. Benefits */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
.tile h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tile h3 .icon { color: var(--teal); width: 26px; height: 26px; }
.tile p { color: var(--muted); margin: 0; }
.tile-wide { grid-column: span 2; }
.tile-image img { border-radius: 10px; border: 1px solid var(--line); margin-top: auto; box-shadow: var(--shadow-sm); }
.tile-text { background: var(--teal-soft); border-color: transparent; box-shadow: none; justify-content: center; }
.tile-accent { background: linear-gradient(160deg, #18315a, #0d1b34); border-color: transparent; justify-content: center; }
.tile-accent h3 { color: #ffffff; font-size: 1.5rem; }
.tile-accent p { color: #cdd6e4; }
.tile-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 40px; }
.prices-note { margin-top: 32px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); max-width: 820px; }
.prices-note h3 { margin-bottom: 6px; }
.prices-note p { margin: 0; color: var(--muted); }

/* 5. Privacy (the page's one dark band) */
.section-navy {
  color: #e9eef6;
  background:
    radial-gradient(80% 60% at 85% 0%, rgb(29 108 103 / 0.25), transparent 60%),
    var(--navy-band);
}
.section-navy h2, .section-navy h3 { color: #ffffff; }
.section-navy a { color: #9fe0d9; }
.privacy-head { max-width: 760px; }
.seal { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); color: #9fe0d9; margin-bottom: 24px; }
.seal .icon { width: 34px; height: 34px; }
.lead-light { color: #cdd6e4; max-width: 56ch; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.promise { padding: 28px; border-radius: var(--radius); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.10); }
.promise .icon { width: 30px; height: 30px; color: #9fe0d9; margin-bottom: 14px; }
.promise p { color: #cdd6e4; margin: 0; }
.fine-light { color: #b9c4d6; margin: 36px 0 0; max-width: 75ch; font-size: 1.125rem; }

/* 6. Who it's for */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 40px; }
.audience > div { border-top: 2px solid var(--teal); padding-top: 24px; }
.audience p { color: var(--muted); margin: 0; }

/* 7. Tour */
.tour-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.tour-list { padding-left: 1.3em; margin: 0 0 36px; }
.tour-list li { margin-bottom: 18px; padding-left: 6px; }
.tour-list li::marker { color: var(--teal); font-family: var(--font-head); font-weight: 600; }

/* 8. Early access */
.signup-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 56px; box-shadow: var(--shadow-lg);
}
.signup-intro h3 { margin-top: 28px; }
.signup-intro .ticks { margin: 0; }
.signup-side { background: var(--tint); border-radius: var(--radius); padding: 32px; align-self: start; }
.signup { display: grid; gap: 10px; }
.signup label { font-weight: 600; color: var(--ink); }
.signup input[type="email"] {
  font: inherit; min-height: 58px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--muted); background: var(--surface); color: var(--text);
}
.signup input[type="email"]:focus-visible { border-color: var(--teal); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400 !important; color: var(--text) !important; margin: 10px 0 8px; font-size: 1.125rem; }
.consent input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--teal); }
.form-message { min-height: 1.6em; margin: 4px 0 0; font-weight: 600; }
.form-message.error { color: #b42318; }
.form-message.ok { color: var(--teal); }
@media (prefers-color-scheme: dark) { .form-message.error { color: #ff9b8f; } }
.reassure { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin: 18px 0 0; font-size: 1.0625rem; }
.reassure .icon { color: var(--teal); margin-top: 2px; }

/* 9. FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro p { color: var(--muted); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; transition: border-color 0.2s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.faq summary { cursor: pointer; padding: 22px 60px 22px 26px; font-family: var(--font-head); font-weight: 500; font-size: 1.1875rem; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--teal); font-weight: 300; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* 10. Final */
.final { padding-top: 96px; }
.final-panel {
  text-align: center; padding: 72px 32px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, var(--teal-soft), transparent 70%), var(--surface);
}
.final-panel img { margin: 0 auto 24px; }
.final-panel h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.final-panel .lead { margin: 0 auto 32px; max-width: 62ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; }
.footer-row nav a { color: var(--text); font-size: 1.0625rem; }
.footer-row p { grid-column: 1 / -1; margin: 0; }
.brand-footer { font-size: 1.1rem; }

/* Gentle fade-in as sections scroll into view (only with JavaScript, and never with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Legal pages */
.legal { padding: 56px 0 96px; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 1.0625rem; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.draft-note { background: var(--teal-soft); border-radius: var(--radius-sm); padding: 14px 18px; }

/* Tablet */
@media (max-width: 1000px) {
  .top-nav { display: none; }
  .header-row .btn-small { margin-left: auto; }
  .hero-grid, .problem-grid, .tour-grid, .signup-card, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stage { padding: 28px 0 36px 28px; }
  .faq-intro { position: static; }
  .steps, .audience, .facts-row { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; }
  .tile-full { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .facts-row { gap: 18px; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 1.1875rem; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-stage { padding: 20px 0 28px 20px; }
  .hero-float { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .signup-card { padding: 28px 20px; border-radius: var(--radius); gap: 28px; }
  .signup-side { padding: 22px 18px; }
  .statement { padding: 24px 20px 18px; }
  .cta-row .btn { width: 100%; }
  .header-row { gap: 12px; }
  .brand { font-size: 1.15rem; }
  .header-row .btn-small { padding: 0 14px; min-width: 0; }
  .final-panel { padding: 48px 20px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-row nav { justify-content: flex-start; flex-direction: column; }
}

/* A detail still to fill in before the page goes online (search the files for "blank"). */
.blank { background: #fff3c4; color: #5a4000; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin: 0 0 1.2em; box-shadow: var(--shadow-sm); }
.summary-box ul { margin: 0; padding-left: 1.2em; }
.summary-box li + li { margin-top: 6px; }

/* Articles */
.article .lead { max-width: none; font-size: 1.25rem; }
.article-meta { color: var(--muted); font-size: 1rem; margin: 0 0 0.6em; }
.article .small-print { color: var(--muted); font-size: 1rem; }
.article table { display: block; overflow-x: auto; }
.article-note { background: var(--teal-soft); border-radius: var(--radius-sm); padding: 18px 22px; margin: 2em 0 0; }
.article-note p { margin: 0; }
.article-note p + p { margin-top: 10px; font-weight: 600; }
.sources { font-size: 1rem; }
.article-list { list-style: none; padding: 0; margin: 1.5em 0 0; }
.article-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.article-list li:last-child { border-bottom: 1px solid var(--line); }
.article-list a { font-size: 1.25rem; }
.article-list span { display: block; color: var(--muted); margin-top: 4px; }

/* Free-trial reassurance: "No credit card needed" under the hero buttons and at the top of the sign-up card. */
.no-card { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text); font-size: 1.0625rem; }
.no-card li { display: flex; align-items: center; gap: 8px; }
.no-card .icon { color: var(--teal); flex: none; }
.no-card-lead { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.no-card-lead .icon { color: var(--teal); width: 1.3em; height: 1.3em; margin-top: 3px; flex: none; }
.consent .optional { color: var(--muted); }
.download-ready h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--teal); }
.download-ready:focus { outline: none; }
.download-ready .btn { margin: 14px 0 8px; gap: 10px; }
.sender { margin: 10px 0 0; }
[hidden] { display: none !important; }
