:root {
  --purple: #412b6f;
  --purple-deep: #2e1d52;
  --lavender: #cab9ee;
  --lavender-soft: #f3eef8;
  --paper: #f7f4ef;
  --white: #fffdfb;
  --ink: #241c33;
  --muted: #3f3854;
  --line: #e4dcea;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --wrap: min(1080px, calc(100% - 2.5rem));
  --header-offset: 8rem;
}

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

html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--purple);
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.55rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 0.9rem; }

a { color: var(--purple); }
a:hover { color: var(--purple-deep); }
a[href^="tel:"] { white-space: nowrap; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.btn:focus-visible,
.btn-secondary:focus-visible { outline-color: var(--purple); }
.btn:not(.btn-secondary):focus-visible,
.crisis a:focus-visible,
.footer a:focus-visible,
.price-card.featured a:focus-visible { outline-color: #fff; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: #fff;
  color: var(--purple);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
}
.skip:focus { top: 0.5rem; }

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
}

.crisis {
  background: var(--purple-deep);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}
.crisis a { color: #fff; }

.header { position: relative; border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 76px;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand img { width: 56px; height: 56px; flex: none; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--purple);
}
.brand-person {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.05rem;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
}
.nav a:not(.btn):hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: 2px solid var(--purple);
  background: transparent;
  color: var(--purple);
  font: 700 0.95rem/1 var(--sans);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 2px solid var(--purple);
  background: var(--purple);
  color: #fff;
  font: 700 1rem/1.3 var(--sans);
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--purple); }
.btn-secondary:hover { background: var(--lavender-soft); color: var(--purple-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero { padding: 2.5rem 0 3rem; }
.identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lavender);
  background: var(--paper);
  flex: none;
}
.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}
.identity .kicker { margin: 0; letter-spacing: 0.04em; text-transform: none; font-size: 1rem; }
.identity p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }
.lead { font-size: 1.18rem; max-width: 40rem; color: var(--muted); }
.fine { color: var(--muted); font-size: 0.95rem; max-width: 40rem; }
.pending {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40rem;
}

.section { padding: 3.25rem 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.section-head p:last-child { margin-bottom: 0; }

.card-grid, .price-grid, .split, .about-grid, .steps {
  display: grid;
  gap: 1rem;
}

.card, .panel, .price-card, .notice {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
}
.section-alt .card,
.section-alt .panel,
.section-alt .price-card { background: var(--paper); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 700; }

.steps { counter-reset: step; gap: 1rem; }
.step {
  background: var(--white);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
}
.section-alt .step { background: var(--paper); }
.step h3 { margin-bottom: 0.35rem; }
.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--purple-deep);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 750;
  vertical-align: 0.1rem;
}

.about-grid { align-items: start; }
.portrait-frame {
  background: var(--lavender);
  border-radius: 1.4rem;
  padding: 0 12px 12px 0;
  max-width: 420px;
}
.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  background: var(--white);
}
.about-copy { max-width: 42rem; }

.price { 
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  margin: 0.35rem 0 0.55rem;
  color: var(--purple);
}
.price-card p:last-child { margin-bottom: 0; }
.price-card.featured {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.price-card.featured h3,
.price-card.featured .price { color: #fff; }

.stack > * + * { margin-top: 0.9rem; }

.notice h2, .notice h3 { font-size: 1.45rem; }
.notice ul { margin: 0.4rem 0 1rem; padding-left: 1.15rem; }
.notice li { margin: 0.45rem 0; }

.phi {
  background: var(--lavender-soft);
  border-left: 4px solid var(--purple);
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
}
.field { margin: 0 0 0.95rem; }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cfc4df;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: var(--lavender-soft);
  border-radius: 10px;
}

.coin {
  background: var(--purple);
  color: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
}
.coin h2, .coin h3 { color: #fff; }
.coin p { color: #f6f1fb; }
.coin .btn { background: #fff; color: var(--purple); border-color: #fff; }
.coin .btn:hover { background: var(--lavender); }
.coin .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.coin .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.coin a:not(.btn) { color: #fff; }

.faq details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--purple);
  font-size: 1.05rem;
}
.faq details p { margin: 0.7rem 0 0.2rem; max-width: 42rem; }

.footer {
  background: var(--purple);
  color: #f6f1fb;
  padding: 2.75rem 0 2rem;
}
.footer a { color: #fff; }
.footer h2 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.footer-grid { display: grid; gap: 1.8rem; }
.footer .license { font-size: 1.05rem; font-weight: 750; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0.3rem 0; }
.legal { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.92rem; }

@media (min-width: 720px) {
  .card-grid, .steps { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 880px) {
  .about-grid { grid-template-columns: minmax(240px, 360px) 1fr; gap: 2.5rem; }
}

@media (min-width: 980px) {
  .card-grid, .steps { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 1.25rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .js .nav.is-open { display: flex; }
  .js .nav .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

section[id], .coin[id] { scroll-margin-top: var(--header-offset); }
