/* Anchorix marketing site - the reel design system, on a page.
   See branding/reels/README.md for the palette and the reasoning. Warm cream
   ground, deep sage for what leads, warm brown for what supports, and the
   four pastel washes - sage, dusty blue, peach, lavender - used as soft
   blurred colour behind the hero and as pills for emphasis. Rounded, quiet,
   the register of a bright waiting room. The invoice metaphor from the first
   identity survives only in the receipt card, softened. */

:root {
  --paper: #FFF8ED;            /* warm cream */
  --paper-2: #F7EFE2;          /* a shade deeper: table heads, receipt head */
  --card: #FFFDF8;
  --line: #E6DDCB;
  --ink: #3E4C44;              /* body text: deep sage pulled towards charcoal */
  --deep: #526B5A;             /* headlines, brand, buttons */
  --ink-soft: #75665C;         /* warm brown: secondary text */
  --sage: #A8BFA3;
  --blue: #AFC6D9;
  --peach: #F3C6AE;
  --lav: #C8B9D8;
  --pill: #DCE8D8;             /* pale sage: the headline pill, tone-on-tone with the type */
  --pill-ink: #3E4C44;
  --good: #526B5A;
  --shadow: 0 18px 44px rgba(82, 107, 90, 0.10);
  --shadow-soft: 0 6px 18px rgba(82, 107, 90, 0.08);
  --wash-opacity: 0.85;
}

:root[data-theme="dark"] {
  --paper: #1C2521;
  --paper-2: #232E29;
  --card: #26332C;
  --line: #3A4A40;
  --ink: #EDE7DB;
  --deep: #CFE0D2;
  --ink-soft: #C4B8AA;
  --sage: #6F8C78;
  --blue: #6F8CA6;
  --peach: #D9A386;
  --lav: #9B8BB0;
  --pill: #3F5A4A;
  --pill-ink: #1C2521;
  --good: #A8C9B2;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.3);
  --wash-opacity: 0.45;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C2521;
    --paper-2: #232E29;
    --card: #26332C;
    --line: #3A4A40;
    --ink: #EDE7DB;
    --deep: #CFE0D2;
    --ink-soft: #C4B8AA;
    --sage: #6F8C78;
    --blue: #6F8CA6;
    --peach: #D9A386;
    --lav: #9B8BB0;
    --pill: #3F5A4A;
    --pill-ink: #1C2521;
    --good: #A8C9B2;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.3);
    --wash-opacity: 0.45;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  color: var(--deep);
}

.figure {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
}

/* ---------- Pills: the emphasis device from the reels ---------- */
.pill {
  display: inline;
  background: var(--pill);
  color: var(--deep);
  border-radius: 0.55em;
  padding: 0.02em 0.36em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pill-blue {
  background: var(--blue);
  color: var(--pill-ink);
}

.pill-peach {
  background: var(--peach);
  color: var(--pill-ink);
}

.pill-sage {
  background: var(--sage);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .mark-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow-soft);
}

.topbar nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.topbar nav a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--deep);
}

/* ---------- Buttons: rounded, calm ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn-primary {
  background: var(--deep);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid color-mix(in srgb, var(--deep) 35%, transparent);
  padding: 12px 23px;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--sage) 25%, transparent);
}

/* ---------- Hero, with the washes behind it ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--wash-opacity);
  pointer-events: none;
  z-index: 0;
}

.wash.w1 { width: 560px; height: 560px; background: var(--sage);  left: -200px; top: -180px; }
.wash.w2 { width: 480px; height: 480px; background: var(--blue);  right: -160px; top: 40px; }
.wash.w3 { width: 460px; height: 460px; background: var(--peach); left: 30%;    bottom: -260px; }
.wash.w4 { width: 340px; height: 340px; background: var(--lav);   right: 18%;   bottom: -200px; opacity: calc(var(--wash-opacity) * 0.8); }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.3;
  max-width: 24ch;
}

/* The headline pill always opens a line (there is a <br> before it), so it
   hangs into the margin by its own padding and the word aligns with the
   lines above and below. On wide screens it stays whole; on a phone it may
   wrap, and box-decoration-break keeps each fragment rounded. */
.hero h1 .pill { margin-left: -0.36em; }
@media (min-width: 761px) {
  .hero h1 .pill { white-space: nowrap; }
}

.hero .sub {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero .punch {
  margin-top: 30px;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--deep);
  max-width: 46ch;
}

