/* TheoryWorks site
   Brand: burnt amber #BA701B, cream #F4F1EA, off-black #1A1A1C, Inter
*/

@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  font-optical-sizing: auto;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F4F1EA;
  --ink-muted: rgba(244, 241, 234, 0.7);
  --paper: #1A1A1C;
  --bg: #1A1A1C;
  --bg-elevated: color-mix(in srgb, #F4F1EA 6%, #1A1A1C);
  --bg-card: color-mix(in srgb, #F4F1EA 8%, #1A1A1C);
  --accent: #BA701B;
  --accent-text: #D08A3A;
  --accent-soft: rgba(186, 112, 27, 0.16);
  --line: rgba(244, 241, 234, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(26, 26, 28, 0.78);
}

[data-theme="light"] {
  color-scheme: light;
  --ink: #1A1A1C;
  --ink-muted: rgba(26, 26, 28, 0.68);
  --paper: #F4F1EA;
  --bg: #F4F1EA;
  --bg-elevated: color-mix(in srgb, #1A1A1C 4%, #F4F1EA);
  --bg-card: color-mix(in srgb, #1A1A1C 6%, #F4F1EA);
  --accent: #BA701B;
  --accent-text: #8F5410;
  --accent-soft: rgba(186, 112, 27, 0.12);
  --line: rgba(26, 26, 28, 0.12);
  --shadow: 0 24px 80px rgba(26, 26, 28, 0.12);
  --header-bg: rgba(244, 241, 234, 0.82);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-lockup,
.footer-lockup {
  height: 32px;
  width: auto;
}

.footer-lockup {
  height: 28px;
}

[data-theme="dark"] .on-light,
[data-theme="light"] .on-dark {
  display: none;
}

.nav {
  display: flex;
  gap: 1.05rem;
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.2rem;
  text-decoration: none;
  color: var(--ink-muted);
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="true"] {
  color: var(--ink);
}

.nav a[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav.btn-call {
  display: inline-flex;
  gap: 0.4rem;
  white-space: nowrap;
}

.icon-phone {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-call-number {
  display: none;
  font-weight: 500;
  color: var(--ink-muted);
}

@media (min-width: 1180px) {
  .btn-call-number {
    display: inline;
  }
}

.nav-toggle {
  display: none;
  appearance: none;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-label[data-when="closed"],
.nav-toggle[aria-expanded="false"] .nav-toggle-label[data-when="open"] {
  display: none;
}

.btn {
  appearance: none;
  border: 0;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
}

.btn span {
  display: inline-flex;
  align-items: center;
}

.theme-toggle {
  appearance: none;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.theme-toggle span {
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .theme-toggle-label[data-when="light"],
[data-theme="light"] .theme-toggle-label[data-when="dark"] {
  display: none;
}

.btn:hover {
  box-shadow: 0 0 0 2px var(--accent);
}

.theme-toggle:hover,
.nav-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.skip-link:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.btn-nav:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible,
.call-bot-note a:focus-visible,
.closing-frame:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 72% 48%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "title"
    "mark"
    "support"
    "lede"
    "cta";
  gap: 0;
  align-items: start;
}

.hero .eyebrow { grid-area: eyebrow; }
.hero h1 { grid-area: title; }
.hero-support { grid-area: support; }
.hero .lede { grid-area: lede; }
.hero .btn-row { grid-area: cta; }
.hero-frame { grid-area: mark; }

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-head .eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hero h1,
.section-head h1,
.section-head h2 {
  margin: 0 0 0.7rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  max-width: 9ch;
}

.hero-support {
  margin: 0 0 1.15rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.hero h1 .w {
  font-weight: 700;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 34rem;
}

.hero-frame {
  margin: 0;
  position: relative;
  justify-self: center;
  align-self: center;
  --mark-h: 132px;
  --block-w: calc(var(--mark-h) * 36 / 72);
  --gap: calc(var(--mark-h) * 14 / 72);
  --open-x: 92px;
}

@media (min-width: 881px) {
  .hero-grid {
    grid-template-columns: auto auto;
    grid-template-areas:
      "eyebrow ."
      "title   mark"
      "support support"
      "lede    lede"
      "cta     cta";
    column-gap: 2.25rem;
    row-gap: 0;
    justify-content: center;
    align-items: start;
  }

  .hero-frame {
    justify-self: start;
    align-self: center;
    padding-right: var(--open-x);
  }
}

.closing-frame {
  display: inline-block;
  cursor: pointer;
  padding: 0.2rem;
}

.closing-frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.closing-mark-row {
  display: flex;
  align-items: center;
}

.closing-bracket {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  height: var(--mark-h);
  width: calc(var(--mark-h) * 26 / 72);
  overflow: visible;
  color: var(--ink);
}

.closing-bracket path {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}

.closing-phrase-wrap {
  position: relative;
  display: grid;
  align-items: center;
  min-height: var(--mark-h);
  margin: 0;
  padding: 0 var(--gap);
  color: var(--ink);
  background: none;
}

.closing-phrase-sizer,
.closing-phrase {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: pre-line;
}

.closing-phrase-sizer {
  visibility: hidden;
  pointer-events: none;
  grid-area: 1 / 1;
}

.closing-phrase {
  position: absolute;
  left: var(--gap);
  right: var(--gap);
  top: 50%;
  transform: translateY(-50%);
}

.closing-frame.is-locked .closing-phrase {
  color: var(--ink);
}

.closing-block-track {
  position: relative;
  flex: 0 0 auto;
  width: var(--block-w);
  height: var(--mark-h);
}

.closing-block {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(var(--block-x, 0px));
  will-change: transform;
}

.closing-block.is-flash {
  filter: brightness(1.12);
}

.section,
.hero {
  scroll-margin-top: 5.25rem;
}

.section {
  padding: 6.5rem 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

.section-head p,
.local-copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.cards {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.card:hover::before,
.card:focus-within::before {
  transform: scaleX(1);
}

.section-alt .card {
  background: var(--bg);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 112, 27, 0.45);
}

.card-mark {
  width: 42px;
  margin-bottom: 1.25rem;
}

.mark-svg {
  width: 42px;
  height: 42px;
  color: var(--ink);
}

.option-facts {
  list-style: none;
  margin: auto 0 0;
  padding: 1.2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.option-facts li {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.option-facts strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.mix-note {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.plain-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 12px;
  height: 24px;
  background: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-form em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.form-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.call-bot-note {
  margin: 1.15rem 0 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.call-bot-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.call-bot-note a:hover,
.call-bot-note a:focus-visible {
  color: var(--accent-text);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.form-status[hidden] {
  display: none;
}

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.session-facts {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.session-facts li {
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  position: relative;
}

.session-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.session-facts strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.session-facts span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.95rem;
  text-wrap: pretty;
}

.subhead {
  margin: 2.4rem 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.85rem;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-text);
}

.pricing-follow {
  margin-top: 5rem;
  padding-top: 4.5rem;
  border-top: 1px solid var(--line);
}

.pricing-grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card .price {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.price-period {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0;
}

.demo-note {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card-kicker {
  margin-top: -0.15rem;
}

.faq {
  margin: 3rem 0 0;
  padding: 0;
  max-width: 66ch;
}

.faq > div {
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.faq dt {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq dd {
  margin: 0;
  color: var(--ink-muted);
}

@media (min-width: 881px) {
  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The content column tops out at 1120px, so the full nav plus the
   phone number only fits once the viewport is wide enough for that
   column. Below that, use the menu instead of wrapping link labels. */
@media (max-width: 1179px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-height: 52px;
    padding-block: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.15rem 1.2rem 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 30;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0.35rem 0;
    border-top: 1px solid var(--line);
    font-size: 1rem;
    box-shadow: none;
    white-space: normal;
  }

  .nav a[aria-current="true"] {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 0.75rem;
  }

  .header-tools {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .section,
  .hero {
    scroll-margin-top: 4.5rem;
  }
}

@media (max-width: 880px) {
  #setup .cards {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .local-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.4rem 0 3.5rem;
  }

  .hero-frame {
    justify-self: center;
    margin: 1.5rem auto 1.75rem;
    width: auto;
    --mark-h: 112px;
    --open-x: 78px;
  }

  .section {
    padding: 4.25rem 0;
  }
}

@media (min-width: 640px) and (max-width: 880px) {
  .cards,
  .pricing-grid,
  .session-facts,
  .leave-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 639px) {
  .cards,
  .session-facts,
  .pricing-grid,
  .steps,
  .leave-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-lockup {
    height: 24px;
  }

  .header-inner {
    gap: 0.3rem;
  }

  .header-tools {
    gap: 0.4rem;
  }

  .theme-toggle,
  .nav-toggle,
  .btn-nav.btn-call {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
  }

  .btn-nav.btn-call {
    gap: 0.3rem;
  }
}

@media (max-width: 360px) {
  .btn-call-label {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-frame {
    --mark-h: 96px;
    --open-x: 67px;
  }

  .closing-phrase {
    font-size: 1.05rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card:hover {
    transform: none;
  }

  .closing-block {
    transform: none !important;
    filter: none !important;
  }
}

.coming-soon {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}


/* ---- How we work / process ---- */

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.process-grid .section-head {
  max-width: 36rem;
}

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

.steps li {
  position: relative;
  min-width: 0;
}

.step-copy {
  position: relative;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.step-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.steps .step-num {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

.steps h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps .step-copy > p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.leave-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.leave-grid h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.leave-intro {
  margin: 0 0 0.25rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.leave-grid .plain-list {
  margin-top: 0.5rem;
}

@media (max-width: 880px) {
  .process-mark {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 639px) {
  .steps,
  .leave-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .leave-grid {
    margin-top: 3rem;
    padding-top: 2.25rem;
    gap: 2.25rem;
  }
}


.trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.trust-points li {
  min-width: 0;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  position: relative;
}

.trust-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.trust-points h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.trust-points p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .trust-points {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Legal pages: narrow, readable long-form column. */
.legal {
  min-height: calc(100svh - 12rem);
}

.legal-wrap {
  max-width: 40rem;
}

.legal-head h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  letter-spacing: -0.038em;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.legal-head .effective {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.legal-body {
  margin-top: 2.5rem;
}

.legal-body h2 {
  margin: 2.15rem 0 0.7rem;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.25rem;
}

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

.legal-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-body a:hover,
.legal-body a:focus-visible {
  color: var(--ink);
}

@media (max-width: 880px) {
  .legal {
    min-height: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}
