:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-deep: #070a13;
  --surface: #11182b;
  --surface-2: #151d34;
  --surface-3: #1a2340;
  --line: rgba(226, 232, 240, 0.14);
  --line-strong: rgba(226, 232, 240, 0.24);
  --text: #f6f7fb;
  --muted: #a8b3c6;
  --muted-2: #78849a;
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.16);
  --rose: #ff3f81;
  --rose-soft: rgba(255, 63, 129, 0.16);
  --teal: #29d3b3;
  --teal-soft: rgba(41, 211, 179, 0.15);
  --gold: #f7c948;
  --gold-soft: rgba(247, 201, 72, 0.16);
  --sky: #38bdf8;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px, 36px 36px, auto;
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(41, 211, 179, 0.11), transparent 28%),
    linear-gradient(300deg, rgba(255, 63, 129, 0.1), transparent 30%),
    var(--bg-deep);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: linear-gradient(rgba(255, 255, 255, 0.95) 50%, transparent 50%);
  background-size: 100% 4px;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  transform: translateY(-140%);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--bg-deep);
  color: var(--text);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px max(18px, env(safe-area-inset-left)) 10px max(18px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 19, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(41, 211, 179, 0.5);
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links {
  position: fixed;
  top: 72px;
  right: max(16px, env(safe-area-inset-right));
  left: max(16px, env(safe-area-inset-left));
  z-index: 35;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(7, 10, 19, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-links a {
  min-height: 48px;
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-links[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 84px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.menu-lines {
  display: grid;
  gap: 5px;
  width: 18px;
}

.menu-lines i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button[aria-expanded="true"] .menu-lines i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-lines i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  gap: 24px;
  min-height: calc(100svh - 64px);
  padding: 42px 0 24px;
  align-items: center;
}

.hero-copy {
  animation: rise-in 600ms ease both;
}

.page-hero {
  display: grid;
  gap: 16px;
  min-height: calc(58svh - 64px);
  padding: 58px 0 20px;
  align-content: center;
}

.page-hero h1 {
  max-width: 11ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.18rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3.35rem, 18vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 7vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.25rem);
}

.countdown {
  width: min(100%, 520px);
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 43, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.countdown-label {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.countdown-grid span {
  min-width: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
}

.countdown-grid span:last-child {
  border-right: 0;
}

.countdown-grid strong,
.countdown-grid small {
  display: block;
}

.countdown-grid strong {
  color: var(--text);
  font-size: clamp(1.75rem, 11vw, 3.4rem);
  line-height: 1;
}

.countdown-grid small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.tab-button,
.accordion-trigger,
.check-item,
.link-button {
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border-color: transparent;
  background: var(--rose);
  color: #fff;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
}

.route-board {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 43, 0.75);
  box-shadow: var(--shadow);
  animation: rise-in 700ms ease 120ms both;
}

.route-board-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.route-board-header span {
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-board-header strong {
  font-size: 1rem;
}

.route-svg {
  display: block;
  width: 100%;
  min-height: 260px;
  padding: 6px;
}

.map-grid-line {
  fill: none;
  stroke: rgba(226, 232, 240, 0.09);
  stroke-width: 1;
}

.route-path {
  fill: none;
  stroke: url(#routeGlow);
  stroke-linecap: round;
  stroke-width: 8;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.45));
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  animation: draw-route 1400ms ease 400ms forwards;
}

.route-stop circle {
  fill: var(--surface-2);
  stroke: var(--teal);
  stroke-width: 3;
}

.route-stop-hot circle {
  stroke: var(--rose);
  filter: drop-shadow(0 0 10px rgba(255, 63, 129, 0.8));
}

.route-stop text {
  fill: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.route-key {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.key-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
}

.key-teal {
  background: var(--teal);
}

.key-purple {
  background: var(--purple);
}

.key-rose {
  background: var(--rose);
}

.overview-grid {
  display: grid;
  gap: 12px;
  margin: 10px 0 28px;
}

.info-panel,
.note-card,
.source-card,
.recommendation-card,
.rule-card,
.budget-card,
.budget-row,
.budget-note,
.feedback-form,
.feedback-list-shell,
.feedback-item,
.check-group,
.accordion-item,
.day-panel,
.activity-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 43, 0.78);
}

.info-panel {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.panel-icon,
.mode-icon,
.note-icon,
.route-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--teal);
}

.panel-icon svg,
.mode-icon svg,
.note-icon svg,
.route-icon svg,
.check-box svg {
  width: 21px;
  height: 21px;
}

.panel-kicker {
  margin: 0 0 3px;
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-panel h2 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.info-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-block {
  padding: 42px 0 18px;
  scroll-margin-top: 84px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.day-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -16px 14px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.tab-button strong,
.tab-button span {
  display: block;
}

.tab-button strong {
  color: var(--text);
  font-size: 0.9rem;
}

.tab-button span {
  margin-top: 2px;
  font-size: 0.76rem;
}

.tab-button[aria-selected="true"] {
  border-color: rgba(255, 63, 129, 0.72);
  background: var(--rose-soft);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--rose);
}

.day-panel {
  padding: 16px;
  box-shadow: var(--shadow);
}

.day-panel-header {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.day-title-block h3 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 7vw, 2.4rem);
}

.day-title-block p {
  margin-bottom: 0;
  color: var(--muted);
}

.day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-hot {
  border-color: rgba(255, 63, 129, 0.54);
  background: var(--rose-soft);
  color: var(--text);
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.timeline-list::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 21px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--teal), var(--purple), var(--rose));
  opacity: 0.55;
}

