/*
  Duetriage landing page — dedicated stylesheet, operator-requested redesign
  (2026-09-05, following T-029/T-049's first pass, which reused the internal
  app's utility styling at internal-app scale and read as "functional but
  not modern"). This file is landing.html ONLY — chase/static/chase/style.css
  (the internal app: digest, connect, home for signed-in users) is untouched.

  Same identity, executed at landing-page scale: warm-neutral ground,
  ink-navy text, Fraunces display / Inter body (already loaded elsewhere in
  the app), one amber accent. What changes is scale, rhythm and confidence —
  a real hero, alternating section bands, an elevated pricing card, a dark
  closing CTA band, and the hero mockup actually reads as a pair of email
  screenshots (browser-chrome dots, shadow, subtle lift) instead of two flat
  bordered boxes.
*/

:root {
  --bg: #F6F5F2;
  --bg-alt: #EFEBE1;
  --ink: #1C2430;
  --ink-soft: #57606F;
  --card-bg: #FFFEFB;
  --border: #E3DFD4;
  --accent: #B8862E;
  --accent-bg: #FBF1DF;
  --quiet: #9AA3AF;
  --quiet-bg: #F1F0EC;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-variant-numeric: tabular-nums; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.l-wrap-narrow { max-width: 720px; }
.l-wrap-wide { max-width: 980px; }

/* --- Header ------------------------------------------------------------ */

.l-header { padding: 1.5rem 0; }
.l-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.l-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

/* --- Buttons ------------------------------------------------------------ */

.l-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.l-btn:hover { background: #0E1420; border-color: #0E1420; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(28,36,48,0.18); }
.l-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.l-btn-small { padding: 0.5rem 1.05rem; font-size: 0.88rem; border-radius: 7px; }
.l-btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.l-btn-full { display: block; text-align: center; margin-top: 1.1rem; }
.l-btn-onlight {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink) !important;
}
.l-btn-onlight:hover { background: #CC9A3E; border-color: #CC9A3E; box-shadow: 0 6px 20px rgba(184,134,46,0.35); }

/* --- Hero ---------------------------------------------------------------- */

.l-hero { padding: 3.5rem 0 4.5rem; }

.l-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.l-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.15rem + 3vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.l-money { color: var(--accent); }

.l-kicker {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.l-kicker strong { color: var(--ink); }

.l-subhead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 2rem;
}

.l-hero-cta { margin-bottom: 0.5rem; }
.l-cta-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0.85rem 0 0; }

/* --- Hero mockup: two "email screenshots" with real depth --------------- */

.l-mockup {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 3rem 0 1rem;
}

.l-mockup-card {
  flex: 1 1 0;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(28, 36, 48, 0.08), 0 2px 6px rgba(28, 36, 48, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.l-mockup-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28, 36, 48, 0.12), 0 4px 10px rgba(28, 36, 48, 0.06); }

.l-mockup-quiet { opacity: 0.82; }
.l-mockup-live { border-color: rgba(28, 36, 48, 0.35); box-shadow: 0 16px 40px rgba(28, 36, 48, 0.14), 0 3px 8px rgba(28, 36, 48, 0.07); }

.l-mockup-chrome {
  display: flex;
  flex-wrap: nowrap; /* belt-and-suspenders: this row must never wrap onto a second line */
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  background: var(--quiet-bg);
  border-bottom: 1px solid var(--border);
}
.l-mockup-chrome span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--quiet);
  flex: 0 0 auto; /* the three dots must never shrink or wrap */
}
.l-mockup-live .l-mockup-chrome { background: var(--accent-bg); }
.l-mockup-live .l-mockup-chrome span { background: var(--accent); }
.l-mockup-chrome-label {
  /*
    BUG FIX (operator-reported via screenshot, 2026-09-05): this label had
    no white-space/overflow handling, so at narrow card widths the browser
    wrapped it word-by-word ("SENT" / "3x" on separate lines, "DRAFT" /
    "FOR" / "THE" / "SAME" / "INVOICE" likewise) and those wrapped lines
    rendered on top of the subject/body text below instead of pushing it
    down — a flex item's default min-width is `auto`, not 0, which is
    exactly what breaks text-overflow/ellipsis truncation inside a flex
    row like this one. flex + min-width:0 lets it shrink properly instead
    of overflowing; nowrap + ellipsis makes it truncate cleanly if the card
    is ever narrower than the full label, rather than wrap and collide with
    the content below.
  */
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-mockup-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.l-mockup-subject { font-weight: 700; margin-bottom: 0.6rem; font-size: 0.98rem; }
.l-mockup-text { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }
.l-mockup-foot { padding: 0 1.4rem 1.3rem; font-size: 0.82rem; color: var(--quiet); font-style: italic; margin-top: auto; }

.l-redacted { height: 0.65em; background: var(--border); border-radius: 4px; margin: 0.5rem 0; }
.l-redacted:first-of-type { margin-top: 0; }

.l-callouts { list-style: none; padding: 0; margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.l-callouts li {
  background: var(--accent-bg);
  color: #7A5A1F;
  border: 1px solid rgba(184,134,46,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.l-mockup-vs {
  flex: 0 0 auto;
  width: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  text-transform: lowercase;
}

.l-caption { text-align: center; font-style: italic; color: var(--ink-soft); font-size: 0.95rem; margin-top: 1.5rem; }

/* --- Sections ------------------------------------------------------------ */

.l-section { padding: 4.5rem 0; }
.l-section-alt { background: var(--bg-alt); }

.l-section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.l-lede { font-size: 1.25rem; margin: 0 0 0.9rem; max-width: 640px; }
.l-lede-strong { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; color: var(--ink); }

.l-section p { color: var(--ink-soft); max-width: 680px; margin: 0 0 1rem; font-size: 1.02rem; }
.l-section p:last-child { margin-bottom: 0; }

.l-callout-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink) !important;
  margin-top: 1.6rem !important;
  max-width: 640px;
}

.l-muted { font-size: 0.92rem; color: var(--ink-soft); }

/* --- Steps ---------------------------------------------------------------- */

.l-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
.l-steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.l-step-num {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-steps h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0.15rem 0 0.5rem; font-weight: 600; }
.l-steps p { margin: 0; font-size: 0.98rem; }

/* --- Comparison table ------------------------------------------------------ */

.l-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28,36,48,0.06);
  margin: 1.75rem 0 1.25rem;
}
.l-table { width: 100%; border-collapse: collapse; }
.l-table th, .l-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.l-table tr:last-child td { border-bottom: none; }
.l-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}
.l-table td:first-child, .l-table th:first-child { font-weight: 700; color: var(--ink); width: 22%; background: transparent; }
.l-table-win { background: var(--accent-bg); color: #5B4419; font-weight: 500; }
.l-table th.l-table-win { background: var(--accent); color: #fff; }

/* --- Pricing --------------------------------------------------------------- */

.l-price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem 2.25rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(28,36,48,0.1);
  margin: 1.75rem 0 2rem;
}
.l-price-amount { font-family: var(--font-display); font-size: 3.25rem; font-weight: 700; color: var(--ink); line-height: 1; }
.l-price-amount span { font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); }
.l-price-terms { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.75rem; }

/* --- Checklist -------------------------------------------------------------- */

.l-checklist { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.l-checklist li {
  position: relative;
  padding: 1rem 1.25rem 1rem 3.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.l-checklist li strong { color: var(--ink); }
.l-checklist li::before {
  content: "✓";
  position: absolute;
  left: 1.1rem; top: 1rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* --- Closing CTA band -------------------------------------------------------- */

.l-cta-band {
  background: var(--ink);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.l-cta-band-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 2rem;
}

/* --- Mobile ------------------------------------------------------------------ */

@media (max-width: 760px) {
  .l-hero { padding: 2.25rem 0 3rem; }
  .l-section { padding: 3rem 0; }
  .l-mockup { flex-direction: column; gap: 1.25rem; }
  .l-mockup-vs { width: auto; padding: 0; }
  .l-steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .l-price-card { padding: 2rem 1.5rem; }
  .l-cta-band { padding: 3.5rem 0; }
}
