/* Longlight website, version 3 (DESIGN.md; ADR-0189). The app's light tokens (DesignSystem.swift,
   ADR-0024 §3.1) with the web's AA muted; the system face as the app sets it; ui-rounded (Nunito as
   the fallback) for standalone figures. Light only. No script anywhere. */

@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --ground: #FAF7F2; --card: #FFFFFF; --ink: #26312C; --muted: #5A665F; --faint: #9AA49E;
  --hairline: #EAE4DA; --evergreen: #1E6E5A; --evergreen-deep: #145747; --evergreen-tint: #E7F1EC;
  --amber: #C07A2D; --amber-deep: #7E4E1C; --amber-tint: #F8EEDF; --neutral-tint: #F1EDE6;
  --shadow: 0 1px 2px rgba(38, 49, 44, .05), 0 10px 28px rgba(38, 49, 44, .06);
  --shadow-lg: 0 2px 4px rgba(38, 49, 44, .05), 0 28px 64px rgba(38, 49, 44, .12);
  --edge: rgba(38, 49, 44, .09);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", var(--sans);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.1 2.1 4.7-4.8' fill='none' stroke='%231E6E5A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--evergreen-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 3px; border-radius: 4px; }
q { quotes: "\201C" "\201D"; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 242, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline); }
.bar { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 1.1875rem/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font: 500 .9375rem/1 var(--sans); }
.nav a:hover, .nav a[aria-current] { color: var(--evergreen-deep); }
.badge-sm { display: block; flex: none; }
.badge-sm img { height: 40px; width: auto; }
/* "Coming soon" where a badge stands while the app has no App Store page (build_pages.py APP_STORE); the badge's height */
.soon { display: inline-flex; align-items: center; height: 56px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  background: var(--evergreen-tint); color: var(--evergreen-deep); font: 700 1.0625rem/1 var(--sans); }
.soon-sm { flex: none; height: 40px; padding: 0 16px; font-size: .9375rem; }
.plans-cta .soon, .page-head .soon, .terms-cta .soon { height: 52px; }
.page-head .soon { margin-top: 32px; }
.final .soon { margin-top: 32px; }
.footer ul span { color: var(--muted); }

/* The menu under 1000 px: a details element, so it opens without script. Its panel hangs from the
   (sticky, so positioned) header, aligned to the content's right edge, never past the screen's. */
.menu { display: none; margin-left: auto; }
.menu > summary { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px; cursor: pointer;
  list-style: none; border: 1px solid var(--hairline); border-radius: 999px; background: var(--card);
  font: 600 .9375rem/1 var(--sans); color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::before { content: ""; width: 14px; height: 2px; border-radius: 1px; background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.menu[open] > summary { border-color: var(--evergreen); }
.menu-panel { position: absolute; right: 24px; top: calc(100% + 8px); min-width: 230px; display: grid; padding: 8px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-lg); }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 500 1rem/1 var(--sans); }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--evergreen-tint); }
.menu-panel a[aria-current] { color: var(--evergreen-deep); font-weight: 600; }

/* Shared type and parts */
.eyebrow { font: 700 .8125rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--evergreen); }
h2 { font: 700 clamp(2rem, 1.35rem + 2.3vw, 3rem)/1.08 var(--display); letter-spacing: -.026em; text-wrap: balance; }
.eyebrow + h2 { margin-top: 16px; }
.lead { font: 400 clamp(1.125rem, 1rem + .45vw, 1.3125rem)/1.55 var(--sans); color: var(--muted); text-wrap: pretty; }
.fine { margin-top: 16px; font-size: .9375rem; color: var(--muted); }
.fig { font-family: var(--round); font-weight: 800; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.tag { display: inline-block; font: 700 .6875rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--amber-deep); background: var(--amber-tint); padding: 5px 8px 4px; border-radius: 6px; vertical-align: .15em; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--evergreen-tint);
  color: var(--evergreen-deep); font: 600 .875rem/1 var(--sans); }
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .18em; width: 21px; height: 21px; border-radius: 50%;
  background: var(--evergreen-tint) var(--check) center / 13px no-repeat; }
