/* ---------------------------------------------------------
   LANDING — the signed-out page (js/landing.js, js/landing-sea.js).
   One deliberate deep-water look, independent of the app's themes.
   The first screen is exactly one window: header, pitch, sign-in card.
   Everything is scoped under .lp so nothing leaks into the app.
   The markup ships in index.html with body.lp-on. While a signed-in
   visitor's app loads, js/pre-boot.js puts .rr-has-session on <html>
   and none of this shows.
--------------------------------------------------------- */
/* Text size: --ts is 1.2 at the standard 100% setting and is set by js/text-size.js. Every font size in the CSS
   is calc(N px * var(--ts)); this line makes the rem sizes (and any text with no size of its own) follow it. */
:root{ --ts: 1.2; }
html{ font-size: calc(16px * var(--ts)); }
.rr-has-session #app > .lp{ display: none; }
html:not(.rr-has-session) body.lp-on{
  --lp-abyss: #020d18;
  --lp-foam: #eef4f7;
  --lp-foam-soft: #b9cfdb;
  --lp-brass: #e0b873;
  --lp-paper: #f6efe1;
  --lp-paper-edge: #e3d6b6;
  --lp-ink: #241f16;
  --lp-ink-soft: #5a5140;
  --lp-sapphire: #003153;
  --lp-sapphire-hover: #0b4570;
  --lp-error: #8a3226;
  --lp-ok: #2f5d3a;
  --lp-rule-dark: rgba(238,244,247,.18);
  --lp-rule-paper: rgba(36,31,22,.16);
  --lp-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --lp-mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --lp-radius: 4px;
  padding: 0; background: var(--lp-abyss); background-image: none; color: var(--lp-foam);
  overflow-x: hidden;
}
html:not(.rr-has-session):has(body.lp-on){ background: #020d18; }
/* The app's .wrap is 760px, or 85vw on wide screens (styles.css), with top padding on phones: undo all of it here. */
html:not(.rr-has-session) body.lp-on .wrap, html:not(.rr-has-session) body.lp-on .wrap.wrap-wide{ width: auto; max-width: none; margin: 0; padding: 0; }

.lp{ font-family: var(--lp-display); font-size: 1.0625rem; line-height: 1.55; color: var(--lp-foam); -webkit-font-smoothing: antialiased; }
.lp :focus-visible{ outline: 3px solid var(--lp-brass); outline-offset: 2px; }
.lp-sea{ position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; z-index: 0; display: block; }
.lp-scrim{ position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 18% 50%, rgba(2,13,24,.62), transparent 70%),
    linear-gradient(180deg, rgba(2,13,24,.35), transparent 22%, transparent 70%, rgba(2,13,24,.55)); }

