/* Station Manager home page: the apps' palette and type, light by default and dark with the system.
   ------------------------------------------------------------------ */

:root {
  /* The apps' palette (see static/app/app.css), light then dark. The dark bands keep the brand's deep water in both. */
  --band: #0e3b43;
  --on-band: #f3f5f1;
  --paper: #f3f5f1;
  --surface: #ffffff;
  --line: #e1e6e2;
  --outline: #c3ccc7;
  --ink: #14262a;
  --ink-soft: #5d6e71;
  --rule: #c3ccc7;
  --accent: #12706b;
  --teal: #12706b;
  --on-teal: #ffffff;
  --teal-soft: #d6ece8;
  --paper-dim: #e3ece9;
  --orange: #ee6a1c;
  --error: #c62828;
  --status-set: #2e9e5b;
  --status-triggered: #ee6a1c;
  --status-error: #6b5bd6;

  --disp: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 66ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1a1d;
    --surface: #132a2e;
    --line: #21393e;
    --outline: #3a5459;
    --ink: #e7f0ee;
    --ink-soft: #93a9ac;
    --rule: #3a5459;
    --accent: #4fc1b3;
    --teal: #4fc1b3;
    --on-teal: #062521;
    --teal-soft: #16403f;
    --paper-dim: #21393e;
    --orange: #ff8a47;
    --error: #ffb4ab;
    --status-set: #4cc07d;
    --status-triggered: #ff8a47;
    --status-error: #9c8ff0;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--disp);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--on-teal);
  padding: .6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.panel--dark :focus-visible,
.hero :focus-visible { outline-color: var(--accent); }

/* ---- Top bar ------------------------------------------------------ */
/* the apps' top bar: light, with the brand, then the tabs in a pill */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 36px);
  min-height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-weight: 800; white-space: nowrap; }
.brand__name span { font-weight: 300; color: var(--teal); }
.topbar .btn { white-space: nowrap; }

.progress {
  position: sticky;
  top: 49px;
  z-index: 39;
  height: 2px;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--teal);
  transition: width .15s linear;
}

/* ---- Buttons ---------------------------------------------------- */
.btn {
  --bg: var(--teal);
  display: inline-block;
  background: var(--bg);
  color: var(--on-teal);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .8rem 1.3rem;
  border: 1px solid var(--bg);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .5rem .8rem; font-size: .72rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: .9rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent);
}
.btn--ghost:hover { background: var(--rule); }

.chip {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--rule);
  padding: .45rem .7rem;
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }

/* ---- Layout --------------------------------------------------- */
.layout { display: block; }

