:root {
  --paper: #f6f2e9;
  --paper-raised: #fffdf8;
  --paper-sunken: #ece5d6;
  --ink: #17150f;
  --ink-soft: #4c4739;
  --ink-faint: #857e6f;
  --rule: #ded6c3;
  --seal: #c2410c;
  --seal-deep: #9a3308;
  --seal-wash: rgba(194, 65, 12, 0.09);
  --pine: #2f4f3e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 18px 44px -28px rgba(23, 21, 15, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
}

a {
  color: var(--seal);
  text-decoration-color: rgba(194, 65, 12, 0.35);
  text-underline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-sunken);
  border-radius: 4px;
  padding: 1px 5px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 50;
}

.shell {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.shell.narrow {
  width: min(760px, 100% - 48px);
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 233, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.seal {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--seal);
  color: #fff8f0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  padding-bottom: 2px;
}

.seal-sm {
  width: 26px;
  height: 26px;
  font-size: 16px;
  border-radius: 7px;
}

.wordmark-text {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
}

.site-nav a:hover {
  color: var(--seal);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff8f0;
}

.btn-primary:hover {
  background: var(--seal-deep);
  border-color: var(--seal-deep);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16.5px;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 18px;
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 84px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: start;
}

.eyebrow,
.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--seal);
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.trust li::before {
  content: "✓";
  color: var(--pine);
  margin-right: 6px;
}

/* ---------- demo card ---------- */

.demo-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-sunken);
}

.demo-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.demo-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--pine);
  border: 1px solid rgba(47, 79, 62, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}

.demo-col {
  background: var(--paper-raised);
  padding: 12px;
}

.demo-label,
.demo-label-row .demo-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.demo-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-copy {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 8px;
  cursor: pointer;
  color: var(--ink-soft);
}

.demo-copy:hover {
  border-color: var(--seal);
  color: var(--seal);
}

#demoInput {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #1c1a15;
  color: #f3efe4;
  padding: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  resize: vertical;
  min-height: 250px;
}

.demo-output {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #1c1a15;
  color: #f3efe4;
  padding: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  min-height: 250px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.demo-note {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}

/* ---------- bands ---------- */

.band {
  padding: 78px 0;
  border-top: 1px solid var(--rule);
}

.band-quiet {
  background: rgba(236, 229, 214, 0.45);
}

.band-ink {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}

.band-cta {
  background: var(--paper-raised);
  border-top: 1px solid var(--rule);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 40px;
  max-width: 20em;
}

.kicker-ink {
  color: #e8945f;
}

.title-ink {
  color: var(--paper);
}

/* ---------- problem cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-quote {
  border-top: 3px solid var(--seal);
}

.quote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.42;
  margin: 0 0 14px;
}

.card-note {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- comparison table ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-sunken);
}

.compare tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  width: 30%;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare .col-us {
  background: var(--seal-wash);
  font-weight: 600;
}

.compare thead .col-us {
  background: rgba(194, 65, 12, 0.14);
  color: var(--seal);
}

.footnote {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  max-width: 62ch;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: rgba(246, 242, 233, 0.06);
  border: 1px solid rgba(246, 242, 233, 0.16);
  border-radius: 14px;
  padding: 24px;
}

.feature-wide {
  grid-column: span 2;
}

.feature-accent {
  border-color: rgba(232, 148, 95, 0.45);
  background: rgba(194, 65, 12, 0.12);
}

.feature h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 8px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: rgba(246, 242, 233, 0.74);
  font-size: 15px;
}

.feature code {
  background: rgba(246, 242, 233, 0.14);
  color: var(--paper);
}

/* the same grid on a light band */
.features-light .feature {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

.features-light .feature p {
  color: var(--ink-soft);
}

.features-light .feature code {
  background: var(--paper-sunken);
  color: var(--ink);
}

.features-light .feature-accent {
  border-color: rgba(194, 65, 12, 0.32);
  background: var(--seal-wash);
}

.lede-lede {
  margin: 0 0 26px;
  max-width: 70ch;
  font-size: 16.5px;
  color: var(--ink-soft);
}

/* ---------- pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.price-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.price-card-pro {
  border-color: var(--seal);
  box-shadow: 0 22px 50px -30px rgba(194, 65, 12, 0.7);
}

.ribbon {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--seal);
  color: #fff8f0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 4px;
}

.price {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.1;
  margin: 6px 0 18px;
  font-weight: 600;
}

.price-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pine);
  font-weight: 700;
}

.fine {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 14px 0 0;
  text-align: center;
}

.price-note-block {
  margin-top: 26px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-raised);
  padding: 22px 24px;
}

.price-note-block .sub {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 19px;
}

.price-note-block .footnote {
  margin: 0 0 14px;
}

/* ---------- faq ---------- */

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.faq summary {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--seal);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- cta + footer ---------- */

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 12px;
}

.cta-inner p {
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 34px 0 40px;
  background: var(--paper-sunken);
}

.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
}

.foot-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.foot-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.foot-note {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.foot-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.foot-copy {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards,
  .features,
  .pricing {
    grid-template-columns: 1fr;
  }

  .feature-wide {
    grid-column: span 1;
  }

  .site-nav {
    display: none;
  }

  .head-inner {
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
