/* Flightkeep website. Colours match the app and the PDF logbook. */
:root {
  --navy: #0f2a44;
  --navy-deep: #0a1e33;
  --navy-tile: #112c46;
  --blue: #3c87f7;
  --blue-dark: #256fbe;
  --sky: #a9cdf2;
  --ink: #0b1320;
  --muted: #52627a;
  --line: #dfe7f0;
  --pale: #f1f6fd;
  --white: #ffffff;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }

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

/* Header: white, so the navy logo tile stands out */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.3px; }
.brand:hover { color: var(--navy); }
.brand-tile { width: 44px; height: 44px; border-radius: 11px; background: var(--navy-tile); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(15, 42, 68, 0.25); }
.brand-tile img { width: 34px; height: 34px; }
.brand sup { font-size: 11px; font-weight: 600; margin-left: 1px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-dark); }
.nav a.account-btn, .menu a.account-btn {
  background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav a.account-btn:hover, .menu a.account-btn:hover { background: var(--blue-dark); color: var(--white); }
.account-btn svg { width: 16px; height: 16px; }
/* Phone menu: hidden on wide screens */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 54px; width: 220px; background: var(--white);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(15, 42, 68, 0.2); border: 1px solid var(--line);
  padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--pale); }
.menu-panel a.account-btn { justify-content: center; margin-top: 6px; }

/* Hero: the Flightkeep artwork, blended into a matching navy */
.hero {
  background: radial-gradient(55% 60% at 50% 26%, #143352 0%, #0f2944 50%, #0c2136 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
/* The hero is a <section>, so drop the default section padding. */
.hero { padding: 0; }
.hero-art {
  width: 100%; max-width: 1180px; margin: 0 auto; display: block;
  /* Sides and bottom fade out; the top meets the header, so it stays sharp. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
  mask-composite: intersect;
}
.hero-copy { position: relative; margin-top: -2%; padding: 0 20px 88px; }
.eyebrow { color: var(--sky); font-weight: 700; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; }
.hero p.lead { font-size: 19px; color: #cfe1f5; margin: 0 auto 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { color: var(--navy); background: #e8f1fc; }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; line-height: 1.1; }
.btn span { line-height: 1.15; text-align: left; }
.store-badge { background: #000; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); min-width: 190px; }
.store-badge svg { flex: none; }
.store-note { margin: 18px 0 0; font-size: 14px; color: #8fb3d9; }

/* Phone shots under the hero */
.hero-phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: -40px; padding: 0 20px; position: relative; z-index: 1; }
.hero-phones .phone { width: 250px; }
.hero-phones .phone.tall { width: 290px; }

/* Phone frame around app screens */
.phone {
  background: #0b0f14;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(4, 14, 26, 0.45), inset 0 0 0 2px #2b3440;
}
.phone .screen { border-radius: 37px; overflow: hidden; background: var(--white); aspect-ratio: 440 / 900; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Sections */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.8px; margin: 0 0 14px; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.after-hero { padding-top: 96px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--pale); border-radius: var(--radius); padding: 26px; border-left: 4px solid var(--blue-dark); }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 104px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.flip .showcase-media { order: 2; }
.showcase-media .phone { width: min(320px, 100%); margin: 0 auto; }
.showcase h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.6px; margin: 0 0 14px; color: var(--navy); }
.showcase p { color: var(--muted); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #1f8a4c; font-weight: 800; }

.pdf-stack { display: grid; gap: 18px; }
.pdf-stack img { border-radius: 8px; box-shadow: 0 16px 36px rgba(15, 42, 68, 0.22); border: 1px solid var(--line); }

/* Getting started */
.getting-started { padding-top: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 64px 22px 24px; }
.steps li::before {
  content: counter(step); position: absolute; top: 20px; left: 22px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: 15px; display: grid; place-items: center;
}
.steps h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.google-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; background: var(--pale); border-radius: var(--radius); padding: 22px 24px; border-left: 4px solid #4285F4; }
.google-note svg { flex: none; margin-top: 2px; }
.google-note h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.google-note p { margin: 0; color: var(--muted); font-size: 15.5px; }

.band { background: var(--navy); color: var(--white); }
.band .section-head h2 { color: var(--white); }
.band .section-head p { color: #cfe1f5; }
.band .card { background: rgba(255, 255, 255, 0.06); border-left-color: var(--sky); }
.band .card h3 { color: var(--white); }
.band .card p { color: #cfe1f5; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.8px; color: var(--navy); margin: 0 0 12px; }
.cta p { color: var(--muted); margin: 0 0 28px; }
.cta .btn-primary { background: var(--navy); color: var(--white); }
.cta .btn-primary:hover { background: var(--blue-dark); color: var(--white); }

/* Text pages (privacy, support, about, account) */
.art-hero { background: radial-gradient(55% 60% at 50% 26%, #143352 0%, #0f2944 50%, #0c2136 100%); color: var(--white); text-align: center; padding-bottom: 56px; overflow: hidden; }
.art-hero img { width: 100%; max-width: 1200px; margin: 0 auto -3%; display: block; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: intersect; }
.art-hero h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -1px; line-height: 1.1; position: relative; }
.art-hero p { margin: 0 auto; color: #cfe1f5; max-width: 34em; padding: 0 20px; }
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -1px; line-height: 1.1; }
.page-hero p { margin: 0; color: #cfe1f5; }
.prose { max-width: 760px; padding: 56px 20px 96px; }
.prose h2 { color: var(--navy); font-size: 24px; letter-spacing: -0.3px; margin: 44px 0 10px; line-height: 1.25; }
.prose h3 { color: var(--navy); font-size: 18px; margin: 26px 0 6px; }
.prose p, .prose li { color: #26344a; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--pale); color: var(--navy); font-weight: 700; }
.prose code { overflow-wrap: anywhere; font-size: 14px; background: var(--pale); padding: 1px 6px; border-radius: 5px; }
.note { background: var(--pale); border-left: 4px solid var(--blue-dark); border-radius: 10px; padding: 16px 20px; margin: 20px 0; }
.note p { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 18px; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 24px; font-weight: 500; color: var(--blue-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol, .faq details ul { margin: 10px 0 0; }
.contact-box { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; margin: 8px 0 40px; }
.contact-box h2 { color: var(--white); margin: 0 0 6px; }
.contact-box p { color: #cfe1f5; margin: 0 0 16px; }
.contact-box .btn { background: var(--white); color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #a8bcd3; padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #d6e6f7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-art, .art-hero img { width: 170%; max-width: none; margin-left: -35%; }
  .hero-copy { margin-top: -10%; padding-bottom: 64px; }
  .hero-phones .phone { width: 46%; }
  .hero-phones .phone.tall { width: 52%; }
  .hero-phones .phone.side-right { display: none; }
  .after-hero { padding-top: 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
  .showcase.flip .showcase-media { order: 0; }
  section { padding: 72px 0; }
  /* Narrow screens: each table row becomes a stacked card instead of overflowing. */
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 4px 0; }
  .prose td { border: 0; padding: 6px 14px; }
  .prose td:first-child { font-weight: 700; color: var(--navy); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand { font-size: 20px; }
  .hero-phones { gap: 14px; }
  .steps { grid-template-columns: 1fr; }
}
