/* The TideSpeaker website (tidespeaker.com/). The same world as the crew page and the dashboard: flat navy bands,
   white ground, magenta only on actions, red only for emergencies, Inter. No gradients. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400-latin.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600-latin.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-700-latin.woff") format("woff"); }

:root {
  --navy: #0B2A6B; --navy-ink: #C9DBF5;
  --magenta: #E11D74; --magenta-ink: #C0135F;
  --ink: #0F172A; --muted: #55657A; --line: #E4E8EE; --bg: #F5F7FA; --surface: #FFFFFF;
  --steel: #C3CAD3;
  --gutter: 24px; --band: 112px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: #FFE4EF; color: var(--ink); }
.ledger ::selection, .close ::selection { background: #FFFFFF; color: var(--navy); }
html { accent-color: var(--magenta); scrollbar-color: #B8C1CC var(--bg); }
a { color: var(--magenta-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.ledger :focus-visible, .close :focus-visible { outline-color: #FFFFFF; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: #FFFFFF; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; color: var(--ink); }
.section-lede { margin-top: 16px; max-width: 700px; color: var(--muted); font-size: 18px; }
.fine { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 760px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn.hot { background: var(--magenta); color: #FFFFFF; }
.btn.line { border: 1.5px solid var(--navy); color: var(--navy); background: var(--surface); }
.btn.line.light { border-color: #FFFFFF; color: #FFFFFF; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn.hot:hover { background: var(--magenta-ink); }
  .btn.line:hover { background: #EEF3FB; }
  .btn.line.light:hover { background: rgba(255, 255, 255, 0.12); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: auto; }
.brand.small { font-size: 16px; }
.brand.small img { width: 24px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--navy); text-decoration: underline; } }
.crew-btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.menu-btn { display: none; }

/* ---- hero: the poster on the bulkhead ---- */
.hero { padding: 64px 0 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 3.9vw, 54px); line-height: 1.04; letter-spacing: -0.03em; color: var(--navy); }
.lede { margin-top: 22px; font-size: 19px; color: #334155; max-width: 560px; }
.hero .cta-row { margin-top: 32px; }
.rule-line { list-style: none; margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }

.bulkhead { position: relative; margin: 0; }
.mount { position: relative; overflow: hidden; background: var(--steel) url("/img/bulkhead.webp") center / cover no-repeat; min-height: 620px;
  margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - 1180px) / 2));   /* the bulkhead runs off the right edge, like a wall */ display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.poster { width: 250px; background: #FFFFFF; padding: 8px; border: 1px solid #8C96A3; border-radius: 4px; box-shadow: 0 18px 32px -18px rgba(15, 23, 42, 0.45); transform: translateX(-60px); }
.mount .phone { position: absolute; left: calc(50% + 24px); bottom: 36px; }   /* over the poster's lower right corner */
.phone { width: 196px; border: 7px solid var(--ink); border-radius: 30px; background: var(--ink); box-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.55); }
.bulkhead figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

.crew-note { margin-top: 48px; }
.crew-note p { border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 15px; color: var(--muted); }
.crew-note b { color: var(--ink); }

