:root {
  --ink: #17152b;
  --ink-soft: #5f5b73;
  --paper: #f8f5ee;
  --white: #fffefa;
  --line: #dcd7cd;
  --violet: #49309b;
  --violet-dark: #2d1b68;
  --sky: #88dcff;
  --lime: #d8ff55;
  --coral: #ff795f;
  --green: #157d5b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 14px clamp(22px, 5vw, 80px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.25rem; font-weight: 850; letter-spacing: -.04em; width: fit-content; }
.brand > span:last-child > span { color: var(--violet); }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: var(--ink); background: var(--lime); }
.site-header nav { display: flex; gap: 30px; font-size: .88rem; font-weight: 720; }
.site-header nav a:hover { color: var(--violet); }
.header-cta, .big-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; border-radius: 999px; }
.header-cta { justify-self: end; color: white; background: var(--ink); padding: 11px 20px; font-size: .9rem; }

.hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  gap: clamp(45px, 6vw, 100px);
  align-items: center;
  padding: clamp(74px, 9vw, 130px) clamp(24px, 6vw, 100px);
  background:
    radial-gradient(circle at 8% 12%, rgba(136,220,255,.36), transparent 23%),
    radial-gradient(circle at 88% 74%, rgba(216,255,85,.2), transparent 27%),
    var(--ink);
  color: white;
}
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 18px; color: var(--violet); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 900; }
.hero .eyebrow, .final-cta .eyebrow { color: var(--lime); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-size: clamp(3.5rem, 6.4vw, 7.4rem); line-height: .91; letter-spacing: -.075em; font-weight: 760; }
h1 em { color: var(--lime); font-style: normal; }
.hero-lead { color: #d5d2df; max-width: 680px; margin: 32px 0 26px; font-size: clamp(1.06rem, 1.4vw, 1.35rem); line-height: 1.55; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 22px; color: #efedf5; font-size: .88rem; font-weight: 720; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--lime); }

.checker-wrap { scroll-margin-top: 24px; }
.checker-card { background: var(--white); color: var(--ink); border-radius: 30px; box-shadow: 0 30px 75px rgba(3,2,15,.28); overflow: hidden; }
.checker-head { padding: 30px 34px 20px; display: flex; flex-direction: column; gap: 7px; }
.checker-head strong { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; letter-spacing: -.035em; }
.checker-step { color: var(--violet); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.checker-card form { padding: 0 34px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-row label, .manual-grid label, .select-field { display: grid; gap: 7px; }
.field-row label span, .manual-grid label span, .select-field span { font-size: .77rem; font-weight: 820; }
input, select { width: 100%; min-height: 56px; background: white; border: 1.5px solid #c9c3b9; color: var(--ink); border-radius: 13px; padding: 0 15px; outline: none; }
input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(73,48,155,.11); }
.primary-button { width: 100%; min-height: 59px; margin-top: 15px; padding: 12px 20px; border: 0; border-radius: 14px; background: var(--lime); color: var(--ink); font-weight: 900; display: flex; justify-content: center; align-items: center; gap: 10px; cursor: pointer; }
.primary-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.checker-foot { margin: 24px 0 0; padding: 18px 34px; background: #eeebe3; color: var(--ink-soft); text-align: center; font-size: .72rem; }
.checker-result { margin: 21px 34px 0; padding-top: 21px; border-top: 1px solid var(--line); }
.lookup-note { padding: 12px 14px; margin: 0 0 14px; border-radius: 10px; color: #6a5115; background: #fff4c7; font-size: .77rem; }
.flight-found { padding: 16px; border-radius: 14px; background: #eeebfb; margin-bottom: 17px; }
.flight-found .flight-route { display: flex; gap: 14px; align-items: center; font-size: 1.2rem; font-weight: 900; }
.flight-found i { color: var(--violet); font-style: normal; }
.flight-found .flight-identity { margin: 4px 0 0; color: var(--ink-soft); font-size: .72rem; }
.flight-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #d9d3ed; }
.flight-facts div { display: grid; gap: 2px; }
.flight-facts dt { color: var(--ink-soft); font-size: .64rem; font-weight: 750; }
.flight-facts dd { margin: 0; font-size: .72rem; font-weight: 820; }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 17px 0; }
legend { margin-bottom: 8px; font-size: .77rem; font-weight: 820; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-row button { border: 1px solid #cbc5bd; background: white; color: var(--ink); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: .74rem; }
.choice-row button.active { background: var(--violet); border-color: var(--violet); color: white; }
.select-field { margin-top: 13px; }
.select-field select { min-height: 50px; }
.estimate-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: center; margin-top: 17px; border-radius: 15px; background: var(--ink); color: white; padding: 15px 17px; }
.estimate-box span { font-size: .7rem; color: #cac6d7; }
.estimate-box strong { grid-column: 2; grid-row: 1 / span 2; font-size: 1.65rem; color: var(--lime); }
.estimate-box small { font-size: .62rem; color: #aaa5b8; }
.primary-button.inverse { background: var(--violet); color: white; }

.signal-bar { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: -1px auto 0; border: 1px solid var(--line); border-top: 0; background: var(--white); }
.signal-bar div { display: grid; padding: 28px 36px; border-right: 1px solid var(--line); }
.signal-bar div:last-child { border: 0; }
.signal-bar strong { font-size: 1.3rem; letter-spacing: -.04em; }
.signal-bar span { color: var(--ink-soft); font-size: .74rem; }

.model-section, .steps-section, .faq-section { padding: clamp(85px, 11vw, 150px) clamp(24px, 7vw, 120px); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; margin-bottom: 55px; }
.section-heading .eyebrow { margin-top: 12px; }
.section-heading h2, .rights-copy h2, .final-cta h2 { margin: 0; font-size: clamp(2.8rem, 5.2vw, 6.2rem); letter-spacing: -.07em; line-height: .96; font-weight: 750; }
.section-heading.compact { display: block; max-width: 950px; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1120px; margin-left: auto; }
.model-card { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 30px; background: var(--white); }
.muted-card { color: #777282; background: #efebe5; }
.our-card { border: 2px solid var(--violet); box-shadow: 12px 12px 0 var(--lime); }
.best-badge { position: absolute; right: 24px; top: -16px; padding: 7px 13px; background: var(--violet); color: white; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.card-kicker { margin: 0 0 28px; font-size: .78rem; font-weight: 860; text-transform: uppercase; letter-spacing: .1em; }
.money-row, .money-total { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.money-row span, .money-total span { font-size: .85rem; }
.money-row strong { font-size: 1.15rem; }
.money-row.negative strong { color: #b04a3b; }
.money-row.positive strong { color: var(--green); }
.money-total { border: 0; padding: 25px 0 8px; }
.money-total strong { font-size: 2.5rem; letter-spacing: -.06em; }
.small-note { color: var(--ink-soft); margin: 12px 0 0; font-size: .65rem; }
.explain-box { margin: 55px 0 0 auto; max-width: 1120px; display: grid; grid-template-columns: .5fr 1.5fr; gap: 40px; padding: 30px 34px; background: var(--sky); border-radius: 22px; }
.explain-box strong { font-size: 1.2rem; line-height: 1.2; }
.explain-box p { margin: 0; font-size: .87rem; }

.steps-section { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps-grid article { padding: 34px 42px 10px 0; border-right: 1px solid var(--line); }
.steps-grid article:not(:first-child) { padding-left: 42px; }
.steps-grid article:last-child { border: 0; }
.step-no { color: var(--violet); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.steps-grid h3 { margin: 45px 0 12px; font-size: 1.45rem; letter-spacing: -.04em; }
.steps-grid p { margin: 0; color: var(--ink-soft); font-size: .87rem; }

.rights-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 9vw, 140px); align-items: center; padding: clamp(85px, 11vw, 150px) clamp(24px, 8vw, 140px); background: var(--violet-dark); color: white; }
.rights-copy .eyebrow { color: var(--lime); }
.rights-copy > p:not(.eyebrow) { color: #cec8e1; max-width: 720px; font-size: 1rem; }
.rights-copy .legal-hint { font-size: .72rem !important; }
.compensation-stack { display: grid; gap: 11px; }
.compensation-stack div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.07); }
.compensation-stack span { color: #d6d0e5; }
.compensation-stack strong { color: var(--lime); font-size: 1.8rem; }

.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 23px 0; }
summary { cursor: pointer; font-weight: 800; list-style: none; position: relative; padding-right: 35px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 3px; top: -8px; color: var(--violet); font-size: 1.8rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-soft); max-width: 740px; margin: 15px 30px 0 0; font-size: .88rem; }

.final-cta { text-align: center; padding: clamp(85px, 10vw, 140px) 24px; color: white; background: var(--ink); }
.final-cta .eyebrow { margin-bottom: 22px; }
.big-cta { margin-top: 38px; padding: 16px 28px; background: var(--lime); color: var(--ink); }

footer { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 45px; align-items: start; padding: 48px clamp(24px, 6vw, 100px); color: var(--ink-soft); background: var(--white); border-top: 1px solid var(--line); font-size: .72rem; }
footer p { margin: 0; }
footer > div { justify-self: end; display: flex; flex-wrap: wrap; gap: 17px; }
.footer-brand { color: var(--ink); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 850px; }
  .section-heading { grid-template-columns: 1fr; }
  .model-grid { margin: 0; }
  .explain-box { margin-left: 0; }
  .faq-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > div { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { min-height: 70px; padding: 11px 18px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px; }
  .brand-mark svg { width: 28px; }
  .header-cta { padding: 10px 14px; font-size: .78rem; }
  .header-cta svg { display: none; }
  .hero { padding: 68px 18px; gap: 50px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .checker-head, .checker-card form { padding-left: 21px; padding-right: 21px; }
  .field-row, .manual-grid, .model-grid, .steps-grid, .rights-section, .signal-bar, .flight-facts { grid-template-columns: 1fr; }
  .checker-result { margin-left: 21px; margin-right: 21px; }
  .checker-foot { padding-left: 21px; padding-right: 21px; }
  .signal-bar { margin: 0; }
  .signal-bar div { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 25px; }
  .section-heading h2, .rights-copy h2, .final-cta h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .model-section, .steps-section, .faq-section { padding: 78px 20px; }
  .our-card { box-shadow: 7px 7px 0 var(--lime); }
  .explain-box { grid-template-columns: 1fr; gap: 13px; padding: 24px; }
  .steps-grid article, .steps-grid article:not(:first-child) { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps-grid h3 { margin-top: 20px; }
  .rights-section { padding: 78px 20px; }
  footer { grid-template-columns: 1fr; padding: 38px 20px; }
  footer > div { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

[hidden] { display: none !important; }
.preview-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: var(--ink); }
.preview-shell { width: min(100%, 580px); overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: 0 35px 90px rgba(3,2,15,.5); }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; background: #221e37; color: white; }
.preview-badge { padding: 7px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: var(--lime); font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.preview-content { padding: 44px 42px 38px; }
.preview-content h1 { color: var(--ink); font-size: clamp(3rem, 8vw, 4.3rem); }
.preview-content > p:not(.eyebrow) { margin: 20px 0 30px; color: var(--ink-soft); }
.preview-content form label { display: grid; gap: 7px; margin-top: 15px; font-size: .78rem; font-weight: 820; }
.preview-error { display: grid; gap: 3px; margin: 0 0 22px; padding: 14px 16px; border-left: 4px solid #bd493c; border-radius: 10px; background: #fbe8e4; color: #7b261f; }
.preview-error span { font-size: .76rem; }
.preview-foot { margin: 22px 0 0 !important; text-align: center; font-size: .7rem; }
.project-user { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px clamp(18px,5vw,80px); background: #221e37; color: #d8d4e3; font-size: .68rem; }
.project-user form { margin: 0; }
.project-user button { border: 0; padding: 0; background: none; color: var(--lime); cursor: pointer; font: inherit; font-weight: 800; }
.checker-result.is-visible { display: block; }
.manual-grid input { min-height: 50px; }
.checker-result .choice-row button { transition: background-color .15s ease, color .15s ease; }
.api-source { margin: 8px 0 0; color: var(--ink-soft); font-size: .62rem; }

@media (max-width: 560px) {
  .preview-page { padding: 0; background: var(--white); }
  .preview-shell { min-height: 100svh; border-radius: 0; }
  .preview-content { padding: 38px 24px; }
  .preview-top { padding: 20px 24px; }
}