.arrow { font-weight: 600; text-decoration: none; }
.arrow::after { content: " \2192"; }
.arrow:hover { text-decoration: underline; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.badge { display: inline-block; }
.badge img { height: 56px; width: auto; }
.screen { background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-lg); overflow: hidden; }

/* Home: the hero */
.hero { padding-top: 84px; text-align: center; }
.hero h1 { font: 700 clamp(2.5rem, 1.35rem + 3.9vw, 4.25rem)/1.03 var(--display); letter-spacing: -.034em;
  max-width: 15.5em; margin: 26px auto 0; text-wrap: balance; }
.hero h1 .g { color: var(--evergreen); }
.hero h1 .a { color: var(--amber); }
.hero .lead { max-width: 36em; margin: 26px auto 0; }
.cta { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.cta .arrow { font-size: 1.0625rem; }
.stage { position: relative; margin: 72px auto 0; max-width: 1120px; padding-bottom: 7%; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 20%; bottom: 0; border-radius: 28px;
  background: var(--evergreen-tint); }
.stage picture { display: contents; }
.stage .ipad { position: relative; width: 84%; margin-left: 5%; border-radius: 14px; }
.stage .iphone { position: absolute; right: 4%; bottom: 3%; width: 23%; border-radius: 28px; }
.stage-note { margin-top: 18px; font-size: .875rem; color: var(--muted); }

/* Home: the facts strip */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 80px; text-align: center;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.proof li { padding: 30px 20px; }
.proof li + li { border-left: 1px solid var(--hairline); }
.proof .fig { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--ink); }
.proof span { display: block; margin-top: 8px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }

/* Sections */
.section { padding-top: 136px; }
.section.near { padding-top: 88px; }
.head { max-width: 780px; margin: 0 auto; text-align: center; }
.head .lead { margin-top: 20px; }

/* Home: features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: center; margin-top: 104px; }
.feature.flip .text { order: 2; }
.feature h3 { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--display); letter-spacing: -.02em; margin-top: 14px; text-wrap: balance; }
.feature .text > p { margin-top: 16px; color: var(--muted); }
.feature .checks { margin-top: 24px; }
.tray { display: flex; justify-content: center; align-items: center; padding: 44px; border-radius: 28px; background: var(--neutral-tint); }
.tray .screen { border-radius: 14px; }
.tray.phone .screen { width: min(100%, 300px); border-radius: 28px; }
.more { margin-top: 112px; }
.more h3 { font: 700 1.5rem/1.2 var(--display); letter-spacing: -.015em; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.cards h3, .cards h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 700 1.0625rem/1.35 var(--sans); }
.cards p { margin-top: 8px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.more-link { margin-top: 28px; text-align: center; }

/* Home: trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.trust .card { padding: 32px; display: flex; flex-direction: column; }
.trust .fig { font-size: 2.75rem; line-height: 1; color: var(--evergreen); }
.tick { display: block; width: 44px; height: 44px; border-radius: 12px; background: var(--evergreen-tint) var(--check) center / 22px no-repeat; }
.trust h3 { margin-top: 20px; font: 700 1.1875rem/1.3 var(--sans); }
.trust p { flex: 1; margin-top: 8px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.trust .arrow { margin-top: 18px; font-size: .9375rem; }

/* Home: the privacy band */
.band { margin-top: 136px; padding: 112px 0; background: var(--evergreen-tint); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.band .lead { margin-top: 20px; }
.band .arrow { display: inline-block; margin-top: 24px; }
.band .card { padding: 32px; }

/* Home: Free and Pro */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 940px; margin: 56px auto 0; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 34px; box-shadow: var(--shadow); }
.plan.pro { border: 2px solid var(--evergreen); padding: 33px; }
.plan h3 { font: 700 1.625rem/1.1 var(--display); letter-spacing: -.02em; }
.plan .sub { margin-top: 8px; color: var(--muted); }
.plan .checks { margin-top: 26px; flex: 1; }
.plan .terms { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: .9375rem; color: var(--muted); }
.plans-cta { margin-top: 44px; text-align: center; }
.plans-cta .badge img, .page-head .badge img, .terms-cta .badge img { height: 52px; }