/* ---- how it works: four steps that light up in turn ---- */
.how { background: var(--bg); padding: var(--band) 0; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; position: relative; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 48px 0; position: relative; }
.step + .step { border-top: 1px solid var(--line); }
.step-text { position: relative; padding-left: 64px; }
.step-no {
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; border: 2px solid var(--navy);
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.step h3 { font-size: 28px; color: var(--ink); }
.step-text > p:not(.ref) { margin-top: 12px; color: #334155; }
.ref { margin-top: 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ref span { display: block; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.shot { margin: 0; display: flex; justify-content: center; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.phone-shot img { width: 250px; border: 8px solid var(--ink); border-radius: 36px; background: var(--ink); box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.5); }
.desk-shot img, .pair-shot .desk { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 24px 40px -28px rgba(15, 23, 42, 0.4); }
.desk-shot img { width: 100%; max-width: 600px; max-height: 560px; object-fit: cover; object-position: top; }
.shot picture { display: block; width: 100%; max-width: 600px; }
.pair-shot picture { max-width: none; }
.pair-shot { position: relative; padding: 0 0 40px; justify-content: flex-start; }
.pair-shot .desk { width: 88%; }
.pair-shot .phone { position: absolute; right: 0; bottom: 0; width: 34%; max-width: 200px; border-width: 6px; border-radius: 26px; }
.sample-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

.js .step.will-light .step-no { background: var(--surface); color: var(--muted); border-color: var(--steel); }
.js .step.will-light .shot { opacity: 0.35; transform: translateY(16px); }
.js .step.will-light.lit .step-no { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.js .step.will-light.lit .shot { opacity: 1; transform: none; }

/* ---- the ledger: each rule beside the feature that meets it ---- */
.ledger { background: var(--navy); color: #FFFFFF; padding: var(--band) 0; }
.ledger h2 { color: #FFFFFF; }
.ledger .section-lede, .ledger .fine { color: var(--navy-ink); }
.ledger-group { margin: 56px 0 16px; font-size: 18px; font-weight: 600; color: #FFFFFF; letter-spacing: 0; }
.table-card { background: var(--surface); color: var(--ink); border-radius: 14px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
thead th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
tbody th, tbody td { padding: 18px 20px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); }
tbody tr:first-child th, tbody tr:first-child td { border-top: 0; }
tbody th { width: 27%; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14px; }
tbody th small { display: block; margin-top: 4px; font-weight: 600; font-size: 12px; color: var(--muted); }
tbody td:nth-of-type(1) { width: 33%; color: var(--muted); }

/* ---- the two sides ---- */
.two-sides { padding: var(--band) 0; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.side h2 { font-size: clamp(28px, 3vw, 36px); }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.ticks li { position: relative; padding-left: 32px; color: #334155; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 12px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ticks b { color: var(--ink); }
.ticks.small { margin-top: 20px; gap: 8px; font-size: 15px; }

/* ---- security ---- */
.security { background: var(--bg); padding: var(--band) 0; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sec-grid > div > p { margin-top: 18px; color: #334155; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.facts div { padding: 18px 0; border-top: 1px solid #D5DBE3; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.facts dd { margin: 6px 0 0; color: var(--ink); }

/* ---- pricing ---- */
.pricing { padding: var(--band) 0; }
.plans { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.plan h3 { font-size: 22px; }
.plan-line { margin-top: 8px; color: var(--muted); font-size: 15px; }
.price { margin-top: 24px; color: var(--muted); font-size: 15px; }
.price b { font-size: 44px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.bands { list-style: none; margin: 16px 0 0; padding: 0; font-size: 15px; }
.bands li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.bands b { font-variant-numeric: tabular-nums; }

/* ---- maker, close, footer ---- */
.maker { border-top: 1px solid var(--line); padding: 56px 0; }
.maker-row { display: flex; gap: 24px; align-items: center; }
.maker-row p { max-width: 720px; }
.maker-row img { width: 64px; flex: none; }
.maker-row p { color: #334155; }
.maker-row b { color: var(--ink); }
.close { background: var(--navy); color: #FFFFFF; padding: 88px 0; }
.close-row { display: flex; gap: 48px; align-items: center; justify-content: space-between; }
.close h2 { color: #FFFFFF; max-width: 620px; }
.close p { margin-top: 14px; color: var(--navy-ink); }
.close a:not(.btn) { color: #FFFFFF; }
.foot { padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-row > p { margin-left: auto; }

/* ---- narrower screens ---- */
@media (max-width: 1000px) {
  :root { --band: 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero .cta-row { order: 2; margin-top: 24px; }
  .bulkhead { order: 3; margin-top: 32px; }
  .lede { order: 4; margin-top: 32px; }
  .rule-line { order: 5; }
  .mount { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .lede { max-width: 640px; }
  .step, .sec-grid { grid-template-columns: 1fr; gap: 32px; }
  .sides { grid-template-columns: 1fr; gap: 64px; }
}
@media (max-width: 860px) {
  .top-row { gap: 12px; }
  .crew-btn { margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
  .site-nav { order: 3; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; margin: 0; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 12px 0; font-size: 17px; border-top: 1px solid var(--line); }
  .js .site-nav a:first-child { border-top: 0; }
  html:not(.js) .top-row { flex-wrap: wrap; padding-bottom: 10px; }
  html:not(.js) .site-nav { width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
  html:not(.js) .menu-btn { display: none; }
  .plans { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .close-row { flex-direction: column; align-items: flex-start; }
  /* the ledger reads as stacked rows on a phone */
  table, tbody, tr, tbody th, tbody td { display: block; width: auto; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { padding: 18px 20px; border-top: 1px solid var(--line); }
  tbody tr:first-child { border-top: 0; }
  tbody th, tbody td { padding: 0; border: 0; width: auto; }
  tbody td:nth-of-type(1) { width: auto; }
  tbody td { margin-top: 10px; }
  tbody td::before { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  tbody td:nth-of-type(1)::before { content: "What it asks"; }
  tbody td:nth-of-type(2)::before { content: "How TideSpeaker meets it"; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --band: 72px; }
  .top-row { gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; }
  .crew-btn { padding: 0 11px; font-size: 14px; min-height: 40px; flex: none; }
  .menu-btn { flex: none; }
  .hero { padding-top: 40px; }
  .lede { font-size: 17px; }
  .hero .cta-row .btn { flex: 1 1 140px; padding: 0 14px; }
  .hero h1 { font-size: 34px; }
  .mount { min-height: 0; padding: 28px 0 36px; }
  .poster { width: 58%; max-width: 230px; transform: translateX(-18%); }
  .mount .phone { width: 40%; max-width: 170px; left: auto; right: 6%; bottom: 20px; border-width: 5px; border-radius: 22px; }
  .bulkhead figcaption { text-align: left; }
  .step { padding: 40px 0; }
  .step-text { padding-left: 0; padding-top: 60px; }
  .step-no { top: 0; }
  .step h3 { font-size: 24px; }
  .phone-shot img { width: 230px; }
  .pair-shot .desk { width: 100%; }
  .desk-shot img { max-height: none; }
  .pair-shot { padding-bottom: 0; flex-direction: column; gap: 16px; }
  .pair-shot .phone { position: static; width: 60%; max-width: 230px; align-self: center; }
  .plan { padding: 24px 20px; }
  .price b { font-size: 38px; }
  .maker-row { align-items: flex-start; }
  .maker-row img { width: 48px; }
  .foot-row > p { margin-left: 0; width: 100%; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; }
  .brand img { width: 28px; }
  .crew-btn { padding: 0 9px; font-size: 13px; }
}
