/* Landing page only (logged-out "/"). Generic names are scoped under .lp or the section classes. */

/* -- frame ----------------------------------------------------------------------------------- */
html:has(.lp) { scroll-padding-top: 80px; }  /* in-page anchors stop below the 64px bar */
@media (prefers-reduced-motion: no-preference) {
  html:has(.lp) { scroll-behavior: smooth; }
}
.lp main { display: block; }
.lp-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* sticky nav, 64px */
.lp-nav { position: sticky; top: 0; z-index: var(--z-topbar); height: 64px; background: var(--bg);
  border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(8px)) {
  .lp-nav { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(8px); }
}
.lp-nav .lp-container { display: flex; align-items: center; gap: 28px; height: 100%; }
.lp-nav .brand { color: var(--ink); padding: 0; white-space: nowrap; flex: none; }
.lp-nav .actions { width: auto; margin-left: auto; gap: 8px; flex: none; }
.lp-links { display: flex; gap: 24px; }
.lp-links a { color: var(--ink-2); font-size: var(--text-base); font-weight: var(--weight-medium); }
.lp-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 959.98px) {
  .lp-links { display: none; }
}
@media (max-width: 639.98px) {
  .lp-nav .lp-container { gap: 12px; }
}

/* -- type and shared bits -------------------------------------------------------------------- */
.lp .eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface);
  color: var(--accent-soft-ink); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.lp .eyebrow .i { width: 14px; height: 14px; }
.lp .kicker { display: block; margin-bottom: 10px; color: var(--accent-soft-ink); font-size: var(--text-xs);
  font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.lp h1 { color: var(--ink); font-size: var(--text-5xl); line-height: 1.08; font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tighter); margin: 0 0 20px; text-wrap: balance; }
.lp h2 { color: var(--ink); font-size: var(--text-3xl); line-height: 1.2; font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tighter); margin: 0 0 12px; text-wrap: balance; }
.lp h3 { color: var(--ink); font-size: var(--text-lg); line-height: 1.35; font-weight: var(--weight-semibold); margin: 0 0 8px; }
.lp .hl { color: var(--accent); }

/* -- hero ------------------------------------------------------------------------------------ */
.lp-hero { padding: 88px 0; overflow-x: clip; }
.lp-hero .lp-container { display: grid; gap: 48px; align-items: center; }
.lp-hero .lp-lead { color: var(--muted); font-size: var(--text-xl); line-height: 1.6; max-width: 60ch; margin: 0 0 32px; }
.lp-hero .actions { gap: 12px; margin-left: 0; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: var(--text-sm); }
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust .i { width: 15px; height: 15px; color: var(--good-ink); }
@media (min-width: 960px) {
  .lp-hero .lp-container { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

/* hero visual: the product preview card in front; the hero illustration (illustrations/hero.svg) is a soft,
   decorative layer around it, so visitors see the product first */
.lp-hero-visual { position: relative; isolation: isolate; min-width: 0; width: 100%; max-width: 500px; margin: 0 auto; padding: 56px 0 48px; }
.lp-hero-art { position: absolute; z-index: -1; top: 50%; left: 50%; width: 150%; transform: translate(-44%, -50%); opacity: 0.5; pointer-events: none; }
.lp-hero-art svg { display: block; width: 100%; height: auto; }
:root[data-theme="dark"] .lp-hero-art { opacity: 0.4; }
.lp-hero-visual > .preview { position: relative; }
/* preview window: a card with a window bar, rows of mock mails */
.lp .preview { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.lp .preview-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--hairline); background: var(--surface-2); }
.lp .preview-bar .light { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.lp .preview-title { margin-left: 8px; color: var(--muted); font-size: var(--text-xs); }
.lp .preview-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; font-size: var(--text-sm); }
.lp .preview-row + .preview-row { border-top: 1px solid var(--hairline); }
.lp .preview-row > div { min-width: 0; }
.lp .preview-row .airline-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-md);
  background: var(--surface-3); color: var(--ink-2); font-size: var(--text-2xs); font-weight: var(--weight-bold); letter-spacing: 0.02em; }
