/* ─────────────────────────────────────────────────────────────────────────
   OpusFunnel — the marketing site.

   The product's claim is that words replaced the canvas. So this site is
   typographic rather than screenshot-led: no floating dashboard at a jaunty
   angle, no row of three icon cards. A serif for reading, a heavy grotesque
   for assertions, monospace where the user's own words appear.

   Every competitor in this category ships the same blue-to-purple gradient
   over a product screenshot. Warm paper, pine and ember is a deliberate
   distance from that — and a serif body on a SaaS site is unusual enough to
   read as considered rather than generated.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --paper:    #faf9f7;
  --raised:   #ffffff;
  --ink:      #14120f;
  --body:     #4a4741;
  --muted:    #85807a;
  --rule:     #e6e2dc;
  --soft:     #f1eee9;

  --pine:     #1d4e4a;   /* structural: links, affirmatives, quiet emphasis */
  --pine-w:   #e8f0ef;
  --ember:    #b8471f;   /* the one loud colour. CTAs and eyebrows only */
  --ember-w:  #fbeee8;

  --shadow:    0 1px 2px rgba(20,18,15,.04), 0 12px 32px -22px rgba(20,18,15,.35);
  --shadow-lg: 0 2px 4px rgba(20,18,15,.04), 0 24px 60px -30px rgba(20,18,15,.45);

  --wrap:     72rem;
  --measure:  38rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #100f0d;
    --raised:  #191714;
    --ink:     #f4f1ec;
    --body:    #b0aaa2;
    --muted:   #7b756d;
    --rule:    #2a2621;
    --soft:    #1e1b18;
    --pine:    #6fb5ac;
    --pine-w:  #14231f;
    --ember:   #e0805a;
    --ember-w: #2a1710;
    --shadow:    0 1px 2px rgba(0,0,0,.5), 0 12px 32px -22px rgba(0,0,0,.9);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px -30px rgba(0,0,0,1);
  }
}
:root[data-theme="dark"] {
  --paper:  #100f0d;  --raised: #191714;  --ink:    #f4f1ec;
  --body:   #b0aaa2;  --muted:  #7b756d;  --rule:   #2a2621;
  --soft:   #1e1b18;  --pine:   #6fb5ac;  --pine-w: #14231f;
  --ember:  #e0805a;  --ember-w:#2a1710;
  --shadow:    0 1px 2px rgba(0,0,0,.5), 0 12px 32px -22px rgba(0,0,0,.9);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px -30px rgba(0,0,0,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.65 "Source Serif 4", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Type ──────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, .display, .navlinks, .btn, .eyebrow, .brand, th, .chip, .produced {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
}

h1 {
  margin: 0; font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.03;
  letter-spacing: -.032em; color: var(--ink); text-wrap: balance;
}
h2 {
  margin: 0; font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.4rem); line-height: 1.13;
  letter-spacing: -.022em; color: var(--ink); text-wrap: balance;
}
h3 {
  margin: 0; font-weight: 600; font-size: 1.1rem; line-height: 1.35;
  letter-spacing: -.008em; color: var(--ink);
}
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1rem; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 2px; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 4px;
}

.eyebrow {
  font-size: .73rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ember);
}
.lede { font-size: clamp(1.08rem, 1.9vw, 1.26rem); line-height: 1.56; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .92em; }
.wide { max-width: 52rem; }

