:root {
  --bg: #edf2f8;
  --bg-deep: #d9e6f4;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(28, 47, 73, 0.12);
  --text: #16304f;
  --muted: #60758f;
  --accent: #2f6fd6;
  --accent-soft: rgba(47, 111, 214, 0.12);
  --shadow: 0 12px 34px rgba(25, 52, 92, 0.08);
  --shadow-soft: 0 6px 18px rgba(25, 52, 92, 0.05);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127, 187, 255, 0.3), transparent 38%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(180deg, #f6f9fd 0%, #e7eef7 48%, #eef4fb 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 92%);
  pointer-events: none;
  z-index: -1;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.glass {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.site-head,
.hero-copy,
.hero-route,
.top-nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 24px;
}

.site-brand h1 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  line-height: 1;
}

.head-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.head-pills span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.site-head,
.hero-copy,
.hero-route,
.panel,
.top-nav,
.top-timeline,
.budget-controls,
.timeline,
.flow-strip {
  border-radius: var(--radius-lg);
}

.site-head,
.hero-copy,
.hero-route,
.panel,
.top-timeline,
.budget-controls,
.timeline,
.flow-strip {
  padding: 22px;
}

.eyebrow,
.section-kicker,
.mini-label,
.route-chip,
.metric-label,
.control-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 0.96;
  margin-top: 14px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 6px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

p {
  margin: 0;
  line-height: 1.65;
}

.lede {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-metrics div {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.hero-route {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 246, 255, 0.82)),
    var(--surface);
}

.route-chip {
  display: inline-flex;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.route-line {
  display: grid;
  gap: 12px;
}

.route-line span,
.flow-node,
.route-rail div {
  position: relative;
  padding-left: 22px;
}

.route-line span::before,
.flow-node::before,
.route-rail div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(47, 111, 214, 0.12);
}

.route-line span::after,
.route-rail div::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1rem;
  width: 2px;
  height: calc(100% + 8px);
  background: linear-gradient(180deg, rgba(47, 111, 214, 0.42), rgba(47, 111, 214, 0.06));
}

.route-line span:last-child::after,
.route-rail div:last-child::after {
  display: none;
}

.route-footnote,
.support-copy,
.fine-print,
.module-heading p,
.timeline-card p {
  color: var(--muted);
}

.top-nav {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  box-shadow: var(--shadow-soft);
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  text-align: center;
  flex: 0 0 auto;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.top-timeline {
  margin-bottom: 16px;
}

.compact-heading h2 {
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
}

.compact-heading p:last-child {
  font-size: 0.95rem;
}

.top-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.top-step {
  padding: 14px 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.top-step span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.top-step strong {
  display: block;
  margin-top: 7px;
  font-size: 1rem;
}

.top-step p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.module {
  margin-top: 24px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.module-heading {
  margin-bottom: 14px;
}

.overview-grid,
.budget-grid,
.reminder-grid,
.packing-grid,
.payment-grid,
.route-grid {
  display: grid;
  gap: 14px;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.budget-grid,
.route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reminder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.packing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  line-height: 1.48;
}

.timeline {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-time {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
  padding-top: 6px;
}

.timeline-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.timeline-row.accent .timeline-card {
  background: linear-gradient(135deg, rgba(47, 111, 214, 0.14), rgba(255, 255, 255, 0.82));
}

.route-rail {
  display: grid;
  gap: 16px;
}

.route-rail span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.budget-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.toggle {
  appearance: none;
  border: 1px solid rgba(28, 47, 73, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.toggle.is-active {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.budget-grid {
  margin-top: 14px;
}

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

.budget-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.budget-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.emphasis {
  background:
    linear-gradient(140deg, rgba(47, 111, 214, 0.13), rgba(255, 255, 255, 0.82)),
    var(--surface);
}

.big-number {
  margin: 12px 0 10px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  font-family: "Iowan Old Style", "Baskerville", serif;
}

.split-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.payment-rounds {
  margin-top: 14px;
}

.payment-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.checklist-card {
  display: grid;
  gap: 10px;
}

.checklist-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
}

.flow-node {
  padding-top: 2px;
}

.flow-node span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.flow-node strong {
  display: block;
  margin-top: 6px;
}

.alt-surface .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.83), rgba(244, 248, 255, 0.84)),
    var(--surface);
}

@media (max-width: 1080px) {
  .top-timeline-grid,
  .hero,
  .overview-grid,
  .budget-grid,
  .route-grid,
  .payment-grid,
  .packing-grid,
  .budget-controls,
  .flow-strip {
    grid-template-columns: 1fr 1fr;
  }

  .flow-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 12px;
  }

  .site-head,
  .hero,
  .overview-grid,
  .budget-grid,
  .reminder-grid,
  .payment-grid,
  .route-grid,
  .budget-controls,
  .flow-strip {
    grid-template-columns: 1fr;
  }

  .top-timeline-grid,
  .packing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-head {
    padding: 16px;
    align-items: flex-start;
  }

  .head-pills {
    justify-content: flex-start;
  }

  .hero,
  .site-head,
  .hero-copy,
  .hero-route,
  .panel,
  .top-timeline,
  .budget-controls,
  .timeline,
  .flow-strip {
    padding: 18px;
    border-radius: 20px;
  }

  .top-nav {
    top: 10px;
    margin: 12px 0 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 12px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-nav a,
  .top-step p,
  .lede,
  .detail-list,
  p {
    font-size: 0.92rem;
  }

  body::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: white;
  }

  body::before,
  .top-nav {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .glass,
  .panel,
  .timeline-card,
  .payment-card,
  .checklist-card label {
    background: white;
    box-shadow: none;
    border: 1px solid #d6dce6;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .module {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
