/* Start page: three visual directions, one shown at random per page load
   (see app.js showStartScreen()). Each variant is a fully self-contained
   visual world with its own palette/type - intentionally not adapted to
   dark mode, matching style.css's own forced-light choice for the rest
   of the app (see :root { color-scheme: light } there). */

#startScreen { min-height: 100vh; }
.start-pitch button { font: inherit; }

/* ============================================================
   INSTRUMENT - precise, unhurried, daylight. A dial you
   calibrate, not a mood ring.
   ============================================================ */
.start-pitch--instrument {
  --ground: #eef1ea;
  --surface: #f8faf5;
  --ink: #262b24;
  --muted: #6c7566;
  --sage: #4f7a5c;
  --clay: #b9714f;
  --border: #d9e0d2;
  background: var(--ground);
  color: var(--ink);
  font-family: Karla, sans-serif;
}
.start-pitch--instrument .wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px 20px; }
.start-pitch--instrument .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 0;
}
.start-pitch--instrument .mark {
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.start-pitch--instrument .mark span { color: var(--sage); }
.start-pitch--instrument .nav-login {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--muted); background: none; border: none;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.start-pitch--instrument .hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding: 64px 0 76px;
}
.start-pitch--instrument .eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
  margin: 0 0 18px;
}
.start-pitch--instrument h1 {
  font-family: Newsreader, serif; font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.08; margin: 0 0 22px;
  text-wrap: balance; color: var(--ink);
}
.start-pitch--instrument .lede {
  font-size: 1.05rem; line-height: 1.65; color: var(--muted);
  max-width: 46ch; margin: 0 0 30px;
}
.start-pitch--instrument .cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.start-pitch--instrument .cta-btn {
  font-family: Karla, sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 4px; border: none;
  background: var(--sage); color: #fdfdfb; cursor: pointer;
}
.start-pitch--instrument .cta-note {
  font-size: 0.82rem; color: var(--muted); font-family: "IBM Plex Mono", monospace;
}

.start-pitch--instrument .dial-figure { position: relative; aspect-ratio: 1; }
.start-pitch--instrument .dial-figure svg { width: 100%; height: 100%; }
.start-pitch--instrument .ring-outer { animation: sp-spin-slow 140s linear infinite; transform-origin: 150px 150px; }
.start-pitch--instrument .ring-mid { animation: sp-spin-slow-rev 100s linear infinite; transform-origin: 150px 150px; }
.start-pitch--instrument .ring-inner { animation: sp-spin-slow 70s linear infinite; transform-origin: 150px 150px; }
@keyframes sp-spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sp-spin-slow-rev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.start-pitch--instrument .axes {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 34px 0;
}
.start-pitch--instrument .axes-label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.start-pitch--instrument .axes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.start-pitch--instrument .axis {
  font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; line-height: 1.7;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
}
.start-pitch--instrument .axis b { color: var(--sage); display: block; }
.start-pitch--instrument .axis span { color: var(--muted); }
.start-pitch--instrument .axis em { font-style: normal; color: var(--clay); display: block; }

