/* Rootline Coasters — cinematic amusement park */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,700;9..144,900&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #0d1421;
  --ink-2: #1c2841;
  --ink-3: #2c3a5a;
  --muted: #7a7560;
  --line: #ede2c4;
  --paper: #ffffff;
  --cream: #fbf3e3;
  --cream-2: #f4e8c9;
  --sunset: #ff6b1a;
  --sunset-deep: #d44b0a;
  --ruby: #c1272d;
  --gold: #f4b860;
  --gold-deep: #b6843a;
  --sky: #5ba4d6;
  --forest: #1f4d2e;
  --shadow-lg: 0 30px 60px -20px rgba(13, 20, 33, 0.35);
  --shadow-md: 0 12px 28px -10px rgba(13, 20, 33, 0.25);
  --shadow-sm: 0 4px 12px -4px rgba(13, 20, 33, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

::selection { background: var(--sunset); color: #fff; }

/* ------------- TYPOGRAPHY ------------- */

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); font-variation-settings: "opsz" 72; }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 36; }

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sunset-deep);
}
.eyebrow::before { content: "✦"; margin-right: 0.5em; color: var(--gold-deep); }

.italic { font-style: italic; font-family: "Fraunces", serif; }
code, pre { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }

/* ------------- TOP RIBBON ------------- */

.ribbon {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ribbon-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ribbon .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 0.5rem;
  box-shadow: 0 0 12px #4ade80, 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 12px #4ade80, 0 0 0 4px rgba(74, 222, 128, 0.18); }
  50% { box-shadow: 0 0 18px #4ade80, 0 0 0 8px rgba(74, 222, 128, 0.06); }
}
.ribbon .sep { opacity: 0.4; }

/* ------------- HEADER ------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  line-height: 1;
}
.brand .glyph {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--sunset);
  font-size: 1.55rem;
  margin-right: -0.1em;
}
.brand small {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
  border-left: 1px solid var(--line);
  padding-left: 0.7rem;
  margin-left: 0.4rem;
}

nav.main-nav { display: flex; align-items: center; gap: 0.4rem; }
nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
nav.main-nav a:hover { background: var(--cream); }
nav.main-nav a.cta {
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.2rem;
  margin-left: 0.4rem;
}
nav.main-nav a.cta:hover { background: var(--sunset); }

/* ------------- HERO ------------- */

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #0d1421;
  color: #fff;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,20,33,0) 0%, rgba(13,20,33,0.65) 100%),
    linear-gradient(115deg, rgba(255,107,26,0.18) 0%, rgba(13,20,33,0.05) 60%),
    url("https://images.unsplash.com/photo-1513889961551-628c1e5e2ee9?w=1920&q=80&auto=format&fit=crop") center/cover no-repeat,
    radial-gradient(circle at 30% 40%, #ff6b1a 0%, #c1272d 40%, #0d1421 100%);
  filter: saturate(1.05) contrast(1.05);
  z-index: -1;
  animation: heroPan 24s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.12) translateX(-2%); }
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
  min-height: 78vh;
}
.hero-tag {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.hero-tag .bar { width: 36px; height: 2px; background: var(--gold); }

.hero h1 {
  color: #fff;
  max-width: 18ch;
  font-weight: 700;
  margin: 1.3rem 0;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero p.lead {
  max-width: 52ch;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
}
.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
  align-items: center;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-meta div { padding: 0 1.2rem; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.hero-meta div:first-child { padding-left: 0; }
.hero-meta div:last-child { border-right: none; padding-right: 0; }
.hero-meta dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero-meta dd {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.25rem 0 0;
  color: #fff;
  font-variation-settings: "opsz" 48;
}

/* ------------- BUTTONS ------------- */

.button, button.primary, .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.button:hover, button.primary:hover, .button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.button.primary, button.primary, .button.sunset {
  background: var(--sunset);
  border-color: var(--sunset);
  color: #fff;
}
.button.primary:hover, button.primary:hover, .button.sunset:hover {
  background: var(--sunset-deep);
  border-color: var(--sunset-deep);
}
.button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.button.ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button.outline:hover { background: var(--ink); color: #fff; }

button.link, .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sunset-deep);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.link-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------- MAIN LAYOUT ------------- */

main { display: block; }
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { max-width: 18ch; }
.section-head .lead {
  max-width: 38ch;
  color: var(--ink-3);
  font-size: 1rem;
}

/* ------------- TICKET PICKER ------------- */

.tickets-block { background: var(--paper); }
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.ticket-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ticket-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cream-2);
}
.ticket-photo {
  position: relative;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-2);
}
.ticket-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,20,33,0) 50%, rgba(13,20,33,0.55) 100%);
}
.ticket-photo .tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}
.ticket-photo .tag.featured {
  background: var(--sunset);
  color: #fff;
}
.ticket-body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.ticket-body h3 {
  font-size: 1.5rem;
  font-variation-settings: "opsz" 48;
}
.ticket-body .desc {
  color: var(--ink-3);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 0.3rem;
}
.ticket-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.4rem 0 1rem;
}
.ticket-price .currency {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
}
.ticket-price .amount {
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.ticket-price .per {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.2rem;
}

.qty-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: auto;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.qty-stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}
.qty-stepper button:hover { background: var(--ink); color: #fff; }
.qty-stepper input {
  width: 42px;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding: 0;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

/* ------------- ORDER BAR (sticky) ------------- */

.order-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 30;
  margin: 2.5rem auto 0;
  max-width: 880px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 0.85rem 0.85rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}
.order-bar.show { transform: translateY(0); opacity: 1; }
.order-bar .count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.order-bar .total {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  margin-right: auto;
}
.order-bar .total .currency { color: var(--gold); font-style: italic; font-weight: 400; margin-right: 0.15em; }

/* ------------- ATTRACTIONS GRID ------------- */

.attractions-section { background: var(--cream); }
.attractions-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem;
  height: 640px;
}
.attraction {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background-color: var(--ink-2);
  background-size: cover;
  background-position: center;
  color: #fff;
  transition: transform 0.3s;
  cursor: pointer;
}
.attraction:hover { transform: translateY(-4px); }
.attraction::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,20,33,0) 35%, rgba(13,20,33,0.85) 100%);
}
.attraction-text {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
}
.attraction-text .kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.attraction-text h3 {
  color: #fff;
  font-size: 1.7rem;
  font-variation-settings: "opsz" 60;
  margin-bottom: 0.25rem;
}
.attraction-text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin: 0;
  max-width: 30ch;
}
.attraction.large { grid-column: 1; grid-row: 1 / span 2; }
.attraction-text h3.large { font-size: 2.4rem; font-variation-settings: "opsz" 96; }