/* ---- Hero ------------------------------------------------------- */
.hero {
  background: var(--band);
  color: var(--ink);
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 38px, var(--rule) 38px 39px),
    radial-gradient(120% 80% at 80% 0%, rgba(18, 112, 107, 0.18), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero .eyebrow {
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: .12em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
}
.hero h1 {
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(243, 245, 241, 0.86);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1rem;
}
.hero__note {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(243, 245, 241, 0.4);
}

/* ---- Trapline strip (signature) --------------------------------- */
.trapline {
  position: relative;
  padding: 2.6rem 1.4rem 1.8rem;
  border: 1px solid var(--rule);
  background: rgba(26, 35, 24, 0.6);
}
.trapline__label {
  position: absolute;
  top: .7rem;
  left: 1.2rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.ride { display: none; }
.traps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 84px;
}
.traps::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  border-top: 2px dashed var(--rule);
  z-index: 0;
}
.trap {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 2px solid var(--status-set);
  background: var(--band);
  display: grid;
  place-items: center;
  cursor: default;
  transition: border-color .25s ease;
}
.trap::after {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--status-set);
  transition: background .25s ease, transform .25s ease, clip-path .25s ease;
}
.trap[data-state="triggered"] { border-color: var(--status-triggered); }
.trap[data-state="triggered"]::after {
  background: var(--teal);
  transform: rotate(45deg) scale(1.15);
}
.trap[data-state="error"] { border-color: var(--status-error); border-style: dotted; }
.trap[data-state="error"]::after {
  background: var(--error);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.trap.is-checking::after { background: var(--ink); transform: scale(1.5); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(238, 106, 28, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(238, 106, 28, 0); }
}
.trap[data-state="triggered"] { animation: pulse 1.7s ease-out infinite; }

.trap__readout {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 190px;
  background: var(--paper);
  color: #14262a;
  font-family: var(--mono);
  font-size: .64rem;
  line-height: 1.5;
  letter-spacing: .02em;
  padding: .45rem .6rem;
  border: 1px solid var(--rule);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 5;
  text-align: left;
}
.trap:hover .trap__readout,
.trap:focus-within .trap__readout { opacity: 1; }
.trap__readout b { display: block; letter-spacing: .08em; text-transform: uppercase; }

.demo-controls {
  display: flex;
  gap: .6rem;
  margin: 1rem 0 1.4rem;
  flex-wrap: wrap;
}

/* ---- Phone mockups -------------------------------------------- */
.phone {
  width: 260px;
  border: 2px solid var(--rule);
  border-radius: 26px;
  padding: 10px;
  background: #0b0f0a;
}
.phone--live { margin-top: .4rem; }

.phone__screen {
  background: linear-gradient(200deg, #1c2a17, #0d1410 70%);
  border-radius: 18px;
  min-height: 300px;
  padding: 1.1rem .9rem;
  color: #f3f5f1;
  overflow: hidden;
}
.phone__clock {
  text-align: center;
  margin-bottom: 1.1rem;
}
.phone__clock b {
  display: block;
  font-family: var(--disp);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.phone__clock span {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(243, 245, 241, 0.55);
}

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.note {
  background: rgba(243, 245, 241, 0.1);
  border-left: 3px solid var(--rule);
  border-radius: 8px;
  padding: .6rem .7rem;
  backdrop-filter: blur(2px);
}
@keyframes noteIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.note--enter { animation: noteIn .35s ease both; }
.note--triggered { border-left-color: var(--teal); }
.note--error { border-left-color: var(--error); }
.note__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(243, 245, 241, 0.55);
  margin-bottom: .25rem;
}
.note__title { font-weight: 600; margin: 0 0 .15rem; font-size: .92rem; }
.note__body { margin: 0; font-size: .8rem; color: rgba(243, 245, 241, 0.8); }

/* ---- Real app screenshots -------------------------------------- */
.shot {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
}
.shot[hidden] { display: none; }
.shot-swap { position: relative; }
.panel-shot { margin: 0; }
.panel-shot .shot { margin: 0 auto; }
.panel-shot figcaption { max-width: 260px; margin-left: auto; margin-right: auto; }

.theme-toggle {
  display: flex;
  gap: .4rem;
  margin-top: .7rem;
}
.theme-toggle__btn {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: .35rem .6rem;
  cursor: pointer;
}
.theme-toggle__btn.is-active { background: var(--ink); color: var(--ink); border-color: var(--ink); }
.theme-toggle__btn:hover:not(.is-active) { border-color: var(--ink); color: var(--ink); }

/* ---- Panels --------------------------------------------------- */
.panel {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.panel + .panel { border-top: 1px solid var(--rule); }
.panel--dark { background: var(--band); color: var(--ink); }
.panel--dark p { color: rgba(243, 245, 241, 0.82); }

.panel__head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  max-width: 1080px;
  margin: 0 auto 1.8rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink);
}
.panel--dark .panel__head { border-bottom-color: var(--accent); }
.panel__head h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.panel__body { max-width: 1080px; margin: 0 auto; }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

.big-claim {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .82rem;
}
.ledger__k { color: var(--ink-soft); }
.ledger__v { text-align: right; font-weight: 500; }

/* ---- FAQ ---------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.faq__item:first-child { border-top: 1px solid var(--rule); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  flex: none;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: .8rem 0 0; }

/* ---- Steps -------------------------------------------------- */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; gap: 2.5rem; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr 340px;
  gap: 1.5rem;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.step:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) {
  .step { grid-template-columns: 40px 1fr; }
  .step__figure { grid-column: 1 / -1; }
}
.step__no {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--teal);
}
.step__text { padding-top: 1rem; font-size: 1.15rem; line-height: 1.6; }
.step__text h3 { font-size: 1.85rem; margin-bottom: .9rem; }
.step__text p + p { margin-top: .9rem; }
.step__figure { margin: 0; }
.option-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.option-list li {
  font-size: .95rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  padding-left: .7rem;
}
.option-list b { color: var(--ink); }

.linework {
  width: 100%;
  height: auto;
  background: #fbf9f2;
  border: 1px solid var(--rule);
}
.linework path,
.linework rect,
.linework circle,
.linework line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.linework .fill { fill: var(--teal); stroke: var(--teal); }
.linework .cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
  fill: var(--ink-soft);
  stroke: none;
}

