/* Weeyuga landing — aligned to Andre's PencilPractise design (commit
   f0eeffb, frame `dlPPL`). Deliberately diverges from PencilPractise
   design-system brand (#2585BD) to match Andre's GitHub-Dark-tinged
   landing palette: the landing wears its own visual register, more
   restrained / serious than the in-app surfaces. App tokens stay
   canonical for desktop / mobile / watch — landing has its own. */

:root {
  /* Andre's palette (GitHub-Dark-tinged). */
  --bg-base:        #0e1116;     /* page + alternating sections */
  --bg-raised:      #161b22;     /* lifted sections (wedge / waitlist / built) */
  --bg-card:        #1f2731;     /* cards, chips, composer */
  --bg-input:       #0e1116;     /* form fields */

  --border:         #30363d;
  --border-soft:    #1f2731;     /* footer top stroke */

  --fg:             #e6edf3;     /* primary */
  --fg-2:           #c9d1d9;     /* body prose */
  --fg-3:           #8b949e;     /* muted */
  --fg-4:           #6e7681;     /* hint / footnote */

  --accent:         #58a6ff;     /* GitHub blue — Andre's chosen accent */
  --accent-green:   #3fb950;
  --accent-amber:   #d29922;

  /* Type. */
  --font-sans:      "Inter", system-ui, -apple-system, sans-serif;
  --font-display:   "Fontdiner Swanky", "Inter", sans-serif;
  --font-mono:      "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Spacing. */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  28px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-14: 56px;
  --s-16: 64px;
  --s-20: 80px;

  /* Radii. */
  --r-sm:   8px;
  --r-md:   10px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-pill: 999px;

  /* Layout. */
  --content: min(100% - 32px, 1100px);

  /* Motion. */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  180ms;
}

* { box-sizing: border-box; }

html {
  background: var(--bg-base);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

img, svg { max-width: 100%; display: block; }

p { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: #88c0dc; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--fg-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg-base);
  padding: 10px 14px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main { display: block; }


/* ─── Section scaffolding ──────────────────────────────────────── */

.section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--s-20) var(--s-6);
}
.section--bg-base   { background: var(--bg-base); }
.section--bg-raised { background: var(--bg-raised); }

.section-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.section-inner--640 { max-width: 640px; }
.section-inner--780 { max-width: 780px; }
.section-inner--520 { max-width: 520px; }

.section-inner--center-text { text-align: left; }
@media (min-width: 720px) {
  .section-inner--center-text { align-items: center; text-align: center; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}


/* ─── Eyebrow ──────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* ─── Section title ────────────────────────────────────────────── */

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.section-title--md {
  font-size: clamp(22px, 3.6vw, 28px);
}


/* ─── Prose ────────────────────────────────────────────────────── */

.prose {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
}
.prose--muted {
  color: var(--fg-3);
  font-size: 14px;
}


/* ─── CTA buttons ──────────────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 22px;
  height: 50px;
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
}
.cta:active { transform: translateY(1px); }
.cta:hover { text-decoration: none; }

.cta--primary {
  background: var(--accent);
  color: var(--bg-base);
}
.cta--primary:hover {
  background: #79b8ff;
  color: var(--bg-base);
}

.cta--block {
  width: 100%;
  height: 48px;
}

.cta--ghost-text {
  background: transparent;
  color: var(--fg-3);
  font-size: 14px;
  font-weight: 600;
  padding: 0 6px;
  height: auto;
}
.cta--ghost-text:hover { color: var(--fg); }

.cta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cta-link {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  display: inline-block;
  margin-top: var(--s-3);
}
.cta-link:hover { color: #79b8ff; }


/* ─── §1 Hero ──────────────────────────────────────────────────── */

.hero {
  width: 100%;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  padding: 60px 40px;          /* matches Andre jYYB1 padding:[60,40] */
  display: flex;
  justify-content: center;
}

.hero-grid {
  width: 100%;
  max-width: 1024px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--s-10);
}
/* 1100px so 480 + 48 gap + 480 = 1008 fits inside hero padding (40+40 = 80)
   plus a tiny safety margin. Below 1100, hero stacks single-column.
   At 920–1100 a fixed 480px+480px overflowed the right column (the canvas
   inside the figure rendered "across half the website" per Sloba 2026-04-28). */
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: 480px 480px; gap: var(--s-12); justify-content: center; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.alpha-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-base);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.alpha-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;          /* matches Andre xB5co/NqWuR cornerRadius:3 (circle on 6×6) */
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 6.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-2);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-2);
}

.hero-credit {
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg-4);
}


/* ─── §1 Hero mockup card ─────────────────────────────────────── */

.hero-mockup {
  margin: 0 auto;            /* center when stacked single-column at <1100 */
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 380px;
  isolation: isolate;
  overflow: hidden;          /* clip any rogue canvas overflow as safety net */
  border-radius: var(--r-xl);
}

/* Maja loop placeholder backdrop — Option B mount.
   `loop-placeholder.svg` carries its own `prefers-reduced-motion`
   fallback to a static F4 mid-pulse keyframe; we just lower opacity. */
.hero-loop-bg {
  position: absolute;
  inset: 0;
  width: 100%;               /* explicit — canvases have intrinsic 300×150
                                that some browsers honor over `inset:0` */
  height: 100%;
  border-radius: var(--r-xl);
  /* Solid color; canvas2d (Maja's loop.js) draws on top via clearRect.
     Solid bg shows through as graceful degradation if JS fails to load. */
  background: var(--bg-base);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  isolation: isolate;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero-loop-bg { opacity: 0.35; }
}

