/* GA Pilot Log — marketing site
   Colours come from the app icon's attitude indicator (Views/Shared/Brand.swift). */

:root {
    --sky: #2F7FC1;
    --sky-light: #5AA4E0;
    --earth: #B8681E;
    --earth-light: #E08E45;
    --navy: #1A2B46;
    --navy-light: #2A4066;
    --green: #2E9E5B;
    --amber: #D99A1E;
    --red: #C9452F;

    --bg: #FFFFFF;
    --bg-alt: #F3F6FA;
    --text: #1A2B46;
    --text-soft: #4A5A72;
    --card: #FFFFFF;
    --border: #DDE4EE;

    --radius: 18px;
    --max: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0E1726;
        --bg-alt: #142036;
        --text: #E9EEF6;
        --text-soft: #A7B4C8;
        --card: #18263D;
        --border: #263856;
        --sky: #5AA4E0;
        --earth: #E08E45;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

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

/* ---------- Navigation ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(26, 43, 70, 0.88);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.brand:hover { text-decoration: none; }

.nav-links {
    display: flex;
    gap: 26px;
    font-size: 15px;
}

.nav-links a { color: rgba(255, 255, 255, 0.85); }
.nav-links a:hover { color: #fff; text-decoration: none; }

@media screen and (max-width: 760px) {
    .nav-links { display: none; }
}

/* ---------- Hero: the horizon ---------- */

.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    /* Hard sky/earth split, like the icon */
    /* Fixed-height earth band so the horizon never cuts through the text */
    background: linear-gradient(0deg, #96541A 0, #B8681E 150px, #4C93CF 150px, #2F7FC1 100%);
}

/* The horizon line */
.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

/* Keep the copy clear of the earth band; the phone overlaps it */
.hero-copy { padding-bottom: 110px; }

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(26, 43, 70, 0.45);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    line-height: 1.05;
    margin: 18px 0 18px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 0 rgba(26, 43, 70, 0.35);
}

.hero p.lead {
    font-size: 20px;
    max-width: 34em;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
}

.btn:hover { text-decoration: none; filter: brightness(1.08); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }

.platforms {
    margin-top: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 900px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .hero-copy { padding-bottom: 0; }
    .hero { background: linear-gradient(0deg, #96541A 0, #B8681E 320px, #4C93CF 320px, #2F7FC1 100%); }
    .hero::before { bottom: 320px; }
}

/* ---------- Phone mock-up (pure HTML/CSS) ---------- */

.phone {
    justify-self: center;
    width: 300px;
    border-radius: 46px;
    padding: 12px;
    background: #0B1220;
    box-shadow: 0 30px 60px rgba(10, 18, 32, 0.45), inset 0 0 0 2px #2A3954;
}

.screen {
    border-radius: 36px;
    overflow: hidden;
    background: #F2F4F8;
    color: #1A2B46;
    font-family: var(--font);
    padding: 16px 14px 20px;
}

.screen .status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px 10px;
}

.screen h3 {
    font-size: 26px;
    margin: 4px 4px 12px;
}

.total-card {
    border-radius: 18px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(180deg, #2F7FC1 0%, #2F7FC1 55%, #B8681E 55%, #B8681E 100%);
}

.total-card .label { font-size: 12px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.05em; }
.total-card .big { font-family: var(--font-rounded); font-size: 40px; font-weight: 700; line-height: 1.1; }
.total-card .sub { font-size: 12px; margin-top: 18px; opacity: 0.95; }

.mini-list {
    margin-top: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 4px 12px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px solid #ECEFF4;
}

.mini-row:last-child { border-bottom: none; }

.pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
}

.pill.ok { background: var(--green); }
.pill.soon { background: var(--amber); }

.bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 64px;
    margin-top: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 10px 12px;
}

.bars span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #1A2B46 0 var(--n, 20%), #2F7FC1 var(--n, 20%));
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head .kicker {
    color: var(--earth);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 10px 0 14px;
}

.section-head p {
    font-size: 18px;
    color: var(--text-soft);
    margin: 0;
}

/* Highlight pillars */

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media screen and (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.pillar .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, var(--sky) 0 55%, var(--earth) 55% 100%);
}

.pillar h3 { margin: 0 0 8px; font-size: 21px; }
.pillar p { margin: 0; color: var(--text-soft); }

/* Feature rows (alternating text + visual) */

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 96px;
}

.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-visual { order: -1; }

@media screen and (max-width: 900px) {
    .feature { grid-template-columns: 1fr; gap: 28px; }
    .feature.flip .feature-visual { order: 0; }
}

.feature h3 {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    margin: 8px 0 14px;
    letter-spacing: -0.01em;
}

.feature .tag {
    color: var(--sky);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature p { color: var(--text-soft); font-size: 17px; }

.checks {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.checks li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--sky) 0 55%, var(--earth) 55% 100%);
}

.feature-visual {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(26, 43, 70, 0.08);
}

/* Go Fly visual */

