/**
 * Gist Homepage — dark-first marketing surface (v3.6 prototype).
 *
 * Source of truth: scratchpad/prototypes/gist-homepage-v3.html.
 *
 * Loaded by landing.ts at `/`, after tokens.css and try.css. tokens.css
 * supplies brand fonts. try.css supplies the deep create-module behavior
 * (file preview, lang dropdown, status/toast/results, auth modal). This
 * file forces dark theme, lays out the marketing sections, and overrides
 * try.css visual treatment for the homepage's create-module.
 *
 * Pattern per section: eyebrow → headline → body. Gradient hairline signs
 * the end of every section. The page is a single argument in beats.
 */

/* ================================================================
   FORCE DARK + PAGE-LOCAL TOKENS
   The page is dark-first regardless of system preference.
   Override tokens.css `:root` for the homepage only.
   ================================================================ */
:root {
  /* Paper stack (dark tiers) */
  --paper:        #15161C;
  --paper-2:      #1C1D24;
  --paper-3:      #22232B;
  --paper-4:      #2A2B33;

  /* Ink stack — warm cream against deep paper */
  --ink:          #FAF6EE;
  --ink-soft:     rgba(250, 246, 238, 0.68);
  --ink-faint:    rgba(250, 246, 238, 0.42);
  --ink-trace:    rgba(250, 246, 238, 0.18);
  --ink-secondary: rgba(250, 246, 238, 0.68);
  --ink-tertiary: rgba(250, 246, 238, 0.42);

  /* Lines */
  --hairline:           rgba(250, 246, 238, 0.10);
  --hairline-stronger:  rgba(250, 246, 238, 0.22);
  --surface-soft:       rgba(250, 246, 238, 0.04);
  --surface:            #22232B;
  --wash:               #1C1D24;
  --border:             rgba(250, 246, 238, 0.10);
  --border-light:       rgba(250, 246, 238, 0.04);

  /* Brand sunrise */
  --accent:        #FF8E53;
  --accent-coral:  #FF6B6B;
  --accent-yellow: #FFD93D;
  --gradient-start: #FF6B6B;
  --gradient-mid:   #FFD93D;
  --gradient-end:   #FF8E53;
  --gradient: linear-gradient(90deg, #FF6B6B, #FFD93D, #FF8E53);

  /* Geometry */
  --page-x:       64px;
  --page-max:     1280px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --radius-pill:  999px;

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast:    160ms var(--ease-out);
  --t-mid:     280ms var(--ease-out);
  --t-slow:    420ms var(--ease-out);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(255, 142, 83, 0.32);
}

/* ================================================================
   RESET + BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--paper); }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  margin: 0;
}
img, svg { display: block; max-width: 100%; }

/* ================================================================
   PAGE FRAME
   ================================================================ */
.page { max-width: 100%; overflow-x: hidden; }
.frame {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-x);
}

/* Section unit — every section signs off with the gradient hairline */
.sec {
  position: relative;
  padding-block: 112px;
}
.sec::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--page-x);
  right: var(--page-x);
  height: 1.5px;
  background: var(--gradient);
  opacity: 0.78;
}
.sec.no-divider::after { display: none; }
.sec.tight { padding-block: 80px; }

/* Eyebrow → headline → body */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.bolt::before { display: none; }
.eyebrow .bolt {
  width: 9px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.sec-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.032em;
  line-height: 1.02;
  color: var(--ink);
  margin-top: 28px;
  max-width: 18ch;
}
.sec-headline.wide { max-width: 28ch; }
.sec-headline .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.018em;
}

.sec-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 24px;
}

/* ================================================================
   NAV — sticky, glass, quiet
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 22, 28, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.logo svg {
  width: 13px;
  height: 22px;
  color: var(--accent);
}
.logo .word {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: color var(--t-fast);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); }
/* renderSiteNav({ activePath }) writes aria-current="page" on the matching
   link; this rule makes that affordance visible so users know where they are. */
.nav-link[aria-current="page"],
.nav-cta[aria-current="page"] { color: var(--accent); }
.nav-cta {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-stronger);
  transition: border-color var(--t-fast), background var(--t-fast);
  text-decoration: none;
  background: none;
  cursor: pointer;
}
.nav-cta:hover { background: var(--surface-soft); border-color: var(--ink-faint); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding-block: 72px 96px;
  position: relative;
}
.hero > .frame {
  text-align: center;
}
.hero .hero-eyebrow { justify-content: center; }
.hero .hero-claim,
.hero .hero-sub,
.hero .try-input-wrap {
  margin-left: auto;
  margin-right: auto;
}
/* The input card is the CTA — keep it close to the claim so it sits in the
   fold. This gap replaces the deleted gradient hero-rule's spacing. */