/* ------------- SHOWREEL STRIP ------------- */

.strip-section {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0;
}
.strip-section h2 { color: #fff; }
.strip-section .eyebrow { color: var(--gold); }
.strip-section .eyebrow::before { color: var(--gold); }
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.8rem;
}
.strip-item h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.4rem; }
.strip-item p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin: 0; }
.strip-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
  font-variation-settings: "opsz" 144;
}

/* ------------- PARK PROMISE BANNER ------------- */

.promise {
  background:
    linear-gradient(120deg, rgba(13,20,33,0.78) 0%, rgba(13,20,33,0.35) 60%, rgba(13,20,33,0) 100%),
    url("https://images.unsplash.com/photo-1502602898536-47ad22581b52?w=1920&q=80&auto=format&fit=crop") center/cover no-repeat;
  color: #fff;
  padding: 6rem 0;
}
.promise h2 { color: #fff; max-width: 16ch; }
.promise p { color: rgba(255,255,255,0.86); max-width: 44ch; font-size: 1.05rem; }
.promise .grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: end;
}
.promise-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }

/* ------------- PRICING PAGE ------------- */

.pricing-hero {
  background: var(--ink);
  color: #fff;
  padding: 5rem 0 4rem;
}
.pricing-hero .lead { color: rgba(255,255,255,0.78); max-width: 50ch; font-size: 1.1rem; margin-top: 1rem; }
.pricing-hero h1 { color: #fff; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}
.pricing-table th, .pricing-table td {
  padding: 1.2rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.pricing-table th {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.pricing-table td.name { font-weight: 700; font-size: 1rem; }
.pricing-table td.id code { background: var(--cream); padding: 0.2rem 0.55rem; border-radius: 5px; font-size: 0.85rem; }
.pricing-table td.desc { color: var(--ink-3); font-size: 0.95rem; max-width: 36ch; }
.pricing-table td.price {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  text-align: right;
  white-space: nowrap;
}

.calendar.pricing-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 2.4rem;
  max-height: none;
  overflow: visible;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
}
.calendar.pricing-calendar .calendar-month-label { font-size: 1.2rem; }
.calendar.pricing-calendar .calendar-grid { gap: 6px; }
.calendar.pricing-calendar .day {
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
}
.calendar.pricing-calendar .day-available {
  background: #fbf3e3;
  color: var(--sunset-deep);
  border-color: var(--sunset);
  font-weight: 700;
}
.calendar.pricing-calendar .day-sold_out {
  background: repeating-linear-gradient(135deg, #e7d8d8, #e7d8d8 4px, #d9c7c7 4px, #d9c7c7 8px);
  color: #6b4d4d;
  border-color: transparent;
}
.calendar.pricing-calendar .day-closed {
  background: #ece6da;
  color: var(--muted);
  border-color: transparent;
}

.availability-list-toggle {
  margin-top: 2rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}
.availability-list-toggle summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.availability-list-toggle summary:hover { color: var(--ink); }
.availability-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  columns: 3;
  column-gap: 2rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}
.availability-list li { padding: 0.18rem 0; break-inside: avoid; }
.availability-list li.status-sold_out { color: #6b4d4d; }
.availability-list li.status-closed { color: var(--muted); }
.availability-list li.status-available { color: var(--sunset-deep); font-weight: 600; }
@media (max-width: 720px) { .availability-list { columns: 2; } }
@media (max-width: 480px) { .availability-list { columns: 1; } }
.pricing-table td.price .currency { color: var(--muted); font-style: italic; font-weight: 400; font-size: 0.95rem; margin-right: 0.2rem; }

/* ------------- DEV / API SECTION ------------- */

.dev-section {
  background: var(--ink);
  color: rgba(255,255,255,0.86);
  padding: 5rem 0 6rem;
}
.dev-section h2, .dev-section h3 { color: #fff; }
.dev-section h2 { margin-bottom: 0.5rem; }
.dev-section .eyebrow { color: var(--gold); }
.dev-section .eyebrow::before { color: var(--gold); }
.dev-section p { color: rgba(255,255,255,0.76); max-width: 70ch; }
.dev-section strong { color: #fff; }
.dev-section em { color: var(--gold); font-style: italic; font-family: "Fraunces", serif; }
.dev-section p code, .dev-section li code {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  color: var(--gold);
  font-size: 0.88em;
}
.dev-section pre {
  background: #050912;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font-size: 0.88rem;
  color: var(--gold);
  line-height: 1.6;
  margin: 1rem 0 2rem;
}
.dev-section pre code { background: none; color: inherit; padding: 0; border: 0; font-size: inherit; }
.dev-section ul { padding-left: 1.1rem; }
.dev-section li { margin-bottom: 0.75rem; }
.dev-section h3 {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 1.4rem;
  font-variation-settings: "opsz" 48;
}
.dev-section h3:first-of-type { border-top: 0; padding-top: 0; }
.dev-section a { color: var(--sunset); }
.dev-section .try-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sunset);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
}
.dev-section .try-link:hover { background: var(--sunset-deep); }

/* ------------- CHECKOUT ------------- */

.checkout-page { background: var(--cream); }
.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  padding: 4rem 0 6rem;
  align-items: start;
}
.checkout-left { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-right { position: sticky; top: 110px; }

.summary-card {
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.summary-photo {
  height: 180px;
  background-image:
    linear-gradient(180deg, rgba(13,20,33,0) 30%, rgba(13,20,33,0.5) 100%),
    url("/static/attractions/summary-banner.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}
.summary-photo .park-tag {
  position: absolute;
  bottom: 1rem;
  left: 1.4rem;
  color: #fff;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  font-variation-settings: "opsz" 36;
}
.summary-body { padding: 1.6rem 1.8rem 1.8rem; }
.summary-body h2 { font-size: 1.4rem; margin-bottom: 1rem; }

.ticket-lines { margin-bottom: 0.4rem; }
.ticket-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
  transition: opacity 0.2s;
}
.ticket-line:last-of-type { border-bottom: 0; }
.ticket-line.is-empty { opacity: 0.5; }
.ticket-line.is-empty:hover,
.ticket-line.is-empty:focus-within { opacity: 1; }
.ticket-line .line-info { min-width: 0; }
.ticket-line .name {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.ticket-line .meta {
  color: var(--ink-3);
  font-size: 0.82rem;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-line .qty-stepper { border-color: var(--line); }
.ticket-line .qty-stepper button { width: 32px; height: 32px; font-size: 1.05rem; }
.ticket-line .qty-stepper input { width: 36px; font-size: 0.95rem; }
.ticket-line .line-sub {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 48;
  text-align: right;
  min-width: 4.5rem;
  color: var(--ink);
}
.ticket-line.is-empty .line-sub { color: var(--muted); font-weight: 400; }
@media (max-width: 540px) {
  .ticket-line {
    grid-template-columns: 1fr auto;
    grid-template-areas: "info info" "stepper sub";
    row-gap: 0.6rem;
  }
  .ticket-line .line-info { grid-area: info; }
  .ticket-line .qty-stepper { grid-area: stepper; justify-self: start; }
  .ticket-line .line-sub { grid-area: sub; }
  .ticket-line .meta { white-space: normal; }
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.2rem;
  margin-top: 0.3rem;
  border-top: 2px solid var(--ink);
}
.summary-total .label {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.summary-total .amount {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
}
.summary-total .amount .currency { color: var(--muted); font-style: italic; font-weight: 400; font-size: 1.2rem; margin-right: 0.2rem; }

.change-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 1.2rem;
}
.change-link:hover { color: var(--sunset-deep); }

.payment-card {
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 2rem 2.2rem 2.2rem;
  box-shadow: var(--shadow-md);
}
.payment-card h2 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.payment-card .sub { color: var(--ink-3); margin: 0 0 1.5rem; font-size: 0.95rem; }

.field-group { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.field-group label {
  display: grid;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: var(--ink);
}
.field-group input {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field-group input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.18);
}

.email-auth,
.saved-card {
  margin: 0 0 1.4rem;
}
.email-auth label {
  display: grid;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: var(--ink);
}
.email-auth input {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}
.email-auth input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.18);
}
.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.75rem;
}
.text-button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--sunset-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0;
}
.text-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.saved-card {
  background: #f4fbef;
  border: 1px solid #d7e9cb;
  border-radius: 12px;
  padding: 0.85rem 1rem 0.95rem;
}
.saved-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.saved-card .section-label {
  border-top: 0;
  margin: 0;
  padding-top: 0;
  color: #6b765e;
}
.saved-card #saved-card-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.saved-card-change {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0;
}
.saved-card-change:hover {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.saved-card-change:disabled {
  color: var(--muted);
  opacity: 0.55;
}
.save-card-preference {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}
.save-card-preference input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0.12rem 0 0;
  accent-color: var(--sunset);
}
.save-card-preference:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.65;
}

.section-label {
  margin: 1.6rem 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.payment-card .section-label:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#card-form {
  margin: 0 0 1.4rem;
  min-height: 70px;
}
.payment-error {
  background: #ffe6e1;
  border: 1px solid #ffb3a3;
  color: var(--ruby);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}
#pay-button {
  width: 100%;
  margin-top: 0.6rem;
  padding: 1.1rem 1.6rem;
  font-size: 1.05rem;
  background: var(--ink);
  border-color: var(--ink);
}
#pay-button:hover:not(:disabled) {
  background: var(--sunset);
  border-color: var(--sunset);
}
#pay-button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.proposal-banner {
  background: linear-gradient(120deg, var(--gold) 0%, var(--sunset) 100%);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.5rem;
}
.proposal-banner .bot-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 900;
  font-size: 1.3rem;
  font-variation-settings: "opsz" 96;
}
.proposal-banner p { margin: 0; font-size: 0.95rem; font-weight: 500; }
.proposal-banner code { background: rgba(13,20,33,0.12); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.88em; }

