/* TideMark landing page.
   Palette is the app's own: night-sea navy, foam text, and the amber "now"
   line — kept for the one moving thing on the page. Type borrows from the
   chart: condensed grotesque for headings (tide-table headers), italic serif
   for labels (how charts letter water and places). */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 500 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic; font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; }

:root {
  --night: #0a1628;
  --deep: #122540;
  --rule: #223b5e;
  --foam: #eef3fa;
  --mist: #9fb0c6;
  --sea: #3b82f6;
  --amber: #f5b028;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --chart: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--foam);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: #8cc0ff; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night);
  padding: 8px 12px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

/* Type */
h1, h2 {
  font-family: var(--display); font-weight: 850; font-stretch: 78%;
  letter-spacing: -0.01em; line-height: 0.98; margin: 0 0 18px; text-wrap: balance;
}
h1 { font-size: clamp(44px, 8.2vw, 104px); text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.8vw, 56px); }
.chart-label {
  font-family: var(--chart); font-style: italic; font-weight: 500;
  color: var(--mist); font-size: 19px; margin: 0 0 10px; letter-spacing: 0.01em;
}
.lede { font-size: clamp(18px, 1.9vw, 21px); color: #c9d6e6; max-width: 34em; margin: 0 0 28px; }
.small { font-size: 15px; color: var(--mist); }

/* Header */
.top {
  display: flex; align-items: center; gap: 24px;
  padding-block: 18px; padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--foam); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 22px; font-stretch: 90%; }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--foam); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn-small { margin-left: auto; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--foam); color: var(--night); text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 14px 22px; border-radius: 12px;
}
.btn:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-ghost:hover { background: var(--deep); }
.btn-small { padding: 9px 14px; font-size: 15px; border-radius: 10px; }