.hero .try-input-wrap { margin-top: 36px; }
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--page-x);
  right: var(--page-x);
  height: 1.5px;
  background: var(--gradient);
  opacity: 0.78;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-eyebrow .bolt {
  width: 11px;
  height: 19px;
  color: var(--accent);
}
.hero-claim {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(48px, 7.4vw, 116px);
  letter-spacing: -0.038em;
  line-height: 0.96;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
  margin: 0 auto;
}
.hero-claim .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.024em;
}
.hero-claim .num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variant-numeric: oldstyle-nums;
}
.hero-sub {
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
  letter-spacing: -0.005em;
}
.hero-sub .dot {
  color: var(--ink-trace);
  margin-inline: 6px;
}

/* ================================================================
   CREATE MODULE — dark-theme overrides on top of try.css.
   The DOM still carries .try-* classes (so try.css applies and
   try-client.ts binds by id). These rules override try.css's
   light-paper defaults to fit the dark hero.
   ================================================================ */
.try-input-wrap {
  max-width: 720px;
  width: 100%;
}
.try-create-module {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Tab strip */
.try-mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent;
}
.try-mode-tabs::-webkit-scrollbar { display: none; }
.try-mode-tab {
  appearance: none;
  background: transparent;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
  border: 0;
  cursor: pointer;
}
.try-mode-tab .try-mode-tab-icon,
.try-mode-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}
.try-mode-tab:hover { color: var(--ink-soft); }
.try-mode-tab--active,
.try-mode-tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
}
.try-mode-tab--active::after,
.try-mode-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Input container body */
.try-input-container {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  /* Let the language menu escape the card; hidden would clip the listbox. */
  overflow: visible;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.try-input-container:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.try-input-container.drag-over {
  border-color: var(--accent-yellow);
  background: rgba(255, 217, 61, 0.04);
}
.try-textarea {
  width: 100%;
  min-height: 84px;
  max-height: 300px;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  padding: 18px 28px 2px;
  outline: none;
}
.try-textarea::placeholder { color: var(--ink-trace); }

/* File preview block (collapsed by default, shown when file selected) */
.try-file-preview {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 18px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.try-file-preview.visible { display: inline-flex; }
.try-file-icon-host { display: inline-flex; align-items: center; color: var(--accent); }
.try-file-icon-host svg { width: 16px; height: 16px; }
.try-file-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 36ch;
}
.try-file-remove {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-faint);
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.try-file-remove:hover { background: var(--surface-soft); color: var(--ink); }

/* Controls row */
.try-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 12px;
}
.try-controls-left,
.try-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.try-file-input { display: none; }
.try-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.try-icon-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.try-icon-btn svg { width: 17px; height: 17px; }
.try-icon-btn.is-locked,
.try-icon-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.try-icon-btn.is-locked:hover,
.try-icon-btn[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--ink-faint);
}
.try-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Language pill (trigger + label fused into one chip) */
.try-lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.try-lang-selector.open {
  z-index: 30;
}
.try-lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.try-lang-trigger:hover {
  background: var(--surface-soft);
  border-color: var(--hairline);
  color: var(--ink);
}
.try-lang-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.try-lang-trigger svg { width: 14px; height: 14px; opacity: 0.7; }
.try-lang-label {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  display: inline;
}
.try-lang-label.visible { display: inline; }

.try-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 220px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--paper-3);
  border: 1px solid var(--hairline-stronger);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  display: none;
  z-index: 100;
}
.try-lang-selector.open .try-lang-dropdown { display: block; }
.try-lang-dropdown.flip-down {
  bottom: auto;
  top: calc(100% + 8px);
}
.try-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--t-fast), color var(--t-fast);
}
.try-lang-option:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.try-lang-option:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.try-lang-option.selected {
  color: var(--ink);
  background: var(--surface-soft);
}
.try-lang-option .try-lang-check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
}
.try-lang-option.selected .try-lang-check { opacity: 1; }

/* Submit */
.try-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), opacity var(--t-fast);
}
.try-submit-btn .try-submit-icon,
.try-submit-btn svg {
  width: 14px;
  height: 22px;
  color: var(--accent);
}
.try-submit-btn:hover:not(:disabled) { transform: translateY(-1px); }
.try-submit-btn:active:not(:disabled) { transform: translateY(0); }
.try-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.try-submit-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Mode hint */
.try-mode-hint {
  margin: 4px 4px 0;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.45;
  min-height: 18px;
}
.try-mode-hint .kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  margin-inline: 2px;
}