.warning {
  background: #fff6e3;
  border-left: 4px solid var(--gold-deep);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
}
.warning h3 { margin-bottom: 0.3rem; font-size: 1rem; font-family: "Manrope", sans-serif; font-weight: 700; }
.warning ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.warning code { background: rgba(13,20,33,0.06); padding: 0.05rem 0.4rem; border-radius: 4px; }

.demo-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.demo-note a { color: var(--sunset-deep); }

.hint { color: var(--muted); font-size: 0.85rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visit-date-card .summary-body h2 { margin-bottom: 0.4rem; }
.visit-date-card .hint { margin-top: 0.8rem; }

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1rem;
  align-items: center;
}
.legend-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  vertical-align: -2px;
}
.legend-available { background: #fbf3e3; border: 1px solid var(--line); }
.legend-sold-out  { background: repeating-linear-gradient(135deg, #e7d8d8, #e7d8d8 4px, #d9c7c7 4px, #d9c7c7 8px); }
.legend-closed    { background: #ece6da; border: 1px solid var(--line); }

.calendar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-height: 28rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.calendar-month-label {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.calendar-weekdays span { text-align: center; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 0;
  line-height: 1.1;
}
.day.filler { visibility: hidden; }
.day-num { font-size: 0.95rem; }
.day-tag {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
  opacity: 0.75;
}

.day-available {
  background: #fbf3e3;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.day-available:hover {
  background: #fff;
  border-color: var(--sunset);
}
.day-available:focus-visible {
  outline: 2px solid var(--sunset);
  outline-offset: 2px;
}
.day-available.is-selected {
  background: var(--sunset);
  color: #fff;
  border-color: var(--sunset-deep, var(--sunset));
}
.day-available:disabled { cursor: not-allowed; opacity: 0.6; }

.day-sold_out {
  background: repeating-linear-gradient(135deg, #e7d8d8, #e7d8d8 4px, #d9c7c7 4px, #d9c7c7 8px);
  color: #6b4d4d;
  cursor: not-allowed;
}
.day-closed {
  background: #ece6da;
  color: var(--muted);
  cursor: not-allowed;
}

/* ------------- PAYMENT RESULT ------------- */

.result-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
}
.result-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 0;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.result-card::before,
.result-card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--cream);
  border-radius: 50%;
  top: 230px;
  border: 1px solid var(--line);
}
.result-card::before { left: -15px; }
.result-card::after { right: -15px; }
.result-photo {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.result-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,20,33,0.1), rgba(13,20,33,0.4));
}
.result-photo .badge {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  z-index: 3;
  font-size: 1.6rem;
}
.result-body {
  padding: 3.2rem 2.2rem 2.4rem;
  border-top: 2px dashed var(--line);
}
.result-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sunset-deep);
  margin-bottom: 0.8rem;
}
.result-body h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
.result-body p { color: var(--ink-3); margin: 0.4rem 0; }
.result-meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.3rem;
  background: var(--cream);
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  text-align: left;
}
.result-meta dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
.result-meta dt:first-of-type { margin-top: 0; }
.result-meta dd { margin: 0.1rem 0 0; font-weight: 600; }
.result-meta code { background: var(--paper); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.88em; }
.result-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.result-card.error .result-status { color: var(--ruby); }
.result-card.pending .result-status { color: var(--gold-deep); }

