:root {
  --porcelain: #f3efe8;
  --chalk: #fffdf9;
  --ink: #151311;
  --ink-soft: #2a2621;
  --stone: #6f675d;
  --line: rgba(21, 19, 17, 0.12);
  --teal: #2f7f7e;
  --teal-soft: #7ec4c2;
  --white: #ffffff;
  --radius: 10px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1120px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.page-legal {
  background:
    radial-gradient(640px 360px at 88% -8%, rgba(47, 127, 126, 0.08), transparent 60%),
    var(--porcelain);
}

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

a {
  color: inherit;
}

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

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition:
    background 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease),
    border-color 0.35s,
    color 0.35s;
  border-bottom: 1px solid transparent;
  color: var(--white);
}

.nav .brand,
.nav .nav-links a:not(.btn) {
  color: inherit;
}

.nav .brand span {
  color: var(--teal-soft);
  font-style: italic;
  font-weight: 400;
}

/* Always ink-on-chalk contrast — never inherit nav white text onto the CTA */
.nav .nav-links a.btn-primary,
.nav.is-scrolled .nav-links a.btn-primary,
.page-legal .nav .nav-links a.btn-primary {
  background: var(--ink);
  color: var(--chalk);
}

.nav .nav-links a.btn-primary:hover,
.nav.is-scrolled .nav-links a.btn-primary:hover,
.page-legal .nav .nav-links a.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--chalk);
}

.nav.is-scrolled,
.page-legal .nav {
  background: rgba(243, 239, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.nav.is-scrolled .brand span,
.page-legal .nav .brand span {
  color: var(--teal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

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

.footer .brand span {
  color: var(--teal);
  font-style: italic;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--chalk);
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 253, 249, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 253, 249, 0.12);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 28%;
  transform: scale(1.06);
  animation: heroDrift 24s var(--ease) infinite alternate;
  filter: saturate(0.92) contrast(1.04);
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.4%, -1%, 0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 19, 17, 0.18) 0%, rgba(21, 19, 17, 0.08) 40%, rgba(21, 19, 17, 0.82) 100%),
    linear-gradient(105deg, rgba(21, 19, 17, 0.62) 0%, rgba(21, 19, 17, 0.2) 42%, transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
  width: var(--wrap);
  margin-inline: auto;
  border-left: 3px solid var(--teal-soft);
  padding-left: 22px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  max-width: 10ch;
  font-weight: 500;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s var(--ease) 0.1s forwards;
}

.hero-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-soft);
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.28;
  margin: 0 0 12px;
  max-width: 20ch;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease) 0.26s forwards;
}

.hero > .hero-content > p {
  margin: 0 0 30px;
  max-width: 32ch;
  color: rgba(255, 253, 249, 0.84);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease) 0.4s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.54s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
    filter: none;
  }

  .hero-brand,
  .hero h1,
  .hero > .hero-content > p,
  .hero-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* —— Sections —— */
.section {
  padding: 108px 0;
}

.section-chalk {
  background: var(--chalk);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 34rem;
  margin-bottom: 52px;
}

.section-head .eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.7rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 16px;
  font-weight: 500;
}

.section-head p {
  margin: 0;
  color: var(--stone);
  font-size: 1.08rem;
  max-width: 38ch;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.phone-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #ddd5c8;
  box-shadow: 0 30px 70px rgba(21, 19, 17, 0.14);
  transform: translateY(36px);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}

.phone-frame.is-in {
  transform: translateY(0);
  opacity: 1;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  padding: 22px 0 22px 64px;
  position: relative;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.step.is-in {
  opacity: 1;
  transform: none;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
  font-style: italic;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--stone);
  font-size: 0.98rem;
  max-width: 34ch;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-item {
  padding: 8px 28px 8px 0;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.trust-item p {
  margin: 0;
  color: var(--stone);
  font-size: 0.96rem;
  max-width: 28ch;
}

.trust-item[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.trust-item[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.pro {
  background: var(--ink);
  color: var(--chalk);
  border-radius: 18px;
  padding: clamp(44px, 7vw, 76px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: end;
}

.pro h2 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  font-weight: 500;
  max-width: 10ch;
  line-height: 0.98;
}

.pro p {
  margin: 0;
  color: rgba(255, 253, 249, 0.7);
  max-width: 34ch;
  font-size: 1.02rem;
}

.pro .btn-ghost {
  border-color: rgba(255, 253, 249, 0.3);
}

.pro-note {
  font-size: 0.86rem;
  color: rgba(255, 253, 249, 0.48);
}

.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: var(--stone);
  font-size: 0.9rem;
  max-width: 48rem;
}

.footer {
  padding: 48px 0 64px;
  background: var(--chalk);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.footer a {
  text-decoration: none;
  color: var(--stone);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--ink);
}

.footer-copy {
  color: var(--stone);
  font-size: 0.84rem;
  margin-top: 28px;
}

/* —— Legal pages —— */
.legal-hero {
  padding: 128px 0 36px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 3.9rem);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  font-weight: 500;
  line-height: 1.02;
}

.legal-hero .meta {
  color: var(--stone);
  font-size: 0.92rem;
}

.legal {
  padding: 0 0 88px;
  max-width: 40rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.7rem;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal a {
  color: var(--teal);
}

.support-box {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--chalk);
}

.support-box a {
  color: var(--teal);
  font-weight: 650;
  text-decoration: none;
  font-size: 1.05rem;
}

@media (max-width: 860px) {
  .nav-links .hide-sm {
    display: none;
  }

  .split,
  .pro,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .hero-content {
    padding-bottom: 56px;
    padding-left: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .split {
    gap: 40px;
  }
}