/* File-type chips */
.try-file-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.try-file-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  user-select: none;
}
.try-create-module[data-create-mode="url"] .try-file-pills,
.try-create-module[data-create-mode="text"] .try-file-pills,
.try-create-module[data-create-mode="youtube"] .try-file-pills,
.try-create-module[data-create-mode="gdoc"] .try-file-pills {
  display: none;
}

/* Helper + status + results + toast */
.try-helper {
  margin: 8px 4px 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.5;
  text-align: left;
}
.try-helper.is-speculating { color: var(--accent-yellow); }
.try-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--ink-soft);
  display: none;
}
.try-status.visible { display: block; }
.try-status.loading { color: var(--ink); }
.try-status.success { color: var(--accent-yellow); }
.try-status.error { color: #ff8585; }
.try-results { margin-top: 24px; }
.try-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 12px 20px;
  background: var(--paper-3);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 60;
}
.try-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Auth overlay + modal */
.try-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 16, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}
.try-auth-overlay.visible { display: flex; }
.try-auth-modal {
  position: relative;
  width: min(420px, 92vw);
  padding: 36px 32px 32px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  color: var(--ink);
}
.try-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.try-auth-close:hover { background: var(--surface-soft); color: var(--ink); }
.try-auth-close svg { width: 14px; height: 14px; }
.try-auth-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.try-auth-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.try-auth-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.32);
  color: #ff8585;
  font-size: 13px;
}
.try-auth-error.visible { display: block; }
.try-auth-form { display: flex; flex-direction: column; gap: 10px; }
.try-auth-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.try-auth-input {
  padding: 11px 12px;
  background: var(--paper-3);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.try-auth-input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.try-auth-submit {
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-fast);
}
.try-auth-submit:hover { transform: translateY(-1px); }
.try-auth-divider {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.try-auth-divider::before,
.try-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.try-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: var(--paper-3);
  border: 1px solid var(--hairline-stronger);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast);
}
.try-auth-google:hover { background: var(--paper-4); }
.try-auth-google svg { width: 16px; height: 16px; }

/* ================================================================
   PROOF — sample card grid
   ================================================================ */
.sample-section { padding-block: 96px; }
.sample-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.sample-head-left { max-width: 60ch; }
.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}
.sample-discover {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.sample-discover-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-stronger);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.sample-discover-link svg {
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
  transition: color var(--t-fast), transform var(--t-fast);
}
.sample-discover-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sample-discover-link:hover svg {
  color: var(--accent);
  transform: translateX(2px);
}
.sample-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.sample-card::before {
  content: '';
  align-self: stretch;
  width: 3px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  flex-shrink: 0;
}
.sample-card:hover {
  border-color: var(--hairline-stronger);
  background: var(--paper-3);
}
.sample-card:hover .sample-open { color: var(--accent); }
.sample-card-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}
.sample-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sample-eyebrow svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.85;
}
.sample-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.sample-words {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.sample-words .arrow {
  color: var(--ink-faint);
  margin-inline: 6px;
}
.sample-words .out { color: var(--accent); }
.sample-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: color var(--t-fast);
  flex-shrink: 0;
}
.sample-open svg { width: 14px; height: 14px; }

/* ================================================================
   FOUNDER / WHO IT'S FOR
   ================================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 88px;
  align-items: start;
}
.founder-quote {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0;
}
.founder-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.founder-bullets li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.founder-bullets li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.founder-quote em,
.founder-quote .it { font-style: italic; }
.founder-quote::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  margin-bottom: 28px;
}
.founder-quote p { margin: 0; }
.founder-quote p + p { margin-top: 18px; }
.founder-signature {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 14px;
}
.founder-portrait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hairline);
  background: var(--paper-3);
  flex-shrink: 0;
  display: block;
  filter: grayscale(100%);
  opacity: 0.92;
  transition: filter var(--t-fast), opacity var(--t-fast);
}
.founder-signature:hover .founder-portrait {
  filter: grayscale(0%);
  opacity: 1;
}
.founder-signature .sig-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  text-align: left;
}
.founder-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
}
.founder-socials a {
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
  text-decoration: none;
}
.founder-socials a:hover { color: var(--ink); }
.founder-socials svg { width: 16px; height: 16px; display: block; }
.founder-signature .name {
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: none;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 15px;
}

/* Absences sidebar */
.absences {
  border-left: 1px solid var(--hairline);
  padding: 4px 0 4px 36px;
}
.absences-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
  display: block;
}
.absences-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.absences-list li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.absences-list li::before {
  content: '×';
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  width: 14px;
}
.absences-coda {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ================================================================
   PROMISE — Compress / Clarify / Sharpen / Battle-test
   ================================================================ */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.promise-card {
  background: var(--paper);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  transition: background var(--t-fast);
  margin: 0;
}
.promise-card:hover { background: var(--paper-2); }
.promise-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}
.promise-name {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
  color: var(--ink);
}
.promise-name .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.promise-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.promise-rule {
  width: 28px;
  height: 1px;
  background: var(--hairline-stronger);
  margin: 18px 0 0;
}