/* ------------- FOOTER ------------- */

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-inner h4 {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin-bottom: 0.55rem; }
.footer-inner a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-inner a:hover { color: var(--gold); }
.footer-brand {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.7rem;
  color: #fff;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.6rem;
}
.footer-brand .glyph {
  font-style: italic;
  font-weight: 300;
  color: var(--sunset);
}
.footer-brand-tag {
  max-width: 34ch;
  color: rgba(255,255,255,0.66);
  font-size: 0.92rem;
  margin: 0;
}
/* ------------- UTIL ------------- */

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; }
  nav.main-nav { flex-wrap: wrap; }
  .hero-inner { padding: 5rem 1.2rem 3.5rem; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .hero-meta div { border-right: none; padding: 0; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .attractions-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .attraction { height: 280px; }
  .attraction.large { grid-column: auto; grid-row: auto; height: 340px; }
  .strip { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .promise .grid { grid-template-columns: 1fr; gap: 2rem; }
  .checkout-grid { grid-template-columns: 1fr; padding: 2.5rem 0 4rem; }
  .checkout-right { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pricing-table th:nth-child(1), .pricing-table td:nth-child(1),
  .pricing-table th:nth-child(3), .pricing-table td:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  section { padding: 3.5rem 0; }
  .hero h1 { font-size: 2.6rem; }
  .strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .order-bar { flex-wrap: wrap; gap: 0.8rem; border-radius: 22px; padding: 1rem 1rem 1rem 1.4rem; }
  .order-bar .total { font-size: 1.3rem; }
}