.slot {
  margin-top: .7rem;
  font-size: .84rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  padding-left: .7rem;
}
.slot__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-right: .4rem;
}
.slot--built { border-left-color: var(--status-set); }
.slot__tag--built { color: var(--status-set); }
.panel--dark .slot { color: rgba(243, 245, 241, 0.7); }

/* ---- Notifications section --------------------------------- */
.notif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
@media (max-width: 760px) { .notif-grid { grid-template-columns: 1fr; } }
.notif { margin: 0; display: grid; gap: 1.1rem; justify-items: start; }
.notif figcaption h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.notif .shot { width: 240px; }

/* ---- Register --------------------------------------------- */
.register {
  overflow-x: auto;
  border: 1px solid var(--ink);
  margin: 1.6rem 0 .8rem;
}
.register table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: .8rem;
  min-width: 620px;
}
.register th {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 2px solid var(--ink);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--paper-dim);
}
.register td {
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--rule);
}
.register tr:last-child td { border-bottom: 0; }
.register .ok { color: var(--status-set); }
.register .miss { color: var(--error); }
.register td.is-new { animation: rowIn .4s ease both; }
@keyframes rowIn { from { background: rgba(238, 106, 28, 0.14); } to { background: transparent; } }

.fineprint, .price-note, .book__addr, .hero__note {
  font-family: var(--mono);
}
.fineprint {
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- Calculator ----------------------------------------- */
.calc { display: grid; gap: 1rem; align-content: start; }
.calc label {
  display: grid;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.calc input {
  font-family: var(--mono);
  font-size: 1.1rem;
  padding: .6rem .7rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  width: 100%;
}
.calc input[type="range"] {
  padding: 0;
  border: none;
  background: transparent;
  accent-color: var(--teal);
}
.calc output {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}
.seg { display: flex; gap: .5rem; }
.seg__btn {
  flex: 1;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: .5rem .6rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.seg__btn.is-active { background: var(--teal); color: var(--on-teal); border-color: var(--teal); }
.seg__btn:hover:not(.is-active) { border-color: var(--ink); color: var(--ink); }

/* ---- Tabs (case-study switcher) ---------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  max-width: 1080px;
  margin: 0 auto 2rem;
}
.tab {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: .7rem 1.1rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tab.is-active { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.tab:hover:not(.is-active) { border-color: var(--ink); color: var(--ink); }
.tab-panel { max-width: 1080px; margin: 0 auto; }
.tab-panel[hidden] { display: none; }
.calc__out {
  display: grid;
  gap: .1rem;
  margin-top: .6rem;
  border-top: 1px solid var(--rule);
}
.calc__out div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--rule);
}
.calc__out span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.calc__out b { font-family: var(--disp); font-weight: 700; font-size: 1.5rem; }
.calc__ratio b { color: var(--teal); }

/* ---- Tiers ------------------------------------------------ */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}
@media (max-width: 640px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  padding: 1.8rem 1.4rem;
  border-right: 1px solid var(--rule);
}
.tier:last-child { border-right: 0; }
@media (max-width: 640px) {
  .tier { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tier:last-child { border-bottom: 0; }
}
.tier--mid { background: var(--paper-dim); }
.tier__range {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .6rem;
}
.tier__fig {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  margin: 0;
}
.tier__fig span {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .4rem;
}
.tier__sub {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--ink-soft);
  margin: .6rem 0 0;
}
.price-note {
  font-size: .74rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.4rem;
  max-width: 60ch;
}

/* ---- Book / footer -------------------------------------- */
.book {
  background: var(--band);
  color: var(--ink);
  padding: clamp(3rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}
.book h2 { font-size: clamp(2.4rem, 7vw, 4.8rem); margin-bottom: 1.2rem; }
.book p { margin-left: auto; margin-right: auto; }
.book .btn { margin: 1.4rem 0 1rem; }
.book__addr {
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--accent);
}
.book__addr a { color: var(--ink); }

/* ---- Contact form ---------------------------------------- */
.contact-form {
  max-width: 480px;
  margin: 2rem auto 0;
  text-align: left;
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(243, 245, 241, 0.7);
}
.cf-optional { text-transform: none; letter-spacing: normal; opacity: .7; }
.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: .7rem .8rem;
  background: rgba(243, 245, 241, 0.08);
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--ink);
  width: 100%;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.contact-form .btn { justify-self: start; margin: .2rem 0 0; }
.cf-status {
  font-family: var(--mono);
  font-size: .8rem;
  min-height: 1.2em;
  margin: 0;
}
.cf-status--ok { color: var(--status-set); }
.cf-status--error { color: #ffb4ab; }

/* Honeypot: off-screen, not display:none, so it still trips simple bots
   that skip hidden/display:none fields but not visually-hidden ones. */
.cf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Site footer -------------------------------------- */
.siteftr {
  background: var(--band);
  color: rgba(243, 245, 241, 0.7);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  font-size: .9rem;
}
.siteftr__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) { .siteftr__grid { grid-template-columns: 1fr; } }
.siteftr h2 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.siteftr p { max-width: 52ch; }
.siteftr__legal {
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.75;
  letter-spacing: .01em;
  color: rgba(243, 245, 241, 0.45);
  margin-top: 1rem;
}
.siteftr__nav { display: grid; gap: .55rem; align-content: start; }
.siteftr__nav a {
  color: rgba(243, 245, 241, 0.78);
  text-decoration: none;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.siteftr__nav a:hover { color: var(--teal); }
.siteftr__base {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(243, 245, 241, 0.4);
}

/* ---- Legal pages ------------------------------------- */
.legal {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) clamp(4rem, 10vw, 7rem);
}
.legal__inner { max-width: 72ch; margin: 0 auto; }
.legal__inner > p,
.legal__inner li { max-width: none; }
.legal h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: .6rem; }
.legal__meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin: 2.6rem 0 .7rem;
}
.legal h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.6rem 0 .4rem;
}
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin: .45rem 0; }
.legal dl { margin: 1rem 0 1.5rem; }
.legal dt { font-weight: 600; margin-top: 1rem; }
.legal dd { margin: 0 0 .4rem; }
.legal a {
  color: var(--error);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__ph {
  background: rgba(238, 106, 28, 0.14);
  border-bottom: 1px solid var(--teal);
  font-family: var(--mono);
  font-size: .92em;
  padding: 0 .2em;
  white-space: normal;
}
.legal__draft {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--error);
  border: 1px solid var(--error);
  padding: .7rem .85rem;
  margin-bottom: 2rem;
}
.legal__back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Station Manager: app screenshots and feature grid */
.hero__shot { margin: 0; justify-self: center; text-align: center; }
.hero__shot img, .step__figure img, .panel-shot img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero__shot figcaption, .step__figure figcaption { max-width: 280px; margin: .9rem auto 0; font-size: .9rem; }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.feature h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.feature p { margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* Station Manager: reporting section */
.report-points { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.report-points li { padding-left: 1.1rem; position: relative; }
.report-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--teal); }