.activity-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: rgba(11, 16, 32, 0.58);
}

.activity-content {
  min-width: 0;
}

.activity-time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 6px;
  padding: 3px 8px;
  background: rgba(41, 211, 179, 0.11);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-content h4 {
  margin: 8px 0 5px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.activity-content p {
  margin-bottom: 8px;
  color: var(--muted);
}

.transport-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tip {
  margin-top: 10px;
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 10px;
  color: #f6e7b4;
  font-size: 0.88rem;
}

.accordion-list {
  display: grid;
  gap: 12px;
}

.recommendation-grid,
.decision-rules,
.budget-overview,
.budget-breakdown,
.budget-days,
.budget-notes {
  display: grid;
  gap: 12px;
}

.decision-rules,
.budget-breakdown,
.budget-days,
.budget-notes {
  margin-top: 12px;
}

.recommendation-card,
.rule-card,
.budget-card,
.budget-row,
.budget-note {
  padding: 14px;
}

.recommendation-card {
  display: grid;
  gap: 12px;
}

.recommendation-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recommendation-score {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(41, 211, 179, 0.42);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.recommendation-body {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.recommendation-body p,
.rule-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.recommendation-meta {
  display: grid;
  gap: 8px;
}

.recommendation-meta span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.recommendation-meta strong {
  color: var(--text);
}

.rule-card {
  border-left: 3px solid var(--rose);
}

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

.budget-card h3,
.budget-row h3,
.budget-note h3 {
  margin-bottom: 4px;
}

.budget-amount {
  display: grid;
  gap: 4px;
}

.budget-amount strong {
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  line-height: 1;
}

.budget-amount span,
.budget-card p,
.budget-row p,
.budget-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.budget-card-primary {
  border-color: rgba(41, 211, 179, 0.45);
  background: linear-gradient(135deg, rgba(41, 211, 179, 0.13), rgba(17, 24, 43, 0.78));
}

.budget-card-hot {
  border-color: rgba(255, 63, 129, 0.42);
  background: linear-gradient(135deg, rgba(255, 63, 129, 0.14), rgba(17, 24, 43, 0.78));
}

.budget-row {
  display: grid;
  gap: 10px;
}

.budget-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.budget-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--purple-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.budget-row-values {
  display: grid;
  gap: 8px;
}

.budget-row-values span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  color: var(--muted);
}

.budget-row-values strong {
  color: var(--text);
}

.budget-note {
  border-left: 3px solid var(--gold);
}

.feedback-workspace {
  display: grid;
  gap: 12px;
}

.feedback-form,
.feedback-list-shell {
  padding: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(7, 10, 19, 0.64);
  color: var(--text);
  font: inherit;
}

.feedback-form textarea {
  min-height: 128px;
  resize: vertical;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--muted-2);
}

.feedback-message {
  margin-top: 12px;
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

#feedback-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.feedback-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feedback-list-header h3 {
  margin: 0;
}

.feedback-list {
  display: grid;
  gap: 10px;
}

.feedback-item {
  padding: 12px;
  background: rgba(7, 10, 19, 0.38);
}

.feedback-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.feedback-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
}

.accordion-item {
  overflow: hidden;
}

.accordion-trigger {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  padding: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.accordion-trigger strong,
.accordion-trigger span {
  display: block;
}

.accordion-trigger span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.accordion-caret {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  transition: transform 180ms ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-caret {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding: 0 14px 16px;
}

.accordion-panel[data-open="true"] {
  display: block;
  animation: fade-in 180ms ease both;
}

.route-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.route-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.step-number {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.route-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.route-meta span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
}

.route-meta strong {
  color: var(--text);
}

.split-section {
  display: grid;
  gap: 18px;
}

.sticky-heading {
  align-self: start;
}

.progress-shell {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.link-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 900;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--rose));
  transition: width 240ms ease;
}

.checklist-groups {
  display: grid;
  gap: 12px;
}

.check-group {
  padding: 14px;
}

.check-group h3 {
  margin: 0 0 12px;
}

.check-items {
  display: grid;
  gap: 8px;
}

.check-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.check-item[aria-pressed="true"] {
  border-color: rgba(41, 211, 179, 0.55);
  background: var(--teal-soft);
}

.check-item[aria-pressed="true"] .check-label {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: rgba(246, 247, 251, 0.72);
}

.check-box {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
}

.check-item[aria-pressed="true"] .check-box {
  border-color: var(--teal);
  background: var(--teal);
  color: #06110f;
}

.check-label {
  display: block;
  font-weight: 800;
}

.check-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.notes-grid {
  display: grid;
  gap: 12px;
}

.note-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.note-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.source-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.source-card strong {
  color: var(--text);
}

.source-card:hover,
.source-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(41, 211, 179, 0.5);
}

.sources-list {
  display: grid;
  gap: 12px;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(41, 211, 179, 0.9);
  outline-offset: 3px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes draw-route {
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 720px) {
  main,
  .footer {
    width: min(1180px, calc(100% - 56px));
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.76fr);
    gap: 40px;
    padding-top: 62px;
  }

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

  .day-panel-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .route-key,
  .route-meta,
  .sources-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .budget-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-row-values {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .split-section {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  }

  .sticky-heading {
    position: sticky;
    top: 92px;
  }

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

  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .menu-button {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    min-height: 44px;
    padding: 12px 9px;
  }
}

@media (min-width: 1040px) {
  .notes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