.gofly {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.gofly .timer {
    font-family: var(--font-rounded);
    font-size: 54px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gofly .meta { color: var(--text-soft); font-size: 15px; }

.big-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 40px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: var(--red);
}

.watch {
    width: 130px;
    height: 160px;
    border-radius: 38px;
    background: #0B1220;
    padding: 10px;
    box-shadow: inset 0 0 0 2px #2A3954;
}

.watch .face {
    height: 100%;
    border-radius: 30px;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-rounded);
}

.watch .face .t { font-size: 26px; font-weight: 700; color: #7BE08F; }
.watch .face .s { font-size: 11px; color: #A7B4C8; }
.watch .face .b { margin-top: 4px; width: 70px; padding: 6px 0; border-radius: 999px; background: var(--red); text-align: center; font-size: 12px; font-weight: 700; }

/* Night visual */

.night-strip {
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(90deg, #8CC6F0 0%, #2F7FC1 40%, #EB9A4C 54%, #4B3B6B 62%, #1A2B46 72%, #0D1626 100%);
}

.night-scale {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 8px;
}

.night-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.fig {
    background: var(--bg-alt);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.fig .n { font-family: var(--font-rounded); font-size: 28px; font-weight: 700; }
.fig .l { font-size: 13px; color: var(--text-soft); }

/* Scan visual */

.scan-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.paper {
    background: #FBF7EC;
    border-radius: 10px;
    padding: 12px;
    font-family: "Bradley Hand", "Segoe Print", cursive;
    color: #24406E;
    font-size: 13px;
    line-height: 24px;
    border: 1px solid #E8DFC6;
    background-image: repeating-linear-gradient(180deg, transparent 0 23px, #E4DAC0 23px 24px);
}

.digital {
    font-size: 12.5px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.digital div {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
}

.digital div:last-child { border-bottom: none; }
.digital .head { background: var(--navy); color: #fff; font-weight: 600; }
.digital .ok { color: var(--green); font-weight: 700; }

/* Signature visual */

.sig {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 16px;
}

.sig svg { width: 100%; height: 80px; }

.sig .who { font-size: 14px; color: var(--text-soft); }

.lock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-alt);
}

.lock code {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    color: var(--text-soft);
}

/* Grid of smaller features */

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

@media screen and (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.tile .emoji { font-size: 26px; }
.tile h4 { margin: 10px 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* CASA band */

.casa {
    background: var(--navy);
    color: #fff;
}

.casa .section-head p { color: rgba(255, 255, 255, 0.8); }
.casa .section-head .kicker { color: var(--earth-light); }

.casa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media screen and (max-width: 760px) { .casa-grid { grid-template-columns: 1fr; } }

.casa-item {
    background: var(--navy-light);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.casa-item h4 { margin: 0 0 6px; font-size: 18px; }
.casa-item h4 span { color: var(--sky-light); font-weight: 600; font-size: 14px; margin-left: 6px; }
.casa-item p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 15px; }

/* Comparison table */

.compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 15px;
}

.compare th, .compare td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare th { background: var(--bg-alt); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); }
.compare td.us { font-weight: 600; color: var(--sky); }
.compare tr:last-child td { border-bottom: none; }

.table-scroll { overflow-x: auto; }

.footnote {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-soft);
    text-align: center;
}

/* Switch from LogTen */

.switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

@media screen and (max-width: 900px) { .switch { grid-template-columns: 1fr; } }

.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px 24px 72px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 22px;
    top: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: var(--earth);
}

.step h4 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* FAQ */

.faq {
    max-width: 780px;
    margin: 0 auto;
}

.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
}

.faq details p { color: var(--text-soft); margin: 12px 0 0; }

/* Closing CTA */

.closing {
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, #2F7FC1 0%, #2F7FC1 55%, #B8681E 55%, #96541A 100%);
}

.closing img {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin: 0 auto 22px;
    box-shadow: 0 16px 40px rgba(10, 18, 32, 0.35);
}

.closing h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.closing p { font-size: 18px; margin: 0 auto 28px; max-width: 36em; }

/* Text pages: privacy policy and support */

.doc {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.doc h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc .updated { color: var(--text-soft); margin: 0 0 32px; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.doc .faq { margin-top: 16px; }

footer .footer-links a { margin-right: 18px; }

/* Footer */

footer {
    padding: 40px 0;
    font-size: 14px;
    color: var(--text-soft);
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

footer .lockup {
    height: 40px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
}

/* ---------- Print / PDF ---------- */

/* Desktop-width pages in A4 proportions, so the PDF uses the full layout */
@page { size: 1280px 1810px; margin: 0; }

@media print {
    :root {
        --bg: #FFFFFF;
        --bg-alt: #F3F6FA;
        --text: #1A2B46;
        --text-soft: #4A5A72;
        --card: #FFFFFF;
        --border: #DDE4EE;
        --sky: #2F7FC1;
        --earth: #B8681E;
    }

    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    .nav { position: static; background: var(--navy); }
    .nav-links { display: none; }

    section { padding: 56px 0; }

    .pillar, .tile, .casa-item, .step, .faq details, .feature, .compare tr, .feature-visual {
        break-inside: avoid;
    }

    .feature { margin-bottom: 56px; }
    .section-head { break-inside: avoid; break-after: avoid; }
    .btn-ghost { display: none; }
    .feature-visual { box-shadow: none; }
}
