/* ==========================================================================
   Winter 2026 Family Escape — Editorial Travel Story System
   Fonts: Marcellus (Display) + Figtree (Body & UI)
   ========================================================================== */

:root {
  --font-display: 'Marcellus', Georgia, serif;
  --font-sans: 'Figtree', system-ui, -apple-system, sans-serif;

  /* Default (Hub / Neutral warm stone) */
  --surface: oklch(0.976 0.011 84);
  --surface-alt: oklch(0.945 0.016 80);
  --surface-card: oklch(0.992 0.006 84);
  --surface-deep: oklch(0.27 0.045 170);
  --ink: oklch(0.21 0.015 52);
  --ink-soft: oklch(0.41 0.018 58);
  --ink-on-deep: oklch(0.97 0.008 82);
  --ink-on-deep-soft: oklch(0.84 0.016 84);
  --accent: oklch(0.43 0.088 175);
  --accent-soft: oklch(0.93 0.025 175);
  --accent-warm: oklch(0.64 0.118 70);
  --border: oklch(0.87 0.016 78);
  --border-strong: oklch(0.76 0.024 72);
  --ok: oklch(0.44 0.09 152);
  --ok-bg: oklch(0.94 0.028 152);
  --warn: oklch(0.48 0.11 50);
  --warn-bg: oklch(0.95 0.028 65);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(3.5rem, 6vw, 6.5rem);
  --max-w: 1180px;
}

[data-theme="thailand"] {
  --surface: oklch(0.976 0.011 85);
  --surface-alt: oklch(0.944 0.017 84);
  --surface-card: oklch(0.992 0.006 85);
  --surface-deep: oklch(0.28 0.062 182);
  --ink: oklch(0.21 0.016 55);
  --ink-soft: oklch(0.42 0.018 65);
  --accent: oklch(0.40 0.086 180);
  --accent-soft: oklch(0.93 0.026 180);
  --accent-warm: oklch(0.66 0.125 74);
  --border: oklch(0.87 0.016 82);
}

[data-theme="bali"] {
  --surface: oklch(0.973 0.013 76);
  --surface-alt: oklch(0.940 0.020 72);
  --surface-card: oklch(0.991 0.007 76);
  --surface-deep: oklch(0.30 0.056 148);
  --ink: oklch(0.20 0.015 48);
  --ink-soft: oklch(0.41 0.020 54);
  --accent: oklch(0.48 0.118 38);
  --accent-soft: oklch(0.94 0.028 46);
  --accent-warm: oklch(0.64 0.105 72);
  --border: oklch(0.86 0.019 72);
}

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

html {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

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

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

/* ==========================================================================
   Scroll Progress Bar (CSS Scroll-Driven Animation + JS Fallback)
   ========================================================================== */
#scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-warm);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    #scroll-progress {
      animation: grow-progress auto linear;
      animation-timeline: scroll(root block);
    }
  }
}

