/* The public landing page at "/", for a signed-out visitor. Built on
   limerance.css tokens (light/dark twins, data-theme override) rather
   than fixed colours. Every section is phone-safe: grid columns
   collapse to one with auto-fit/minmax, nothing sets a fixed width
   wider than 100%. */

body { overflow-x: hidden; }

.mkt-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 clamp(16px, 5vw, 56px);
}
.mkt-wordmark { font-family: var(--font-prose); font-size: 19px; color: var(--ink); text-decoration: none; }
.mkt-nav { display: flex; align-items: center; gap: 16px; }
.mkt-nav a:not(.lim-pill) { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.mkt-nav a:not(.lim-pill):hover, .mkt-nav a:not(.lim-pill):focus-visible { color: var(--ink); }

/* --- hero --- */
.mkt-hero { display: flex; justify-content: center; padding: clamp(28px, 7vw, 96px) clamp(16px, 5vw, 56px) 0; }
.mkt-hero-inner {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 32px 56px; align-items: start;
}
.mkt-hero-copy { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; min-width: 0; }
.mkt-hero-copy h1 {
  margin: 0; font-family: var(--font-prose); font-weight: 400;
  font-size: clamp(38px, 7.5vw, 86px); line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance;
}
.mkt-hero-copy p { margin: 0; font-family: var(--font-prose); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.mkt-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mkt-hint { color: var(--muted); font-size: 13px; }

.mkt-hero-panel { position: relative; min-width: 0; padding: 0 0 48px; }
.mkt-sheet-card {
  background: var(--sheet); border: 1px solid var(--sheet-edge);
  box-shadow: 0 1px 0 var(--sheet-shadow), 0 24px 50px rgba(0, 0, 0, 0.08);
  padding: clamp(26px, 5vw, 48px) clamp(22px, 5vw, 44px) 52px;
  font-family: var(--font-prose); font-size: 18px; line-height: 1.85;
  display: flex; flex-direction: column; gap: 12px; transform: rotate(-0.5deg);
}
.mkt-sheet-label { margin: 0; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.mkt-sheet-card p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.mkt-grip { color: var(--ink); font-weight: 500; }
.mkt-callout {
  position: absolute; left: 4px; top: 150px; max-width: 280px;
  padding: 12px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  font-family: var(--font-prose); font-size: 15px; line-height: 1.5; font-weight: 500;
  transform: rotate(2deg); color: var(--ink);
}
.mkt-caption { position: absolute; right: 4px; bottom: 6px; font-size: 11px; color: var(--faint); }

/* --- pull quote --- */
.mkt-quote { display: flex; justify-content: center; padding: clamp(36px, 8vw, 72px) clamp(16px, 5vw, 56px); }
.mkt-quote p {
  max-width: 860px; margin: 0; font-family: var(--font-prose); font-style: italic;
  font-size: clamp(20px, 2.4vw, 29px); line-height: 1.45; color: var(--ink);
}

/* --- generic two-up feature section --- */
.mkt-feature { display: flex; justify-content: center; padding: 0 clamp(16px, 5vw, 56px) clamp(56px, 8vw, 92px); }
.mkt-feature-inner {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px 64px; align-items: center;
}
.mkt-feature-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mkt-eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.mkt-feature-copy h2 { margin: 0; font-family: var(--font-prose); font-weight: 400; font-size: clamp(25px, 3vw, 36px); line-height: 1.14; letter-spacing: -0.015em; text-wrap: balance; }
.mkt-feature-copy p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.mkt-feature-art { min-width: 0; background: var(--sheet); border: 1px solid var(--sheet-edge); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 701px) {
  .mkt-order-1 { order: 1; }
  .mkt-order-2 { order: 2; }
}

/* sentence pick-up demo */
.mkt-sentence-demo { margin: 0; font-family: var(--font-prose); font-size: 17px; line-height: 2; }
.mkt-sentence-demo-small { font-size: 15px; line-height: 1.8; }
.mkt-dim { color: var(--ink-2); }
.mkt-bracketed { font-weight: 500; color: var(--ink); padding: 0 7px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.mkt-alt-list { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-ui); font-size: 13px; }
.mkt-alt { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--rule); }
.mkt-alt span:first-child { font-size: 11px; color: var(--faint); flex: none; }
.mkt-alt span:last-child { font-family: var(--font-prose); font-size: 16px; color: var(--ink); }
.mkt-alt-margin { border-style: dashed; color: var(--muted); }
.mkt-alt-margin span:last-child { color: var(--ink-2); }
.mkt-washed { background: var(--wash); box-shadow: 0 0 0 4px var(--wash); border-radius: 2px; }

/* threads demo */
.mkt-thread-art { min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 32px 28px; background: var(--tray); border: 1px solid var(--sheet-edge); border-radius: 10px; font-size: 12px; }
.mkt-thread-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.mkt-thread-name { width: 76px; flex: none; color: var(--thread-color); font-weight: 600; }
.mkt-step { padding: 8px 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 5px; white-space: nowrap; }
.mkt-step-fork { border-color: var(--thread-color); }
.mkt-link { width: 20px; height: 2px; background: var(--thread-color); flex: none; }
.mkt-link-fork { position: relative; }
.mkt-link-fork::after { content: ""; position: absolute; left: 7px; top: -4px; width: 7px; height: 7px; border: 2px solid var(--thread-color); background: var(--tray); transform: rotate(45deg); }
.mkt-thread-note { margin: 0; color: var(--muted); }

/* phone delivery demo */
.mkt-phone-section { display: flex; justify-content: center; padding: clamp(56px, 8vw, 92px) clamp(16px, 5vw, 56px); background: var(--tray); }
.mkt-phone-art { display: flex; justify-content: center; gap: 24px; align-items: flex-end; flex-wrap: wrap; min-width: 0; }
.mkt-phone-card {
  width: 220px; max-width: 100%; height: 380px; box-sizing: border-box; padding: 32px 20px 24px;
  border: 1px solid var(--sheet-edge); border-radius: 24px; background: var(--sheet);
  display: flex; flex-direction: column; font-family: var(--font-prose);
}
.mkt-phone-tag { font-family: var(--font-ui); font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.mkt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--thread-color); flex: none; }
.mkt-phone-card p { margin: auto 0; font-size: 19px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.mkt-phone-foot { font-family: var(--font-ui); font-size: 11px; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; }
.mkt-fork-mark { width: 7px; height: 7px; border: 2px solid var(--thread-color); transform: rotate(45deg); flex: none; }

/* essay outline demo */
.mkt-outline-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.mkt-outline-list { margin: 0; padding: 0 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.mkt-outline-current { color: var(--ink); font-weight: 500; }
.mkt-rule { height: 1px; background: var(--rule); }
.mkt-caption-inline { font-family: var(--font-ui); font-size: 12px; color: var(--faint); }

/* novel / cards demo */
.mkt-feature-tray .mkt-feature-art { border-radius: 10px; }
.mkt-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.mkt-chip { padding: 10px 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 5px; font-family: var(--font-prose); font-size: 14px; }
.mkt-chip-active { border-color: var(--ink); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12); transform: rotate(-2deg); }
.mkt-chip-drop { border-style: dashed; color: var(--faint); }
.mkt-chip-cut { background: var(--tray); border-style: dashed; color: var(--muted); }

/* quiet / sentence tools demo */
.mkt-quiet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.mkt-quiet-card {
  background: var(--sheet); border: 1px solid var(--sheet-edge); padding: 30px 28px 22px;
  display: flex; flex-direction: column; gap: 18px; font-family: var(--font-prose); font-size: 17px; line-height: 1.75; min-height: 170px;
}
.mkt-quiet-card p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.mkt-quiet-state { margin-top: auto; font-family: var(--font-ui); font-size: 12px; color: var(--faint); }
.mkt-tool-row { display: flex; gap: 6px; flex-wrap: wrap; font-family: var(--font-ui); font-size: 12px; }
.mkt-tool-row span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 15px; color: var(--ink-2); }

/* closing statement */
.mkt-closing { display: flex; justify-content: center; padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 56px); }
.mkt-closing-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px 64px; }
.mkt-closing-inner h2 { margin: 0; font-family: var(--font-prose); font-weight: 400; font-size: clamp(25px, 3vw, 36px); line-height: 1.14; letter-spacing: -0.015em; text-wrap: balance; }
.mkt-closing-inner p { margin: 0; font-family: var(--font-prose); font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* invite / closing CTA */
.mkt-invite { display: flex; justify-content: center; padding: clamp(56px, 8vw, 88px) clamp(16px, 5vw, 56px); background: var(--sheet); border-top: 1px solid var(--sheet-edge); }
.mkt-invite-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 40px); background: var(--field); border: 1px solid var(--sheet-edge); }
.mkt-invite-lead { margin: 0; font-family: var(--font-prose); font-size: 23px; line-height: 1.3; color: var(--ink); }
.mkt-invite-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.mkt-invite-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.mkt-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px clamp(16px, 5vw, 56px) 48px; font-size: 13px;
}
.mkt-footer a { color: var(--muted); text-decoration: none; }
.mkt-footer a:hover, .mkt-footer a:focus-visible { color: var(--ink); }

@media (max-width: 700px) {
  .mkt-header { padding: 0 16px; }
  .mkt-hero, .mkt-feature, .mkt-quote, .mkt-closing, .mkt-invite, .mkt-phone-section { padding-left: 16px; padding-right: 16px; }
  .mkt-footer { padding: 24px 16px 40px; flex-wrap: wrap; }
}
