/* Self-hosted fonts (SIL Open Font License; see /fonts) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

/* Genesis Nomad — site styles
   Palette taken from nautical charts: chart paper, shoal water, deep ink, depth lines, chart magenta. */

:root {
  /* Colors taken from the Genesis Nomad logo. Header and footer are black; the page is light. */
  --black: #000000;
  --bg: #FFFFFF;
  --band: #F0F8F4;
  --surface: #FFFFFF;
  --surface-2: #E6F4ED;
  --text: #0E1714;
  --muted: #4C5B55;
  --rule: #D3E1DA;
  --mint: #3EEDB0;
  --mint-light: #8FF7D2;
  --teal: #0A7D5C;
  --teal-dark: #065C44;
  --lime: #9BEF5E;
  --gold: #F6D25A;
  --orange: #E58A1F;
  --amber-text: #9A5800;

  --on-black: #F2F5F3;
  --on-black-muted: #A3B0AA;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --measure: 64ch;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--mint); color: var(--black);
  padding: 0.6rem 1rem; z-index: 20; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); max-width: 16ch; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 22ch; }
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}
p { margin: 0 0 1rem; max-width: var(--measure); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.55; }
.quiet { color: var(--muted); }
.small { font-size: 0.9rem; }
ul, ol { padding-left: 1.2rem; max-width: var(--measure); }
li { margin-bottom: 0.4rem; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid #26322D;
  background: var(--black);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 5.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.brand img { height: 56px; width: auto; }
@media (max-width: 820px) { .brand img { height: 46px; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.nav li { margin: 0; }
.nav a { color: var(--on-black); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--mint); }
.nav a[aria-current="page"] { color: var(--mint); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.nav .nav-login {
  border: 1.5px solid var(--on-black); padding: 0.45rem 0.9rem; border-radius: 4px;
}
.nav .nav-login:hover { border-color: var(--mint); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--on-black);
  border-radius: 4px; padding: 0.45rem 0.8rem; font: inherit; font-weight: 600; color: var(--on-black); cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid #26322D; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .nav li { width: 100%; }
  .nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid #26322D; }
  .nav .nav-login { display: inline-block; margin-top: 1rem; padding: 0.55rem 1rem; border-bottom: 1.5px solid var(--on-black); }
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.35rem; border-radius: 4px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--mint); color: var(--black); }
.btn-primary:hover { background: #2BD69C; color: var(--black); }
.btn-secondary { border-color: var(--text); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.band { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band + .section, .section + .band { border-top: 0; }
.ink-band { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-wide { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* ---------- Home hero: the chart ---------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 46ch; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .route { stroke: url(#route-grad); stroke-width: 2.5; fill: none; stroke-dasharray: 9 7; }
.chart .wp-ring { fill: var(--bg); stroke: var(--orange); stroke-width: 2.25; }
.chart .wp-dot { fill: var(--orange); }
.chart .wp-label { font-family: var(--serif); font-style: italic; font-size: 26px; fill: var(--text); }
.chart .wp-note { font-family: var(--sans); font-size: 16px; fill: var(--muted); }
.chart .rose line, .chart .rose circle { stroke: var(--teal); fill: none; }
.chart .rose text { font-family: var(--serif); font-size: 15px; fill: var(--teal); }

.chart .route-draw { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chart .route-mask { animation: plot 2.2s ease-out 0.3s both; }
  @keyframes plot { from { stroke-dashoffset: 1100; } to { stroke-dashoffset: 0; } }
}

/* ---------- Approach: waypoints ---------- */

.waypoints { list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: wp; }
.waypoints li { margin: 0; padding-top: 1.4rem; border-top: 2px solid var(--rule); position: relative; }
.waypoints li::before {
  content: ""; position: absolute; top: -9px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2.25px solid var(--orange);
}
.waypoints h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; font-style: italic; margin-bottom: 0.5rem; }
@media (max-width: 760px) { .waypoints { grid-template-columns: 1fr; } }

/* ---------- Product ledger ---------- */

.ledger { margin-top: 2.5rem; border-top: 2px solid var(--text); }
.ledger-row {
  display: grid; grid-template-columns: 14rem 1fr 11rem; gap: 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.ledger-row h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0; }
.ledger-row p { margin: 0; }
.ledger-row .where { color: var(--muted); font-size: 0.95rem; }
.ledger-row .flag { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--amber-text); margin-bottom: 0.35rem; }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- Telegram card mock ---------- */

.tg {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.1rem 1.2rem 1rem; max-width: 26rem;
  box-shadow: 0 1px 0 var(--rule), 0 22px 48px -26px rgba(10, 125, 92, 0.35);
  font-size: 0.98rem; line-height: 1.5;
}
.tg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.tg-title { font-weight: 700; }
.tg-time { color: var(--muted); font-size: 0.85rem; }
.tg dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0 0 0.9rem; }
.tg dt { color: var(--muted); }
.tg dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tg p { margin: 0 0 0.8rem; }
.tg-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.tg-buttons span {
  display: block; text-align: center; background: var(--surface-2); border-radius: 8px;
  padding: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--teal-dark);
}
.tg-buttons span:first-child { grid-column: 1 / -1; }
.demo-label { font-size: 0.88rem; color: var(--muted); margin-top: 0.8rem; max-width: 26rem; }
.tg + .tg { margin-top: 1.25rem; }

/* ---------- Feature table ---------- */

.features { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 0.98rem; }
.features caption { text-align: left; }
.features th, .features td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--rule); }
.features thead th { font-size: 0.9rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--text); padding-top: 0; }
.features tbody th { font-weight: 600; width: 22%; }
.features td:last-child { color: var(--muted); width: 32%; }
@media (max-width: 760px) {
  .features thead { position: absolute; left: -9999px; }
  .features tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .features th, .features td { display: block; border: 0; padding: 0.15rem 0; width: auto !important; }
}

.notes { margin-top: 2rem; padding: 1.4rem 1.5rem; border-left: 3px solid var(--orange); background: var(--surface); max-width: 52rem; }
.notes h3 { margin-bottom: 0.6rem; }
.notes ul { margin: 0; }

/* ---------- Steps ---------- */

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: 52rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.steps li::before {
  content: counter(step); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--orange);
}
.steps p { margin: 0; }

