:root {
  --paper: #f3eee4;
  --paper-2: #eae3d6;
  --ink: #1b1714;
  --ink-soft: #5c534a;
  --line: #d4cbbd;
  --accent: #b54a24;
  --do: #215845;
  --book: #1d4a73;
  --go: #8a4a1c;
  --white: #fbf8f2;
  --shadow: 0 1px 0 rgba(27, 23, 20, 0.06);
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 16px;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-right { display: flex; gap: 10px; align-items: center; }
.lang-wrap { position: relative; }
.lang-toggle {
  border: 0;
  background: none;
  padding: 6px 2px;
  font-size: 14px;
  color: var(--ink-soft);
}
.lang-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--ink-soft);
}
.lang-toggle[aria-expanded="true"] { color: var(--ink); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px;
  z-index: 20;
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 12px;
  font-size: 15px;
}
.lang-menu button:hover,
.lang-menu button:focus-visible { background: var(--paper-2); }
.lang-menu button[aria-selected="true"] { font-weight: 700; }

.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: end; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 520;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 16px; color: var(--ink-soft); max-width: 32em; margin: 0 0 24px; }
.hero-aside {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}
.hero-aside ol { margin: 0; padding-left: 22px; }
.hero-aside li { margin: 12px 0; font-size: 16px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  border: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.start { padding: 16px 28px; font-size: 18px; font-weight: 700; }
.text-link {
  border: 0;
  background: none;
  padding: 12px 4px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plan-addr {
  display: inline-block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plan-warn { margin: 8px 0 0; font-size: 14px; color: var(--accent); }
.stay-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.unlock-note { margin: 8px 0 0; font-size: 14px; color: var(--accent); }
.car-note { margin: 10px 0 0; font-size: 14px; color: var(--ink); }
.car-note p { margin: 0 0 8px; }
.lock-tag { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.try-tag { display: block; margin-top: 4px; font-size: 12px; color: var(--do); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.check-item.locked h3 { color: var(--ink-soft); font-weight: 500; }
.box.locked::after { border-style: dashed; opacity: 0.45; }
.order-why { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.isd-hit .actions { margin: 10px 0 0; }
.btn.do { background: var(--do); }
.btn.book { background: var(--book); }
.btn.go { background: var(--go); }

.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 10px 0 64px; }
.lane {
  padding: 22px;
  min-height: 180px;
  border: 1px solid var(--line);
  background: var(--white);
}
.lane h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 8px; font-weight: 520; }
.lane p { margin: 0; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; }
.dot.do { background: var(--do); }
.dot.book { background: var(--book); }
.dot.go { background: var(--go); }

section h2.section {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 520;
  margin: 0 0 8px;
}
.section-lead { color: var(--ink-soft); margin: 0 0 24px; }

.timeline { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.when { font-size: 13px; color: var(--ink-soft); }
.tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.tag.do { color: var(--do); }
.tag.book { color: var(--book); }
.tag.go { color: var(--go); }
.row h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; }
.row p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.intake, .plan { padding: 48px 0 80px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
}
.field { margin-bottom: 16px; }
.field .hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 8px 0; }
.check input { width: auto; }

.plan-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.stats { display: flex; gap: 28px; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 520; }
.stat span { font-size: 13px; color: var(--ink-soft); }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.task {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.task h3 { margin: 0 0 6px; font-size: 16px; }
.task p { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.task-links { display: flex; flex-wrap: wrap; gap: 8px; }

.leak {
  margin-top: 36px;
  padding: 22px;
  background: #f7e6dc;
  border: 1px solid #e4c4b4;
}
.leak h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 520; }
.leak ul { margin: 0; padding-left: 18px; }

.hidden { display: none !important; }
.footer { padding: 28px 0 48px; color: var(--ink-soft); font-size: 13px; border-top: 1px solid var(--line); }
.review { padding: 56px 0 24px; border-top: 1px solid var(--line); margin-top: 48px; }
.review-kinds { justify-content: flex-start; margin-bottom: 8px; }
.review-kinds .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.review-kinds input { width: auto; }
.review-thanks { font-size: 16px; margin: 0; }

.meter { margin-top: 14px; height: 8px; background: var(--paper-2); overflow: hidden; max-width: 280px; }
.meter > span { display: block; height: 100%; background: var(--do); }
.cockpit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.check-list { background: var(--white); border: 1px solid var(--line); }
.check-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.check-item:last-child { border-bottom: 0; }
.check-item.active { background: var(--paper); }
.check-item.late h3 { color: var(--accent); }
.tag.late { color: var(--accent); }
.check-main {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 14px 14px 0;
}
.check-item h3 { margin: 0; font-size: 15px; font-weight: 650; }
.due-late { display: block; margin-top: 4px; font-size: 12px; color: var(--accent); font-weight: 650; }
.when-line { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.box {
  width: 44px;
  min-height: 48px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
}
.box::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.box.on::after {
  background: var(--do);
  border-color: var(--do);
}
.desk { background: var(--white); border: 1px solid var(--line); padding: 22px; position: sticky; top: 16px; }
.desk h2 { font-family: var(--serif); font-size: 28px; margin: 8px 0 10px; font-weight: 520; }
.desk ol, .bring { margin: 0 0 16px; padding-left: 18px; color: var(--ink-soft); }
.shot-lead { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.shot-wrap { overflow-x: auto; margin: 0 0 16px; }
.shot-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shot-table th, .shot-table td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.shot-table thead th { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.shot-table tbody th { font-weight: 650; white-space: nowrap; padding-left: 0; }
.late-note, .stat.late b { color: var(--accent); }
.notify-hint { margin: 10px 0 0; font-size: 13px; color: var(--accent); }
.facts { background: var(--paper); padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.facts b { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.chip {
  display: inline-block;
  margin: 0 8px 6px 0;
  padding: 4px 8px;
  border: 1px dashed var(--line);
  background: var(--white);
  font-size: 13px;
}
.chip.on { background: var(--ink); color: var(--white); border-style: solid; border-color: var(--ink); }
.shot-admit {
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  padding: 10px 12px;
  margin: 0 0 12px;
}
.shot-match { margin: 0 0 12px; }
.shot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.shot-row .need { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.shot-row.gap strong { color: var(--accent); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.seg .chip { margin: 0; }
.desk .bank-pick { margin: 0 0 12px; }
.desk .bank-pick select { background: var(--white); }
.phase {
  border-top: 1px solid var(--line);
  padding: 16px 0 4px;
  margin-top: 8px;
}
.phase h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.phase p { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.desk .actions { margin-bottom: 8px; }
.isd-hit {
  background: var(--paper);
  padding: 12px 14px;
  margin: 0 0 14px;
}
.isd-hit strong {
  display: block;
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 700;
}
.isd-hit .shot-lead { margin: 0 0 6px; }
.isd-hit .shot-lead:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero, .plan-grid, .grid-2, .row, .plan-head { grid-template-columns: 1fr; }
  .cockpit { display: flex; flex-direction: column; }
  .desk { order: -1; position: static; }
  .row { gap: 4px; }
  .stats { flex-wrap: wrap; }
}
