/* Beisszeit – colours from the app: lake teal, float-tip orange, water and night. */
:root {
  --bg: #f2f7f6;
  --bg-raised: #ffffff;
  --bg-soft: #e2eceb;
  --ink: #0e1d1f;
  --muted: #3d4c4e;
  --line: #bfcccc;
  --teal: #006a71;
  --teal-deep: #00575d;
  --on-teal: #f2f7f6;
  --orange: #c4501c;
  --orange-fill: #ff8e5a;
  --on-orange: #2b0e00;
  --bar: #80d4dc;
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1517; --bg-raised: #162325; --bg-soft: #1f2e30; --ink: #e3ecec; --muted: #a9bcbd;
    --line: #2a393b; --teal: #80d4dc; --teal-deep: #103a3f; --on-teal: #e3ecec; --orange: #ffb596;
    --orange-fill: #ff8e5a; --on-orange: #2b0e00; --bar: #284346; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1517; --bg-raised: #162325; --bg-soft: #1f2e30; --ink: #e3ecec; --muted: #a9bcbd;
  --line: #2a393b; --teal: #80d4dc; --teal-deep: #103a3f; --on-teal: #e3ecec; --orange: #ffb596;
  --orange-fill: #ff8e5a; --on-orange: #2b0e00; --bar: #284346; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange);
}

/* Header */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 550; }
.top nav a:hover { color: var(--teal); }

/* Hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 22px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 650; text-decoration: none; border: 1.5px solid var(--teal); color: var(--teal);
}
.button.solid { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--on-teal); }
.soon { font-size: 0.95rem; color: var(--muted); }
.promise { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 0.95rem; color: var(--muted); }
.promise span::before { content: "✓ "; color: var(--teal); font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 100%); border-radius: 34px; overflow: hidden; background: #0b1517;
  border: 8px solid #0b1517; box-shadow: 0 30px 60px -30px rgba(0, 54, 58, 0.55);
}
.phone img { width: 100%; }

/* The index card: the app's own unit, 0 to 100, hour by hour. */
.index-card {
  position: absolute; left: -8%; bottom: 8%; width: 230px; background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px;
  box-shadow: 0 18px 40px -24px rgba(0, 54, 58, 0.5);
}
.index-card .row { display: flex; justify-content: space-between; align-items: baseline; }
.index-card .species { font-weight: 700; }
.index-card .value { font-size: 1.9rem; font-weight: 780; color: var(--orange); font-variant-numeric: tabular-nums; }
.index-card .best { font-size: 0.85rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: 8px; }
.bars i { flex: 1; background: var(--bar); border-radius: 3px 3px 1px 1px; }
.bars i.top { background: var(--orange-fill); }
.hours { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

/* Sections */
section { padding-block: 72px; }
.band { background: var(--bg-soft); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 70ch; }

.replaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.replaces div { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.replaces s { color: var(--muted); font-size: 0.9rem; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.replaces p { font-size: 0.97rem; }
.replaces .later { border-style: dashed; }
.replaces .later s { text-decoration: none; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-text { order: 2; }
.feature-text { display: grid; gap: 14px; }
.feature-text ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.feature-text li::marker { color: var(--orange); }
.shots { display: flex; gap: 16px; justify-content: center; }
.shots img {
  width: min(240px, 48%); border-radius: 22px; border: 6px solid #0b1517;
  box-shadow: 0 24px 50px -32px rgba(0, 54, 58, 0.6);
}
.shots img:nth-child(2) { margin-top: 48px; }
.credit { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Bite alarm, drawn like an Android notification. */
.notification {
  width: min(380px, 100%); margin: 0 auto; background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 24px; padding: 16px 18px; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px;
  box-shadow: 0 24px 50px -32px rgba(0, 54, 58, 0.6);
}
.notification img { grid-row: span 3; width: 40px; height: 40px; }
.notification small { color: var(--muted); }
.notification strong { font-weight: 700; }

.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sources div { border-top: 3px solid var(--teal); padding-top: 12px; display: grid; gap: 4px; }
.sources p { color: var(--muted); font-size: 0.95rem; }

.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.partner { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.partner ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.partner li::marker { color: var(--orange); }

.privacy { background: var(--teal-deep); color: var(--on-teal); border-radius: 28px; padding: 40px; display: grid; gap: 24px; }
.privacy h2 { color: var(--on-teal); }
.privacy .points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.privacy .points p { opacity: 0.92; }
.privacy a { color: var(--on-teal); }

/* Footer */
footer { padding-block: 48px 40px; border-top: 1px solid var(--line); margin-top: 24px; font-size: 0.92rem; color: var(--muted); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.mail { font-weight: 650; color: var(--ink); }

/* Legal pages and the club application page */
.page { padding-block: 24px 72px; }
.page .prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page .prose h2 { font-size: 1.35rem; margin-top: 1.2rem; }
.page .prose h3 { font-size: 1.05rem; margin-top: 0.4rem; }
.page .prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.fill { background: var(--orange-fill); color: var(--on-orange); padding: 0 6px; border-radius: 4px; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }

@media (max-width: 860px) {
  .hero .wrap, .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .index-card { left: 0; bottom: -18px; }
  section { padding-block: 56px; }
  .privacy { padding: 28px 22px; }
}

button.button { font: inherit; cursor: pointer; background: none; }
button.button.solid { background: var(--teal-deep); }

/* Club application form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 8px; }
.form .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 650; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg-raised); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 10px 14px; width: 100%;
}
.field textarea { resize: vertical; grid-column: 1 / -1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: 0.92rem; color: var(--muted); }
.status { font-weight: 650; color: var(--teal); }
.status:empty { display: none; }
.status.error { color: var(--orange); }
button.button:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Per-water index: one general curve versus what each water has taught the index. */
.learns { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem;
  letter-spacing: 0.06em; background: var(--orange-fill); color: var(--on-orange); vertical-align: 1px;
}
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr); gap: 20px; align-items: center; }
.learned { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.curve-card {
  margin: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px 14px; display: grid; gap: 6px; box-shadow: 0 18px 40px -28px rgba(0, 54, 58, 0.45);
}
.curve-card figcaption { display: grid; gap: 2px; }
.curve-card figcaption span { font-size: 0.85rem; color: var(--muted); }
.curve-card .bars { height: 70px; gap: 2px; }
.curve-card.general { border-style: dashed; }
.curve-card.general .bars i { background: var(--line); }
.curve-card.general .bars i.top { background: var(--muted); }
.verdict { font-weight: 700; font-size: 0.95rem; color: var(--orange); }
.curve-card.general .verdict { color: var(--muted); }
.arrow { color: var(--teal); font-weight: 650; font-size: 0.9rem; text-align: center; max-width: 9ch; line-height: 1.3; }
.arrow::after { content: "→"; display: block; font-size: 1.8rem; line-height: 1; }
.how {
  margin: 40px 0 0; padding: 0; list-style: none; counter-reset: how;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.how li { counter-increment: how; display: grid; gap: 4px; border-top: 3px solid var(--teal); padding-top: 12px; color: var(--muted); font-size: 0.97rem; }
.how li::before { content: counter(how); font-weight: 780; font-size: 1.4rem; color: var(--orange); line-height: 1; }
.how strong { color: var(--ink); }
@media (max-width: 860px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .arrow { max-width: none; }
  .arrow::after { content: "↓"; }
}
@media (max-width: 520px) { .learned { grid-template-columns: minmax(0, 1fr); } }