.start-pitch--instrument .path-demo {
  padding: 60px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.start-pitch--instrument .cascade { font-family: Newsreader, serif; font-size: 1.5rem; }
.start-pitch--instrument .cascade .t1 { color: var(--ink); }
.start-pitch--instrument .cascade .t2 { color: var(--sage); margin-left: 1.2em; display: block; margin-top: 8px; }
.start-pitch--instrument .cascade .t3 { color: var(--clay); margin-left: 2.4em; display: block; margin-top: 8px; }
.start-pitch--instrument .cascade .arrow { font-family: "IBM Plex Mono", monospace; font-size: 0.9rem; color: var(--muted); }
.start-pitch--instrument .path-copy p { font-size: 1rem; line-height: 1.7; color: var(--muted); max-width: 38ch; }
.start-pitch--instrument .path-copy strong { color: var(--ink); }

.start-pitch--instrument .footer-cta {
  padding: 70px 0 90px; text-align: left; border-top: 1px solid var(--border);
}
.start-pitch--instrument .footer-cta h2 {
  font-family: Newsreader, serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 26px; text-wrap: balance;
}

@media (max-width: 720px) {
  .start-pitch--instrument .hero { grid-template-columns: 1fr; }
  .start-pitch--instrument .dial-figure { max-width: 260px; margin: 0 auto; }
  .start-pitch--instrument .axes-grid { grid-template-columns: repeat(2, 1fr); }
  .start-pitch--instrument .path-demo { grid-template-columns: 1fr; }
}

/* ============================================================
   DUSK - the one time of day most people actually stop to name
   a feeling is at the end of it.
   ============================================================ */
.start-pitch--dusk {
  --ground: #10181a;
  --surface: #162326;
  --ink: #eaf1ee;
  --muted: #9fb4ae;
  --glow: #e3a97a;
  --border: #24363a;
  background: var(--ground); color: var(--ink);
  font-family: "Nunito Sans", sans-serif;
}
.start-pitch--dusk .wrap { max-width: 900px; margin: 0 auto; padding: 0 32px 20px; }
.start-pitch--dusk .nav {
  display: flex; align-items: center; justify-content: space-between; padding: 28px 0 0;
}
.start-pitch--dusk .mark {
  font-family: Petrona, serif; font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.start-pitch--dusk .nav-login {
  font-family: "Nunito Sans", sans-serif; font-size: 0.85rem; font-weight: 700;
  color: var(--glow); background: none; border: none; cursor: pointer;
}

.start-pitch--dusk .hero {
  position: relative; padding: 100px 0 84px; overflow: hidden;
}
.start-pitch--dusk .glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,169,122,0.22) 0%, rgba(227,169,122,0.06) 45%, transparent 72%);
  animation: sp-breathe 9s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes sp-breathe { from { opacity: 0.75; } to { opacity: 1; } }
.start-pitch--dusk .hero-inner { position: relative; max-width: 62ch; }
.start-pitch--dusk .eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--glow); margin: 0 0 20px;
}
.start-pitch--dusk h1 {
  font-family: Petrona, serif; font-weight: 600; font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.15; margin: 0 0 24px; text-wrap: balance; color: var(--ink);
}
.start-pitch--dusk .lede {
  font-size: 1.08rem; line-height: 1.75; color: var(--muted); max-width: 50ch; margin: 0 0 34px;
}
.start-pitch--dusk .cta-btn {
  font-family: "Nunito Sans", sans-serif; font-weight: 700; font-size: 0.98rem;
  padding: 15px 32px; border-radius: 999px; border: none;
  background: var(--glow); color: #241505; cursor: pointer;
}
.start-pitch--dusk .cta-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

.start-pitch--dusk .example {
  border-top: 1px solid var(--border);
  margin-top: 10px; padding: 60px 0 78px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start;
}
.start-pitch--dusk .cascade { font-family: Petrona, serif; font-size: 1.5rem; line-height: 1; }
.start-pitch--dusk .cascade div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.start-pitch--dusk .cascade .c1 { color: var(--muted); font-size: 1.1rem; }
.start-pitch--dusk .cascade .c2 { color: var(--ink); padding-left: 1em; }
.start-pitch--dusk .cascade .c3 { color: var(--glow); padding-left: 2em; border-bottom: none; }
.start-pitch--dusk .example-copy p { font-size: 1rem; line-height: 1.75; color: var(--muted); max-width: 40ch; }
.start-pitch--dusk .example-copy strong { color: var(--ink); }

.start-pitch--dusk .footer-cta {
  padding: 60px 0 92px; border-top: 1px solid var(--border);
}
.start-pitch--dusk .footer-cta p {
  font-family: Petrona, serif; font-size: 1.3rem; color: var(--ink);
  max-width: 34ch; line-height: 1.5; margin: 0 0 28px; text-wrap: balance;
}

@media (max-width: 720px) {
  .start-pitch--dusk .example { grid-template-columns: 1fr; }
}

/* ============================================================
   MEADOW - a morning check-in. Bright, airy, encouraging.
   ============================================================ */
