@font-face {
  font-family: "Fira Sans";
  src: url("fonts/FiraSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/FiraSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/NotoSerifDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest-950: #0b140f;
  --forest-900: #101c15;
  --forest-800: #17271d;
  --forest-700: #213729;
  --forest-600: #2e4a37;
  --moss: #6f8f5a;
  --moss-light: #a9c48f;
  --paper: #f7f3ea;
  --paper-deep: #efe8d9;
  --card: #fffdf8;
  --ink: #18201b;
  --ink-soft: #3d463f;
  --muted: #677063;
  --line: #ddd5c4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --blaze: #e8641e;
  --blaze-dark: #c94f10;
  --blaze-darker: #a8420d;
  --fit: #277a42;
  --fit-bg: #e3f1e5;
  --fit-on-dark: #8fd3a0;
  --nofit: #b8432f;
  --nofit-bg: #f7e3dd;
  --nofit-on-dark: #f0a08f;
  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --topbar-height: 70px;
}

*,
*::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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "lnum";
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sprite {
  position: absolute;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--blaze);
  outline-offset: 3px;
}

/* ---------- Header + hero ---------- */

.hero {
  position: relative;
  background: var(--forest-900);
  color: #eef0e8;
  overflow: hidden;
  isolation: isolate;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.topbar-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  white-space: nowrap;
}
.topbar-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  gap: 40px;
  padding-top: 28px;
  padding-bottom: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 9.5vw, 72px);
  color: #fbfaf4;
}

.hero-lead {
  margin-top: 22px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: #c9d1c3;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 14px;
  font: 600 17px/1.2 var(--sans);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
/* White on --blaze-dark reaches 4.5 : 1, which the 17px label needs; white on --blaze does not. */
.btn-primary {
  background: var(--blaze-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blaze-darker);
}
.btn-ghost {
  color: #eef0e8;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Hero photo with the app screen over it ---------- */

/* On phones the photo runs edge to edge below the copy, so the heading and the button come first. */
.hero-media {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* The Kanzel's cabin fills the upper half and its left side, clear of the phone that overlaps the lower half. */
  object-position: 50% 0%;
}

/* The hero is dark, so the note takes the hero's light secondary text colour. */
.mock-note {
  margin: 10px var(--gutter) 0;
  text-align: center;
  font-size: 13px;
  color: #b7c0b1;
}

/* A current Android phone, measured like Squeezio's phone frame: a 1080 × 2340 screen, a bezel of 8/338 and a
   corner radius of 40/378 of the frame's width, and a punch-hole camera at the top centre. */
.phone {
  --phone-width: min(300px, calc(100vw - 2 * var(--gutter)));
  position: relative;
  width: var(--phone-width);
  margin: -200px auto 0;
  border-radius: calc(var(--phone-width) * 40 / 378);
  padding: calc(var(--phone-width) * 8 / 338);
  background: #111512;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}
.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--phone-width) * 17 / 378);
  left: 50%;
  z-index: 1;
  width: calc(var(--phone-width) * 16 / 378);
  height: calc(var(--phone-width) * 16 / 378);
  border-radius: 50%;
  background: #05070a;
  transform: translateX(-50%);
}

.screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1080 / 2340;
  border-radius: calc(var(--phone-width) * 40 / 378 - var(--phone-width) * 8 / 338);
  background: var(--card);
  color: var(--ink);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
}
/* The gesture bar of an Android phone. */
.screen::after {
  content: "";
  flex: none;
  width: 34%;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 2px;
  background: rgba(24, 32, 27, 0.3);
}

.screen-status {
  display: flex;
  justify-content: space-between;
  padding: 5px 22px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.screen-head {
  padding: 8px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.screen-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.screen-head strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin-top: 2px;
}

.offline-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}
.offline-chip svg {
  width: 12px;
  height: 12px;
}

