/* Styles for the static marketing page at / — self-contained on purpose so the
   public page never waits on the app bundle. The app's own styles live in
   src/web/styles.css; the design tokens below are the shared vocabulary. */

* { box-sizing: border-box; margin: 0; }
:root {
  /* Warm bone paper, warm ink, one deep pine accent. */
  --ink:        #1C1B18;
  --paper:      #EFEBE4;
  --paper-deep: #E4DED4;
  --card:       #FAF8F4;
  --accent:     #1F5A45;
  --text:       #4E4940;
  --muted:      #6A645B;
  --line: rgba(28, 27, 24, 0.16);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
input {
  font: inherit; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 6px; padding: 0.55rem 0.7rem;
}
input:focus { outline: none; border-color: var(--accent); }
button {
  font: inherit; font-weight: 600; padding: 0.55rem 1.1rem; border: none; border-radius: 6px;
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
button:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }

.ld {
  background:
    linear-gradient(var(--paper) 0 0) padding-box,
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(28, 27, 24, 0.05) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(28, 27, 24, 0.05) 27px 28px),
    var(--paper);
  background-blend-mode: normal, normal, normal;
  color: var(--ink);
  min-height: 100vh;
  font-family: var(--sans);
}
.ld [data-reveal] { opacity: 0; transform: translateY(16px); animation: ld-rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes ld-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ld [data-reveal] { animation: none; opacity: 1; transform: none; }
  .ld-poly, .ld-chip { animation: none !important; }
}

.ld-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 4vw; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(239, 235, 228, 0.90); backdrop-filter: blur(8px); z-index: 10;
}
.ld-logo { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
/* it is a span on the home page and a link back to it everywhere else */
a.ld-logo { color: inherit; text-decoration: none; }
a.ld-logo:hover { color: var(--accent); }
.ld-nav nav { display: flex; gap: 1.6rem; align-items: center; }
.ld-nav nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.ld-nav nav a:hover { color: var(--accent); }
.ld-nav-cta {
  border: 1.5px solid var(--ink); padding: 0.45rem 1.1rem; border-radius: 999px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.ld-nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

.ld-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem; align-items: center; padding: 5rem min(4vw, 3rem) 4.5rem; max-width: 78rem; margin: 0 auto;
}
.ld-eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.ld-hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.1rem;
}
.ld-hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.ld-dim { display: flex; align-items: center; gap: 0.7rem; max-width: 21rem; margin-bottom: 1.2rem; }
.ld-dim-line { flex: 1; height: 1px; background: var(--ink); position: relative; }
.ld-dim-line::before, .ld-dim-line::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--ink);
}
.ld-dim-line::before { left: 0; } .ld-dim-line::after { right: 0; }
.ld-dim-label { font-family: var(--mono); font-size: 0.78rem; white-space: nowrap; color: var(--ink); }
.ld-sub { font-size: 1.12rem; line-height: 1.6; color: var(--text); max-width: 34rem; margin-bottom: 1.8rem; }
.ld-cta-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.ld-cta {
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.7rem; border-radius: 8px; font-size: 1.02rem;
  box-shadow: 4px 4px 0 var(--accent); transition: transform 0.15s, box-shadow 0.15s;
}
.ld-cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--accent); }
.ld-cta-ghost { color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1.5px solid rgba(28, 27, 24, 0.35); }
.ld-cta-ghost:hover { border-color: var(--accent); color: var(--accent); }
.ld-proof { font-size: 0.95rem; color: var(--text); }
.ld-proof-num { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.ld-hero-visual { text-align: center; }
.ld-plan {
  width: 100%; max-width: 33rem; background: var(--card); border: 1.5px solid var(--ink);
  border-radius: 6px; box-shadow: 8px 8px 0 rgba(28, 27, 24, 0.10);
}
.ld-plan-mono, .ld-plan-chip { font-family: var(--mono); font-size: 13px; }
.ld-plan-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; opacity: 0.55; }
.ld-plan-chip { fill: var(--paper); font-weight: 500; }
.ld-poly { animation: ld-dash 24s linear infinite; }
@keyframes ld-dash { to { stroke-dashoffset: -320; } }
.ld-vertex { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.ld-chip { animation: ld-blink 5s ease-in-out infinite; }
@keyframes ld-blink { 0%, 92%, 100% { opacity: 1; } 96% { opacity: 0.55; } }
.ld-visual-caption { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.8rem; }

.ld-how { max-width: 78rem; margin: 0 auto; padding: 3.5rem min(4vw, 3rem) 4rem; border-top: 1px solid var(--line); }
.ld-how h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.015em; margin-bottom: 2.2rem;
}
.ld-steps {
  list-style: none; padding: 0; margin: 0 0 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem;
}
.ld-steps li {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1.4rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.ld-steps li:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--accent); }
.ld-step-num { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.15em; }
.ld-steps h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.ld-steps p { margin: 0; color: var(--text); line-height: 1.55; font-size: 0.97rem; }
/* the home page is the hub: every published page earns a link from it (§3) */
.ld-who { margin: 0 0 1.8rem; color: var(--text); line-height: 1.6; max-width: 46rem; }
.ld-who a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line); }
.ld-who a:hover { color: var(--accent); border-color: var(--accent); }

