/* ============================================
   WEBSITES, KEPT CURRENT — EDITORIAL / TYPE-DRIVEN
   Same system as m21m.com (paper, ink, one accent).
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #f2efe9;
  --ink: #171511;
  --muted: #6f695f;
  --line: #d9d4ca;
  --accent: #e8490f;        /* large text, fills, text on ink */
  --accent-text: #c43c0a;   /* small text on paper (4.5:1) */

  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

ul,
ol {
  list-style: none;
}

/* ---------- Micro label ---------- */
.label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

a.label:hover {
  color: var(--accent-text);
}

/* ---------- Header ---------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s var(--ease) both;
}

.masthead .label {
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 12vh, 9rem) var(--gutter) clamp(4rem, 10vh, 7rem);
}

.hero__kicker {
  display: block;
  color: var(--accent-text);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  animation: rise 0.9s var(--ease) 0.04s both;
}

.hero__title {
  font-size: clamp(2.5rem, 7.5vw, 6.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero__title em,
.plan__price em,
.setup__price em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero__footnote {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  animation: rise 0.9s var(--ease) 0.18s both;
}

/* ---------- Call to action ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero__cta {
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  animation: rise 0.9s var(--ease) 0.22s both;
}

.plans__cta {
  padding: clamp(1.5rem, 3.5vh, 2.25rem) var(--gutter) 0;
}

.cta__lead {
  color: var(--ink);
  margin-right: 0.25rem;
}

.cta__button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.cta__button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cta__button--quiet {
  background: transparent;
  color: var(--ink);
}

.cta__button--quiet:hover {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--accent-text);
}

.cta__number {
  color: var(--ink);
}

.cta__consent {
  flex-basis: 100%;
  max-width: 62ch;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.cta__consent a:hover {
  color: var(--accent-text);
}

.footer__consent {
  margin-top: 0.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding-bottom: clamp(4rem, 10vh, 7rem);
  animation: rise 0.9s var(--ease) 0.26s both;
}

.section__label {
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter) 0.75rem;
}

/* ---------- Steps ---------- */
.step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vh, 2.5rem) var(--gutter);
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__index {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

.step__title {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.step__body {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(2rem, 4vh, 3rem) var(--gutter);
}

.plan + .plan {
  border-left: 1px solid var(--line);
}

.plan--featured {
  background: var(--ink);
  color: var(--paper);
}

.plan--featured + .plan {
  border-left-color: transparent;
}

.plan__flag {
  position: absolute;
  top: 1.25rem;
  right: var(--gutter);
  color: var(--accent);
}

.plan__name {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.plan__price {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan__price em {
  font-size: 0.4em;
  color: var(--muted);
}

.plan--featured .plan__price em {
  color: var(--accent);
}

.plan__pitch {
  max-width: 32ch;
  color: var(--muted);
  line-height: 1.55;
}

.plan--featured .plan__pitch {
  color: var(--line);
}

.plan__list {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.plan__list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

.plan--featured .plan__list li {
  border-top-color: rgba(242, 239, 233, 0.18);
}

.plan__list li:first-child {
  color: var(--muted);
}

.plan--featured .plan__list li:first-child {
  color: var(--accent);
}

/* ---------- Setup ---------- */
.setup__line {
  display: grid;
  /* column-gap = 2 × gutter lines columns 2–3 up with the plan text above */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: baseline;
  gap: 1rem calc(var(--gutter) * 2);
  padding: clamp(1.25rem, 3vh, 2rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.setup__price {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.setup__line--existing .setup__price {
  color: var(--accent);
}

.setup__body {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Promises ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.promise {
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.promise:nth-child(even) {
  border-left: 1px solid var(--line);
}

.promise__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.promise p {
  max-width: 40ch;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vh, 1.75rem) var(--gutter);
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
}

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

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

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

.faq__item summary:hover {
  color: var(--accent-text);
}

.faq__item p {
  max-width: 60ch;
  padding: 0 var(--gutter) clamp(1.5rem, 3.5vh, 2.25rem);
  color: var(--muted);
  line-height: 1.65;
}

.faq__item p a:hover {
  color: var(--accent-text);
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) 1.5rem;
}

.footer__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.25rem, 8vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-top: 0.75rem;
  transition: color 0.25s ease;
}

.footer__email:hover {
  color: var(--accent);
}

.footer__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__alt a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__alt a:hover {
  color: var(--accent-text);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer__area {
  text-align: right;
}

/* ---------- Legal pages (privacy, SMS terms) ---------- */
.legal {
  padding: clamp(3rem, 9vh, 6rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  animation: rise 0.9s var(--ease) both;
}

.legal__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-top: clamp(1rem, 2.5vh, 1.5rem);
}

.legal__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.legal__updated {
  display: block;
  margin-top: 1rem;
}

.legal__body {
  max-width: 64ch;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  line-height: 1.65;
}

.legal__body h2 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.legal__body h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.75rem;
}

.legal__body p,
.legal__body ul {
  margin-top: 0.85rem;
}

.legal__body ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal__body li + li {
  margin-top: 0.4rem;
}

.legal__body a:hover {
  color: var(--accent-text);
}

.legal__key {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 0.5rem;
}

.legal__body > .legal__key:first-child {
  margin-top: 0;
}

.legal__key > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Animation ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .plan--featured + .plan {
    border-top-color: transparent;
  }

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

  .setup__body {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-areas:
      "index title"
      ".     body";
    row-gap: 0.5rem;
  }

  .step__index { grid-area: index; }
  .step__title { grid-area: title; }
  .step__body  { grid-area: body; }

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

  .promise:nth-child(even) {
    border-left: 0;
  }

  .masthead .label--location {
    display: none;
  }

  .footer__base {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer__area {
    text-align: left;
  }

  .footer__links {
    gap: 1rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
