/* css/modules/landing.css
   The logged-out landing page (Ben's mockup: templates/three-sages-landing (4).html),
   living INSIDE #auth-container so the session gate / recovery / waitlist paths are
   untouched. Everything namespaced .landing-*; the auth-card re-skin is scoped under
   #auth-container so no SignIn-V5 selector in styles.css is modified.
   See docs/internal/LANDING_PAGE_INTEGRATION_RESEARCH.md. */

/* ---- container: own the scroll (body is a 100vh flex column) ---- */
#auth-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: #0b0b0c; /* mockup --bg; darker than the app's #1a1918 */
}

.landing-root {
  /* mockup tokens, scoped to the landing subtree */
  --l-bg: #0b0b0c;
  --l-panel: #151517;
  --l-panel-2: #1c1c1f;
  --l-line: rgba(255, 255, 255, .08);
  --l-line-2: rgba(255, 255, 255, .14);
  --l-ink: #f3f2f0;
  --l-muted: #8b8b8f;
  --l-muted-2: #6c6c70;
  --l-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --l-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  width: 100%;
  background: var(--l-bg);
  color: var(--l-ink);
  font-family: var(--l-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.landing-root a { color: inherit; text-decoration: none; }

/* ============ THE FOLD ============ */
.landing-fold {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: clamp(18px, 3vw, 40px);
  padding-bottom: clamp(14px, 1.8vh, 24px);
}

.landing-hero { max-width: 1200px; margin: clamp(6px, 1.6vh, 20px) 0 clamp(16px, 2.6vh, 30px); }
.landing-hero h1 {
  font-family: var(--l-serif); font-weight: 700; font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1; letter-spacing: -.02em; margin: 0 0 14px; color: var(--l-ink);
}
.landing-lede {
  font-family: var(--l-sans); font-weight: 500; font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  line-height: 1.2; letter-spacing: -.01em; color: #dcdbd8; margin: 0; max-width: 1120px;
}
.landing-lede em { font-style: italic; color: var(--creative-color); }
.landing-pen { font-family: var(--l-serif); font-style: italic; color: var(--l-ink); margin-left: 14px; white-space: nowrap; }

/* ---- stage: chat | doc | signup ---- */
.landing-stage {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(14px, 1.4vw, 20px);
  align-items: stretch;
}
.landing-card {
  background: var(--l-panel); border: 1px solid var(--l-line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; min-height: 0; position: relative;
}
.landing-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--l-line);
}
.landing-card-t { font-weight: 600; font-size: .96rem; letter-spacing: -.01em; }
.landing-card-t small { color: var(--l-muted-2); font-weight: 400; display: block; font-size: .74rem; letter-spacing: .02em; margin-top: 3px; }

/* chat */
.landing-doodle { position: absolute; inset: 0; opacity: .05; pointer-events: none; z-index: 0; }
.landing-chat .landing-inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.landing-sets { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px 4px; }
.landing-pill {
  font-size: .78rem; color: var(--l-muted); padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--l-line-2); background: transparent; cursor: pointer;
  font-family: var(--l-sans); transition: .18s;
}
.landing-pill:hover { color: var(--l-ink); border-color: rgba(255, 255, 255, .28); }
.landing-pill.on { background: var(--l-ink); color: #111; border-color: var(--l-ink); font-weight: 600; }
.landing-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 14px; }
.landing-msg { display: flex; gap: 11px; opacity: 0; transform: translateY(8px); }
.landing-msg.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.landing-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff; margin-top: 2px;
  background-size: cover; background-position: center; /* real portrait art (writers) */
}
.landing-bub { background: var(--l-panel-2); border: 1px solid var(--l-line); border-radius: 4px 14px 14px 14px; padding: 10px 13px; font-size: .9rem; line-height: 1.46; color: #e9e8e6; }
.landing-who { font-size: .72rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 3px; }
.landing-composer { margin: 8px 16px 16px; border: 1px solid var(--l-line-2); border-radius: 14px; padding: 13px 14px; color: var(--l-muted-2); font-size: .9rem; display: flex; align-items: center; justify-content: space-between; }
.landing-send { width: 30px; height: 30px; border-radius: 9px; background: var(--l-ink); display: grid; place-items: center; }
.landing-send svg { width: 15px; height: 15px; }

/* doc */
.landing-doc-body { flex: 1; min-height: 0; overflow-y: auto; padding: 28px clamp(22px, 2.4vw, 38px); }
.landing-doc-body h3 { font-family: var(--l-serif); font-weight: 600; font-size: clamp(1.5rem, 2.1vw, 1.95rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.01em; }
.landing-doc-body p { font-family: var(--l-serif); font-weight: 400; font-size: 1.04rem; line-height: 1.75; color: #d9d8d5; margin: 0 0 16px; }
.landing-doc-body p.landing-doc-live { color: #cfceca; }
.landing-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--creative-color); vertical-align: -2px; margin-left: 1px; animation: landing-blink 1.05s steps(1) infinite; }
@keyframes landing-blink { 50% { opacity: 0; } }
.landing-doc-meta { display: flex; gap: 14px; margin-top: 26px; color: var(--l-muted-2); font-size: .78rem; border-top: 1px solid var(--l-line); padding-top: 14px; }

/* signup card shell */
.landing-signup-pad { flex: 1; min-height: 0; overflow-y: auto; padding: 24px clamp(20px, 1.8vw, 28px) 26px; display: flex; flex-direction: column; }
.landing-nocc {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: var(--companion-color); margin: 0 0 14px;
}
.landing-nocc svg { width: 15px; height: 15px; flex: none; }

/* ============ AUTH CARD RE-SKIN (mockup look; ids/behavior untouched) ============
   Scoped under #auth-container so the SignIn-V5 rules in styles.css stay pristine
   for anything else that might use them. The id selector out-guns every class rule. */
#auth-container .auth-container-inner {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
}
#auth-container .auth-title {
  font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 6px; text-align: center; color: var(--l-ink, #f3f2f0);
}
#auth-container .pill-switch {
  display: flex; background: #0e0e10; border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; padding: 5px; margin-bottom: 18px; position: relative; width: 100%;
}
#auth-container .pill-slider {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: var(--creative-color); border-radius: 999px; transition: transform .25s ease;
}
#auth-container .auth-container-inner.signup-active .pill-slider { transform: translateX(100%); }
#auth-container .pill-option {
  flex: 1; border: 0; background: transparent; color: #8b8b8f; padding: 10px;
  border-radius: 999px; font-size: .92rem; font-weight: 600; cursor: pointer;
  text-align: center; position: relative; z-index: 1; transition: color .2s;
}
#auth-container .auth-container-inner.login-active #login-option,
#auth-container .auth-container-inner.signup-active #signup-option { color: #1a1207; }
#auth-container .form-group { margin-bottom: 13px; text-align: left; }
#auth-container .form-group label {
  display: block; font-size: .82rem; font-weight: 600; margin: 0 0 6px; color: #d8d7d4;
}
#auth-container .input-field {
  width: 100%; background: #0e0e10; border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: 12px 14px; color: #f3f2f0; font-family: var(--l-sans, 'Inter', sans-serif); font-size: .95rem;
}
#auth-container .input-field::placeholder { color: #56565a; }
#auth-container .input-field:focus { outline: none; border-color: rgba(249, 115, 22, .6); box-shadow: none; }
#auth-container .helper-text { font-size: .78rem; color: #6c6c70; margin: 6px 0 0; }
#auth-container .input-wrapper { position: relative; }
#auth-container .password-toggle {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: #6c6c70; cursor: pointer; width: 18px; height: 18px;
}
#auth-container .password-toggle svg { width: 18px; height: 18px; display: block; }
/* One CTA color everywhere (decided): mockup orange for login, signup, reset. */
#auth-container .submit-button,
#auth-container .auth-container-inner.login-active .submit-button,
#auth-container .auth-container-inner.signup-active .submit-button,
#auth-container .auth-container-inner.reset-active .submit-button,
#auth-container .auth-container-inner.set-password-active .submit-button {
  width: 100%; border: 0; background: var(--creative-color); color: #fff;
  font-family: var(--l-sans, 'Inter', sans-serif); font-weight: 700; font-size: 1.02rem;
  padding: 14px; border-radius: 13px; cursor: pointer; margin-top: 4px; transition: .15s;
}
#auth-container .submit-button:hover { filter: brightness(1.06); }
#auth-container .forgot-password-link { text-align: center; margin: 10px 0 0; }
#auth-container .forgot-password-link a { font-size: .82rem; color: #8b8b8f; }
#auth-container .forgot-password-link a:hover { color: #f3f2f0; }
#auth-container .auth-card-subtext {
  font-size: .8rem; color: #6c6c70; text-align: center; margin: 12px 0 0; line-height: 1.5;
}

