/* The Pilot Log — public website and account pages */

.announcement { background: #0b2545; color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }
.announcement a { color: #ffd38a; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-nav { display: none; gap: 4px; align-items: center; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--ink); background: var(--bg-2); }
.site-nav .btn { margin-left: 6px; }
/* Buttons inside the header/menu keep their own colours (the link styles above must not override them). */
.site-nav a.btn, .site-nav a.btn:hover, .menu-panel a.btn, .menu-panel a.btn:hover { color: var(--b-fg); background: var(--b-bg); border-color: var(--b-line); }
.menu-toggle { margin-left: auto; }
.mobile-menu { position: relative; margin-left: auto; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; min-width: 230px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: 8px; }
.menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--bg-2); }
.menu-panel .btn { margin-top: 6px; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .mobile-menu { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--hero-glow) 0%, transparent 60%), linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 100%); padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--highlight) 62%); }
.hero-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: .88rem; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 6px; align-items: center; }
.hero-note .i { color: var(--ok); }
@media (min-width: 980px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.02fr 1fr; }
}

/* Phone mock with a miniature logbook page */
.device { position: relative; margin: 0 auto; width: min(100%, 560px); }
.device-frame { background: #0e1726; border-radius: 26px; padding: 12px; box-shadow: 0 30px 60px rgba(11, 37, 69, .28), inset 0 0 0 2px #26324a; transform: rotate(-1.2deg); }
.device-screen { background: var(--paper); border-radius: 16px; overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--navy); color: var(--on-navy); font-size: 12px; font-weight: 700; }
.device-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.device-bar .page { margin-left: auto; opacity: .8; font-weight: 600; }
.device-screen { max-width: 100%; }
.mini-log { width: 100%; border-collapse: collapse; font-size: 10px; font-variant-numeric: tabular-nums; color: var(--paper-ink); }
.mini-log th, .mini-log td { border: 1px solid var(--paper-rule-soft); padding: 5px 4px; text-align: center; white-space: nowrap; }
.mini-log th { background: var(--paper-head); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mini-log tbody tr:nth-child(even) td { background: var(--paper-alt); }
.mini-log .t td { background: var(--paper-total); font-weight: 800; }
.mini-log .g td { background: var(--paper-grand); font-weight: 800; }
.mini-log td.l { text-align: left; }
.mini-sign { display: flex; justify-content: space-between; align-items: end; padding: 10px 12px 12px; font-size: 9px; color: var(--ink-3); }
.mini-sign svg { width: 110px; height: 34px; color: var(--blue); }
@media (max-width: 560px) {
  .mini-log th:nth-child(n+7), .mini-log td:nth-child(n+7) { display: none; }
  .mini-log tfoot td:nth-child(n+3) { display: none; }
  .device-frame { transform: none; }
}
.float-card { position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: 10px 14px; font-size: .82rem; display: flex; gap: 10px; align-items: center; }
.float-card strong { display: block; font-size: 1.05rem; }
.float-card .i { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.float-1 { left: -6px; bottom: -22px; }
.float-2 { right: -6px; top: -18px; }
@media (max-width: 520px) { .float-1, .float-2 { display: none; } }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.kicker { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

.trust { padding: 22px 0; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust .i { color: var(--blue); }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.feature .ico .i { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .97rem; }

.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--ink-2); margin: 0; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.vault { background: linear-gradient(160deg, #0b2545 0%, #1a3f73 100%); border: 1px solid var(--line); color: #dbe6f6; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-2); }
.vault h3 { color: #fff; }
.vault-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.vault-row:last-child { border-bottom: 0; }
.vault-row .i { width: 22px; height: 22px; color: var(--amber); }
.vault-row strong { color: #fff; display: block; }
.vault-row small { color: #b8c7de; }

/* New: logbook stamps (home page) */
.hero-new { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-1); }
.hero-new:hover { color: var(--ink); border-color: var(--line-2); }
.hero-new-tag { padding: 2px 9px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.stamp-band { background: linear-gradient(160deg, #0b2545 0%, #1a3f73 100%); color: #dbe6f6; }
.stamp-band h2 { color: #fff; }
.stamp-band .kicker { color: var(--amber-2); }
.stamp-band .checklist li { color: #dbe6f6; }
.stamp-band .checklist strong { color: #fff; }
.stamp-band .checklist .i { color: var(--amber-2); flex: none; }
.stamp-copy > p { font-size: 1.05rem; color: #c8d5ea; }
.stamp-demo { position: relative; width: min(100%, 520px); margin: 0 auto; --stamp-ink: #2a51ad; }
.sd-page { background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(1deg); }
.sd-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 14px 16px; border-top: 1px solid var(--paper-rule-soft); color: var(--paper-ink); }
.sd-certify { display: flex; flex-direction: column; gap: 2px; font-size: 9.5px; color: var(--ink-3); }
.sd-certify svg { width: 110px; height: 34px; color: var(--blue); }
.sd-label { border-top: 1px solid var(--paper-rule); padding-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sd-org { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--paper-rule-soft); border-radius: 10px; }
.sd-stamp { width: 92px; height: 92px; flex: none; color: var(--stamp-ink); opacity: .9; transform: rotate(-12deg); font-family: var(--font); }
.sd-who { display: flex; flex-direction: column; font-size: 10.5px; color: var(--ink-3); }
.sd-who strong { color: var(--paper-ink); font-size: 12px; }
.sd-who svg { width: 84px; height: 26px; color: var(--stamp-ink); }
.sd-code { font-family: var(--mono); font-size: 9.5px; color: var(--paper-ink); }
.sd-float { left: -10px; bottom: -24px; color: var(--ink); }
.sd-float .i { background: var(--ok-soft); color: var(--ok); }
@media (min-width: 900px) { .stamp-band .split > .stamp-demo { order: -1; } }
@media (max-width: 560px) { .sd-page .mini-log tfoot td { display: table-cell; } }
@media (max-width: 520px) { .sd-foot { flex-direction: column; align-items: stretch; } .sd-page { transform: none; } .sd-float { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .stamp-demo { --stamp-ink: #8fb2ff; } }
:root[data-theme=dark] .stamp-demo { --stamp-ink: #8fb2ff; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

.cta-band { background-color: #0b2545; color: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px 28px; text-align: center; background-image: radial-gradient(600px 220px at 50% 0%, rgba(233, 162, 59, .25), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8d5ea; max-width: 34em; margin: 0 auto 22px; }

/* Guides / articles */
.guide-list { display: grid; gap: 16px; }
@media (min-width: 760px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }
.guide-card { display: block; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.guide-card:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.guide-card h3 { margin-bottom: 8px; }
.guide-card p { color: var(--ink-2); font-size: .95rem; margin: 0 0 10px; }
.guide-card .more { color: var(--blue); font-weight: 700; font-size: .9rem; }
.page-head { padding: 44px 0 20px; background: linear-gradient(180deg, var(--hero-top), var(--bg)); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.breadcrumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 12px; }
.breadcrumbs a { color: var(--ink-3); }
.prose { font-size: 1.06rem; line-height: 1.7; }
.prose h2 { margin-top: 2em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 4px solid var(--amber); background: var(--quote-bg); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.prose pre { background: var(--bg-2); padding: 14px; border-radius: 10px; overflow-x: auto; }
.prose .table-wrap { font-size: .95rem; }
.article-cta { margin-top: 40px; }

/* Footer */
.site-footer { margin-top: 64px; background: #0a1a31; border-top: 1px solid var(--line); color: #aebbd0; padding: 48px 0 calc(28px + var(--safe-bottom)); font-size: .93rem; }
.site-footer a { color: #d6e0ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
/* Phones: footer links tall enough to tap without hitting the next one. */
@media (pointer: coarse) { .footer-grid li { margin-bottom: 0; } .footer-grid li a { display: inline-block; padding: 8px 0; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { color: #fff; }
.footer-brand .logo span em { color: #8db4ff; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .83rem; }

/* Auth pages */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: start center; padding: 32px 16px 64px; background: linear-gradient(180deg, var(--hero-top), var(--bg) 60%); }
.auth-card { width: 100%; max-width: 440px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; box-shadow: var(--shadow-2); }
@media (min-width: 520px) { .auth-card { padding: 34px 32px; } .auth { place-items: center; } }
.auth-card h1 { font-size: 1.65rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
.price-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border: 1.5px solid var(--navy); border-radius: 12px; background: var(--blue-soft); }
.price-box strong { font-size: 1.35rem; letter-spacing: -0.02em; }

.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.error-page { text-align: center; padding: 80px 16px; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--ink-3); letter-spacing: -0.04em; }

/* Contact */
.contact-card { padding: 24px 20px; margin-bottom: 48px; }
.contact-done { text-align: center; padding: 36px 20px; margin-bottom: 48px; }
.contact-done > .i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin: 0 auto 12px; }

/* Sign-up: free trial or pay now */
.plan-choice { display: grid; gap: 10px; margin-top: 6px; }
.plan-choice p { margin: -2px 0 4px; text-align: center; }

/* Home: the price right under the call to action */
.hero-price { margin: 14px 0 12px; max-width: 34em; font-size: 1.02rem; }
