/* THE TRAIN CLOCK · marketing site
 * Shared stylesheet for the landing, buy, and FAQ pages.
 * Tokens mirror /board/style.css so the look is continuous, but the marketing
 * pages drop the cyberpunk ambient effects in favor of editorial whitespace.
 */

:root {
  --bg-0: #02060f;
  --bg-1: #050b1a;
  --bg-2: #0a1224;

  --surf-1: rgba(255, 255, 255, 0.025);
  --surf-2: rgba(255, 255, 255, 0.045);
  --surf-3: rgba(255, 255, 255, 0.07);

  --hairline:        rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --text:        #f0f4fc;
  --text-dim:    #d2dae8;
  --text-faint:  #a4b0c8;

  --accent:       #60a5fa;
  --accent-hot:   #38bdf8;
  --accent-soft:  rgba(96, 165, 250, 0.12);
  --accent-line:  rgba(96, 165, 250, 0.55);

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans:    'Mona Sans', system-ui, -apple-system, sans-serif;
  --mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease:      cubic-bezier(0.2, 0.85, 0.25, 1);
  --ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

:root[data-theme="light"] {
  --bg-0: #f6f7fb;
  --bg-1: #ffffff;
  --bg-2: #eef1f7;

  --surf-1: rgba(15, 23, 42, 0.025);
  --surf-2: rgba(15, 23, 42, 0.045);
  --surf-3: rgba(255, 255, 255, 0.78);

  --hairline:        rgba(15, 23, 42, 0.10);
  --hairline-strong: rgba(15, 23, 42, 0.20);

  --text:       #0a0e1a;
  --text-dim:   #4a536b;
  --text-faint: #8d97ad;

  --accent:      #2563eb;
  --accent-hot:  #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-line: rgba(37, 99, 235, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-variation-settings: 'wght' 400;
}

::selection { background: var(--accent-soft); color: var(--text); }

a { color: inherit; text-decoration: none; }

/* — TOP NAV ———————————————————————————————————————————————————— */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.05rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.nav-brand-mark {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-1px);
  box-shadow: 0 0 12px var(--accent-line);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dim);
}
.nav-links a {
  transition: color .15s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.45rem;
  height: 1px;
  background: var(--accent);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--text);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Theme toggle button (matches /board/) */
.theme-toggle {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  border-radius: 999px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--hairline-strong); }
[data-theme="light"] .icon-moon,
:root:not([data-theme]) .icon-sun,
[data-theme="dark"]    .icon-sun  { display: none; }

/* — LAYOUT ————————————————————————————————————————————————————— */

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

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}
.section + .section { border-top: 1px solid var(--hairline); }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* — HERO ———————————————————————————————————————————————————————— */

.hero {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-tag {
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  font-variation-settings: 'wght' 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1.6rem;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-variation-settings: 'wght' 600;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 38ch;
  margin: 0 0 2.2rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* — BUTTONS ———————————————————————————————————————————————————— */

.btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform .15s var(--ease), background .15s var(--ease),
              border-color .15s var(--ease), color .15s var(--ease);
}
.btn-primary {
  background: var(--text);
  color: var(--bg-0);
  border-color: var(--text);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-arrow { font-family: var(--mono); font-size: 0.9em; opacity: 0.6; }

/* — HERO VISUAL: stylized arrivals card ——————————————————————— */

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background:
    linear-gradient(180deg, var(--surf-2), var(--surf-1)),
    var(--bg-1);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 var(--hairline-strong);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 200px at 30% 0%, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.012) 3px 4px);
  pointer-events: none;
}
.hero-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  position: relative;
  z-index: 1;
}
.hero-visual-dot {
  width: 7px; height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
  display: inline-block;
  margin-right: 0.5rem;
}
.hero-visual-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.hero-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px dashed var(--hairline);
  font-family: var(--display);
  font-variation-settings: 'opsz' 24, 'wght' 500;
}
.hero-row:last-child { border-bottom: none; }
.hero-bullet {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-row-name { color: var(--text); font-size: 1.05rem; letter-spacing: -0.01em; }
.hero-row-time {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.hero-row-time .unit { color: var(--text-faint); margin-left: 0.2rem; font-size: 0.85em; }

/* — TICKER ———————————————————————————————————————————————————— */

.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.15rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ticker span::before {
  content: '◆';
  margin-right: 0.55rem;
  color: var(--accent);
  opacity: 0.7;
}

/* — FEATURE BLOCKS ———————————————————————————————————————————— */

.section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 64, 'wght' 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1.5rem;
  color: var(--text);
  max-width: 22ch;
}

.section p.lede {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0;
}

.feature-cards {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 860px) { .feature-cards { grid-template-columns: 1fr; } }

.feature-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  background: var(--surf-1);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.feature-card:hover {
  border-color: var(--hairline-strong);
  background: var(--surf-2);
}
.feature-card-mark {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.feature-card h3 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 32, 'wght' 500;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--text);
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0;
  line-height: 1.6;
}

/* — STAT GRID ————————————————————————————————————————————————— */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--display);
  font-variation-settings: 'opsz' 96, 'wght' 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-num small { font-size: 0.55em; color: var(--accent); margin-left: 0.2em; }
.stat-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.6rem;
}

/* — CTA BAND ——————————————————————————————————————————————————— */

