/* Accommodation.cy pre-launch site
   Every colour is a token. Light values live on bare :root, dark values are
   redefined for the OS preference (unless light is forced) and for an explicit
   data-theme="dark" choice. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks to limit layout shift while web fonts load */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia"), local("Times New Roman"), local("Liberation Serif");
  size-adjust: 104%;
  ascent-override: 94%;
  descent-override: 24%;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 97%;
  ascent-override: 98%;
  descent-override: 25%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #f6f1e8;
  --bg-alt: #efe7d9;
  --surface: #fffdf9;
  --surface-sunk: #f7f2ea;
  --ink: #142630;
  --ink-soft: #3f4f58;
  --ink-muted: #5f6a70;
  --line: #e2d8c8;
  --line-strong: #c9bba5;

  --sea: #1d5b78;
  --sea-ink: #18506a;
  --accent: #9f4b27;
  --accent-hover: #833c1e;
  --on-accent: #fffaf3;
  --accent-soft: #f3e2d4;
  --focus: #2a7fa6;
  --danger: #a3261b;
  --danger-soft: #fbe9e6;
  --success: #2b6a4c;
  --success-soft: #e3f1e9;

  --panel-bg: #10303f;
  --panel-ink: #f4ecdf;
  --panel-ink-soft: #c2d2d6;
  --panel-line: #2b4c5c;
  --panel-accent: #8cc3c4;

  --hero-ink: #fffaf2;
  --hero-ink-soft: #f1e9dc;
  --hero-accent: #f5d6b4;
  --hero-scrim-strong: rgb(8 24 33 / 0.62);
  --hero-scrim-soft: rgb(8 24 33 / 0.08);
  --hero-glass: rgb(255 250 242 / 0.12);
  --hero-glass-line: rgb(255 250 242 / 0.45);

  --header-bg: rgb(246 241 232 / 0.86);
  --header-line: rgb(20 38 48 / 0.08);
  --shadow-color: rgb(30 40 45 / 0.08);
  --shadow-color-strong: rgb(30 40 45 / 0.16);

  --mark-bg: #10303f;
  --mark-arch: #f4ecdf;
  --mark-sea: #8cc3c4;
  --mark-sun: #d9774a;

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(5rem, 11vw, 9.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #0b1a23;
    --bg-alt: #0f222d;
    --surface: #132a37;
    --surface-sunk: #0f2430;
    --ink: #f1eadf;
    --ink-soft: #cfcac0;
    --ink-muted: #a3acaf;
    --line: #22404f;
    --line-strong: #3a5a69;

    --sea: #8cc3c4;
    --sea-ink: #9fd0d1;
    --accent: #e08a5f;
    --accent-hover: #eba07a;
    --on-accent: #1a110b;
    --accent-soft: #3a2a22;
    --focus: #8cc3c4;
    --danger: #ff9d8f;
    --danger-soft: #3b1f1c;
    --success: #8fd4ae;
    --success-soft: #16342a;

    --panel-bg: #0f2a38;
    --panel-ink: #f1eadf;
    --panel-ink-soft: #b9c9cd;
    --panel-line: #2a4a5a;
    --panel-accent: #8cc3c4;

    --header-bg: rgb(11 26 35 / 0.84);
    --header-line: rgb(241 234 223 / 0.08);
    --shadow-color: rgb(0 0 0 / 0.25);
    --shadow-color-strong: rgb(0 0 0 / 0.45);

    --mark-bg: #f1eadf;
    --mark-arch: #10303f;
    --mark-sea: #1d5b78;
    --mark-sun: #d9774a;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b1a23;
  --bg-alt: #0f222d;
  --surface: #132a37;
  --surface-sunk: #0f2430;
  --ink: #f1eadf;
  --ink-soft: #cfcac0;
  --ink-muted: #a3acaf;
  --line: #22404f;
  --line-strong: #3a5a69;

  --sea: #8cc3c4;
  --sea-ink: #9fd0d1;
  --accent: #e08a5f;
  --accent-hover: #eba07a;
  --on-accent: #1a110b;
  --accent-soft: #3a2a22;
  --focus: #8cc3c4;
  --danger: #ff9d8f;
  --danger-soft: #3b1f1c;
  --success: #8fd4ae;
  --success-soft: #16342a;

  --panel-bg: #0f2a38;
  --panel-ink: #f1eadf;
  --panel-ink-soft: #b9c9cd;
  --panel-line: #2a4a5a;
  --panel-accent: #8cc3c4;

  --header-bg: rgb(11 26 35 / 0.84);
  --header-line: rgb(241 234 223 / 0.08);
  --shadow-color: rgb(0 0 0 / 0.25);
  --shadow-color-strong: rgb(0 0 0 / 0.45);

  --mark-bg: #f1eadf;
  --mark-arch: #10303f;
  --mark-sea: #1d5b78;
  --mark-sun: #d9774a;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h3, h4 { letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
em { font-style: italic; }

a { color: var(--sea-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px var(--shadow-color-strong);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.section { padding-block: var(--section-space); }

.section-title {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.05;
}
.section-title em { color: var(--sea-ink); }

.lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--on-accent);
  --btn-line: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:hover {
  --btn-bg: var(--accent-hover);
  color: var(--btn-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px var(--shadow-color-strong);
}
.btn:active { transform: translateY(0); }
.btn-small { white-space: nowrap; min-height: 2.6rem; padding: 0.55rem 1.15rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-ghost {
  --btn-bg: var(--hero-glass);
  --btn-ink: var(--hero-ink);
  --btn-line: var(--hero-glass-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  --btn-bg: var(--hero-ink);
  --btn-ink: var(--panel-bg);
  --btn-line: var(--hero-ink);
}

.btn .spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.8s linear infinite;
  animation-play-state: paused;
}
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .spinner { opacity: 1; animation-play-state: running; }
.btn:disabled { cursor: not-allowed; }
.btn:disabled:not(.is-loading) { opacity: 0.6; }

@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}
.text-link span { transition: transform 0.25s var(--ease-out); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-mark-bg { fill: var(--mark-bg); }
.brand-mark-arch { fill: none; stroke: var(--mark-arch); stroke-width: 4.5; stroke-linecap: round; }
.brand-mark-sun { fill: var(--mark-sun); }
.brand-mark-sea { fill: none; stroke: var(--mark-sea); stroke-width: 2.6; stroke-linecap: round; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-tld { color: var(--accent); font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--hero-ink);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
}
.site-header .brand-tld { color: var(--hero-accent); }
.site-header.is-solid {
  background: var(--header-bg);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--header-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-solid .brand-tld { color: var(--accent); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2rem; list-style: none; }
.site-nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .btn-header { margin-left: auto; }
  .header-inner { min-height: 4rem; }
  .brand-word { font-size: 1.2rem; }
  .brand-mark { width: 2rem; height: 2rem; }
}
@media (max-width: 420px) {
  .header-inner { gap: 0.75rem; }
  .btn-header { min-height: 2.4rem; padding-inline: 0.85rem; font-size: 0.8125rem; }
  .brand-word { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(40rem, min(100svh, 62rem));
  padding-block: 8rem clamp(4.5rem, 9vw, 7rem);
  color: var(--hero-ink);
  background: var(--panel-bg);
  overflow: hidden;
}
.hero-media,
.hero-media img,
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: 40% 70%;
  transform-origin: 60% 70%;
}
.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(180deg, var(--hero-scrim-strong) 0%, var(--hero-scrim-soft) 30%, var(--hero-scrim-soft) 45%, var(--hero-scrim-strong) 100%),
    linear-gradient(90deg, var(--hero-scrim-strong) 0%, var(--hero-scrim-soft) 70%);
}
.hero-inner { position: relative; }
.eyebrow-hero { color: var(--hero-ink); }
.eyebrow-hero::before { display: none; }
.pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hero-accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(3.1rem, 8.4vw, 7.25rem);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--hero-ink);
}
.hero-title .line { display: block; }
.hero-title em { color: var(--hero-accent); font-weight: 300; }

.hero-lead {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--hero-ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--hero-ink-soft);
}
.hero-place {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--hero-ink-soft);
}
.hero-place svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

