/* Swiftbon Travel landing page
   Palette from the Travel deck: paper, sand, navy ink, forest green, a touch of amber.
   Outfit for display, Instrument Sans for everything else. Hairlines for structure.
   The chat thread in the hero is the only loud element. */

:root {
    --paper: #F9F8F4;
    --sand: #EFECE4;
    --sand-2: #E6E2D8;
    --ink: #0F1F2E;
    --ink-2: #2A3B4D;
    --grey: #5F6B78;
    --line: #E3E0D7;
    --line-strong: #CFCBC0;
    --green: #0E6E5C;
    --green-deep: #0A5546;
    --green-tint: #DCEFE9;
    --amber: #E8A33C;
    --amber-tint: #FBEEDC;
    --white: #FFFFFF;

    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Outfit", "Instrument Sans", system-ui, sans-serif;

    --r-panel: 22px;
    --r-card: 14px;
    --r-ctl: 10px;
    --r-chip: 6px;

    --container: 1160px;
    --gutter: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
b { font-weight: 600; }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px;
    background: var(--ink); color: var(--white);
    padding: 10px 14px; border-radius: var(--r-ctl); z-index: 100;
}
.skip-link:focus { top: 16px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Type scale */
h1, h2, h3, .brand-word {
    font-family: var(--font-display);
}
h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.5rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    font-weight: 600;
    max-width: 11ch;
}
h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 600;
}
h3 {
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 600;
}
h4 {
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
}
p { color: var(--grey); }
.lede {
    font-size: 1.15rem;
    line-height: 1.55;
    max-width: 52ch;
    margin: 28px 0 36px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: var(--r-ctl);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-brand { background: var(--green); color: var(--white); }
.btn-brand:hover { background: var(--green-deep); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Brand lockup */
.brand { display: inline-flex; align-items: baseline; gap: 8px; }
.brand-word {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.brand-sub {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.01em;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(249, 248, 244, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
}
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 0; background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute; left: 12px; right: 12px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 64px 0 96px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: start;
}
.hero-copy { padding-top: 48px; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 28px;
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px var(--green-tint);
}

.inline-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
}
.inline-form input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctl);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.inline-form input[type="email"]::placeholder { color: var(--grey); }
.inline-form input[type="email"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-tint);
}
.inline-form .btn { height: 48px; }
.form-note {
    font-size: 0.85rem;
    margin-top: 12px;
    min-height: 1.3em;
}
.form-note.is-ok { color: var(--green); }
.form-note.is-err { color: #B42318; }

/* Chat mock */
.chat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    box-shadow: 0 1px 2px rgba(15, 31, 46, 0.04), 0 28px 56px -28px rgba(15, 31, 46, 0.25);
    overflow: hidden;
    font-size: 0.9rem;
}
.chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}
.chat-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.chat-sub { font-size: 0.8rem; color: var(--grey); }
.tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--grey);
    border: 1px solid var(--line);
    border-radius: var(--r-chip);
    padding: 3px 8px;
}

.chat-body {
    padding: 20px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    animation: msg-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.msg.me {
    align-self: flex-end;
    background: var(--ink);
    color: var(--white);
    border-bottom-right-radius: 4px;
}
.msg.bot {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    color: var(--ink);
}
.chat-body > :nth-child(1) { animation-delay: 0.5s; }
.chat-body > :nth-child(2) { animation-delay: 1.2s; }
.chat-body > :nth-child(3) { animation-delay: 2.0s; }
.chat-body > :nth-child(4) { animation-delay: 2.7s; }
.chat-body > :nth-child(5) { animation-delay: 3.5s; }
.chat-body > :nth-child(6) { animation-delay: 3.9s; }
.chat-body > :nth-child(7) { animation-delay: 4.6s; }
@keyframes msg-in {
    to { opacity: 1; transform: translateY(0); }
}

.chat-day {
    align-self: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--grey);
    padding: 4px 10px;
    margin: 4px 0;
    opacity: 0;
    animation: msg-in 0.45s ease forwards;
}

.flight {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.flight .leg { display: flex; flex-direction: column; }
.flight .leg.right { text-align: right; }
.flight .leg b { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; }
.flight .leg span { font-size: 0.78rem; color: var(--grey); font-variant-numeric: tabular-nums; }
.leg-line { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.leg-line i {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--line-strong);
    position: relative;
}
.leg-line i::after {
    content: "";
    position: absolute;
    right: -1px; top: -3px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
}
.leg-line span { font-size: 0.72rem; color: var(--grey); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--green-deep);
    background: var(--green-tint);
    border-radius: var(--r-chip);
    padding: 4px 8px;
}