/* ==========================================================================
   Sticky Top Chapter Bar: Never Get Lost
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: color-mix(in oklch, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.18rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 540px) {
  .brand-tag { display: none; }
}

.switcher-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.switch-pill {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.36rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--ink-soft);
  transition: background-color 220ms var(--ease-expo), color 220ms var(--ease-expo), border-color 220ms var(--ease-expo);
  white-space: nowrap;
}

.switch-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.switch-pill[aria-current="page"] {
  background: var(--surface-deep);
  border-color: var(--surface-deep);
  color: var(--ink-on-deep);
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.1rem;
}
.chapter-nav::-webkit-scrollbar { display: none; }

.chapter-pill {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background-color 200ms var(--ease-expo), color 200ms var(--ease-expo), border-color 200ms var(--ease-expo);
  white-space: nowrap;
}

.chapter-pill:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.chapter-pill.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 32%, transparent);
  font-weight: 600;
}

/* ==========================================================================
   Layout Container & Typography Scale (WCAG 1.4.4 max <= 2.5 * min)
   ========================================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 3.5vw, 2.25rem);
}

.section {
  padding-block: var(--space-section);
  scroll-margin-top: 6.5rem;
}

.section-alt {
  background: var(--surface-alt);
}

.section-deep {
  background: var(--surface-deep);
  color: var(--ink-on-deep);
}

.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-deep .kicker {
  color: var(--accent-warm);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.85rem); }
h3 { font-size: clamp(1.28rem, 1.05rem + 0.8vw, 1.75rem); }

.lead {
  font-size: clamp(1.04rem, 0.96rem + 0.35vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0.9rem 0 0;
}

.section-deep .lead {
  color: var(--ink-on-deep-soft);
  line-height: 1.7;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
  max-width: 72ch;
}

/* ==========================================================================
   Hero: Full-Bleed Atmospheric Story Opener
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(86dvh, 760px);
  display: grid;
  align-items: end;
  background: var(--surface-deep);
  color: var(--ink-on-deep);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in oklch, var(--surface-deep) 92%, black 18%) 0%,
    color-mix(in oklch, var(--surface-deep) 68%, black 12%) 56%,
    color-mix(in oklch, var(--surface-deep) 44%, black 10%) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.2rem, 6.5vw, 5.2rem) clamp(2.4rem, 4.8vw, 3.8rem);
}

.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.92 0.065 80);
  background: color-mix(in oklch, var(--surface-deep) 58%, black 25%);
  border: 1px solid color-mix(in oklch, var(--ink-on-deep) 20%, transparent);
  padding: 0.36rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.15rem;
}

@media (max-width: 640px) {
  .hero-eyebrow {
    border-radius: 12px;
    font-size: 0.71rem;
    letter-spacing: 0.08em;
    padding: 0.36rem 0.72rem;
  }
}

.hero-title {
  max-width: 16ch;
  color: var(--ink-on-deep);
  margin-bottom: 1.05rem;
  text-shadow: 0 2px 24px color-mix(in oklch, black 32%, transparent);
}

.hero-sub {
  font-size: clamp(1.02rem, 0.94rem + 0.35vw, 1.18rem);
  color: oklch(0.95 0.012 84);
  max-width: 56ch;
  margin: 0 0 1.9rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 240ms var(--ease-expo), background-color 220ms var(--ease-expo), border-color 220ms var(--ease-expo), color 220ms var(--ease-expo);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent-warm);
  color: oklch(0.18 0.02 52);
}
.btn-primary:hover {
  background: oklch(0.72 0.13 74);
}

.btn-ghost-light {
  background: color-mix(in oklch, var(--surface-deep) 45%, transparent);
  border-color: color-mix(in oklch, var(--ink-on-deep) 35%, transparent);
  color: var(--ink-on-deep);
}
.btn-ghost-light:hover {
  border-color: var(--ink-on-deep);
  background: color-mix(in oklch, var(--surface-deep) 70%, transparent);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink-on-deep);
}
.btn-accent:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Editorial hairline facts strip (no hero-metric SaaS boxes) */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.1rem 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklch, var(--ink-on-deep) 24%, transparent);
}

.fact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-on-deep-soft);
  margin-bottom: 0.2rem;
}

.fact-val {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 0.96rem + 0.4vw, 1.32rem);
  color: var(--ink-on-deep);
}

/* ==========================================================================
   Chapter 2: Asymmetric Family Checklist + Real Pavement Proof Spread
   ========================================================================== */
.promise-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

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

.promise-visual {
  position: relative;
}

.editorial-figure {
  margin: 0;
}

.editorial-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.editorial-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.editorial-figure figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

.secondary-inset {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 520px) {
  .secondary-inset { grid-template-columns: 1fr; }
}

.secondary-inset figure img {
  aspect-ratio: 4 / 3;
}

.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.promise-item {
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.promise-item:first-child { padding-top: 0; }
.promise-item:last-child { border-bottom: 0; }

.promise-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1.35;
}

.promise-item h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.promise-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Chapter 3: Flights, Timings & Zero-Scooter Transport
   ========================================================================== */