/* Questions (home and Support) */
.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font: 600 1.125rem/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--evergreen); border-bottom: 2px solid var(--evergreen); transform: translateY(-75%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); }

/* Home: the closing card */
.final { margin-top: 136px; }
.final .card { text-align: center; padding: 72px 24px; border-radius: 28px; box-shadow: var(--shadow-lg); }
.final .card svg { margin: 0 auto; }
.final h2 { margin-top: 22px; }
.final .lead { margin: 16px auto 0; max-width: 30em; }
.final .badge { margin-top: 32px; }

/* Other pages: the page head */
.page-head { padding-top: 72px; }
.page-title { font: 700 clamp(2.125rem, 1.5rem + 2.3vw, 3.25rem)/1.06 var(--display); letter-spacing: -.03em; max-width: 18em; text-wrap: balance; }
.dateline { margin-top: 16px; font-size: .9375rem; color: var(--muted); max-width: 72ch; }
.page-head .lead { margin-top: 20px; max-width: 36em; }
.page-head .badge { margin-top: 32px; }

/* How it works: the text and its contents rail */
.long { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; align-items: start; margin-top: 56px; }
.body { max-width: 68ch; counter-reset: h2; }
.body h2 { font: 700 clamp(1.5rem, 1.25rem + .8vw, 1.875rem)/1.2 var(--display); letter-spacing: -.02em; margin-top: 72px; counter-increment: h2; }
.body h2::before { content: counter(h2); display: block; margin-bottom: 10px; font: 800 .9375rem/1 var(--round); color: var(--evergreen); }
.body h2:first-child { margin-top: 0; }
.body h3 { font: 700 1.1875rem/1.35 var(--sans); margin-top: 36px; }
.body p, .body li { font-size: 1.0625rem; line-height: 1.65; }
.body p { margin-top: 16px; }
.body ul { margin-top: 12px; padding-left: 1.25em; list-style: disc; }
.body li + li { margin-top: 6px; }
.body li::marker { color: var(--muted); }
.body code { font: .875em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--neutral-tint); padding: 2px 5px; border-radius: 5px; }
.body p.sources { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: .875rem; line-height: 1.55; color: var(--muted); }
.body p.sources b { color: var(--ink); font-weight: 600; }
.table-wrap { margin-top: 20px; overflow-x: auto; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; }
.rail { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-left: 20px;
  border-left: 1px solid var(--hairline); font-size: .9375rem; }