/* ---- Site navigation: Home, then the app's tabs once signed in ---- */
[hidden] { display: none !important; }
.topbar__nav {
  display: flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
}
.topbar__cta { justify-self: end; border-radius: 999px; }
/* the tabs sit in a pill, as the app's do */
.topbar__pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.topbar__group { display: flex; align-items: center; gap: 2px; }
.topbar__link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}
.topbar__link:hover,
.topbar__link:focus-visible { background: var(--paper); }
.topbar__link[aria-current="page"] { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.topbar__who {
  color: var(--ink);
  opacity: .6;
  font-size: .85rem;
  padding: 0 12px;
  white-space: nowrap;
}
/* signed in, the tabs are wider: at mid widths show the brand mark alone and tighten the tabs so the row stays centred */
@media (max-width: 1000px) and (min-width: 761px) {
  .topbar { gap: 16px; padding: 0 16px; }
  .brand__name { display: none; }
  .topbar__link { padding: 7px 12px; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: auto 1fr; row-gap: .5rem; }
  .topbar__nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .topbar__pill { width: 100%; }
  .topbar__who { display: none; }
}

/* ---- Sign-in form on the home page ---- */
.signin {
  padding: 4rem 0 0;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.signin h2 { margin-bottom: .5rem; }
.signin > p { margin: 0 auto; max-width: 46ch; }
.signin .contact-form { margin-top: 1.5rem; }

/* ---- Dark bands: the header, hero, dark sections, booking and footer sit on the brand's deep water.
   Their text and rules are light, and buttons take the dark-mode teal, which reads on the water. */
.hero, .panel--dark, .book, .siteftr {
  --ink: var(--on-band);
  --ink-soft: rgba(243, 245, 241, 0.78);
  --rule: rgba(243, 245, 241, 0.22);
  --accent: #4fc1b3;
  --teal: #4fc1b3;
  --on-teal: #062521;
  background: var(--band);
  color: var(--on-band);
}