/* ── Shell ─────────────────────────────────────────────────────────────── */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
section { padding-block: clamp(3.5rem, 7.5vw, 6.5rem); }
section.tint { background: var(--soft); }
.stack { display: flex; flex-direction: column; gap: 1.2rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2.6rem; }
.row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ── Nav ───────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4.1rem; }
.brand {
  font-weight: 700; font-size: 1.14rem; letter-spacing: -.025em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand em { font-style: normal; color: var(--ember); }
.navlinks { display: none; gap: 1.6rem; align-items: center; }
@media (min-width: 54rem) { .navlinks { display: flex; } }
.navlinks a { font-size: .92rem; font-weight: 500; color: var(--body); text-decoration: none; }
.navlinks a:hover { color: var(--ink); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .94rem; font-weight: 600; letter-spacing: -.004em;
  padding: .7rem 1.2rem; border-radius: 7px; white-space: nowrap;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn-primary { background: var(--ember); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 1.01rem; padding: .88rem 1.55rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ── The prompt block — the hero's centrepiece ─────────────────────────── */
/* The product IS this interaction, so the hero shows it rather than a
   screenshot of the thing it replaced.                                     */

.prompt {
  background: var(--raised); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.prompt-head {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--rule); background: var(--soft);
}
.dot { width: .58rem; height: .58rem; border-radius: 50%; background: var(--rule); }
.prompt-head .label {
  margin-left: .5rem; font-family: "IBM Plex Mono", monospace;
  font-size: .71rem; color: var(--muted); letter-spacing: .05em;
}
.prompt-body {
  padding: 1.35rem 1.3rem 1.1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .93rem; line-height: 1.62; color: var(--ink);
}
.prompt-body p { max-width: none; }
.caret {
  display: inline-block; width: .5ch; height: 1.02em; vertical-align: -.16em;
  background: var(--ember); margin-left: .1em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

.produces {
  display: grid; gap: .45rem; padding: 0 1.3rem 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.produced {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 500; color: var(--pine); background: var(--pine-w);
  padding: .48rem .65rem; border-radius: 6px;
}
.produced svg { flex: none; }

/* ── Grids ─────────────────────────────────────────────────────────────── */

.cols { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
.cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
@media (min-width: 46rem) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 58rem) { .split { grid-template-columns: 1fr 1.15fr; } }

.commit { display: flex; flex-direction: column; gap: .65rem; }
.commit .n {
  font-family: "IBM Plex Mono", monospace; font-size: .73rem;
  color: var(--ember); letter-spacing: .11em;
}
.commit p { font-size: .97rem; }

.card {
  background: var(--raised); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1.35rem 1.45rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .55rem;
}
.card p { font-size: .95rem; }

/* ── Pricing ───────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 44rem) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan {
  background: var(--raised); border: 1px solid var(--rule); border-radius: 11px;
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--ember); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -.7rem; left: 1.4rem;
  font-family: "Archivo", sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--ember); color: #fff; padding: .25rem .6rem; border-radius: 4px;
}
.plan .name { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.plan .price {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 2.4rem;
  letter-spacing: -.03em; color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { font-size: .93rem; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .93rem; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; }
.plan li svg { flex: none; margin-top: .28em; color: var(--pine); }
.plan .btn { margin-top: auto; }

/* ── Tables ────────────────────────────────────────────────────────────── */

.scroll { overflow-x: auto; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .94rem; }
th {
  text-align: left; padding: 0 1rem .6rem 0; border-bottom: 1px solid var(--rule);
  font-size: .73rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
td { padding: .72rem 1rem .72rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:last-child, th:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: none; }
.num { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yes { color: var(--pine); font-weight: 600; }
.no { color: var(--muted); }
.ours td { background: var(--ember-w); }
.ours td:first-child { font-weight: 600; color: var(--ink); }

/* ── Quote ─────────────────────────────────────────────────────────────── */

blockquote {
  margin: 0; padding-left: 1.3rem; border-left: 3px solid var(--ember);
  max-width: 44rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45;
  color: var(--ink);
}
blockquote cite {
  display: block; margin-top: .8rem; font-family: "Archivo", sans-serif;
  font-size: .84rem; font-style: normal; font-weight: 500; color: var(--muted);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

details {
  border-bottom: 1px solid var(--rule); padding: 1.05rem 0;
}
summary {
  cursor: pointer; list-style: none; font-family: "Archivo", sans-serif;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-weight: 500; color: var(--ember); font-size: 1.3rem; line-height: 1;
}
details[open] summary::after { content: "−"; }
details p { margin-top: .8rem; font-size: .97rem; }

/* ── Footer ────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--rule); padding-block: 3rem 3.5rem; background: var(--soft); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
footer h4 {
  margin: 0 0 .75rem; font-size: .74rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
}
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
footer a { color: var(--body); text-decoration: none; font-size: .93rem; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.colophon {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-size: .85rem; color: var(--muted);
}