@media (max-width: 600px) {
  .hero { padding-bottom: 4.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-place { left: var(--gutter); right: auto; }
}

/* Entrance motion: only when the user has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle 2.6s var(--ease-out) both; }
  .hero-inner > * { animation: rise-in-place 0.9s var(--ease-out) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.08s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.2s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.3s; }
  .hero-inner > :nth-child(5) { animation-delay: 0.4s; }

  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after { animation: none; }
}
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
@keyframes rise-in-place {
  from { transform: translateY(22px); }
  to { transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Intro ---------- */
.intro { padding-bottom: calc(var(--section-space) * 0.8); }
.statement {
  max-width: 58rem;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 350;
  line-height: 1.18;
}
.statement em { color: var(--accent); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.pillar-index {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--accent);
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 0.65rem; }
.pillar p { color: var(--ink-soft); }
.pillar:nth-child(2) { --reveal-delay: 0.1s; }
.pillar:nth-child(3) { --reveal-delay: 0.2s; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Owners ---------- */
.owners { background: var(--bg-alt); }
.owners-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.owners-figure {
  position: sticky;
  top: 7rem;
  margin: 0;
}
.arch-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--line);
  box-shadow: 0 30px 60px -30px var(--shadow-color-strong);
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.owners-figure:hover .arch-frame img { transform: scale(1.03); }

figcaption {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.benefits {
  margin-top: 3rem;
  border-bottom: 1px solid var(--line-strong);
}
.benefit {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-strong);
}
.benefit-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--accent);
}
.benefit h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin-bottom: 0.4rem;
}
.benefit p { color: var(--ink-soft); }