.ld-trust {
  display: flex; flex-wrap: wrap; gap: 0.8rem 2.2rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--text);
}
.ld-trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---- questions buyers actually ask (and the answers AI engines can quote) ---- */
.ld-faq { max-width: 52rem; margin: 0 auto; padding: 3.5rem min(4vw, 3rem) 4rem; border-top: 1px solid var(--line); }
.ld-faq h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.015em; margin-bottom: 1.8rem;
}
.ld-faq dt { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-top: 1.6rem; }
.ld-faq dd { margin: 0.45rem 0 0; color: var(--text); line-height: 1.6; }

/* ---- demo request ---- */
.ld-demo { padding: 0 4vw 5rem; display: flex; justify-content: center; }
.ld-demo-card {
  width: min(38rem, 100%); background: var(--ink); color: var(--paper);
  border-radius: 10px; padding: 2.2rem; box-shadow: 8px 8px 0 var(--accent);
}
.ld-demo-card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0 0 0.5rem; }
.ld-demo-card > p { margin: 0 0 1.4rem; color: #C3BDB1; }
.ld-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.ld-demo-grid input { width: 100%; background: var(--paper); border: none; }
.ld-demo-grid input.wide { grid-column: 1 / -1; }
.ld-demo-card button {
  margin-top: 0.9rem; background: var(--accent); color: #fff;
  padding: 0.75rem 1.3rem; width: 100%;
}
.ld-demo-card button:hover { filter: brightness(1.08); box-shadow: none; transform: none; }
.ld-demo-note { font-size: 0.85rem; color: #9C958A; margin-top: 0.9rem; }
/* the mailto sat at browser-default blue on a near-black card until 2026-07-30 */
.ld-demo-note a { color: #8ED6B4; text-decoration: underline; text-underline-offset: 2px; }
.ld-demo-note a:hover { color: var(--paper); }
.ld-demo-card .ok { color: #8ED6B4; }
.ld-demo-card .error { color: #F2A6A0; margin-top: 0.7rem; }
/* honeypot: a field only a bot fills in */
.ld-demo-card .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ld-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  padding: 1.6rem 4vw; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--muted);
}
.ld-footer a { color: var(--muted); }
.ld-footer a:hover { color: var(--accent); }

/* ---- shared furniture for the content pages below the first level ---- */
.bc {
  max-width: 52rem; margin: 0 auto; padding: 1.6rem min(4vw, 3rem) 0;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted);
}
.bc a { color: var(--muted); text-decoration: none; }
.bc a:hover { color: var(--accent); }
.bc span { opacity: 0.5; padding: 0 0.35rem; }

.pg-head { max-width: 52rem; margin: 0 auto; padding: 1.6rem min(4vw, 3rem) 0.5rem; }
.pg-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.pg-lead { font-size: 1.12rem; line-height: 1.62; color: var(--text); }

/* a short, quotable answer block — the shape AI answer engines lift */
.pg-key {
  max-width: 52rem; margin: 1.6rem auto 0; padding: 0 min(4vw, 3rem);
}
.pg-key > div {
  background: var(--ink); color: var(--paper); border-radius: 8px;
  padding: 1.2rem 1.4rem; box-shadow: 6px 6px 0 var(--accent);
}
.pg-key p { margin: 0; line-height: 1.6; color: #DAD4C8; }
.pg-key strong { color: var(--paper); }

/* sideways links to the nearest siblings, per SITE-STRUCTURE §3 */
/* the bottom padding is load-bearing: .ld-demo has no padding-top, because on
   the home page the FAQ above it already ends in 4rem. On a content page this
   block is what sits above the demo card, so it owns the clearance — without
   it the card's shadow lands on the last link. */
.pg-next { max-width: 52rem; margin: 0 auto; padding: 2.6rem min(4vw, 3rem) 3rem; }
.pg-next h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.pg-next ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.pg-next a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line); }
.pg-next a:hover { color: var(--accent); border-color: var(--accent); }
.pg-next span { color: var(--muted); font-size: 0.92rem; }

.pg-ol { padding-left: 1.2rem; margin: 0 0 0.9rem; }
.pg-ol li { color: var(--text); line-height: 1.62; margin-bottom: 0.55rem; padding-left: 0.3rem; }
.pg-ol li::marker { font-family: var(--mono); font-size: 0.85em; color: var(--accent); }

.pg-mono { font-family: var(--mono); font-size: 0.88em; background: var(--paper-deep); padding: 0.1em 0.35em; border-radius: 3px; }

/* the dated line that every competitor claim on a /vs/ page answers to */
.pg-verified {
  max-width: 52rem; margin: 2.4rem auto 0; padding: 0 min(4vw, 3rem);
  font-family: var(--mono); font-size: 0.76rem; line-height: 1.6; color: var(--muted);
}

/* ---- /pricing ---- */
.pr-head { max-width: 52rem; margin: 0 auto; padding: 3.5rem min(4vw, 3rem) 2.5rem; text-align: center; }
.pr-head h1 {
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.pr-head p { color: var(--text); line-height: 1.6; font-size: 1.05rem; }
.pr-head .pr-sub { max-width: 36rem; margin: 0 auto; }

.pr-grid {
  max-width: 72rem; margin: 0 auto; padding: 0 min(4vw, 3rem) 1rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start;
}
.pr-card {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px;
  padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; height: 100%;
}
.pr-card.featured {
  background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--accent);
}
.pr-card.featured .pr-blurb, .pr-card.featured .pr-annual { color: #C3BDB1; }
.pr-card.featured .pr-feat li { color: #DAD4C8; border-color: rgba(239, 235, 228, 0.16); }
.pr-card.featured .pr-feat li::before { color: #8ED6B4; }
.pr-tier {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.pr-card.featured .pr-tier { color: #8ED6B4; }
.pr-price { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; letter-spacing: -0.03em; margin-top: 0.5rem; }
.pr-price span { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; opacity: 0.7; }
.pr-annual { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.pr-blurb { color: var(--text); font-size: 0.95rem; line-height: 1.5; margin: 0.9rem 0 1.1rem; }
.pr-feat { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.pr-feat li {
  font-size: 0.92rem; line-height: 1.45; padding: 0.5rem 0 0.5rem 1.4rem;
  border-top: 1px solid var(--line); position: relative; color: var(--text);
}
.pr-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pr-cta {
  margin-top: auto; display: block; text-align: center; text-decoration: none; font-weight: 600;
  background: var(--ink); color: var(--paper); border-radius: 6px; padding: 0.7rem 1.1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pr-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--accent); }
.pr-card.featured .pr-cta { background: var(--accent); color: #fff; }
.pr-card.featured .pr-cta:hover { filter: brightness(1.1); box-shadow: none; transform: none; }

.pr-included {
  max-width: 72rem; margin: 0 auto; padding: 1.4rem min(4vw, 3rem) 0;
  display: flex; flex-wrap: wrap; gap: 0.7rem 2rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--text);
}
.pr-included span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.pr-section { max-width: 52rem; margin: 0 auto; padding: 3.2rem min(4vw, 3rem) 0; }
.pr-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; margin-bottom: 1rem;
}
.pr-section h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
.pr-section p { color: var(--text); line-height: 1.62; margin-bottom: 0.9rem; }
.pr-callout {
  background: var(--card); border: 1.5px solid var(--ink); border-left-width: 5px;
  border-left-color: var(--accent); border-radius: 6px; padding: 1.1rem 1.3rem; margin: 1.2rem 0;
}
.pr-callout p:last-child { margin-bottom: 0; }

/* the full grid, for the reader who wants the numbers side by side */
.pr-table-wrap { max-width: 72rem; margin: 0 auto; padding: 1.2rem min(4vw, 3rem) 0; overflow-x: auto; }
.pr-table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.93rem; }
.pr-table th, .pr-table td { padding: 0.62rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); }
.pr-table thead th { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pr-table tbody th { font-weight: 400; color: var(--text); }
.pr-table td { font-variant-numeric: tabular-nums; }
.pr-table .pr-col-featured { background: rgba(31, 90, 69, 0.06); }

/* ---- /tools/ calculators ----
   Shared by every page under /tools/. The whole widget is one card, and it
   renders its worked example in the HTML rather than waiting for the script:
   a crawler that never runs JavaScript still sees a filled-in answer, and so
   does a reader on a slow connection. State stays in the DOM — no query
   strings, per SITE-STRUCTURE §7, or the crawl space is unbounded. */
.tl-calc { max-width: 52rem; margin: 2rem auto 0; padding: 0 min(4vw, 3rem); }
.tl-form {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px;
  padding: 1.5rem; box-shadow: 6px 6px 0 rgba(28, 27, 24, 0.10);
}
.tl-legend {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0.7rem;
}
.tl-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.9rem; }
.tl-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.tl-field label { font-size: 0.92rem; color: var(--text); }
.tl-field input { width: 100%; font-variant-numeric: tabular-nums; }
.tl-opt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.tl-hint { font-family: var(--mono); font-size: 0.72rem; line-height: 1.45; color: var(--muted); }

.tl-patterns { border: 0; padding: 0; margin: 1.4rem 0 0; min-width: 0; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tl-chips > span { position: relative; }
/* the radio itself is the accessible control; the label is what you see */
.tl-chips input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.tl-chips label {
  display: block; cursor: pointer; font-size: 0.9rem; padding: 0.42rem 0.85rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--text); transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tl-chips label b { font-family: var(--mono); font-weight: 500; font-size: 0.85em; opacity: 0.7; }
.tl-chips input:checked + label {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.tl-chips input:checked + label b { opacity: 0.75; }
.tl-chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.tl-out { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tl-out-label {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.tl-big {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 5.5vw, 2.9rem); line-height: 1.1; margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.tl-big .tl-unit { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted); }
.tl-lines { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.15rem; }
.tl-lines li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 0.94rem; color: var(--text); padding: 0.4rem 0; border-bottom: 1px dotted var(--line);
}
.tl-lines b {
  font-family: var(--mono); font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl-note { font-family: var(--mono); font-size: 0.74rem; line-height: 1.55; color: var(--muted); margin-top: 1rem; }

@media (max-width: 60rem) {
  .ld-hero { grid-template-columns: 1fr; padding-top: 3rem; gap: 2.2rem; }
  .ld-nav nav { gap: 1rem; }
  .pr-grid { grid-template-columns: 1fr; max-width: 30rem; }
  .pr-card.featured { box-shadow: 5px 5px 0 var(--accent); }
}
@media (max-width: 34rem) {
  .ld-demo-grid { grid-template-columns: 1fr; }
}