.lp .p-title { color: var(--ink); font-weight: var(--weight-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp .p-sub { color: var(--muted); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp .p-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid transparent;
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-medium); white-space: nowrap; }
.lp .p-tag .i { width: 13px; height: 13px; stroke-width: 2; }
.lp .p-ok { background: var(--good-soft); color: var(--good-ink); border-color: var(--good-line); }
.lp .p-warn { background: var(--warning-soft); color: var(--warning-ink); border-color: var(--warning-line); }
.lp .p-info { background: var(--info-soft); color: var(--info-ink); border-color: var(--info-line); }
.lp .preview-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--muted);
  font-size: var(--text-xs); border-top: 1px solid var(--hairline); background: var(--surface-2); }
.lp .preview-foot .i { width: 14px; height: 14px; color: var(--good-ink); }

/* airline strip */
.lp-airlines { background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-airlines .lp-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px;
  padding-top: 20px; padding-bottom: 20px; }
.lp-airlines .label { color: var(--muted); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.lp-airlines .name { color: var(--muted); font-size: var(--text-base); font-weight: var(--weight-medium); }

/* -- sections -------------------------------------------------------------------------------- */
.lp-section { padding: 88px 0; }
.lp-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.lp-head p { color: var(--muted); font-size: var(--text-lg); line-height: 1.6; margin: 0; }

/* how it works: three steps */
.lp-steps { display: grid; gap: 16px; }
.lp-step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface);
  box-shadow: var(--shadow-xs); min-width: 0; }
.lp .num-badge { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-soft-ink);
  font-size: var(--text-base); font-weight: var(--weight-semibold); }
.lp-step p { color: var(--muted); font-size: var(--text-base); line-height: 1.6; margin: 0; }
@media (min-width: 960px) {
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* features: a grid of cards */
.lp-features { display: grid; gap: 16px; }
.lp-feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface);
  min-width: 0; }