.hero .cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .fine {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Receipt card: the one survivor of the invoice metaphor ---------- */
.receipt {
  margin-top: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 480px;
  overflow: hidden;
}

.receipt .rline {
  display: flex;
  justify-content: space-between;
  padding: 13px 22px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}

.receipt .rline:last-child {
  border-bottom: none;
}

.receipt .rline .label {
  color: var(--ink-soft);
}

.receipt .rhead {
  background: var(--paper-2);
  padding: 14px 22px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.receipt .rtotal {
  background: var(--paper-2);
  font-weight: 800;
  color: var(--deep);
}

.receipt .rcompliance .figure {
  color: var(--deep);
  font-weight: 700;
}

/* ---------- Section shell ---------- */
section {
  padding: 84px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--deep);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: var(--sage);
}

section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.18;
  max-width: 24ch;
}

.section-sub {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 58ch;
}

/* ---------- Problem / solution cards ---------- */
.problem-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.problem-card {
  padding: 28px 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.problem-card .glyph {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sage) 45%, var(--card));
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

#solution .problem-card .glyph {
  background: color-mix(in srgb, var(--peach) 55%, var(--card));
}

.problem-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.problem-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- How it works ---------- */
.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.step .num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--pill-ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.step .num::before {
  content: counter(step);
}

.step h3 {
  font-size: 1.05rem;
  margin: 14px 0 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  margin-top: 44px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

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

table.compare th, table.compare td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  vertical-align: top;
}

table.compare thead th {
  background: var(--paper-2);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

table.compare tbody tr:last-child td {
  border-bottom: none;
}

table.compare td.yes {
  color: var(--good);
  font-weight: 700;
}

table.compare td.dash {
  color: var(--ink-soft);
}

table.compare tr.highlight td {
  background: color-mix(in srgb, var(--sage) 16%, transparent);
}

.compare .muted-note {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 2px;
  font-weight: 400;
}

/* ---------- Prose callouts ---------- */
.versus-note {
  margin-top: 40px;
  padding: 30px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  max-width: 70ch;
  position: relative;
}

.versus-note::before {
  content: "";
  display: block;
  width: 40px;
  height: 8px;
  border-radius: 4px;
  background: var(--sage);
  margin-bottom: 18px;
}

.versus-note h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 14px;
}

.versus-note p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.versus-note p:last-child {
  margin-bottom: 0;
}

.versus-note .versus-honest {
  font-size: 0.9rem;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cta-row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.plan.featured {
  border-color: color-mix(in srgb, var(--deep) 40%, var(--line));
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--card) 0%, color-mix(in srgb, var(--sage) 12%, var(--card)) 100%);
}

.plan .plan-name {
  align-self: flex-start;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pill-ink);
  font-weight: 800;
  background: var(--blue);
  border-radius: 999px;
  padding: 6px 14px;
}

.plan.featured .plan-name {
  background: color-mix(in srgb, var(--peach) 70%, var(--card));
}

.plan .price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan .price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: -0.02em;
}

.plan .price .period {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan .plan-desc {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.93rem;
}

.plan ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan ul li .check {
  color: var(--good);
  font-weight: 800;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 45%, var(--card));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.plan ul li .plan-note {
  display: block;
  color: var(--ink-soft);
  font-size: 0.84rem;
  margin-top: 3px;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.compare-details {
  margin-top: 28px;
}

.compare-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--deep);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.compare-details summary::after {
  content: "+";
  font-weight: 400;
}

.compare-details[open] summary::after {
  content: "\2212";
}

.trial-note {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 24px;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 45%, var(--card));
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "\2212";
}

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

/* ---------- Caveat card ---------- */
.caveat-card {
  margin-top: 40px;
  padding: 30px 34px;
  background: color-mix(in srgb, var(--lav) 22%, var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  max-width: 72ch;
}

.caveat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 14px;
}

.caveat-card p {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.65;
}

.caveat-card p:last-child {
  margin-bottom: 0;
}

.caveat-links {
  font-size: 0.9rem;
  color: var(--ink-soft) !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta .wrap {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  max-width: none;
  margin: 0 auto;
}

.final-cta .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.final-cta .cta-row {
  margin-top: 28px;
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Lead form modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 37, 33, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  padding: 34px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal h3 {
  font-size: 1.35rem;
}

.modal .modal-fine {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--sage) 35%, var(--card));
  color: var(--deep);
  font-size: 1.3rem;
  cursor: pointer;
}

.field {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid color-mix(in srgb, var(--deep) 45%, transparent);
  outline-offset: 1px;
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-msg {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Motion, respectfully ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .topbar .btn-ghost { display: none; }
  .topbar .btn { padding: 10px 16px; font-size: 0.88rem; }
  .topbar .wrap { gap: 12px; }
  .hero { padding: 64px 0 56px; }
  .problem-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .versus-note, .caveat-card { padding: 24px 22px; }
  .wash.w3, .wash.w4 { display: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
}
