/* Arsana: ink + paper + saffron. Instrument Serif for display, General Sans for text. */
:root {
  --ink: #0d0c0a;
  --ink-2: #1c1a16;
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --line: #d9d1c2;
  --muted: #6d665b;
  --saffron: #f3a93b;
  --saffron-ink: #8a5300;
  --display: 'Instrument Serif', Georgia, serif;
  --text: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(36px, 5vw, 60px);
  max-width: 18ch;
}

h3 {
  font-size: 30px;
}

em {
  font-style: italic;
  color: var(--saffron-ink);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fine {
  font-size: 14px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 1px solid var(--saffron);
  border-radius: 999px;
  background: var(--saffron);
  color: var(--ink);
  font: 600 15.5px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #f7b958;
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 240, 232, 0.35);
}

.btn-ghost:hover {
  background: rgba(244, 240, 232, 0.08);
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(13, 12, 10, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 26px/1 var(--display);
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.brand rect {
  fill: var(--saffron);
}

.brand path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav nav {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
}

.nav nav a {
  text-decoration: none;
  opacity: 0.75;
}

.nav nav a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-login {
  font-size: 14.5px;
  text-decoration: none;
  opacity: 0.75;
}

.nav-login:hover {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 150px) var(--gutter) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(243, 169, 59, 0.22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(243, 169, 59, 0.08), transparent 60%),
    var(--ink);
  color: var(--paper);
}

.hero > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.hero .eyebrow {
  color: rgba(244, 240, 232, 0.6);
}

.hero h1 {
  font-size: clamp(54px, 9vw, 124px);
  line-height: 0.95;
}

.hero h1 em {
  color: var(--saffron);
}

.lede {
  max-width: 620px;
  margin-top: 28px;
  margin-left: 0;
  font-size: clamp(18px, 1.6vw, 21px);
  color: rgba(244, 240, 232, 0.78);
}

.hero > .lede {
  margin-left: max(0px, calc((100% - var(--max)) / 2));
}

.lede em {
  color: var(--paper);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(56px, 8vw, 96px);
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(244, 240, 232, 0.16);
}

.hero-facts li {
  padding: 22px 20px 0 0;
}

.hero-facts b {
  display: block;
  font: 400 clamp(38px, 4vw, 54px)/1 var(--display);
  color: var(--saffron);
}

.hero-facts span {
  display: block;
  margin-top: 8px;
  max-width: 22ch;
  font-size: 14px;
  color: rgba(244, 240, 232, 0.62);
}

/* Thesis */
.thesis h2 {
  font-size: clamp(34px, 4.4vw, 54px);
}

.thesis p {
  font-size: 18.5px;
  color: #3b362e;
}

/* Loop */
.loop {
  background: var(--paper-2);
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.loop-steps li {
  position: relative;
  padding: 30px 28px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.loop-steps li:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 34px;
  right: -17px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--saffron);
  font-size: 16px;
}

.step-n {
  display: block;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.loop-steps h3 {
  margin-bottom: 12px;
  font-size: 40px;
}

.loop-steps p {
  font-size: 15.5px;
  color: #3b362e;
}

.loop-steps .out {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--saffron-ink);
}

/* Compare */
.compare h2 {
  margin-bottom: 36px;
}

.table-scroll {
  overflow-x: auto;
}

.compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15.5px;
}

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

.compare thead th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody th {
  font-weight: 600;
  width: 22%;
}

.compare td {
  color: #5a5348;
}

.compare .us {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.compare thead .us {
  color: var(--saffron);
  border-radius: 14px 14px 0 0;
}

.compare tbody tr:last-child .us {
  border-radius: 0 0 14px 14px;
}

/* Packages */
.packages {
  background: var(--paper-2);
}

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

.card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.card-k {
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 40px;
}

.card > p {
  color: #3b362e;
  font-size: 15.5px;
}

.card ul {
  margin: 10px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.card li {
  position: relative;
  padding: 6px 0 6px 22px;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--saffron);
}

.card-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.card-dark > p,
.card-dark .card-k {
  color: rgba(244, 240, 232, 0.7);
}

.card-dark ul {
  border-color: rgba(244, 240, 232, 0.16);
}

.packages .fine {
  max-width: 760px;
}

/* Playbook */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
  padding: 26px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: '0' counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--saffron-ink);
}

.steps b {
  display: block;
  margin-bottom: 8px;
  font: 400 32px/1 var(--display);
}