.screen-compass {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}
.screen-compass svg {
  width: 104px;
  height: 104px;
}
.verdict {
  font-size: 12px;
  color: var(--muted);
}
.verdict b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--fit);
  margin-bottom: 2px;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0 10px 10px;
}
.hours li {
  display: grid;
  grid-template-columns: 46px 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
}
.hours li + li {
  margin-top: 2px;
}
.hours .t {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hours .w {
  color: var(--muted);
}
.hours .ok {
  background: var(--fit-bg);
}
.hours .no {
  background: var(--nofit-bg);
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.ok .tag {
  color: var(--fit);
  background: #fff;
}
.no .tag {
  color: var(--nofit);
  background: #fff;
}

.arr {
  width: 18px;
  height: 18px;
  transform: rotate(var(--r, 0deg));
  color: var(--ink-soft);
}
/* The arrow points where the wind blows to, so SW wind turns it 45deg. */
.rot-45 {
  --r: 45deg;
}
.rot-90 {
  --r: 90deg;
}
.rot-135 {
  --r: 135deg;
}
.rot-180 {
  --r: 180deg;
}
.rot-225 {
  --r: 225deg;
}
.rot-270 {
  --r: 270deg;
}
.compass-arrow {
  color: var(--blaze);
}

.screen-foot {
  margin: auto 10px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--forest-800);
  color: #e6ebe0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.screen-foot span:last-child {
  color: var(--fit-on-dark);
  font-weight: 600;
}

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

section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.section-head h2 {
  font-size: clamp(32px, 6vw, 50px);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* ---------- Wind demo ---------- */

.demo {
  display: grid;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 40px);
}

.demo fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.demo legend {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 18px;
  padding: 0;
}

.rose {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.rose input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rose label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rose label small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.rose label:hover {
  border-color: var(--moss);
}
.rose input:checked + label {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: #fff;
}
.rose input:checked + label small {
  color: var(--moss-light);
}
.rose input:focus-visible + label {
  outline: 3px solid var(--blaze);
  outline-offset: 2px;
}
.rose-center {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--paper-deep) 0 62%, transparent 63%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.rose-center svg {
  width: 50%;
  height: auto;
  aspect-ratio: 1;
  color: var(--blaze);
  transform: rotate(var(--r, 45deg));
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@media (prefers-reduced-motion: reduce) {
  .rose-center svg {
    transition: none;
  }
}

.demo-result h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.demo-result h3 b {
  font-weight: 600;
  color: var(--blaze-darker);
}

/* The wind demo runs on CSS alone, since the Worker's CSP allows no script. Where :has() works, the checked direction
   picks the summary, the stand states and the arrow; without it the page shows the south-west case it loads with. */
.sum {
  display: none;
}
@supports not selector(:has(*)) {
  .sum-SW {
    display: inline;
  }
  /* The result cannot follow a picked direction here, so the picker is not offered. */
  .demo fieldset {
    display: none;
  }
  .demo-result {
    grid-column: 1 / -1;
  }
}
.demo:has(#w-SW:checked) .sum-SW,
.demo:has(#w-N:checked) .sum-N,
.demo:has(#w-NO:checked) .sum-NO,
.demo:has(#w-O:checked) .sum-O,
.demo:has(#w-SO:checked) .sum-SO,
.demo:has(#w-S:checked) .sum-S,
.demo:has(#w-W:checked) .sum-W,
.demo:has(#w-NW:checked) .sum-NW {
  display: inline;
}
.demo:has(#w-N:checked) .rose-arrow {
  --r: 180deg;
}
.demo:has(#w-NO:checked) .rose-arrow {
  --r: 225deg;
}
.demo:has(#w-O:checked) .rose-arrow {
  --r: 270deg;
}
.demo:has(#w-SO:checked) .rose-arrow {
  --r: 315deg;
}
.demo:has(#w-S:checked) .rose-arrow {
  --r: 0deg;
}
.demo:has(#w-W:checked) .rose-arrow {
  --r: 90deg;
}
.demo:has(#w-NW:checked) .rose-arrow {
  --r: 135deg;
}

.stands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.stand {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.stand strong {
  display: block;
  font-weight: 600;
}
/* --muted would fall under 4.5 : 1 on the tinted fit and no-fit grounds. */
.stand small {
  color: var(--ink-soft);
  font-size: 14px;
}
.stand .tag {
  font-size: 13px;
  padding: 5px 12px;
}
.stand {
  background: var(--nofit-bg);
  border-color: #ebc6bc;
}
.stand .tag-no {
  background: #fff;
  color: var(--nofit);
}
.stand .tag-ok {
  display: none;
  background: var(--fit);
  color: #fff;
}
/* A stand fits when the checked direction is one of the words in its data-good list. Without :has() the markup's
   south-west state stays, marked by .fits. */
@supports not selector(:has(*)) {
  .stand.fits {
    background: var(--fit-bg);
    border-color: #bfdcc6;
  }
  .stand.fits .tag-ok {
    display: inline;
  }
  .stand.fits .tag-no {
    display: none;
  }
}
.demo:has(#w-SW:checked) .stand[data-good~="SW"],
.demo:has(#w-N:checked) .stand[data-good~="N"],
.demo:has(#w-NO:checked) .stand[data-good~="NO"],
.demo:has(#w-O:checked) .stand[data-good~="O"],
.demo:has(#w-SO:checked) .stand[data-good~="SO"],
.demo:has(#w-S:checked) .stand[data-good~="S"],
.demo:has(#w-W:checked) .stand[data-good~="W"],
.demo:has(#w-NW:checked) .stand[data-good~="NW"] {
  background: var(--fit-bg);
  border-color: #bfdcc6;
}
.demo:has(#w-SW:checked) .stand[data-good~="SW"] .tag-ok,
.demo:has(#w-N:checked) .stand[data-good~="N"] .tag-ok,
.demo:has(#w-NO:checked) .stand[data-good~="NO"] .tag-ok,
.demo:has(#w-O:checked) .stand[data-good~="O"] .tag-ok,
.demo:has(#w-SO:checked) .stand[data-good~="SO"] .tag-ok,
.demo:has(#w-S:checked) .stand[data-good~="S"] .tag-ok,
.demo:has(#w-W:checked) .stand[data-good~="W"] .tag-ok,
.demo:has(#w-NW:checked) .stand[data-good~="NW"] .tag-ok {
  display: inline;
}
.demo:has(#w-SW:checked) .stand[data-good~="SW"] .tag-no,
.demo:has(#w-N:checked) .stand[data-good~="N"] .tag-no,
.demo:has(#w-NO:checked) .stand[data-good~="NO"] .tag-no,
.demo:has(#w-O:checked) .stand[data-good~="O"] .tag-no,
.demo:has(#w-SO:checked) .stand[data-good~="SO"] .tag-no,
.demo:has(#w-S:checked) .stand[data-good~="S"] .tag-no,
.demo:has(#w-W:checked) .stand[data-good~="W"] .tag-no,
.demo:has(#w-NW:checked) .stand[data-good~="NW"] .tag-no {
  display: none;
}.demo-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Features ---------- */

.features {
  background: var(--paper-deep);
}

.feature-grid {
  display: grid;
  gap: 40px 36px;
}

.feature {
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature h3 {
  font-size: 26px;
}
.feature p {
  color: var(--ink-soft);
}
.feature-visual {
  margin-top: auto;
  padding-top: 8px;
}

.mini-offline {
  border-radius: 12px;
  background: var(--forest-800);
  color: #dfe6d8;
  padding: 14px 16px;
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.mini-offline .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.mini-offline .row span:last-child {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mini-offline .signal {
  color: #ffb98f;
}

.mini-noaccount {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-noaccount span {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.mini-noaccount .strike {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
}

.mini-wind {
  display: flex;
  gap: 6px;
}
.mini-wind div {
  flex: 1;
  text-align: center;
  padding: 8px 0 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mini-wind .arr {
  margin: 4px auto 0;
  width: 16px;
  height: 16px;
}
.mini-wind .ok {
  background: var(--fit-bg);
  color: var(--fit);
}
.mini-wind .no {
  background: var(--nofit-bg);
  color: var(--nofit);
}

/* ---------- Seasons ---------- */

.seasons-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 40px);
}

.seasons-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 22px;
}
.seasons-top strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
}
.seasons-top span {
  font-size: 14px;
  color: var(--muted);
}

.timeline {
  --label: 118px;
  position: relative;
}
.months,
.season-row {
  display: grid;
  grid-template-columns: var(--label) 1fr 58px;
  gap: 12px;
  align-items: center;
}
.months {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.months ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  text-align: center;
}
.season-row {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.season-row .name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}
.season-row .name small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.track {
  position: relative;
  height: 14px;
  border-radius: 99px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(24, 32, 27, 0.08) calc(100% / 12 - 1px) calc(100% / 12)),
    var(--paper-deep);
}
.track i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: var(--len);
  background: var(--moss);
  border-radius: 99px;
}
/* Each month is 1/12 of the track; a season that runs past December gets a second bar for January. */
.track .from-apr-to-dec {
  --from: 25%;
  --len: 75%;
}
.track .from-aug-to-dec {
  --from: 58.33%;
  --len: 41.67%;
}
.track .from-sep-to-dec {
  --from: 66.67%;
  --len: 33.33%;
}
.track .jan-only {
  --from: 0%;
  --len: 8.33%;
}
.track .oct-only {
  --from: 75%;
  --len: 8.33%;
}
.track .all-year {
  --from: 0%;
  --len: 100%;
}
.track .today {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 91.67%;
  width: 2px;
  background: var(--blaze);
  border-radius: 2px;
}
.season-row .state {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.state.open {
  color: var(--fit);
}
.state.closed {
  color: var(--nofit);
}

.source {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px dashed #cbbfa6;
  font-size: 14px;
  color: var(--ink-soft);
}
.source b {
  color: var(--ink);
}
.source .limits {
  margin-top: 8px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 18px;
  height: 8px;
  border-radius: 99px;
  background: var(--moss);
}
.legend .t {
  width: 2px;
  height: 14px;
  background: var(--blaze);
}

/* ---------- Signup ---------- */

.signup {
  background: var(--forest-900);
  color: #eef0e8;
  overflow: clip;
}
.signup-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.signup-copy h2 {
  font-size: clamp(34px, 6vw, 52px);
  color: #fbfaf4;
}
.signup-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 30em;
}
.signup-points li {
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
  color: #dfe5d8;
}
.signup-points li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.form-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
}

.price-head {
  padding: 24px 24px 22px;
  background: var(--paper-deep);
  border-bottom: 1px dashed #cbbfa6;
  position: relative;
}
.price-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.price-line .amount {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}
.price-line .per {
  font-size: 16px;
  color: var(--ink-soft);
}
.price-alt {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.form-body {
  padding: 24px;
  display: grid;
  gap: 22px;
}

.field fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.field legend,
.field > label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  padding: 0;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.segmented label:hover {
  border-color: var(--moss);
}
.segmented input:checked + label {
  border-color: var(--forest-700);
  background: var(--forest-800);
  color: #fff;
}
.segmented input:focus-visible + label {
  outline: 3px solid var(--blaze);
  outline-offset: 2px;
}

.text-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: 400 17px/1.3 var(--sans);
  color: var(--ink);
}
.text-input:focus {
  outline: none;
  border-color: var(--forest-700);
  box-shadow: 0 0 0 4px rgba(111, 143, 90, 0.25);
}

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--forest-700);
}
.consent a {
  color: var(--forest-700);
  font-weight: 600;
}

.terms {
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 16px;
}
.terms > p {
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.terms > p + p {
  border-top: 1px solid var(--line);
}
.terms b {
  color: var(--ink);
}
.terms .nobuy b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  display: block;
  margin-bottom: 1px;
}
.terms a {
  color: var(--forest-700);
  font-weight: 600;
}

.submit {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}
.form-hint {
  margin-top: -10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.faq-list {
  display: grid;
  max-width: 820px;
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-list details p {
  padding: 0 0 20px;
  color: var(--ink-soft);
}
.faq-list details a {
  color: var(--forest-700);
  font-weight: 600;
}

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

.site-footer {
  background: var(--forest-950);
  color: #aab4a4;
  padding: 40px 0 48px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 32px;
}
.footer-inner .brand {
  color: #e9ede3;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: #e9ede3;
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-note {
  width: 100%;
  font-size: 13px;
  color: #7f8a79;
}

/* ---------- Text pages (thank-you, legal, and the pages the Worker renders) ---------- */

/* A short text page still ends with its footer at the bottom of the screen. */
body:has(> main.narrow) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main.narrow {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) var(--gutter) 64px;
}
/* „Datenschutzerklärung“ is wider than a 360 px screen at the base size, so the title may hyphenate. */
.narrow h1 {
  margin: 10px 0 24px;
  font-size: clamp(30px, 7vw, 46px);
  hyphens: auto;
  overflow-wrap: break-word;
}
.narrow h2 {
  margin: 36px 0 10px;
  font-size: 24px;
}
.narrow p,
.narrow ul {
  margin: 0 0 14px;
}
.narrow a {
  color: var(--forest-700);
  font-weight: 600;
}
.kicker {
  font-size: 14px;
  color: var(--muted);
}
.narrow .kicker a {
  color: inherit;
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 8px 0 14px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--blaze-dark);
  color: #fff;
  font: 600 17px/1.2 var(--sans);
  cursor: pointer;
}
.button:hover {
  background: var(--blaze-darker);
}
main.narrow + .site-footer {
  padding: 28px var(--gutter) 36px;
  text-align: center;
}
main.narrow + .site-footer a {
  color: #e9ede3;
  font-weight: 600;
}

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    --label: 150px;
  }
  .price-head,
  .form-body {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 960px) {
  body {
    font-size: 18px;
  }
  /* The top bar keeps a fixed height on the dark ground, so the photo can start right below it and the bar's link
     lines up with the brand instead of lying on the photo. */
  .topbar {
    height: var(--topbar-height);
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding-top: 40px;
    padding-bottom: 72px;
    /* Tall enough for the whole phone, its 76px foot room below and some air above. */
    min-height: 740px;
  }
  /* The photo fills the hero's right half from below the top bar to the hero's foot, and the phone sits inside it. */
  .hero-media {
    position: static;
    margin: 0;
  }
  .hero-photo {
    position: absolute;
    top: var(--topbar-height);
    right: 0;
    bottom: 0;
    width: 50%;
    height: calc(100% - var(--topbar-height));
    aspect-ratio: auto;
    z-index: -1;
    /* The cabin sits at the photo's left edge, away from the phone in the lower right. */
    object-position: 0% 0%;
  }
  .phone {
    --phone-width: 300px;
    position: absolute;
    right: 48px;
    /* Leaves room below the phone for the two-line note. */
    bottom: 76px;
    margin: 0;
  }
  /* On the photo the note needs its own dark ground to stay legible over bright leaves. */
  .mock-note {
    position: absolute;
    right: 48px;
    bottom: 18px;
    width: 300px;
    margin: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(17, 21, 18, 0.72);
    color: #fff;
  }
  .demo {
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: center;
  }
  .rose {
    max-width: none;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* A wider card keeps the fine print to fewer lines, so the button sits nearer the price and the questions. */
  .signup-grid {
    grid-template-columns: 1fr 560px;
    gap: 72px;
  }
  /* The short copy sits level with the middle of the tall card, so no empty column runs beside its lower part. */
  .signup-copy {
    align-self: center;
  }
}

@media (max-width: 599px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .months {
    display: block;
  }
  .months > span {
    display: none;
  }
  .season-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }
  .season-row .track {
    grid-column: 1 / -1;
    order: 3;
  }
  .season-row .name small {
    display: inline;
    margin-left: 6px;
  }
}

@media (max-width: 380px) {
  .hours li {
    grid-template-columns: 42px 20px 1fr auto;
    gap: 6px;
  }
}

/* The radios sit hidden behind their labels, and forced colors replace every colour that marks the chosen label, so
   the choice gets a system-colour border instead. The season bars and the today line carry the dates only as
   background colour, which forced colors would blank, so they keep system colours. Forced colors also drop the
   box-shadow that marks the focused e-mail field and the background that is the buttons' only frame. */
@media (forced-colors: active) {
  .segmented input:checked + label,
  .rose input:checked + label {
    border: 3px solid Highlight;
  }
  .track,
  .legend i,
  .legend .t {
    forced-color-adjust: none;
  }
  .track {
    background: Canvas;
    outline: 1px solid CanvasText;
  }
  .track i,
  .legend i {
    background: CanvasText;
  }
  .track .today,
  .legend .t {
    background: Highlight;
  }
  .text-input:focus {
    outline: 3px solid Highlight;
  }
  .btn,
  .button {
    border: 2px solid ButtonText;
  }
}