/* ---------- Benefit list ---------- */

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; margin-top: 2.5rem; }
.benefits div { border-left: 3px solid var(--mint); padding-left: 1.1rem; }
.benefits p { margin: 0; }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: none; }
.facts li { margin: 0; border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.92rem; background: var(--surface); }

.status {
  margin-top: 1.5rem; padding: 0.9rem 1.1rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); font-size: 0.95rem; max-width: 46rem;
}
.status strong { color: var(--amber-text); }

/* ---------- Roadmap ---------- */

.roadmap { list-style: none; padding: 0; margin: 2rem 0 0; max-width: none; border-top: 2px solid var(--text); }
.roadmap li { display: grid; grid-template-columns: 15rem 7.5rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.roadmap h3 { margin: 0; font-size: 1.05rem; }
.roadmap .tag { font-size: 0.85rem; font-weight: 600; color: var(--amber-text); }
.roadmap p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .roadmap li { grid-template-columns: 1fr; gap: 0.3rem; } }

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

.faq { margin-top: 2rem; max-width: 52rem; border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.9rem;
  font-family: var(--serif); font-size: 1.6rem; color: var(--teal); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.15rem; margin: 0; }

/* ---------- Forms ---------- */

.signup { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); max-width: 34rem; }
.signup label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.signup input[type="email"] {
  width: 100%; font: inherit; padding: 0.8rem 0.9rem; border: 1.5px solid var(--muted); border-radius: 4px; background: var(--bg); color: var(--text);
}
.signup input[type="email"]:focus-visible { outline-offset: 1px; }
.signup .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.92rem; margin: 1rem 0 1.25rem; }
.signup .check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--teal); flex: none; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .btn { width: 100%; }
.signup h3 { margin-bottom: 0.35rem; }
.signup h3 + label { margin-top: 1rem; }
.signup h3 + p { margin: 0 0 1.25rem; }

/* ---------- Quote & bio ---------- */

blockquote {
  margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25; font-weight: 400; font-style: italic; max-width: 26ch;
}

.ink-band.slim { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.policy-line { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; max-width: none; }

/* ---------- Follow ---------- */

.follow { list-style: none; padding: 0; margin: 2rem 0 0; max-width: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.follow li { margin: 0; border-bottom: 1px solid var(--rule); }
.follow a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--text); }
.follow a span:last-child { color: var(--muted); }
.follow a:hover span:first-child { color: var(--teal); text-decoration: underline; }
@media (max-width: 760px) { .follow { grid-template-columns: 1fr; } }

/* ---------- Plain pages ---------- */

.page { padding-block: clamp(3rem, 7vw, 5rem) var(--section); }
.page h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 20ch; }
.page h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.75rem; }
.page .updated { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: var(--on-black-muted); padding-block: 3.5rem 2.5rem; font-size: 0.95rem; }
.site-footer a { color: var(--on-black); text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--gold); margin-bottom: 0.75rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.45rem; }

.footer-legal { border-top: 1px solid #26322D; margin-top: 2.5rem; padding-top: 1.5rem; color: var(--on-black-muted); font-size: 0.88rem; }
.footer-legal p { max-width: 90ch; margin-bottom: 0.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.nav .nav-login[aria-current="page"] { text-decoration: none; border-color: var(--mint); color: var(--mint); }
.signup h3 + label { margin-top: 1.25rem; }