.steps span {
  display: block;
  font-size: 15px;
  color: #4a443a;
}

/* Report */
.report {
  background: var(--ink);
  color: var(--paper);
}

.report .eyebrow,
.report .fine {
  color: rgba(244, 240, 232, 0.6);
}

.report h2 em {
  color: var(--saffron);
}

.report p {
  color: rgba(244, 240, 232, 0.8);
}

.report h2 {
  margin-bottom: 24px;
}

.report-card {
  margin: 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--ink-2);
  border: 1px solid rgba(244, 240, 232, 0.1);
}

.report-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-weight: 600;
}

.tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(243, 169, 59, 0.16);
  color: var(--saffron);
  font-size: 12px;
  font-weight: 600;
}

.funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funnel li {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14.5px;
  isolation: isolate;
}

.funnel li::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--w);
  min-width: 6px;
  background: rgba(244, 240, 232, 0.09);
}

.funnel li.hit::before {
  background: var(--saffron);
}

.funnel b {
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.funnel li.hit {
  background: rgba(243, 169, 59, 0.18);
  font-weight: 600;
}

.funnel li.hit span,
.funnel li.hit b {
  color: var(--paper);
}

.report-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
}

.report-foot span {
  color: rgba(244, 240, 232, 0.7);
  font-size: 14px;
}

.report-foot b {
  font: 400 30px/1 var(--display);
  color: var(--saffron);
}

/* Programs */
.program-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.program {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.program:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.program b {
  font: 400 30px/1.05 var(--display);
}

.program span {
  flex: 1;
  font-size: 15px;
  color: #4a443a;
}

.program i {
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--saffron-ink);
}

/* FAQ */
.faq {
  background: var(--paper-2);
}

.faq h2 {
  margin-bottom: 32px;
}

.faq details {
  max-width: 820px;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 18px;
  font: 400 28px/1 var(--display);
  color: var(--saffron-ink);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: 8px;
  color: #3b362e;
}

/* Pilot */
.pilot h2 {
  margin-bottom: 20px;
}

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 12px;
  background: var(--ink-2);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(244, 240, 232, 0.35);
}

.field.invalid input {
  border-color: #ff8a7a;
}

.pilot-form .btn {
  margin-top: 6px;
}

.form-note {
  margin: 0;
  font-size: 14px;
  color: var(--saffron);
}

/* Footer */
.foot {
  padding: 32px 0 40px;
  background: var(--ink);
  color: rgba(244, 240, 232, 0.6);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot .brand {
  color: var(--paper);
}


/* Hero note */
.hero-note {
  margin-top: 22px;
  font-size: 14.5px;
  color: rgba(244, 240, 232, 0.55);
}

/* Live proof */
.proof {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.proof h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  max-width: 22ch;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #1c9a4f;
  box-shadow: 0 0 0 0 rgba(28, 154, 79, 0.5);
  animation: live-pulse 2s infinite;
  vertical-align: 1px;
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(28, 154, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(28, 154, 79, 0); }
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.proof-stats li {
  padding: 24px 24px 0 0;
}

.proof-stats b {
  display: block;
  font: 400 clamp(48px, 6vw, 84px)/1 var(--display);
  color: var(--saffron-ink);
}

.proof-stats span {
  display: block;
  margin-top: 10px;
  max-width: 28ch;
  font-size: 15px;
  color: var(--muted);
}

/* Dashboard ticks */
.ticks {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
}

.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-weight: 600;
}

.programs-lede {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.pilot-alt .btn-ghost {
  margin-top: 8px;
  color: var(--ink);
  border-color: var(--ink);
}

.pilot-alt .btn-ghost:hover {
  background: rgba(13, 12, 10, 0.06);
}

.field small {
  font-weight: 400;
  opacity: 0.6;
}

/* Honeypot: off-screen for people, still filled by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 960px) {
  .nav nav {
    display: none;
  }

  .two,
  .loop-steps,
  .cards,
  .program-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .loop-steps li:not(:last-child)::after {
    content: '↓';
    top: auto;
    right: auto;
    bottom: -17px;
    left: 28px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    padding-right: 0;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .nav {
    gap: 12px;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-actions .nav-login[href="/login"] {
    display: none;
  }

  .nav .btn-sm {
    padding: 9px 14px;
    white-space: nowrap;
  }

  .pilot-form {
    padding: 24px;
  }
}

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

  .btn,
  .program,
  .faq summary::after {
    transition: none;
  }

  .live-dot {
    animation: none;
  }
}