.hero-mock-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: 14px;                   /* matches Andre LDMock gap:14 */
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.62);
}

.hero-mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #FFBE9D;
  color: var(--bg-base);
  font-family: var(--font-display);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* When rendered as <img>, fill the circle and crop. */
  object-fit: cover;
  object-position: center;
}

.hero-mock-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-mock-name strong {
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
}
.hero-mock-name span {
  color: var(--fg-3);
  font-size: 10px;
}

.hero-mock-status {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-green);
  flex-shrink: 0;
}

.hero-mock-bubble {
  align-self: flex-start;
  background: var(--bg-card);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  max-width: 380px;
}

.hero-mock-composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 14px;
}
.hero-mock-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--fg-4);
}
.hero-mock-radio {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-mock-hint {
  font-size: 10px;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg-4);
}
.hero-mock-hint code {
  font-size: 10px;
  background: transparent;
  padding: 0;
  color: var(--fg-3);
}


/* ─── §4 Trust + privacy tag chips ────────────────────────────── */

.tag-chips {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
}

.tag-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.tag-icon--green { color: var(--accent-green); }
.tag-icon--blue  { color: var(--accent); }
.tag-icon--amber { color: var(--accent-amber); }


/* ─── §2 Wedge cards ──────────────────────────────────────────── */

.wedge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-3);
}
/* 1000px so 3 × 300 + 2 × 18 gap (= 936) fits inside 24px section padding. */
@media (min-width: 1000px) {
  .wedge-grid { grid-template-columns: repeat(3, 300px); justify-content: center; gap: 18px; }
}

.wedge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.wedge-card:hover {
  border-color: var(--fg-4);
  transform: translateY(-2px);
}

.wedge-icon {
  width: 24px;
  height: 24px;
}
.wedge-icon--blue  { color: var(--accent); }
.wedge-icon--green { color: var(--accent-green); }
.wedge-icon--amber { color: var(--accent-amber); }

.wedge-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--fg);
}

.wedge-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
  margin: 0;
}


/* ─── §3 How it works ────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-base);
  flex-shrink: 0;
}
.step-num--blue  { background: var(--accent); }
.step-num--amber { background: var(--accent-amber); }
.step-num--green { background: var(--accent-green); }

.step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.step-text h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.step-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
}


/* ─── §5 Waitlist ────────────────────────────────────────────── */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.waitlist-field { width: 100%; }

.waitlist-field input {
  width: 100%;
  height: 48px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  transition: border-color var(--dur) var(--ease);
}
.waitlist-field input::placeholder { color: var(--fg-4); }
.waitlist-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-footnote {
  font-size: 11px;
  font-style: italic;
  color: var(--fg-4);
  line-height: 1.5;
  margin: 0;
}

.waitlist-status {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  margin: 0;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
}
.waitlist-status[data-state="success"] {
  color: var(--accent-green);
  background: rgba(63, 185, 80, 0.10);
  border: 1px solid rgba(63, 185, 80, 0.28);
}
.waitlist-status[data-state="error"] {
  color: #f85149;
  background: rgba(248, 81, 73, 0.10);
  border: 1px solid rgba(248, 81, 73, 0.28);
}
.waitlist-status[data-state="pending"] { color: var(--fg-4); }


/* ─── §7 Built by everyone ───────────────────────────────────── */

/* Section is 780w (matches Andre Zi1x0 grid width); heading text
   inside is constrained to 640w to mirror Andre's niXPP heading frame. */
.built-inner > .eyebrow,
.built-inner > .section-title,
.built-inner > .prose,
.built-inner > .cta-link {
  max-width: 640px;
  width: 100%;
}

.cast-grid {
  width: 100%;
  max-width: 780px;
  margin: var(--s-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.cast-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

.cast-tile {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--tint, var(--bg-card));
  border: 2px solid var(--bg-raised);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.cast-tile:hover { transform: scale(1.08); }

/* Portrait variant: real persona frame (still extracted from the
   per-persona greeting video). Title attribute provides the name +
   role on hover. background-image is set inline per tile. */
.cast-tile--portrait {
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-color: var(--bg-card);
  cursor: help;
}

.cast-tile--fade-1 { opacity: 0.78; }
.cast-tile--fade-2 { opacity: 0.5; }
.cast-tile--empty {
  background: var(--bg-card);
  border-color: var(--bg-raised);
}
.cast-tile--plus {
  background: var(--bg-base);
  border: 1.5px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}


/* ─── §6 Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-soft);
  padding: 28px max(16px, calc((100vw - 1100px) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.site-footer-left {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.footer-sep {
  color: var(--border);
  font-size: 14px;
}

.footer-tag {
  font-size: 13px;
  color: var(--fg-3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
}
.footer-links a:hover { color: var(--fg); }


/* ─── Mobile tweaks ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .section { padding: 48px 24px; }   /* matches Andre §4-§7 mobile padding:[48,24] */
  .hero { padding: 40px 20px; }      /* matches Andre x7KYp padding:[40,20] */

  .hero-mockup { height: 340px; max-width: 100%; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .cta { width: 100%; }
  .hero-cta-row .cta--ghost-text { text-align: center; }

  .step { padding: 16px 18px; gap: 14px; }
  .wedge-card { padding: 24px 20px; }
  .cast-tile { width: 40px; height: 40px; border-radius: 20px; }
}