.flight-stack {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}

.flight-leg {
  container-type: inline-size;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.flight-leg-inner {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.7fr) minmax(160px, 0.9fr);
  gap: 1rem 1.6rem;
  align-items: center;
}

@container (max-width: 660px) {
  .flight-leg-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.leg-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.35rem;
}

.leg-date {
  font-weight: 700;
  font-size: 0.96rem;
}

.leg-airline {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.route-times {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.port-code {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.port-time {
  font-weight: 700;
  font-size: 1.02rem;
}

.port-city {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.route-line {
  flex: 1 1 90px;
  min-width: 80px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 0.25rem;
}

.leg-transfer {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-top: 0.25rem;
}

.leg-transfer strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.transport-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.transport-item h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.transport-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Chapter 4: Swipeable Resort Carousels + Interactive Stay Picker
   ========================================================================== */
.stay-group {
  margin-bottom: 3rem;
}
.stay-group:last-of-type { margin-bottom: 0; }

.stay-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.stay-group-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 1.75rem;
}

.stay-card {
  container-type: inline-size;
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 240ms var(--ease-expo), box-shadow 240ms var(--ease-expo);
}

.stay-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 12px 34px -18px color-mix(in oklch, var(--accent) 45%, transparent);
}

/* Accessible Scroll-Snap Carousel (modern-web-guidance spec) */
.carousel {
  position: relative;
  background: var(--surface-alt);
}

.carousel-controls {
  position: absolute;
  inset: 0 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--ink-on-deep) 40%, transparent);
  background: color-mix(in oklch, var(--ink) 62%, transparent);
  color: var(--ink-on-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease-expo), transform 180ms var(--ease-expo);
}

.carousel-btn:hover {
  background: color-mix(in oklch, var(--ink) 84%, transparent);
}

.carousel-btn:active {
  transform: scale(0.94);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: manipulation;
}
.carousel-track::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .carousel-track { scroll-behavior: smooth; }
}

.carousel-track > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}

/* Continuous looping via CSS order parking */
.carousel-track > :first-child {
  order: clamp(0, var(--current) - (var(--children-count, sibling-count()) - 3), 1);
}
.carousel-track > :last-child {
  order: calc(-1 * clamp(0, 2 - var(--current), 1));
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: color-mix(in oklch, var(--ink) 74%, transparent);
  color: var(--ink-on-deep);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.carousel-markers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.5rem;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
}

.carousel-marker {
  /* WCAG 2.5.8 >= 24x24 target size via transparent border + padding-box */
  width: 24px;
  height: 24px;
  padding: 0;
  border: 7px solid transparent;
  background-clip: padding-box;
  background-color: var(--border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  touch-action: manipulation;
  transition: width 220ms var(--ease-expo), background-color 200ms var(--ease-expo);
}

.carousel-marker[aria-current="true"] {
  width: 34px;
  background-color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 80%, black);
}