.lp-page{ position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
/* At least one window tall; if the content is taller (a tiny window, the longer password steps) it grows instead of overlapping. */
.lp-fold{ min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: env(safe-area-inset-top, 0px); }

/* ---------- top bar ---------- */
.lp-bar{ display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: clamp(14px, 2.6vh, 26px); }
.lp-mark{ display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; color: var(--lp-foam); }
.lp-mark .lp-emoji{ font-size: 1.7rem; line-height: 1; }
.lp-tagline{ font-family: var(--lp-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-foam-soft); text-align: right; }

/* ---------- hero ---------- */
.lp-hero{ min-height: 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.lp-pitch{ min-width: 0; display: grid; gap: clamp(14px, 2.4vh, 24px); text-shadow: 0 2px 18px rgba(2,13,24,.6); }
.lp-eyebrow{ font-family: var(--lp-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-brass); margin: 0; }
.lp h1{ font-family: var(--lp-display); font-weight: 700; font-size: clamp(2.3rem, min(5.4vw, 8.4vh), 4.4rem); line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; color: var(--lp-foam); }
.lp h1 em{ font-style: italic; font-weight: 500; color: var(--lp-brass); }
.lp-lede{ font-size: clamp(1.03rem, min(1.5vw, 2.4vh), 1.22rem); color: var(--lp-foam-soft); max-width: 33em; margin: 0; }
.lp-points{ list-style: none; margin: clamp(4px, 1vh, 10px) 0 0; padding: clamp(14px, 2.2vh, 22px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--lp-rule-dark); }
.lp-points li{ display: grid; gap: 4px; align-content: start; }
.lp-points b{ font-family: var(--lp-mono); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-foam); }
.lp-points span{ font-size: .95rem; color: var(--lp-foam-soft); line-height: 1.45; }

/* ---------- sign-in card ---------- */
.lp-signin-wrap{ min-width: 0; align-self: center; transform: translateY(clamp(0px, 5vh, 56px)); }
.lp-signin{ background: var(--lp-paper); color: var(--lp-ink); border: 1px solid var(--lp-paper-edge); border-top: 4px solid var(--lp-brass); border-radius: var(--lp-radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.3);
  padding: clamp(20px, 3.4vh, 32px) clamp(20px, 2.6vw, 32px); display: grid; gap: clamp(12px, 2vh, 18px); max-width: 420px; margin-left: auto; text-shadow: none; }
.lp-signin h2{ font-family: var(--lp-display); font-size: 1.6rem; line-height: 1.15; margin: 0; letter-spacing: -.01em; color: var(--lp-ink); }
.lp-sub{ margin: -8px 0 0; color: var(--lp-ink-soft); font-size: .95rem; overflow-wrap: anywhere; }
.lp-field{ display: grid; gap: 6px; }
.lp-field label{ font-family: var(--lp-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-ink-soft); }
.lp-field-row{ display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lp-input{ position: relative; }
.lp-signin input[type="email"], .lp-signin input[type="password"], .lp-signin input[type="text"]{
  width: 100%; font: inherit; font-size: 1rem; /* 16px+ stops iOS zoom-on-focus */
  min-height: 48px; padding: 10px 14px; margin: 0; color: var(--lp-ink); background: #fffdf8;
  border: 1.5px solid var(--lp-rule-paper); border-radius: var(--lp-radius); color-scheme: light;
}
.lp-signin input:focus-visible{ outline: none; border-color: var(--lp-sapphire); box-shadow: 0 0 0 3px rgba(0,49,83,.2); }
.lp-input input{ padding-right: 72px; }
/* Positioned with insets, not a transform: the app's button:active scale would make it jump. */
.lp-reveal{ position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 10px; border: 0; background: none; color: var(--lp-sapphire); font-family: var(--lp-mono); font-size: .8125rem; border-radius: var(--lp-radius); }
.lp-link{ border: 0; background: none; padding: 4px 0; font: inherit; font-size: .875rem; color: var(--lp-sapphire); text-decoration: underline; text-underline-offset: 2px; }
.lp-remember{ display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--lp-ink-soft); }
.lp-remember input{ width: 20px; height: 20px; margin: 0; accent-color: var(--lp-sapphire); }
.lp-hint{ margin: -4px 0 0; font-size: .875rem; color: var(--lp-ink-soft); }
.lp-btn{ font: inherit; font-weight: 600; font-size: 1.0625rem; min-height: 50px; border: 0; border-radius: var(--lp-radius); background: var(--lp-sapphire); color: var(--lp-paper); }
.lp-btn:hover:not(:disabled){ background: var(--lp-sapphire-hover); }
.lp-btn:disabled{ opacity: .7; }
.lp-actions{ display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.lp-status{ margin: 0; font-family: var(--lp-mono); font-size: .8125rem; line-height: 1.45; color: var(--lp-error); }
.lp-status.is-ok{ color: var(--lp-ok); }
.lp-note{ margin: 0; padding-top: clamp(10px, 1.6vh, 14px); border-top: 1px dashed var(--lp-rule-paper); font-size: .875rem; color: var(--lp-ink-soft); }

.lp-cue{ justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-block: clamp(8px, 1.6vh, 16px);
  font-family: var(--lp-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-foam-soft); text-decoration: none; }
.lp-cue:hover{ color: var(--lp-foam); }
.lp-cue svg{ width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference){ .lp-cue svg{ animation: lp-bob 2.4s ease-in-out infinite; } }
@keyframes lp-bob{ 50%{ transform: translateY(4px); } }

/* ---------- below the fold ---------- */
.lp-band{ padding-block: clamp(56px, 9vh, 96px); border-top: 1px solid var(--lp-rule-dark); }
.lp-band-head{ display: grid; gap: 10px; margin-bottom: clamp(26px, 4vw, 40px); max-width: 40em; text-shadow: 0 2px 18px rgba(2,13,24,.6); }
.lp-band h2{ font-family: var(--lp-display); font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; color: var(--lp-foam); }
.lp-panel{ background: rgba(2,13,24,.62); border: 1px solid var(--lp-rule-dark); border-radius: var(--lp-radius); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-modes{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lp-mode{ padding: 22px 20px 24px; display: grid; gap: 8px; align-content: start; }
.lp-mode + .lp-mode{ border-left: 1px solid var(--lp-rule-dark); }
.lp-mode h3, .lp-steps h3{ font-family: var(--lp-display); font-size: 1.25rem; margin: 0; color: var(--lp-foam); }
.lp-mode .lp-tag{ font-family: var(--lp-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-brass); }
.lp-mode p, .lp-steps p{ margin: 0; font-size: .95rem; color: var(--lp-foam-soft); }
.lp-steps{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: lp-s; }
.lp-steps li{ counter-increment: lp-s; display: grid; gap: 8px; align-content: start; padding: 22px 20px 24px; }
.lp-steps li::before{ content: counter(lp-s); font-family: var(--lp-display); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--lp-brass); }

/* ---------- FAQ: <details>, so it works without script ---------- */
.lp-faq{ padding: clamp(6px, 1vw, 10px) clamp(18px, 3vw, 30px); }
.lp-faq details{ border-bottom: 1px solid var(--lp-rule-dark); }
.lp-faq details:last-child{ border-bottom: 0; }
.lp-faq summary{ cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding-block: 16px; font-weight: 600; font-size: 1.08rem; color: var(--lp-foam); }
.lp-faq summary::-webkit-details-marker{ display: none; }
.lp-faq summary::after{ content: '+'; font-family: var(--lp-mono); color: var(--lp-brass); font-size: 1.2rem; line-height: 1; }
.lp-faq details[open] summary::after{ content: '−'; }
.lp-faq details p{ margin: 0 0 18px; color: var(--lp-foam-soft); max-width: 46em; }
.lp-faq a, .lp-foot-links a{ color: var(--lp-brass); text-underline-offset: 3px; }

.lp-foot-links{ display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot{ border-top: 1px solid var(--lp-rule-dark); padding-block: 24px calc(36px + env(safe-area-inset-bottom, 0px)); font-family: var(--lp-mono); font-size: .75rem; letter-spacing: .04em; color: var(--lp-foam-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- short desktop windows: the first screen trims instead of overflowing ---------- */
@media (max-height: 760px) and (min-width: 761px){
  .lp-points span, .lp-note{ display: none; }
}
@media (max-height: 620px) and (min-width: 761px){
  .lp-points, .lp-remember{ display: none; }
}
/* ---------- tablet ---------- */
@media (max-width: 1000px){
  .lp-modes{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-mode:nth-child(4){ border-left: 0; }
  .lp-mode:nth-child(n+4){ border-top: 1px solid var(--lp-rule-dark); }
  .lp-steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) and (min-width: 761px){
  .lp-points{ grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lp-points li{ grid-template-columns: 9.5rem minmax(0, 1fr); gap: 10px; }
}
/* ---------- phone: headline, then sign-in ---------- */
@media (max-width: 760px){
  .lp-tagline{ font-size: .6875rem; max-width: 15em; }
  .lp-hero{ grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(16px, 3vh, 26px); }
  .lp-lede{ font-size: .88rem; }
  .lp h1{ font-size: clamp(1.9rem, min(5.4vw, 8.4vh), 4.4rem); }   /* the 20% text bump would push the sign-in box off the first screen */
  .lp-points{ display: none; }
  .lp-signin-wrap{ transform: none; }
  .lp-cue{ display: none; }
  .lp-fold{ padding-bottom: 24px; }
  .lp-signin{ max-width: none; margin: 0; }
  .lp-scrim{ background: linear-gradient(180deg, rgba(2,13,24,.55), rgba(2,13,24,.25) 45%, rgba(2,13,24,.6)); }
  .lp-modes{ grid-template-columns: minmax(0, 1fr); }
  .lp-mode + .lp-mode{ border-left: 0; border-top: 1px solid var(--lp-rule-dark); }
  .lp-mode{ grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 14px; padding: 16px 18px; }
  .lp-mode h3{ grid-row: 1 / span 2; }
  .lp-mode .lp-tag{ grid-column: 2; }
  .lp-steps{ grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lp-steps li{ grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 12px; padding: 16px 18px; }
  .lp-steps li::before{ grid-row: 1 / span 2; font-size: 2.1rem; }
}
@media (max-width: 480px){ .lp-tagline{ display: none; } }
@media (max-width: 760px) and (max-height: 760px){
  .lp-lede, .lp-note{ display: none; }
}
@media (max-width: 760px) and (max-height: 620px){
  .lp-eyebrow, .lp-sub, .lp-remember{ display: none; }
}
@media (max-width: 400px){
  .lp-mode{ grid-template-columns: minmax(0, 1fr); }
  .lp-mode h3{ grid-row: auto; }
  .lp-mode .lp-tag{ grid-column: auto; }
}