/* ============ BELOW THE FOLD ============ */
.landing-below { padding: clamp(48px, 9vh, 110px) clamp(18px, 3vw, 40px); max-width: 1080px; margin: 0 auto; }
.landing-manifesto p {
  font-family: var(--l-serif); font-weight: 400; font-size: clamp(1.4rem, 2.7vw, 2.25rem);
  line-height: 1.4; letter-spacing: -.01em; color: #e7e6e3; max-width: 920px; margin: 0;
}
.landing-beat { margin-top: clamp(48px, 9vh, 100px); max-width: 900px; }
.landing-eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--l-muted-2); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.landing-eyebrow::after { content: ""; height: 1px; width: 46px; background: var(--l-line-2); }
.landing-beat h4 { font-family: var(--l-serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.landing-beat p { color: var(--l-muted); font-size: clamp(1rem, 1.4vw, 1.16rem); max-width: 660px; margin: 0; line-height: 1.6; }
.landing-beat p b { color: var(--l-ink); font-weight: 500; }
.landing-closer { margin-top: clamp(48px, 9vh, 100px); max-width: 780px; }
.landing-closer h4 { font-family: var(--l-serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.01em; }
.landing-trust { display: flex; flex-wrap: wrap; gap: 11px 28px; margin: 0 0 28px; }
.landing-trust-row { display: flex; align-items: center; gap: 9px; font-size: .94rem; color: #cfceca; }
.landing-trust-row svg { width: 15px; height: 15px; color: var(--companion-color); flex: none; }
.landing-cta-wide { display: inline-block; text-align: center; padding: 15px 34px; border-radius: 13px; background: var(--creative-color); color: #fff; font-weight: 700; font-size: 1.02rem; transition: .15s; }
.landing-cta-wide:hover { filter: brightness(1.06); }
.landing-fine { font-size: .8rem; color: var(--l-muted-2); text-align: left; margin: 16px 0 0; line-height: 1.5; }

/* ---- responsive (mockup breakpoints) ---- */
@media (max-width: 1040px) {
  .landing-stage { grid-template-columns: 1fr 1fr; }
  .landing-signup { grid-column: 1 / -1; }
  .landing-signup-pad { max-width: 520px; margin: 0 auto; width: 100%; }
  .landing-fold { min-height: 0; }
}
@media (max-width: 680px) {
  .landing-stage { grid-template-columns: 1fr; }
  .landing-card { min-height: 380px; }
  .landing-pen { margin-left: 0; display: block; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-msg { opacity: 1; transform: none; }
  .landing-caret { animation: none; }
}

/* ---- Watch-demo menu item: desktop only (the demo choreography assumes
        desktop panels; the bento clones menu items to mobile automatically) ---- */
@media (max-width: 767px) {
  .menu-item-demo { display: none; }
}