.chat-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    color: var(--grey);
    font-size: 0.85rem;
}
.chat-input i {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--green);
    position: relative;
}
.chat-input i::after {
    content: "";
    position: absolute;
    left: 10px; top: 9px;
    width: 7px; height: 7px;
    border: solid var(--white);
    border-width: 2px 2px 0 0;
    transform: rotate(-45deg);
}

/* Sections */
.section { padding: 96px 0; }
.section-head { margin-bottom: 56px; max-width: 60ch; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px 80px;
    align-items: start;
}
.split-body { padding-top: 8px; font-size: 1.05rem; max-width: 52ch; }
.split-note { margin-top: 16px; max-width: 42ch; }

/* Problem */
.problem {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.problem h2 { max-width: 20ch; }
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 64px;
}
.stat-row > div { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.stat-row dt {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.stat-row dd { color: var(--grey); font-size: 0.95rem; }

/* Pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}
.pillars li { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--green-tint);
    color: var(--green-deep);
    margin-bottom: 20px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillars h3 { font-size: 1.3rem; }
.pillars p { margin-top: 10px; font-size: 0.95rem; }
.footnote {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    max-width: 70ch;
}

/* Trip timeline */
.trip { padding-top: 0; }
.trip .split { padding-top: 96px; border-top: 1px solid var(--line); }
.timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}
.timeline h3 {
    font-size: 1rem;
    color: var(--green);
    margin-bottom: 16px;
}
.timeline ol { counter-reset: step; }
.timeline li {
    counter-increment: step;
    position: relative;
    padding: 12px 0 12px 36px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink-2);
}
.timeline li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 13px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Routes */
#routes { padding-top: 0; }
.routes li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.routes li:last-child { border-bottom: 1px solid var(--line); }
.route-pair {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.route-pair i {
    display: inline-block;
    width: 28px; height: 1px;
    background: var(--line-strong);
    position: relative;
}
.route-pair i::after {
    content: "";
    position: absolute;
    right: 0; top: -3px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
}
.route-meta { font-size: 0.9rem; color: var(--grey); text-align: right; }
.routes-next { margin-top: 24px; font-size: 0.95rem; max-width: 52ch; }

/* Trust band */
.band {
    background: var(--ink);
    color: var(--white);
}
.band p, .band dt { color: rgba(255, 255, 255, 0.62); }
.facts-table > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.facts-table > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.facts-table dt { font-size: 0.9rem; font-weight: 500; }
.facts-table dd { font-size: 1rem; line-height: 1.5; }

/* Waitlist */
.waitlist { padding: 120px 0; }
.waitlist-inner { max-width: 720px; text-align: center; }
.waitlist h2 { max-width: 22ch; margin: 0 auto; }
.waitlist p:not(.form-note) { margin: 20px auto 32px; font-size: 1.1rem; max-width: 50ch; }
.waitlist .inline-form { margin: 0 auto; }

/* Contact */
#contact { padding-top: 0; }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px 80px;
    padding-top: 96px;
    border-top: 1px solid var(--line);
}
.contact-list { margin-top: 32px; }
.contact-list > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}
.contact-list dt { color: var(--grey); }
.contact-list dd a:hover { color: var(--green); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctl);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-tint);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 64px 0 32px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.footer-brand .brand-word { font-size: 1.25rem; }
.footer-brand .brand-sub { margin-left: 6px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.social { margin-top: 20px; }
.social a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.site-footer h4 { font-size: 0.85rem; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; color: var(--grey); }
.site-footer li a:hover { color: var(--ink); }
.disclosure {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 90ch;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--grey);
}

/* Responsive */
@media (max-width: 1023px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual { max-width: 480px; }
    .pillars, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .hero { padding: 40px 0 72px; }
    .hero-copy { padding-top: 0; }
    .hero-visual { max-width: none; }

    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 72px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 20px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 0; border-top: 1px solid var(--line); }
    .site-nav .btn { margin: 16px 0 0; }

    .inline-form { flex-direction: column; max-width: none; }
    .inline-form input[type="email"] { flex: none; width: 100%; font-size: 1rem; }
    .inline-form .btn { width: 100%; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .trip .split { padding-top: 64px; }
    .stat-row { margin-top: 40px; }
    .pillars, .stat-row, .timeline { grid-template-columns: 1fr; gap: 28px; }
    .routes li { flex-direction: column; align-items: flex-start; gap: 6px; }
    .route-meta { text-align: left; }
    .facts-table > div { grid-template-columns: 1fr; gap: 6px; }
    .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .waitlist { padding: 80px 0; }
    .contact-grid { padding-top: 64px; }
    .msg { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .msg, .chat-day { animation: none; opacity: 1; transform: none; }
    * { transition: none !important; }
}