@media (max-width: 960px) {
  .owners-grid { grid-template-columns: 1fr; }
  .owners-figure { position: static; max-width: 26rem; }
}

/* ---------- Travellers ---------- */
.travellers-head { max-width: 46rem; }
.wide-figure { margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.wide-figure picture {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 7;
  background: var(--line);
}
.wide-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

.travellers-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 2.5rem;
}
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--sea);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); }
.feature:nth-child(2) { --reveal-delay: 0.08s; }
.feature:nth-child(3) { --reveal-delay: 0.16s; }
.feature:nth-child(4) { --reveal-delay: 0.24s; }

@media (max-width: 960px) {
  .travellers-grid { grid-template-columns: 1fr; }
  .wide-figure picture { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ---------- Cards and forms ---------- */
.card {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px var(--shadow-color), 0 30px 60px -36px var(--shadow-color-strong);
}
.card-title { font-size: 1.75rem; }
.card-text { margin-top: 0.6rem; color: var(--ink-soft); }
.signup-card .signup-form { margin-top: 1.5rem; }
.signup-card-owner .signup-form { margin-top: 0; }

.form-body { display: grid; gap: 1.25rem; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 0.45rem; align-content: start; }
.field > label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--ink-muted); }

.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-sunk);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field input::placeholder { color: var(--ink-muted); opacity: 1; }
.field input:hover,
.field select:hover { border-color: var(--ink-muted); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--focus);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--focus);
}
.field [aria-invalid="true"] { border-color: var(--danger); }

.select { position: relative; }
.select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
}
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select:invalid { color: var(--ink-muted); }
.field select option { color: var(--ink); background: var(--surface); }

.field-check {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
}
.field-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check label {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.field-check .field-error { grid-column: 2; }

.field-error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
}

.turnstile-slot:empty { display: none; }
.turnstile-slot { min-height: 0; }

.form-fineprint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
}

.form-status:empty { display: none; }
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  background: var(--surface-sunk);
  color: var(--ink-soft);
}
.form-status.is-error { background: var(--danger-soft); color: var(--danger); }
.form-status.is-error a { color: inherit; }

