/* ==========================================================================
   EmbassyFile — public site
   ==========================================================================

   HAND-WRITTEN, BECAUSE THIS PROJECT HAS NO ASSET PIPELINE. There is no Vite
   and no Tailwind here; the admin panel injects its own plain stylesheet from
   public/ for the same reason (see AdminPanelProvider::customStylesheetTag).
   That constraint is worth respecting rather than working around: it means the
   whole site deploys by copying files onto a shared host, which is where this
   application actually runs.

   The layout links this with a ?v= built from the file's modification time, so
   an edit reaches browsers without anybody clearing a cache.

   Structure:
     1. Tokens
     2. Reset & base
     3. Buttons
     4. Header & footer
     5. Hero
     6. Sections, cards, chips
     7. Pricing
     8. FAQ & prose
     9. Forms
    10. Responsive
   ========================================================================== */


/* 1. Tokens ================================================================ */

:root {
    /* Teal rather than the panel's amber, deliberately. The marketing site and
       the product are two different rooms: an agency reaching /app should feel
       it has arrived somewhere, and the panel's brand colour is per-tenant
       anyway (Site Settings), so matching it here would be matching one
       customer's choice. */
    --ink:        #0f172a;
    --ink-soft:   #475569;
    --ink-faint:  #64748b;

    --brand:      #0f766e;
    --brand-dark: #115e59;
    --brand-tint: #f0fdfa;

    --line:       #e2e8f0;
    --paper:      #ffffff;
    --tint:       #f8fafc;

    --danger:     #b91c1c;
    --danger-bg:  #fef2f2;

    --radius:     14px;
    --radius-sm:  10px;

    --shadow-sm:  0 1px 2px rgba(15, 23, 42, .06);
    --shadow:     0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg:  0 20px 48px rgba(15, 23, 42, .12);

    --wrap:       1140px;
    --wrap-narrow: 760px;
}


/* 2. Reset & base ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.muted { color: var(--ink-faint); }
.center { text-align: center; }
.small { font-size: .9rem; }

/* Visible only when tabbed to — the first stop for a keyboard user, and the
   thing that makes a long marketing page skippable. */
.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand); color: #fff; padding: 12px 20px; z-index: 100;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

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


/* 3. Buttons =============================================================== */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600; font-size: .95rem;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .08s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--solid  { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-dark); }

.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-tint); }

.btn--ghost  { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-faint); }

.btn--lg { padding: .9rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }


/* 4. Header & footer ======================================================= */

.nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 68px; }

.nav__brand { display: flex; align-items: center; gap: .625rem; font-weight: 750; color: var(--ink); }
.nav__brand:hover { text-decoration: none; }

.nav__mark {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--brand); color: #fff;
    font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}
.nav__name { font-size: 1.0625rem; letter-spacing: -.01em; }

.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a { color: var(--ink-soft); font-size: .9375rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }

.nav__actions { display: flex; gap: .625rem; }

.foot { border-top: 1px solid var(--line); background: var(--tint); margin-top: 0; }
.foot__inner {
    display: flex; flex-wrap: wrap; gap: 2rem;
    align-items: flex-start; justify-content: space-between;
    padding-top: 3rem; padding-bottom: 2rem;
}
.foot__brand { display: flex; gap: .75rem; align-items: center; }
.foot__name { margin: 0; font-weight: 700; }
.foot__tag { margin: 0; color: var(--ink-faint); font-size: .9rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot__links a { color: var(--ink-soft); font-size: .9rem; }
.foot__legal { border-top: 1px solid var(--line); padding-top: 1.25rem; padding-bottom: 2rem; }
.foot__legal p { margin: 0; color: var(--ink-faint); font-size: .85rem; }


/* 5. Hero ================================================================== */

.hero {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background:
        radial-gradient(1000px 500px at 15% -10%, var(--brand-tint), transparent 60%),
        radial-gradient(800px 400px at 95% 10%, #eff6ff, transparent 55%);
}
.hero__inner {
    display: grid; gap: 3rem;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: .8rem; font-weight: 650;
    letter-spacing: .02em; text-transform: uppercase;
}

.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 34em; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }

.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.hero__points li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: .9rem; }
.hero__points li::before {
    content: ''; position: absolute; left: 0; top: .55em;
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

/* The drawn mock. Every rectangle is a div — no screenshot, because a
   screenshot of this product is a screenshot of somebody's passengers. */
.mock {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--tint); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock__body { display: grid; grid-template-columns: 92px 1fr; min-height: 260px; }
.mock__side { padding: 14px 10px; border-right: 1px solid var(--line); background: var(--tint); display: grid; gap: 10px; align-content: start; }
.mock__item { height: 9px; border-radius: 4px; background: #e2e8f0; }
.mock__item--on { background: var(--brand); opacity: .75; }
.mock__main { padding: 18px; display: grid; gap: 16px; align-content: start; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.mock__stat b { display: block; font-size: 1.05rem; color: var(--ink); }
.mock__stat i { font-style: normal; font-size: .7rem; color: var(--ink-faint); }
.mock__rows { display: grid; gap: 9px; }
.mock__rows span { height: 11px; border-radius: 4px; background: #eef2f7; }
.mock__rows span:nth-child(2) { width: 88%; }
.mock__rows span:nth-child(3) { width: 94%; }
.mock__rows span:nth-child(4) { width: 76%; }
.mock__rows span:nth-child(5) { width: 91%; }


/* 6. Sections, cards, chips ================================================ */

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--ink); }
.card p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .625rem; justify-content: center; }
.chip {
    display: inline-flex; align-items: baseline; gap: .5rem;
    padding: .5rem 1rem;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper);
    font-size: .9rem; font-weight: 550;
}
.chip i { font-style: normal; font-size: .75rem; color: var(--ink-faint); }
.chip--core { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }


/* 7. Pricing =============================================================== */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1.5rem; }

.plan {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.plan--featured {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    /* Lifted rather than enlarged: a transform:scale would blur the text on
       the one card people read most carefully. */
    margin-top: -12px;
    padding-top: 2.25rem;
}
.plan__ribbon {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff;
    padding: .25rem .875rem; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    white-space: nowrap;
}
.plan__name { margin-bottom: .25rem; font-size: 1.25rem; }
.plan__tag { color: var(--ink-faint); font-size: .875rem; min-height: 2.6em; }
.plan__price { margin: .5rem 0 1.25rem; }
.plan__amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; }
.plan__period { color: var(--ink-faint); font-size: .9rem; }
.plan__cta { width: 100%; }
.plan__seats { margin: 1rem 0 .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.plan__list li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--ink-soft); }
.plan__list li::before {
    content: ''; position: absolute; left: .25rem; top: .5em;
    width: 6px; height: 10px;
    border: solid var(--brand); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* 8. FAQ & prose =========================================================== */

.faq { display: grid; gap: .75rem; }
.faq details {
    background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}
.faq summary {
    cursor: pointer; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: .75rem 0 0; color: var(--ink-soft); font-size: .9375rem; }

.closer {
    background: var(--brand); color: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    text-align: center;
}
.closer h2 { color: #fff; }
.closer p { color: rgba(255,255,255,.85); max-width: 40rem; margin: 0 auto 1.75rem; }
.closer .btn--solid { background: #fff; color: var(--brand-dark); }
.closer .btn--solid:hover { background: #f0fdfa; }

.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.prose ul { color: var(--ink-soft); padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose p { color: var(--ink-soft); }

.callout {
    border-left: 3px solid var(--brand);
    background: var(--brand-tint);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0 2rem;
}
.callout p { margin: 0; color: var(--ink); font-size: .9rem; }


/* 9. Forms ================================================================= */

.signup .section__head { margin-bottom: 2rem; }

.form { display: grid; gap: 1.75rem; }

.form__group {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; margin: 0;
    background: var(--paper);
}
.form__group legend {
    padding: 0 .5rem; margin-left: -.5rem;
    font-weight: 700; font-size: 1.0625rem;
}

.field { display: grid; gap: .375rem; margin-bottom: 1.125rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field label { font-weight: 600; font-size: .9rem; }
.req { color: var(--danger); }

.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=password] {
    width: 100%;
    padding: .65rem .875rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .95rem;
    background: var(--paper); color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.hint { margin: 0; font-size: .8125rem; color: var(--ink-faint); }
.err  { margin: 0; font-size: .8125rem; color: var(--danger); font-weight: 550; }

.field--check { margin-top: -.5rem; }
.check { display: flex; gap: .625rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--brand); }

.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.alert--error { background: var(--danger-bg); border: 1px solid #fecaca; color: #7f1d1d; }
.alert__title { margin: 0 0 .5rem; font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.25rem; font-size: .9rem; }

.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
.pick { position: relative; cursor: pointer; }
.pick input {
    /* Off-screen rather than display:none — a hidden input is skipped by
       keyboard navigation, and this is the field that chooses what somebody
       pays. */
    position: absolute; opacity: 0; width: 1px; height: 1px;
}
.pick__body {
    display: grid; gap: .2rem;
    border: 2px solid var(--line); border-radius: var(--radius-sm);
    padding: 1rem; height: 100%;
    transition: border-color .15s, background-color .15s;
}
.pick:hover .pick__body { border-color: var(--ink-faint); }
.pick input:focus-visible + .pick__body { outline: 3px solid var(--brand); outline-offset: 2px; }
.pick--on .pick__body { border-color: var(--brand); background: var(--brand-tint); }
.pick__name  { font-weight: 700; }
.pick__price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.pick__price i { font-style: normal; font-size: .8rem; font-weight: 500; color: var(--ink-faint); }
.pick__tag   { font-size: .8rem; color: var(--ink-soft); }
.pick__seats { font-size: .75rem; color: var(--ink-faint); }


/* 10. Responsive =========================================================== */

@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__art { order: -1; max-width: 520px; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .plan--featured { margin-top: 0; padding-top: 2.25rem; }
    .picks { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    /* The links go, the buttons stay. On a phone the two things somebody came
       for are "sign in" and "start" — a wrapped row of anchor links above them
       just pushes both below the fold. */
    .nav__links { display: none; }
    .nav__inner { gap: 1rem; }
    .grid--3 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .foot__inner { flex-direction: column; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