.start-pitch--meadow {
  --ground: #f4f7ef;
  --surface: #ffffff;
  --ink: #2b3b2e;
  --muted: #74836f;
  --blush: #e39a96;
  --sage: #7fa687;
  --border: #e3eadb;
  background: var(--ground); color: var(--ink);
  font-family: Figtree, sans-serif;
}
.start-pitch--meadow .wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px 20px; }
.start-pitch--meadow .nav {
  display: flex; align-items: center; justify-content: space-between; padding: 30px 0 0;
}
.start-pitch--meadow .mark {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.1rem;
}
.start-pitch--meadow .nav-login {
  font-family: Figtree, sans-serif; font-weight: 700; font-size: 0.88rem;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: none; color: var(--ink); cursor: pointer;
}

.start-pitch--meadow .hero {
  position: relative; padding: 56px 0 70px;
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.start-pitch--meadow .blobs { position: absolute; right: 0; top: -10px; width: 340px; height: 340px; z-index: 0; }
.start-pitch--meadow .blob {
  position: absolute; border-radius: 50%; mix-blend-mode: multiply; opacity: 0.55;
  animation: sp-drift 11s ease-in-out infinite alternate;
}
.start-pitch--meadow .blob.b1 { width: 220px; height: 220px; background: var(--blush); top: 10px; left: 60px; }
.start-pitch--meadow .blob.b2 { width: 170px; height: 170px; background: var(--sage); top: 90px; left: 170px; animation-delay: -3s; }
.start-pitch--meadow .blob.b3 { width: 120px; height: 120px; background: #f6d98b; top: 190px; left: 40px; animation-delay: -6s; }
@keyframes sp-drift { from { transform: translate(0,0); } to { transform: translate(-10px, 12px); } }

.start-pitch--meadow .hero-inner { position: relative; z-index: 1; max-width: 60ch; }
.start-pitch--meadow .eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 16px;
}
.start-pitch--meadow h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.05; margin: 0 0 22px;
  text-wrap: balance; color: var(--ink);
}
.start-pitch--meadow .lede {
  font-size: 1.08rem; line-height: 1.7; color: var(--muted); max-width: 48ch; margin: 0 0 30px;
}
.start-pitch--meadow .cta-btn {
  font-family: Figtree, sans-serif; font-weight: 700; font-size: 1rem;
  padding: 16px 34px; border-radius: 999px; border: none;
  background: var(--ink); color: var(--ground); cursor: pointer;
}

