/* lighthousetools.com. Tokens follow lighthouse-web (src/ui/tokens.css):
   Inter, weights 400 and 500, hierarchy by opacity, elevation as a 0.5px
   ring, glass panels over the sky. Light and dark follow the system. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.3100e775e8.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.34b9c504ca.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --font: "Inter Variable", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --beam: #f0a73a;

  --ink: rgba(0, 0, 0, .88);
  --strong: #000;
  --ink2: rgba(0, 0, 0, .64);
  --ink3: rgba(0, 0, 0, .5);
  --line: rgba(0, 0, 0, .08);
  --line2: rgba(0, 0, 0, .14);
  --glass: rgba(255, 255, 255, .74);
  --glass2: rgba(255, 255, 255, .6);
  --surface: rgba(255, 255, 255, .78);
  --wash: rgba(0, 0, 0, .035);
  --ring: 0 0 0 .5px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 0 0 .5px rgba(255, 255, 255, .5), 0 24px 70px rgba(0, 30, 90, .22);
  --btn: rgba(0, 0, 0, .88);
  --btn-ink: #fcfcfc;
  --accent: #0060e2;
  --accent-soft: rgba(0, 96, 226, .1);
  --ok: #0e7a4b;
  --ok-soft: rgba(14, 122, 75, .1);
  --warn: #b26a00;
  --warn-soft: rgba(245, 166, 35, .16);
  --bad: #cf2e20;
  --vio: #6a43d9;
  --vio-soft: rgba(106, 67, 217, .1);
  --bg: #3a7fe0;
  --sky: url(/assets/sky-day.e2ba6e0316.png);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: rgba(255, 255, 255, .92);
    --strong: #fff;
    --ink2: rgba(255, 255, 255, .66);
    --ink3: rgba(255, 255, 255, .5);
    --line: rgba(255, 255, 255, .08);
    --line2: rgba(255, 255, 255, .16);
    --glass: rgba(14, 16, 24, .62);
    --glass2: rgba(14, 16, 24, .5);
    --surface: rgba(255, 255, 255, .05);
    --wash: rgba(255, 255, 255, .04);
    --ring: 0 0 0 .5px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 0 0 .5px rgba(255, 255, 255, .2), 0 30px 90px rgba(0, 10, 40, .5);
    --btn: rgba(255, 255, 255, .92);
    --btn-ink: #161618;
    --accent: #5b9aff;
    --accent-soft: rgba(91, 154, 255, .16);
    --ok: #4cc38a;
    --ok-soft: rgba(76, 195, 138, .14);
    --warn: #f5a623;
    --warn-soft: rgba(245, 166, 35, .14);
    --bad: #ff6b5e;
    --vio: #b49bff;
    --vio-soft: rgba(180, 155, 255, .15);
    --bg: #03070f;
    --sky: url(/assets/sky-night.d0a19db62f.png);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; text-decoration-color: var(--line2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); }
.skip:focus { top: 12px; }

/* --- the sky ------------------------------------------------------------ */
.sky, .sky canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; }
.sky { background: var(--bg) var(--sky) center / cover no-repeat; filter: blur(6px); transform: scale(1.06); }
.sky canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.sky canvas.on { opacity: 1; }

/* --- layout ------------------------------------------------------------- */
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  backdrop-filter: blur(40px) saturate(160%);
  box-shadow: var(--shadow);
  border-radius: 22px;
}