.stay-body {
  padding: 1.35rem 1.45rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stay-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.stay-role {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.stay-score {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.stay-name {
  margin-bottom: 0.4rem;
}

.stay-desc {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.stay-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.perk-chip {
  font-size: 0.79rem;
  font-weight: 500;
  padding: 0.26rem 0.62rem;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--ink);
}

.stay-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.stay-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
}

.stay-price-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.stay-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.choose-btn {
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 200ms var(--ease-expo), color 200ms var(--ease-expo);
}

.choose-btn:hover {
  background: var(--accent-soft);
}

.stay-card.is-selected .choose-btn {
  background: var(--accent);
  color: var(--ink-on-deep);
}

.ext-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.45rem 0.3rem;
}
.ext-link:hover { color: var(--accent); }

/* ==========================================================================
   Chapter 5: 14-Day Visual Story with Optional Skip / Relax Toggle
   ========================================================================== */
.pace-banner {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 26%, transparent);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.pace-banner p {
  margin: 0;
  font-size: 0.94rem;
  max-width: 68ch;
}

.pace-count {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.chapter-divider {
  margin: 2.8rem 0 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.chapter-divider:first-of-type { margin-top: 0; }

.day-list {
  display: grid;
  gap: 1.65rem;
}

.day-story {
  container-type: inline-size;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: opacity 240ms var(--ease-expo), border-color 240ms var(--ease-expo);
}

.day-story.is-skipped {
  background: var(--surface-alt);
  border-style: dashed;
}

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  align-items: stretch;
}

.day-story.no-photo .day-layout {
  grid-template-columns: 1fr;
}

@container (max-width: 720px) {
  .day-layout { grid-template-columns: 1fr; }
}

.day-photo {
  position: relative;
  min-height: 240px;
}

.day-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.day-story.is-skipped .day-photo img {
  filter: saturate(0.35) brightness(0.95);
}

.day-content {
  padding: clamp(1.2rem, 2.5vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.day-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.day-num {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.34rem 0.76rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease-expo), color 180ms var(--ease-expo), border-color 180ms var(--ease-expo);
}

.skip-toggle:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.day-story.is-skipped .skip-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-on-deep);
}

.day-summary {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.day-rhythm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.75rem 1.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.rhythm-slot span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.rhythm-slot p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink);
  line-height: 1.48;
}

.skip-note {
  display: none;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.day-story.is-skipped .skip-note { display: block; }
.day-story.is-skipped .day-rhythm { opacity: 0.45; }

/* ==========================================================================
   Chapter 6: Honest Pros & Cons
   ========================================================================== */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.75rem;
}

.pc-panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.pc-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.26rem 0.72rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.pc-tag.is-pro { background: var(--ok-bg); color: var(--ok); }
.pc-tag.is-con { background: var(--warn-bg); color: var(--warn); }

.pc-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.pc-list li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.pc-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.pc-list strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }

/* ==========================================================================
   Chapter 7: Live Interactive Budget & Share Your Pick
   ========================================================================== */
.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.2rem;
  align-items: start;
}

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

.budget-table {
  width: 100%;
  border-collapse: collapse;
}

.budget-table tr {
  border-bottom: 1px solid color-mix(in oklch, var(--ink-on-deep) 18%, transparent);
}

.budget-table th, .budget-table td {
  padding: 0.85rem 0;
  text-align: left;
  font-size: 0.95rem;
}

.budget-table th {
  font-weight: 500;
  color: var(--ink-on-deep-soft);
}

.budget-table td {
  text-align: right;
  font-weight: 600;
  color: var(--ink-on-deep);
  white-space: nowrap;
}

.budget-table .row-total th,
.budget-table .row-total td {
  padding-top: 1.2rem;
  border-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.65rem);
  color: var(--accent-warm);
}

.share-box {
  background: color-mix(in oklch, var(--surface-deep) 78%, white 10%);
  border: 1px solid color-mix(in oklch, var(--ink-on-deep) 20%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.share-preview {
  background: color-mix(in oklch, var(--surface-deep) 92%, black 8%);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-on-deep-soft);
  margin: 1rem 0 1.25rem;
  white-space: pre-line;
}

.copy-feedback {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--accent-warm);
  min-height: 1.3em;
}

/* ==========================================================================
   Scroll-Driven Reveal Animations (Progressive Enhancement + IO Fallback)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise-in {
      from {
        opacity: 0.15;
        transform: translateY(22px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .reveal {
      animation: rise-in auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
}

.reveal.io-pending {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms var(--ease-expo), transform 520ms var(--ease-expo);
}
.reveal.io-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hub Page (index.html) Split Two-Door Showcase
   ========================================================================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.hub-door {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 320ms var(--ease-expo), border-color 220ms var(--ease-expo);
}

.hub-door:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.hub-door img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hub-door-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.hub-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hub-compare th, .hub-compare td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.hub-compare th {
  font-weight: 700;
  background: var(--surface-alt);
}

.hub-compare tr:last-child td { border-bottom: 0; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