.form-success {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding-block: 0.5rem;
  outline: none;
  animation: rise 0.6s var(--ease-out) both;
}
.form-success svg {
  width: 3rem;
  height: 3rem;
  fill: var(--success-soft);
  stroke: var(--success);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success h3,
.form-success h4 { font-size: 1.6rem; }
.form-success p { color: var(--ink-soft); }

/* ---------- Join (owner signup) ---------- */
.join {
  position: relative;
  background: var(--panel-bg);
  color: var(--panel-ink);
  padding-top: calc(var(--section-space) + 3rem);
}
.join-waves {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(2.5rem, 6vw, 5rem);
  line-height: 0;
}
.join-waves svg { width: 100%; height: 100%; }
.join-waves path { fill: var(--bg); }

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}
.join .eyebrow { color: var(--panel-accent); }
.join .section-title { color: var(--panel-ink); }
.join .lead { color: var(--panel-ink-soft); }

.steps {
  display: grid;
  gap: 1.75rem;
  margin-top: 3rem;
}
.steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--panel-line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--panel-accent);
}
.steps h3 { font-size: 1.3rem; color: var(--panel-ink); margin: 0.35rem 0 0.3rem; }
.steps p { color: var(--panel-ink-soft); }

@media (max-width: 960px) {
  .join-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq-contact { margin-top: 1.5rem; color: var(--ink-soft); }
.faq-list { border-bottom: 1px solid var(--line-strong); }
.faq-list details { border-top: 1px solid var(--line-strong); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-answer { padding: 0 3rem 1.75rem 0; color: var(--ink-soft); max-width: 44rem; }
.faq-answer p + p { margin-top: 0.75rem; }

@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] .faq-answer { animation: rise 0.45s var(--ease-out) both; }
}

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(30rem, 70vh, 42rem);
  padding-block: 6rem;
  text-align: center;
  color: var(--hero-ink);
  background: var(--panel-bg);
  overflow: hidden;
}
.closing-media,
.closing-media img,
.closing-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.closing-media img { object-fit: cover; object-position: 50% 55%; }
.closing-scrim {
  z-index: -1;
  background: linear-gradient(180deg, var(--hero-scrim-strong), var(--hero-scrim-soft) 50%, var(--hero-scrim-strong));
}
.closing h2 {
  font-size: clamp(2.6rem, 6.5vw, 5.25rem);
  font-weight: 350;
  color: var(--hero-ink);
}
.closing h2 em { color: var(--hero-accent); }
.closing p:not(.hero-place) {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--hero-ink-soft);
}
.closing .hero-actions { justify-content: center; }
.closing-place { bottom: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 4.5rem 3rem;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
}
.footer-brand .brand { color: var(--ink); }
.footer-brand p { margin-top: 1rem; max-width: 26rem; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  list-style: none;
  justify-content: flex-end;
}
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

.credits {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.8125rem;
}
.credits summary { cursor: pointer; width: max-content; color: var(--ink); }
.credits ul { margin-top: 0.75rem; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.credits p { margin-top: 0.75rem; color: var(--ink-muted); }
.footer-legal { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--ink-muted); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav ul { justify-content: flex-start; }
}

/* ---------- Simple content pages (privacy, confirmation, 404) ---------- */
.page-header {
  position: static;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-header .brand-tld { color: var(--accent); }
.page {
  padding-block: clamp(3.5rem, 8vw, 6rem) var(--section-space);
}
.page-narrow { max-width: 46rem; }
.page h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}
.page .meta { color: var(--ink-muted); font-size: 0.9375rem; }
.prose { margin-top: 2.5rem; color: var(--ink-soft); }
.prose h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: 1.65rem;
}
.prose h3 { margin: 1.75rem 0 0.6rem; font-size: 1.25rem; }
.prose p,
.prose ul,
.prose address { margin-bottom: 1rem; }
.prose address { font-style: normal; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table {
  width: 100%;
  margin-bottom: 1.25rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.notice-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notice-page .notice-inner { max-width: 36rem; }
.notice-page p { color: var(--ink-soft); margin-top: 1rem; }
.notice-page .btn { margin-top: 2rem; }
.notice-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.75rem;
  fill: var(--success-soft);
  stroke: var(--success);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