.lp-feature p { color: var(--muted); font-size: var(--text-base); line-height: 1.6; margin: 0; }
.lp .f-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent-soft-ink); }
.lp .f-icon .i { width: 18px; height: 18px; }
.lp .f-icon.good { background: var(--good-soft); color: var(--good-ink); }
.lp .f-icon.warn { background: var(--warning-soft); color: var(--warning-ink); }
.lp .f-icon.violet { background: var(--violet-soft); color: var(--violet-ink); }
@media (min-width: 640px) {
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (hover: hover) and (pointer: fine) {
  .lp-feature { transition: border-color var(--dur-1) ease; }
  .lp-feature:hover { border-color: var(--border-strong); }
}

/* mailboxes: one tile per provider */
.lp-providers { display: grid; gap: 12px; }
.lp-provider { display: flex; align-items: center; gap: 12px; padding: 16px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.lp-provider > div { min-width: 0; }
.lp-provider strong { display: block; color: var(--ink); font-size: var(--text-base); font-weight: var(--weight-semibold); }
.lp-provider span { color: var(--muted); font-size: var(--text-sm); }
@media (min-width: 640px) {
  .lp-providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .lp-providers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

/* security: text beside a checklist */
.lp-security { display: grid; gap: 32px; align-items: center; }
.lp-security > div > p { color: var(--muted); font-size: var(--text-lg); line-height: 1.6; margin: 0; }
.lp .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp .check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.lp .check-list li > div { min-width: 0; }
.lp .check-list strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: var(--weight-semibold); }
.lp .check-list li > div > span { color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.lp .check-list .tick { width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius-md); background: var(--good-soft); color: var(--good-ink); }
.lp .check-list .tick .i { width: 15px; height: 15px; }
@media (min-width: 960px) {
  .lp-security { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

/* closing call to action */
.lp-section.lp-cta { padding-top: 0; }
.lp-cta-box { padding: 56px 32px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-cta-box h2 { margin-bottom: 10px; }
.lp-cta-box p { color: var(--muted); font-size: var(--text-lg); margin: 0 0 24px; }
.lp-cta-box .actions { justify-content: center; margin-left: 0; }

/* -- footer ---------------------------------------------------------------------------------- */
.lp-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: var(--text-sm); }
.lp-footer .lp-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-footer .brand { color: var(--ink); padding: 0; font-size: var(--text-base); flex: none; }
.lp-footer .logo { width: 24px; height: 24px; }
.lp-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.lp-footer-links a { overflow-wrap: anywhere; }
@media (pointer: coarse) {
  .lp-footer-links { row-gap: 12px; }
  .lp-footer-links a { padding-block: 14px; margin-block: -14px; }
}

/* -- phones and narrow screens --------------------------------------------------------------- */
@media (max-width: 639.98px) {
  .lp-hero { padding: 56px 0 64px; }
  .lp-section { padding: 56px 0; }
  .lp-section.lp-cta { padding-top: 0; }
  .lp-head { margin-bottom: 32px; }
  .lp-hero .actions .btn { flex: 1 1 100%; }
  .lp-cta-box { padding: 36px 20px; }
  .lp-cta-box .actions .btn { flex: 1 1 100%; }
  .lp-hero-visual { padding: 36px 0 32px; }
  .lp-hero-art { width: 132%; transform: translate(-50%, -50%); }
}
/* the top bar on a narrow phone (360-419px): the buttons take the small size so the brand and buttons fit one row */
@media (max-width: 419.98px) {
  .lp-nav .lp-container { gap: 8px; }
  .lp-nav .actions .btn { height: 30px; padding: 0 10px; font-size: var(--text-sm); }
}

/* -- reveal: a block rises into place the first time it is scrolled to (app.js adds .reveal and .is-in) -- */
.js .reveal { opacity: 0; transform: translateY(8px);
  transition-property: opacity, transform; transition-duration: var(--dur-3); transition-timing-function: var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* reduced motion: the fade stays, the rise is dropped */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { transform: none; transition-property: opacity; }
}

/* -- legal pages (/privacy, /terms; templates/legal/*) ----------------------------------------------------------
   One reading column: 16px text, line height 1.7, a 56ch measure. The page head, the draft notice, the card and the
   closing line share the column, whose left edge stays in line with the header's (both start at the 1120px
   container's edge). -- */
.lp-section:has(.legal-body) > .lp-container {
  max-width: calc(56ch + 2 * 40px + 2px + 2 * var(--gutter));  /* text + card padding + card border + page gutters */
  margin: 0 auto 0 max(0px, (100% - 1120px) / 2);
  font-size: var(--text-lg);
}
.lp-section:has(.legal-body) h1 { margin-bottom: 8px; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); }
.lp-section:has(.legal-body) h1 + p.muted { margin: 0 0 24px; font-size: var(--text-md); }
.lp-section:has(.legal-body) .callout { margin: 0 0 16px; font-size: var(--text-base); }
.lp-section:has(.legal-body) .card:has(> .legal-body) { padding: 0; }
.lp-section:has(.legal-body) .card + p { margin: 20px 0 0; }
.legal-body { padding: 40px; color: var(--ink); line-height: 1.7; }
.legal-body > * { max-width: 56ch; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 1em; }
.lp .legal-body h2 { margin: 2.25em 0 0.5em; font-size: var(--text-xl); line-height: 1.35; letter-spacing: normal; }
.legal-body > :first-child, .lp .legal-body > h2:first-child { margin-top: 0; }
.legal-body > :last-child { margin-bottom: 0; }
.legal-body ul, .legal-body ol { padding-left: 1.4em; }
.legal-body li + li { margin-top: 0.5em; }
.legal-body li::marker { color: var(--muted); }
.legal-body strong { color: var(--ink); font-weight: var(--weight-semibold); }
.legal-body a { overflow-wrap: anywhere; }
@media (max-width: 639.98px) {
  .legal-body { padding: 20px; }
  .lp .legal-body h2 { margin-top: 2em; }
}
