/* ==========================================================================
   optin.css — Terran Studio
   Styles for /dossier/, /dossier/thanks/, /dossier/download/, /privacy/
   Additive only. Does NOT modify or depend on anything in styles.css
   beyond the :root custom properties already defined there.
   Load AFTER styles.css.
   ========================================================================== */

/* --- minimal nav variant for conversion pages ---------------------------- */
.site-nav--bare .nav-links,
.site-nav--bare .nav-toggle { display: none; }

/* --- page shell ---------------------------------------------------------- */
.ts-optin-page {
  max-width: 660px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
}
.ts-optin-page--wide { max-width: var(--w-prose); }

/* --- classification stamp / eyebrow -------------------------------------- */
.ts-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: var(--r-sm);
  padding: .35rem .7rem;
  margin-bottom: var(--space-3);
}
.ts-stamp--warm { color: var(--accent-warm); border-color: var(--accent-warm); }

/* --- headings ------------------------------------------------------------ */
.ts-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fg-0);
  margin: 0 0 var(--space-2);
}
.ts-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0 0 var(--space-4);
}
.ts-h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-0);
  margin: var(--space-5) 0 var(--space-2);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* --- the form ------------------------------------------------------------ */
.ts-optin {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  margin: 0 0 var(--space-3);
}
.ts-optin__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: .5rem;
}
.ts-optin__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.ts-optin input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg-0);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .8rem .9rem;
}
.ts-optin input[type="email"]::placeholder { color: var(--fg-3); }
.ts-optin input[type="email"]:focus-visible,
.ts-optin button:focus-visible,
.ts-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ts-optin button {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--bg-0);
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .8rem 1.4rem;
  cursor: pointer;
}
.ts-optin button:hover { background: var(--accent-dim); }
.ts-optin__note {
  font-size: .78rem;
  line-height: 1.6;
  color: var(--fg-2);
  margin: .8rem 0 0;
}
.ts-optin__note a { color: var(--fg-1); }

/* live region for the optional JS success state */
.ts-optin__status { font-size: .85rem; color: var(--accent); margin-top: .6rem; }

/* --- contents list ------------------------------------------------------- */
.ts-contents { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.ts-contents li {
  display: flex;
  gap: .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-1);
  line-height: 1.55;
}
.ts-contents li::before {
  content: "▸";
  color: var(--accent);
  flex: 0 0 auto;
  font-size: .85rem;
  line-height: 1.7;
}

/* --- byline block -------------------------------------------------------- */
.ts-byline {
  background: var(--bg-1);
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--fg-1);
  line-height: 1.65;
}
.ts-byline p:last-child { margin-bottom: 0; }

/* --- expectations strip -------------------------------------------------- */
.ts-expect {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.7;
  color: var(--fg-2);
  background: var(--bg-1);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--space-2);
  margin: 0 0 var(--space-4);
}

/* --- big download button ------------------------------------------------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--accent);
  color: var(--bg-0);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  padding: 1rem 1.6rem;
}
.ts-btn:hover { background: var(--accent-dim); }
.ts-btn--ghost {
  background: transparent;
  color: var(--fg-0);
  border: 1px solid var(--border-strong);
}
.ts-btn--ghost:hover { background: var(--bg-2); border-color: var(--accent-dim); }

/* --- next-step cards ----------------------------------------------------- */
.ts-next { margin-top: var(--space-5); }
.ts-next__item {
  border-top: 1px solid var(--border);
  padding: var(--space-3) 0;
}
.ts-next__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-0);
  margin: 0 0 .4rem;
}
.ts-next__item p { color: var(--fg-2); line-height: 1.6; margin: 0 0 .8rem; }

/* --- responsive video ---------------------------------------------------- */
.ts-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin: 0 0 var(--space-2);
}
.ts-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* --- inline capture block (homepage / conflict-space) -------------------- */
.ts-capture {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  margin: var(--space-5) 0;
}
.ts-capture h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-0);
  margin: 0 0 .4rem;
}
.ts-capture p { color: var(--fg-2); margin: 0 0 var(--space-2); line-height: 1.6; }

/* --- prose (privacy) ----------------------------------------------------- */
.ts-prose p, .ts-prose li { color: var(--fg-1); line-height: 1.7; }
.ts-prose ul { padding-left: 1.2rem; margin: 0 0 var(--space-3); }
.ts-prose li { margin-bottom: .5rem; }
.ts-prose a { color: var(--accent); }
.ts-prose address {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .9rem;
  line-height: 1.7;
  color: var(--fg-1);
  background: var(--bg-1);
  border-radius: var(--r-md);
  padding: var(--space-2);
  display: inline-block;
}
.ts-updated {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 520px) {
  .ts-optin__row { flex-direction: column; }
  .ts-optin button { width: 100%; }
}