/* ================================================================
   READER SLIDE — homepage variant of the reader's expository slide
   ================================================================ */
.reader-slide {
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.reader-slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.reader-slide.story .reader-slide-kicker { color: var(--accent-yellow); }
.reader-slide-kicker svg {
  width: 12px;
  height: 12px;
  display: block;
}
.reader-slide-headline {
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.9vw, 34px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.reader-slide-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reader-slide-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.reader-slide-bullets li:last-child { margin-bottom: 0; }
.reader-slide-bullets li::before {
  content: '\2022';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
}
.reader-slide-coda {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ================================================================
   SEMINAR PULL QUOTE
   ================================================================ */
.seminar {
  padding-block: 128px;
  text-align: center;
}
.seminar::after { left: 25%; right: 25%; opacity: 0.5; }
.seminar-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
}
.seminar-quote::before,
.seminar-quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gradient);
  margin: 0 auto 36px;
  border-radius: 2px;
}
.seminar-quote::after { margin: 36px auto 0; }
.seminar-credit {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ================================================================
   HOW TO GIST — three ways in
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.step {
  padding: 36px 32px 40px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 32px;
}
.step-name {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 14px;
}
.step-name .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.step-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.step-demo {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.005em;
}
.step-demo .accent { color: var(--accent); font-weight: 600; }
.step-demo .muted { color: var(--ink-faint); }

/* ================================================================
   WHAT YOU GET — Read / Listen / Share
   ================================================================ */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.way {
  padding: 56px 36px 56px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--hairline);
}
.way:first-child { padding-left: 0; padding-right: 36px; }
.way:not(:first-child) { padding-left: 36px; }
.way:last-child { border-right: 0; padding-right: 0; }
.way-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  display: flex;
  align-items: center;
}
.way-icon svg { width: 28px; height: 28px; }
.way-name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.way-name .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.way-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0;
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing-stage {
  margin: 64px auto 0;
  max-width: 640px;
}
.pricing-card {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 56px 48px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}
.pricing-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pricing-price-main {
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
}
.pricing-price-main .per {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.pricing-includes {
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
}
.pricing-cancel {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pricing-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t-fast);
}
.pricing-cta:hover { transform: translateY(-1px); }
.pricing-cta svg { width: 14px; height: 22px; color: var(--accent); }
.pricing-trust {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.pricing-trust .em { color: var(--ink-soft); }

/* ================================================================
   FINAL CTA
   ================================================================ */
.final {
  padding-block: 144px 128px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
.final::after { display: none; }
.final::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--page-x);
  right: var(--page-x);
  height: 1.5px;
  background: var(--gradient);
  opacity: 0.78;
}
.final-head {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 auto;
}
.final-head .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.024em;
}
.final-ctas {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t-fast);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}
.cta-primary:hover { transform: translateY(-1px); }
.cta-primary svg { width: 15px; height: 24px; color: var(--accent); }
.cta-secondary {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline-stronger);
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.cta-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer { padding-block: 48px 56px; }
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.footer-links a {
  color: inherit;
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.footer-credit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
  :root { --page-x: 32px; }
  .sec, .hero { padding-block: 88px; }
  .final { padding-block: 112px 96px; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .reader-slide-bullets li { font-size: 16px; padding-left: 24px; }
  .reader-slide-bullets li::before { left: 4px; }
  .founder-grid { grid-template-columns: 1fr; gap: 56px; }
  .absences { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 36px; }
  .steps-grid { grid-template-columns: 1fr; }
  .ways-grid { grid-template-columns: 1fr; }
  .way { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 36px 0; }
  .way:first-child { padding-right: 0; }
  .way:not(:first-child) { padding-left: 0; }
  .way:last-child { border-bottom: 0; }
  .sample-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --page-x: 20px; }
  .hero { padding-block: 56px 72px; }
  .hero .try-input-wrap { margin-top: 28px; }
  /* try.css clamps the language label to 3ch on mobile (A-033, for cramped
     surfaces). The hero create-module has room — let "English" show in full
     instead of truncating to "En…". */
  .try-lang-label.visible { max-width: none; overflow: visible; }
  .promise-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 40px 28px 36px; }
  .pricing-prices { flex-direction: column; gap: 8px; align-items: flex-start; }
  .pricing-price-main { font-size: 48px; }
  .final-ctas { flex-direction: column; gap: 18px; }
  .try-controls { flex-wrap: wrap; }
  .nav-links { gap: 16px; }
  .nav-links .nav-link.hide-sm { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