.rail-title { font: 700 .75rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rail ol { margin-top: 14px; padding: 0; list-style: none; counter-reset: rail; display: grid; gap: 8px; }
.rail li { counter-increment: rail; display: grid; grid-template-columns: 1.7em minmax(0, 1fr); }
.rail li::before { content: counter(rail); font: 800 .8125rem/1.45 var(--round); color: var(--muted); }
.rail a { color: var(--ink); text-decoration: none; line-height: 1.4; }
.rail a:hover { color: var(--evergreen-deep); }
.next { margin-top: 64px; font-size: 1.0625rem; }

/* Sources: the bibliography */
.bib { margin-top: 16px; }
.bib > * { max-width: 900px; }
.bib h2 { display: flex; align-items: baseline; gap: 10px; margin-top: 64px;
  font: 700 clamp(1.375rem, 1.2rem + .6vw, 1.625rem)/1.2 var(--display); letter-spacing: -.015em; }
.bib h2 .num { font: 800 1rem/1 var(--round); color: var(--muted); }
.bib ol { margin-top: 16px; padding: 0; list-style: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow); }
.bib li { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 0 12px; padding: 18px 24px; }
.bib li + li { border-top: 1px solid var(--hairline); }
.bib li:target { background: var(--evergreen-tint); }
.bib .n { font: 800 .9375rem/1.5 var(--round); color: var(--muted); }
.bib .t { font: 600 1.0625rem/1.4 var(--sans); }
.bib .t span { font-weight: 400; color: var(--muted); }
.bib .g { margin-top: 4px; max-width: 68ch; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

/* Pro, Privacy, Support */
.compare { margin-top: 32px; overflow-x: auto; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow); }
.compare th { padding: 18px 24px; font: 700 1.0625rem/1.3 var(--sans); }
.compare td { padding: 14px 24px; }
.section > .wrap > p:not(.eyebrow):not(.lead), .policy p { max-width: 68ch; }
.section > .wrap > h2 + p, .section > .wrap > p + p { margin-top: 16px; }
.terms-cta { margin-top: 28px; }
.section.near h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: -.02em; }
.compare + p { margin-top: 20px; }
.summary { max-width: 860px; margin-top: 40px; padding: 28px 32px; }
.summary .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.policy { max-width: 68ch; margin-top: 64px; }
.policy section + section { margin-top: 48px; }
.policy h2 { font: 700 1.5rem/1.2 var(--display); letter-spacing: -.015em; }
.policy p { margin-top: 12px; }
.faq.page { margin: 48px 0 0; }
.colophon { max-width: 72ch; margin-top: 72px; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* Footer */
.footer { margin-top: 128px; border-top: 1px solid var(--hairline); padding: 56px 0 48px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.footer .about { margin-top: 14px; color: var(--muted); max-width: 30em; }
.footer-title { font: 700 .75rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.footer ul { margin-top: 16px; display: grid; gap: 10px; }
.footer ul a { color: var(--ink); text-decoration: none; }
.footer ul a:hover { color: var(--evergreen-deep); }
.legal { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--hairline); color: var(--muted); font-size: .875rem; }

/* Breakpoints: 1000 (the menu, rows stack, grids of two), 720 (one column, the phone hero), 480 and 360 (the header) */
@media (max-width: 999px) {
  .nav { display: none; }
  .menu { display: block; }
  .bar { gap: 12px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 88px; }
  .feature.flip .text { order: 0; }
  .feature .text { max-width: 640px; }
  .cards, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .long { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rail { position: static; order: -1; max-height: none; padding: 22px 24px; border: 1px solid var(--hairline);
    border-radius: 16px; background: var(--card); }
  .rail ol { display: block; columns: 2; column-gap: 28px; }
  .rail li { break-inside: avoid; margin-bottom: 8px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 56px; }
  .stage { margin-top: 48px; padding-bottom: 28px; }
  .stage::before { top: 22%; }
  .stage .ipad { display: none; }
  .stage .iphone { position: relative; right: auto; bottom: auto; width: min(76%, 300px); margin: 0 auto; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
  .proof li { padding: 22px 12px; }
  .proof li:nth-child(3) { border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .proof .fig { font-size: 1.1875rem; white-space: nowrap; }
  .proof span { font-size: .875rem; }
  .section { padding-top: 96px; }
  .section.near { padding-top: 72px; }
  .tray { padding: 22px; border-radius: 20px; }
  .cards, .trust, .plans, .summary .checks { grid-template-columns: minmax(0, 1fr); }
  .band { margin-top: 96px; padding: 80px 0; }
  .final { margin-top: 96px; }
  .final .card { padding: 56px 20px; border-radius: 24px; }
  .page-head { padding-top: 48px; }
  .menu-panel { right: 20px; }
  .rail ol { columns: 1; }
  .bib li { padding: 16px 18px; grid-template-columns: 2.4em minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .menu > summary { width: 40px; padding: 0; justify-content: center; }
  .menu-panel { left: 16px; right: 16px; min-width: 0; }
  .menu > summary .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) {
  .wrap { padding: 0 16px; }
  .bar { gap: 8px; }
  .brand { font-size: 1rem; gap: 8px; }
}
