:root {
  --paper: #ffffff;
  --ink: #0b0d0c;
  --forest: #1f5a3d;
  --forest-dark: #16442e;
  --forest-soft: #e8f0eb;
  --stone: #f2f2ec;
  --stone-dark: #deded5;
  --muted: #5a5e59;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --radius: 0;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--forest);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-cta):hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-cta {
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--stone);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 54px;
  align-items: center;
  padding-top: 82px;
  padding-bottom: 88px;
}

.eyebrow,
.step-count,
.note-kicker {
  margin: 0 0 12px;
  color: var(--forest-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.form-step h3,
.tutorial-card h3,
.explainer h3,
.limits-grid h3 {
  margin-top: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6.7vw, 5.4rem);
  line-height: 0.98;
  font-weight: 950;
}

.hero-lede {
  max-width: 700px;
  margin: 0 0 30px;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  color: #2d312e;
}

.hero-note {
  padding: 24px;
  background: var(--forest-soft);
  border: var(--border);
  box-shadow: var(--shadow);
}

.note-question {
  margin: 0 0 18px;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.note-small {
  margin: 0;
  color: #353936;
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease, background 100ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(31, 90, 61, 0.26);
  outline-offset: 3px;
}

.button-primary {
  background: var(--forest);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--forest-dark);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
}

.search-section {
  padding: 26px 0 92px;
}

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

.section-heading.wide {
  max-width: 860px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.neo-card {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
}

.search-card {
  padding: clamp(22px, 4vw, 42px);
}

.progress-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  margin-bottom: 42px;
}

.progress-step {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #777b77;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #a7aba7;
  background: var(--paper);
  color: #6d716d;
  font-weight: 900;
}

.progress-step.is-active,
.progress-step.is-complete {
  color: var(--ink);
}

.progress-step.is-active span {
  background: var(--forest);
  border-color: var(--ink);
  color: var(--paper);
}

.progress-step.is-complete span {
  background: var(--forest-soft);
  border-color: var(--ink);
  color: var(--ink);
}

.progress-line {
  height: 3px;
  margin: 0 8px 20px;
  background: var(--stone-dark);
}

.form-step h3 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.step-help {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.field-medium {
  max-width: 390px;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 11px 14px;
  border: var(--border);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
}

.field input::placeholder {
  color: #9a9d9a;
}

.field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.deadline-example,
.notice-box {
  margin-top: 22px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  background: var(--stone);
  font-size: 0.92rem;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
}

.step-actions.right {
  justify-content: flex-end;
}

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

.review-grid > div {
  min-height: 96px;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--stone);
}

.review-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-grid strong {
  font-size: 1.15rem;
}

.form-error {
  margin-top: 24px;
  padding: 14px 16px;
  border: var(--border);
  background: var(--stone);
  font-weight: 800;
}

.loading-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  background: var(--forest-soft);
}

.loading-panel p {
  margin: 3px 0 0;
  color: var(--muted);
}

.loader {
  width: 30px;
  height: 30px;
  border: 4px solid var(--ink);
  border-top-color: var(--forest);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.results-panel {
  margin-top: 32px;
}

.results-panel > * + * {
  margin-top: 22px;
}

.result-summary,
.flight-results,
.method-details {
  padding: clamp(20px, 3vw, 30px);
}

.result-summary.is-recommendation {
  background: var(--forest-soft);
}

.result-status {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-summary h3 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.result-summary p {
  max-width: 760px;
  margin: 0;
  color: #333834;
}

.flight-results h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.flight-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
}

.flight-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.flight-table th,
.flight-table td {
  padding: 13px 14px;
  border-bottom: 2px solid var(--ink);
  vertical-align: middle;
}

.flight-table th {
  background: var(--stone);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flight-table tbody tr:last-child td {
  border-bottom: 0;
}

.flight-table tr.is-recommended {
  background: var(--forest-soft);
}

.flight-table tr.is-unsupported {
  color: #777b77;
}

.badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.is-green {
  background: var(--forest);
  color: var(--paper);
}

.method-details summary {
  cursor: pointer;
  font-weight: 900;
}

.method-details-body,
#method-details-body {
  margin-top: 18px;
}

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

.method-grid > div {
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--stone);
}

.method-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.method-grid strong {
  display: block;
  margin-top: 5px;
}

.how-section {
  padding: 88px 0 100px;
  border-top: var(--border);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tutorial-card {
  min-height: 250px;
  padding: 26px;
  background: var(--stone);
}

.tutorial-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 38px;
  border: 2px solid var(--ink);
  background: var(--forest);
  color: var(--paper);
  font-weight: 900;
}

.tutorial-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.tutorial-card p {
  margin: 0;
  color: #3f433f;
}

.explainer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  margin-top: 36px;
  padding: 30px;
  background: var(--forest-soft);
}

.explainer h3 {
  margin-bottom: 0;
  font-size: 1.8rem;
  line-height: 1.05;
}

.explainer > p {
  margin: 0;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.limits-grid > div {
  padding: 24px;
  border-top: var(--border);
}

.limits-grid h3 {
  margin-bottom: 8px;
}

.limits-grid p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(18px, calc((100vw - var(--max)) / 2));
  border-top: var(--border);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 58px;
    padding-bottom: 68px;
  }

  .hero-note {
    max-width: 620px;
  }

  .tutorial-grid,
  .explainer,
  .limits-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --shadow: 5px 5px 0 var(--ink);
  }

  .site-header {
    min-height: 64px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .two-columns,
  .review-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .progress-step b {
    display: none;
  }

  .progress-line {
    margin-bottom: 0;
  }

  .progress-wrap {
    margin-bottom: 32px;
  }

  .step-actions {
    align-items: stretch;
  }

  .step-actions .button {
    flex: 1;
  }

  .site-footer {
    flex-direction: column;
  }
}

@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;
  }
}