/* --- header ------------------------------------------------------------- */
.top {
  position: sticky; top: 12px; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 8px 8px 14px; border-radius: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; font-size: 15px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand small { color: var(--ink3); font-weight: 400; font-size: 13px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.top nav a { padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--ink2); font-size: 14px; }
.top nav a:hover { color: var(--ink); background: var(--wash); }
.top nav .lang { color: var(--ink); box-shadow: var(--ring); background: var(--surface); margin-left: 4px; }
.top nav .join { background: var(--btn); color: var(--btn-ink); margin-left: 4px; }
.top nav .join:hover { background: var(--btn); color: var(--btn-ink); opacity: .9; }
@media (max-width: 760px) {
  .top nav .opt { display: none; }
  .brand small { display: none; }
}

/* --- hero --------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.hero-main { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--ring); font-size: 13px; color: var(--ink2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 10px var(--beam); }
h1 { font-weight: 500; font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -.03em; color: var(--strong); text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink2); max-width: 36em; text-wrap: pretty; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; margin-top: 24px; } }

/* --- signup form -------------------------------------------------------- */
.signup { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.signup .field-label { font-size: 13px; color: var(--ink2); font-weight: 500; }
.signup .row { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); }
.signup .row:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.signup input[type="email"] { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; padding: 8px 10px; outline: none; }
.signup input[type="email"]::placeholder { color: var(--ink3); }
.signup input[type="email"]:focus-visible { outline: none; }
.btn { flex: none; border: 0; cursor: pointer; font: 500 15px/1 var(--font); padding: 0 18px; min-height: 44px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); transition: opacity .15s, transform .15s var(--ease); }
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.note { font-size: 13px; color: var(--ink3); }
.status { font-size: 14px; min-height: 0; }
.status:empty { display: none; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup.done .row, .signup.done .consent, .signup.done .note, .signup.done .field-label { display: none; }
.signup.done .status { font-size: 16px; padding: 14px 16px; border-radius: 14px; background: var(--ok-soft); }
@media (max-width: 520px) {
  .signup .row { flex-direction: column; }
  .btn { width: 100%; }
}

/* --- preview (decorative, made-up data) --------------------------------- */
.preview { padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: var(--glass2); }
.pv-card { border-radius: 16px; background: var(--surface); box-shadow: var(--ring); padding: 16px; }
.pv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pv-head b { font-weight: 500; font-size: 15px; }
.pv-head span { font-size: 12px; color: var(--ink3); }
.pv-sum { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.pv-sec { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin: 14px 0 6px; font-weight: 500; }
.pv-item { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pv-item:first-of-type { border-top: 0; }
.pv-item p { font-size: 14px; line-height: 1.4; }
.pv-item small { display: block; font-size: 12px; color: var(--ink3); line-height: 1.4; margin-top: 2px; }
.tag { flex: none; align-self: flex-start; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 500; min-width: 58px; text-align: center; }
.tag.mail { background: var(--vio-soft); color: var(--vio); }
.tag.cal { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.pv-ready { display: flex; align-items: center; gap: 10px; }
.pv-ready .grow { flex: 1; min-width: 0; }
.pv-ready p { font-size: 14px; }
.pv-ready small { display: block; font-size: 12px; color: var(--ink3); }
.pv-actions { display: flex; gap: 6px; }
.pv-actions span { font-size: 12px; padding: 4px 10px; border-radius: 8px; box-shadow: var(--ring); background: var(--surface); }
.pv-actions span.primary { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); flex: none; }
.pv-caption { font-size: 12px; color: var(--ink3); text-align: center; }
@media (max-width: 520px) { .pv-actions span:not(.primary) { display: none; } }

/* --- sections ----------------------------------------------------------- */
section { margin-top: 20px; }
.section { padding: clamp(24px, 4vw, 48px); }
.section h2 { font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--strong); text-wrap: balance; }
.section .sub { color: var(--ink2); margin-top: 8px; font-size: 17px; max-width: 40em; }
.grid { display: grid; gap: 12px; margin-top: 28px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { border-radius: 16px; background: var(--surface); box-shadow: var(--ring); padding: 20px; }
.card h3 { font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--strong); margin-top: 14px; }
.card p { color: var(--ink2); font-size: 15px; margin-top: 6px; }
.card a { color: var(--accent); }
.icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 20px; height: 20px; }
.card.wide { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.card.wide h3 { margin-top: 0; }
.card.wide .icon { background: var(--warn-soft); color: var(--warn); flex: none; }
.open .card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.open .card h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--beam); flex: none; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-list { margin-top: 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:first-child { border-top: 0; }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--ink3); transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 20px 18px; color: var(--ink2); max-width: 46em; }
.faq-list a { color: var(--accent); }

/* --- closing CTA -------------------------------------------------------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* --- text pages (legal, status) ----------------------------------------- */
.page { margin-top: 32px; padding: clamp(24px, 5vw, 56px); max-width: 820px; margin-inline: auto; }
.page h1 { font-size: clamp(30px, 4vw, 44px); }
.page .prose { margin-top: 24px; color: var(--ink2); }
.prose h2 { font-size: 18px; font-weight: 500; color: var(--strong); margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); }
.prose strong { font-weight: 500; color: var(--ink); }
.page .actions { margin-top: 24px; }
.page .actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 500; }
.page.status-page { text-align: left; }
.page.status-page .lead { margin-top: 12px; }

/* --- footer ------------------------------------------------------------- */
.foot { margin: 20px auto 24px; padding: 18px 20px; border-radius: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 14px; color: var(--ink2); }
.foot p { margin-right: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #f4f6fa; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-transparency: reduce) and (prefers-color-scheme: dark) {
  .glass { background: #10121a; }
}