.cta-band {
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background:
    radial-gradient(700px 240px at 90% 110%, var(--accent-soft), transparent 70%),
    var(--surf-1);
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.cta-band p { color: var(--text-dim); margin: 0.7rem 0 0; max-width: 50ch; }

/* — FOOTER ————————————————————————————————————————————————————— */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0 4rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1rem;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.5rem; }
.foot a { color: var(--text-dim); transition: color .15s var(--ease); }
.foot a:hover { color: var(--text); }
.foot-tagline {
  margin: 0.8rem 0 0;
  max-width: 30ch;
  color: var(--text-faint);
}
.foot-meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* — BUY PAGE —————————————————————————————————————————————————— */

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr; } }

.buy-photo {
  position: sticky;
  top: 5rem;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background:
    linear-gradient(180deg, var(--surf-2), var(--surf-1)),
    var(--bg-1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.buy-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
}
.buy-photo-tag {
  position: relative;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.buy-photo-mark {
  position: relative;
  align-self: flex-end;
  font-family: var(--display);
  font-variation-settings: 'opsz' 96, 'wght' 600;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-align: right;
  color: var(--text);
}

.buy-info h1 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 64, 'wght' 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
}
.buy-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1rem 0 0.3rem;
}
.buy-price-num {
  font-family: var(--display);
  font-variation-settings: 'opsz' 96, 'wght' 500;
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  letter-spacing: -0.04em;
  color: var(--text);
}
.buy-price-cur {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.buy-shipping {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0.2rem 0 1.6rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--hairline);
}
.spec-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.spec-list li b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.spec-list li span { color: var(--text); }

.buy-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.buy-note {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--hairline-strong);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.buy-note b { color: var(--text); font-weight: 500; }

/* — FAQ PAGE —————————————————————————————————————————————————— */

.faq-head {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.faq-head h1 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 96, 'wght' 500;
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0.6rem 0 1rem;
}
.faq-head p { color: var(--text-dim); max-width: 50ch; margin: 0 auto; }

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 6rem;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.4rem 0;
}
.faq details[open] { padding-bottom: 1.8rem; }
.faq summary {
  font-family: var(--display);
  font-variation-settings: 'opsz' 32, 'wght' 500;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  transition: color .15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--text-faint);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
  margin: 0.9rem 0 0;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 60ch;
}
.faq-answer p { margin: 0 0 0.8rem; }
.faq-answer code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surf-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.faq-cats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.faq-cats span {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

/* — CONTACT MODAL ————————————————————————————————————————————— */

.cmodal[hidden] { display: none; }
.cmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  animation: cmodal-in 0.18s var(--ease-out);
}
@keyframes cmodal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cmodal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg-0) 70%, transparent);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.cmodal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: clamp(1.75rem, 3.5vw, 2.6rem);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--hairline-strong);
  animation: cmodal-pop 0.22s var(--ease-out);
}
@keyframes cmodal-pop {
  from { transform: translateY(8px) scale(0.985); opacity: 0; }
  to   { transform: translateY(0)    scale(1);     opacity: 1; }
}
.cmodal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.cmodal-close:hover { color: var(--text); border-color: var(--hairline-strong); }

.cmodal-panel h2 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 64, 'wght' 600;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.6rem 0 0.6rem;
}
.cmodal-lede {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0 0 1.6rem;
}

#contact-form { display: flex; flex-direction: column; gap: 1rem; }

.cfield {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cfield > span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cfield input,
.cfield textarea,
.cfield select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--surf-1);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.cfield textarea {
  resize: vertical;
  min-height: 7.5rem;
  font-family: var(--sans);
  line-height: 1.55;
}
.cfield select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 50%, calc(100% - 0.7rem) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
  cursor: pointer;
}
.cfield input::placeholder,
.cfield textarea::placeholder { color: var(--text-faint); }
.cfield input:focus,
.cfield textarea:focus,
.cfield select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cfield input:invalid:not(:placeholder-shown),
.cfield textarea:invalid:not(:placeholder-shown) { border-color: rgba(244, 63, 94, 0.5); }

.cfield-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.cfield-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cfield-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.cfield-grid-2 { grid-template-columns: 1fr 1fr; align-items: end; }
@media (max-width: 520px) {
  .cfield-grid,
  .cfield-grid-3,
  .cfield-grid-2 { grid-template-columns: 1fr; }
}

.cfield-opt {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-faint);
  margin-left: 0.4rem;
}

.reserve-total {
  font-family: var(--display);
  font-variation-settings: 'opsz' 64, 'wght' 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0.55rem 0;
}

.reserve-error {
  margin: 0.2rem 0 0;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.reserve-receipt {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0.6rem 0 1.2rem;
  background: var(--surf-1);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.reserve-receipt > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--hairline);
}
.reserve-receipt > div:last-child { border-bottom: none; }
.reserve-receipt span {
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  align-self: center;
}
.reserve-receipt b {
  color: var(--text);
  font-weight: 400;
  word-break: break-all;
}
.reserve-receipt-note {
  display: block;
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 480px) {
  .cfield-row { flex-direction: column-reverse; }
  .cfield-row .btn { width: 100%; justify-content: center; }
}

/* — UTILITY ————————————————————————————————————————————————————— */

.muted { color: var(--text-faint); }
.mono  { font-family: var(--mono); }
.center { text-align: center; }