/* Hero: the app itself, on the water */
.hero { position: relative; overflow: hidden; padding-inline: var(--gutter);
  padding-block: clamp(36px, 6vw, 72px) 0;
  background: radial-gradient(120% 90% at 85% 10%, #173563 0%, var(--night) 60%); }
.hero-sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1220px; margin: 0 auto; }
.hero-copy { padding-bottom: clamp(32px, 6vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #c9d6e6;
  background: rgba(238,243,250,.07); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; margin: 0 0 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.hero h1 { font-size: clamp(40px, 6.4vw, 82px); text-transform: none; line-height: 0.98; letter-spacing: -0.015em; }
.hero-phones { position: relative; height: clamp(440px, 52vw, 640px); }
.phone-frame { position: absolute; width: 46%; aspect-ratio: 600 / 1305; border-radius: 13% / 6%;
  overflow: hidden; background: #000; border: 6px solid #1c2a40;
  box-shadow: 0 0 0 1px #2e4466, 0 40px 90px rgba(0,0,0,.55); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.p-front { left: 27%; bottom: 0; z-index: 3; }
.p-back-l { left: 0; bottom: 9%; transform: rotate(-7deg); z-index: 2; opacity: .92; }
.p-back-r { right: 0; bottom: 9%; transform: rotate(7deg); z-index: 1; opacity: .92; }
@media (prefers-reduced-motion: no-preference) {
  .p-front { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
  .p-back-l { animation: rise-l .9s .1s cubic-bezier(.2,.8,.2,1) both; }
  .p-back-r { animation: rise-r .9s .18s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { transform: translateY(40px); opacity: 0; } }
  @keyframes rise-l { from { transform: translateY(40px) rotate(-7deg); opacity: 0; } }
  @keyframes rise-r { from { transform: translateY(40px) rotate(7deg); opacity: 0; } }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; text-align: left; }
  .hero-phones { height: 112vw; max-height: 560px; margin-top: 8px; }
  .actions .btn { flex: 1 1 auto; }
}

/* What's in it: four tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-inline: var(--gutter);
  padding-block: 28px 40px; max-width: 1220px; margin: 0 auto; box-sizing: content-box; }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--foam);
  background: var(--deep); border: 1px solid var(--rule); border-radius: 18px; padding: 20px 20px 22px;
  transition: border-color .15s, transform .15s; }
.tile:hover { border-color: #3c5d8a; transform: translateY(-2px); }
.tile svg { width: 40px; height: 40px; color: #6fb1ff; margin-bottom: 8px; }
.tile strong { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 22px; }
.tile span { color: var(--mist); font-size: 15px; line-height: 1.45; }
.tile-hot { border-color: rgba(245,176,40,.45); background: linear-gradient(160deg, #23324a, var(--deep)); }
.tile-hot svg { color: var(--amber); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tiles { gap: 10px; } .tile { padding: 16px 14px 18px; } .tile strong { font-size: 19px; } .tile span { font-size: 14px; } .tile svg { width: 32px; height: 32px; } }

.wide { max-width: 1100px; margin: 0 auto; }
.section-lede { color: #c9d6e6; max-width: 40em; margin: 0 0 8px; }
.score-card { width: min(100%, 380px); margin-top: 22px; border-radius: 18px; box-shadow: 0 0 0 1px var(--rule), 0 24px 60px rgba(0,0,0,.4); }

/* Signature: the live tide */
.tide { margin: clamp(36px, 5vw, 64px) calc(-1 * var(--gutter)) 0; padding-inline: var(--gutter);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 22px 18px;
  background: linear-gradient(180deg, rgba(18,37,64,0) 0%, rgba(18,37,64,.65) 100%); }
.tide-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tide-where { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tide-place { font-size: clamp(26px, 3.2vw, 36px); color: var(--foam); margin: 0; }
.tide-read { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: clamp(17px, 2vw, 21px);
  font-variant-numeric: tabular-nums; color: var(--foam); }
.tide-read b { color: var(--amber); font-weight: 800; }
.tide-now { margin-left: auto; background: none; border: 0; color: var(--amber); font: 700 15px var(--body);
  cursor: pointer; padding: 6px 0; }
.tide-plot { height: clamp(190px, 26vw, 300px); margin-top: 10px; touch-action: pan-y; cursor: ew-resize;
  user-select: none; -webkit-user-select: none; }
.tide-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tide-plot .water { fill: url(#tm-water); }
.tide-plot .line { fill: none; stroke: #6fb1ff; stroke-width: 2.5; }
.tide-plot .grid { stroke: var(--rule); stroke-width: 1; }
.tide-plot .ext { font-family: var(--chart); font-style: italic; font-size: 15px; fill: #c9d6e6; }
.tide-plot .day { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 12px;
  fill: var(--mist); letter-spacing: 0.08em; text-transform: uppercase; }
.tide-plot .now-line { stroke: var(--amber); stroke-width: 2.5; }
.tide-plot .now-dot { fill: var(--amber); stroke: var(--night); stroke-width: 3; }
.harbours { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.harbours button {
  font: 600 14px var(--body); color: var(--mist); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 13px; cursor: pointer;
}
.harbours button:hover { color: var(--foam); border-color: var(--mist); }
.harbours button[aria-pressed="true"] { background: var(--foam); color: var(--night); border-color: var(--foam); }
.tide figcaption { font-size: 14px; color: var(--mist); margin-top: 14px; max-width: 60em; }

/* The live tide, now a band of its own */
.band .tide { margin: 22px 0 0; padding-inline: 0; border-bottom: 0; background: none; }
/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding-inline: var(--gutter); border-bottom: 1px solid var(--rule); }
.facts p { margin: 0; padding: 22px 20px 22px 0; color: var(--mist); font-size: 16px; }
.facts p + p { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts strong { color: var(--foam); display: block; font-family: var(--display); font-stretch: 85%;
  font-size: 22px; font-weight: 800; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts p + p { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Sections */
.band { padding-block: clamp(56px, 8vw, 104px); padding-inline: var(--gutter); border-bottom: 1px solid var(--rule); }
.band-quiet { background: var(--deep); }
.narrow { max-width: 760px; margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 88px); align-items: center; max-width: 1180px; margin: 0 auto; }
.split-flip { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
@media (max-width: 860px) {
  .split, .split-flip { grid-template-columns: 1fr; }
  .split-flip .phone { order: 2; }
}
.phone img { width: min(100%, 340px); margin: 0 auto; border-radius: 34px;
  box-shadow: 0 0 0 1px var(--rule), 0 30px 80px rgba(0,0,0,.45); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 12px;
  font-family: var(--display); font-weight: 850; font-stretch: 75%; font-size: 30px; line-height: 1;
  color: var(--amber);
}
.steps strong { color: var(--foam); }

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 16px 0; border-top: 1px solid var(--rule); }

.film { width: min(100%, 380px); margin: 8px auto 0; border-radius: 26px; background: #000;
  box-shadow: 0 0 0 1px var(--rule), 0 30px 80px rgba(0,0,0,.45); }

/* Get */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 16px; }
@media (max-width: 560px) { .stores { grid-template-columns: 1fr; } }
.store { display: block; text-decoration: none; background: var(--foam); color: var(--night);
  border-radius: 16px; padding: 18px 20px; }
.store:hover { background: #fff; }
.store-os { display: block; font-family: var(--display); font-weight: 850; font-stretch: 80%; font-size: 30px; line-height: 1.05; }
.store-do { display: block; font-weight: 600; font-size: 16px; margin-top: 4px; color: #33465f; }

/* FAQ */
details { border-top: 1px solid var(--rule); padding: 4px 0; }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--amber); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: #c9d6e6; }

/* Footer */
.foot { padding-block: 36px 48px; padding-inline: var(--gutter); color: var(--mist); font-size: 15px; }
.foot p { margin: 0 0 8px; }

/* Competitions in the hero: a floating leaderboard over the phones */
.h1-amber { color: var(--amber); }
.board { position: absolute; z-index: 4; left: -4%; bottom: 6%; width: min(300px, 62%);
  background: rgba(14, 28, 50, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,176,40,.55); border-radius: 18px; padding: 14px 14px 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); font-size: 14px; }
.board-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.board-cup { font-size: 26px; line-height: 1; }
.board-head strong { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 17px; }
.board-head span { color: var(--mist); font-size: 12.5px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center;
  padding: 7px 8px; border-radius: 10px; }
.board li + li { margin-top: 3px; }
.board li b { font-family: var(--display); font-weight: 850; color: var(--amber); }
.board .who { font-weight: 700; }
.board .what { color: var(--mist); font-size: 12.5px; }
.board .wt { font-variant-numeric: tabular-nums; font-weight: 700; }
.board li.me { background: rgba(59,130,246,.18); box-shadow: inset 0 0 0 1px rgba(111,177,255,.35); }
.board-foot { display: flex; align-items: center; gap: 7px; color: var(--mist); font-size: 12px; margin-top: 8px; padding-left: 4px; }
.board .live { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
@media (prefers-reduced-motion: no-preference) {
  .board { animation: board-in .7s .45s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes board-in { from { transform: translateY(24px) scale(.96); opacity: 0; } }
}
@media (max-width: 860px) { .board { left: 0; bottom: 4%; width: 64%; font-size: 13px; } }

/* Two ways to compete */
.compete { background: linear-gradient(180deg, var(--night), #101f37); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }
.way { background: var(--deep); border: 1px solid var(--rule); border-radius: 20px; padding: 26px 24px 24px; }
.way-club { border-color: rgba(245,176,40,.4); }
.way-icon { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.way h3 { font-family: var(--display); font-stretch: 82%; font-weight: 850; font-size: 28px; margin: 0 0 10px; }
.way p { color: #c9d6e6; margin: 0 0 14px; }
.way ul { list-style: none; padding: 0; margin: 0; }
.way li { padding: 8px 0 8px 26px; border-top: 1px solid var(--rule); position: relative; }
.way li::before { content: "✓"; position: absolute; left: 2px; color: var(--amber); font-weight: 800; }

/* Coverage map and tackle shops */
.coverage { background: radial-gradient(80% 70% at 80% 40%, #12284a 0%, var(--night) 70%); }
.uk-map { margin: 0; }
.uk-map img { width: min(100%, 460px); margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; color: var(--mist); font-size: 15px; margin: 6px 0 26px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dot-tide { background: #8fd3ff; box-shadow: 0 0 0 2px #0a1628; }
.dot-shop { background: #f5b028; }
.sub-h { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 24px; margin: 8px 0 8px; }
@media (max-width: 860px) { .uk-map img { width: min(100%, 340px); } }