.start-pitch--meadow .turns {
  padding: 50px 0; border-top: 2px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.start-pitch--meadow .turn {
  background: var(--surface); border-radius: 16px; padding: 24px 22px;
}
.start-pitch--meadow .turn-label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.start-pitch--meadow .turn-word {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.5rem; margin: 0;
}
.start-pitch--meadow .turn.t1 .turn-word { color: var(--ink); }
.start-pitch--meadow .turn.t2 .turn-word { color: var(--sage); }
.start-pitch--meadow .turn.t3 .turn-word { color: var(--blush); }

.start-pitch--meadow .reasons {
  padding: 10px 0 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.start-pitch--meadow .reason h3 {
  font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; margin: 0 0 8px;
}
.start-pitch--meadow .reason p { font-size: 0.94rem; line-height: 1.6; color: var(--muted); margin: 0; }

.start-pitch--meadow .footer-cta {
  padding: 50px 0 88px; border-top: 2px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.start-pitch--meadow .footer-cta p {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: 1.4rem; margin: 0; color: var(--ink);
}

@media (max-width: 760px) {
  .start-pitch--meadow .turns, .start-pitch--meadow .reasons { grid-template-columns: 1fr; }
  .start-pitch--meadow .blobs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .start-pitch * { animation: none !important; }
}

/* ============================================================
   AUTH SCREEN THEMING
   Whichever start-page direction a visitor saw carries over onto
   the login card right after they click its "Log in" button, so
   the hand-off doesn't drop into a plain, unrelated screen. Set
   via app.js setAuthTheme() as a class on <body>; cleared again
   once logged in or after an explicit log-out (see showScreen()).
   ============================================================ */
body.theme-instrument,
body.theme-dusk,
body.theme-meadow {
  transition: background 0.2s ease, color 0.2s ease;
}

body.theme-instrument { --ground: #eef1ea; --surface: #f8faf5; --ink: #262b24; --muted: #6c7566; --accent: #4f7a5c; --border: #d9e0d2; }
body.theme-dusk { --ground: #10181a; --surface: #162326; --ink: #eaf1ee; --muted: #9fb4ae; --accent: #e3a97a; --border: #24363a; }
body.theme-meadow { --ground: #f4f7ef; --surface: #ffffff; --ink: #2b3b2e; --muted: #74836f; --accent: #7fa687; --border: #e3eadb; }

body.theme-instrument { background: var(--ground); }
body.theme-dusk { background: var(--ground); }
body.theme-meadow { background: var(--ground); }

body.theme-instrument #topbar,
body.theme-dusk #topbar,
body.theme-meadow #topbar {
  background: var(--surface); border-bottom-color: var(--border);
}
body.theme-instrument #topbar h1,
body.theme-dusk #topbar h1,
body.theme-meadow #topbar h1 {
  color: var(--ink);
}

body.theme-instrument .auth-card,
body.theme-dusk .auth-card,
body.theme-meadow .auth-card {
  background: var(--surface); border-color: var(--border);
}
body.theme-instrument .auth-form label,
body.theme-dusk .auth-form label,
body.theme-meadow .auth-form label,
body.theme-instrument .hint,
body.theme-dusk .hint,
body.theme-meadow .hint,
body.theme-instrument .divider,
body.theme-dusk .divider,
body.theme-meadow .divider {
  color: var(--muted);
}
body.theme-instrument .divider::before, body.theme-instrument .divider::after,
body.theme-dusk .divider::before, body.theme-dusk .divider::after,
body.theme-meadow .divider::before, body.theme-meadow .divider::after {
  background: var(--border);
}
body.theme-instrument .tab-btn,
body.theme-dusk .tab-btn,
body.theme-meadow .tab-btn {
  background: var(--ground); border-color: var(--border); color: var(--ink);
}
body.theme-instrument .tab-btn.active,
body.theme-dusk .tab-btn.active,
body.theme-meadow .tab-btn.active {
  background: var(--accent); border-color: var(--accent);
}
body.theme-instrument .auth-form input,
body.theme-dusk .auth-form input,
body.theme-meadow .auth-form input {
  background: var(--ground); border-color: var(--border); color: var(--ink);
}
body.theme-instrument .auth-form input:focus,
body.theme-dusk .auth-form input:focus,
body.theme-meadow .auth-form input:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
body.theme-instrument .auth-form button[type="submit"],
body.theme-dusk .auth-form button[type="submit"],
body.theme-meadow .auth-form button[type="submit"] {
  background: var(--accent);
}
body.theme-dusk .auth-form button[type="submit"] { color: #241505; }
body.theme-instrument .link-btn,
body.theme-dusk .link-btn,
body.theme-meadow .link-btn {
  color: var(--accent);
}
body.theme-instrument .form-success,
body.theme-dusk .form-success,
body.theme-meadow .form-success {
  color: var(--accent);
}

/* Each theme's own type voice and button shape, matching its start-page
   variant's own CTA - squared and precise for Instrument, soft pills for
   the two rounder, warmer directions. */
body.theme-instrument { font-family: Karla, sans-serif; }
body.theme-instrument .auth-tabs .tab-btn { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }
body.theme-instrument .tab-btn,
body.theme-instrument .auth-form input,
body.theme-instrument .auth-form button[type="submit"] { border-radius: 4px; }

body.theme-dusk { font-family: "Nunito Sans", sans-serif; }
body.theme-dusk .auth-card { border-radius: 20px; }
body.theme-dusk .tab-btn,
body.theme-dusk .auth-form button[type="submit"] { border-radius: 999px; }

body.theme-meadow { font-family: Figtree, sans-serif; }
body.theme-meadow .auth-card { border-radius: 22px; }
body.theme-meadow .tab-btn,
body.theme-meadow .auth-form input,
body.theme-meadow .auth-form button[type="submit"] { border-radius: 999px; }
body.theme-meadow .auth-form button[type="submit"] { color: var(--ground); }
