/* ==========================================================================
   Petsa — petsa.online
   Self-hosted fonts, brand tokens, components, motion.
   Light theme is primary. Dark theme follows the OS unless overridden.
   ========================================================================== */

/* --------------------------------------------------------------- fonts -- */
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FrauncesVar';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------- tokens -- */
:root {
  color-scheme: light;

  /* Brand palette (light) */
  --bg:            #F4F6F9;
  --bg-sunk:       #EDF1F6;
  --ink:           #1A365D;   /* headings, primary text */
  --ink-body:      #44566E;   /* body copy — 6.9:1 on --bg */
  --ink-muted:     #566379;   /* small meta text — 5.6:1 on --bg */
  --muted-brand:   #64748B;   /* brand muted token; large/decorative only */
  --mint:          #52B788;   /* accent fills, arcs, decorative */
  --mint-ink:      #2F7A57;   /* accent for text + icons — 4.8:1 on --bg */
  --mint-soft:     rgba(82, 183, 136, .12);
  --warm:          #FF9233;
  --danger:        #E11D48;

  --card:          rgba(255, 255, 255, .72);
  --card-solid:    #FFFFFF;
  --card-border:   rgba(255, 255, 255, .60);
  --hairline:      rgba(26, 54, 93, .12);
  --bezel:         #DDE3EC;

  --btn-bg:        #1A365D;
  --btn-fg:        #FFFFFF;
  --btn-bg-hover:  #16304F;

  --shadow-sm: 0 1px 2px rgba(26, 54, 93, .05), 0 2px 8px -4px rgba(26, 54, 93, .10);
  --shadow-md: 0 1px 2px rgba(26, 54, 93, .06), 0 10px 28px -14px rgba(26, 54, 93, .28);
  --shadow-lg: 0 2px 4px rgba(26, 54, 93, .05), 0 22px 48px -22px rgba(26, 54, 93, .32);

  /* Radii — generous, iOS-ish */
  --r-pill: 999px;
  --r-sm:  12px;
  --r:     18px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* Type */
  --font-sans: 'InterVar', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'FrauncesVar', Georgia, 'Times New Roman', serif;
  --step--1: .875rem;
  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  clamp(1.375rem, 2.4vw, 1.625rem);
  --step-3:  clamp(1.75rem, 4vw, 2.375rem);
  --step-4:  clamp(2.25rem, 5.6vw, 3.5rem);

  /* Layout */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 68px;

  /* Motion */
  --ease-out: cubic-bezier(.33, 1, .68, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* Dark palette — applied on explicit choice… */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg:            #0F172A;
  --bg-sunk:       #0B1222;
  --ink:           #F8FAFC;
  --ink-body:      #CBD5E1;
  --ink-muted:     #94A3B8;
  --muted-brand:   #94A3B8;
  --mint:          #A2E8B1;
  --mint-ink:      #A2E8B1;
  --mint-soft:     rgba(162, 232, 177, .12);
  --danger:        #F43F5E;
  --card:          rgba(30, 41, 59, .55);
  --card-solid:    #16223A;
  --card-border:   rgba(148, 163, 184, .14);
  --hairline:      rgba(248, 250, 252, .10);
  --bezel:         #263244;
  --btn-bg:        #A2E8B1;
  --btn-fg:        #0F172A;
  --btn-bg-hover:  #B6EEC2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .30), 0 2px 8px -4px rgba(0, 0, 0, .40);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .32), 0 10px 28px -14px rgba(0, 0, 0, .55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .34), 0 22px 48px -22px rgba(0, 0, 0, .60);
}

/* …and by OS preference when the visitor hasn't chosen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg:            #0F172A;
    --bg-sunk:       #0B1222;
    --ink:           #F8FAFC;
    --ink-body:      #CBD5E1;
    --ink-muted:     #94A3B8;
    --muted-brand:   #94A3B8;
    --mint:          #A2E8B1;
    --mint-ink:      #A2E8B1;
    --mint-soft:     rgba(162, 232, 177, .12);
    --danger:        #F43F5E;
    --card:          rgba(30, 41, 59, .55);
    --card-solid:    #16223A;
    --card-border:   rgba(148, 163, 184, .14);
    --hairline:      rgba(248, 250, 252, .10);
    --bezel:         #263244;
    --btn-bg:        #A2E8B1;
    --btn-fg:        #0F172A;
    --btn-bg-hover:  #B6EEC2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .30), 0 2px 8px -4px rgba(0, 0, 0, .40);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .32), 0 10px 28px -14px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .34), 0 22px 48px -22px rgba(0, 0, 0, .60);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.021em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -.028em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0; }
p, li { text-wrap: pretty; }

a { color: var(--mint-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0; padding: 0; }
figure, figcaption, blockquote, dl, dd { margin: 0; }

:focus-visible {
  outline: 2px solid var(--mint-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--mint-soft); color: var(--ink); }

/* Squircle corners where the browser supports them (progressive) */
@supports (corner-shape: squircle) {
  .card, .btn, .device, .cta, .chip, .menu__panel, .callout { corner-shape: squircle; }
}

/* ------------------------------------------------------------ utilities -- */
.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: clamp(60px, 8.5vw, 108px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

.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 {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600;
  text-decoration: none; transition: top .18s var(--ease-out);
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin-bottom: .85rem;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-body);
  max-width: 56ch;
}

/* ------------------------------------------------------------- wordmark -- */
img.wordmark {
  height: 36px;
  width: auto;
  aspect-ratio: 1838 / 706;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  --btn-scale: 1;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  cursor: pointer;
  transform: scale(var(--btn-scale));
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out),
              border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn:hover { background: var(--btn-bg-hover); --btn-scale: 1.025; }
.btn:active { --btn-scale: .985; transition-duration: .09s; }

.btn--ghost {
  background: var(--card-solid);
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { background: var(--card-solid); border-color: var(--mint); }

.btn--store {
  align-items: center;
  padding: .6875rem 1.375rem .6875rem 1.125rem;
  gap: .75rem;
}
.btn__glyph { width: 22px; height: 22px; flex: none; }
.btn__lines { display: grid; text-align: left; line-height: 1.15; }
.btn__lines small { font-size: .6875rem; font-weight: 500; opacity: .78; letter-spacing: .01em; }
.btn__lines strong { font-size: 1rem; font-weight: 650; letter-spacing: -.012em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.btn-row--center { justify-content: center; }

.note {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: 1rem;
}

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header[data-stuck='true'] { border-bottom-color: var(--hairline); }

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 4px 2px;
  transition: transform .2s var(--ease-out);
}
.header__brand:hover { transform: scale(1.02); }
.header__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.icon-btn:hover { background: var(--mint-soft); border-color: var(--mint); transform: scale(1.04); }
.icon-btn svg { width: 19px; height: 19px; }

/* Sun/moon cross-fade with a small rotation, rather than a hard display swap. */
.icon-btn:has(.icon-moon) svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-spring);
}
.icon-btn .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.icon-btn .icon-moon { opacity: 0; transform: rotate(-70deg) scale(.5); }
:root[data-theme='dark'] .icon-btn .icon-sun { opacity: 0; transform: rotate(70deg) scale(.5); }
:root[data-theme='dark'] .icon-btn .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-btn .icon-sun { opacity: 0; transform: rotate(70deg) scale(.5); }
  :root:not([data-theme]) .icon-btn .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* ------------------------------------------------------------------ nav -- */
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav a, .menu > summary {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.nav a:hover, .menu > summary:hover { background: var(--mint-soft); color: var(--mint-ink); }
.nav a[aria-current='page'] { color: var(--mint-ink); font-weight: 600; }

.menu { position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ''; }
.menu__caret { width: 12px; height: 12px; transition: transform .2s var(--ease-out); }
.menu[open] > summary .menu__caret { transform: rotate(180deg); }
.menu__panel { list-style: none; }
.menu__panel a {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.menu__panel a:hover { background: var(--mint-soft); color: var(--mint-ink); }

.nav-toggle { display: none; }
.nav-toggle .icon-x { display: none; }
.nav-toggle[aria-expanded='true'] .icon-x { display: block; }
.nav-toggle[aria-expanded='true'] .icon-bars { display: none; }

@media (min-width: 900px) {
  .menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 216px;
    padding: .375rem;
    background: var(--card-solid);
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    box-shadow: var(--shadow-md);
    animation: menuIn .22s var(--ease-out) both;
  }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 899.98px) {
  .nav-toggle { display: grid; }
  .header__store { display: none; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open='true'] { display: block; animation: menuIn .22s var(--ease-out) both; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a, .menu > summary {
    padding: .8125rem .5rem;
    border-radius: var(--r-sm);
    font-size: 1.0625rem;
  }
  .menu > summary { justify-content: space-between; }
  .menu__panel {
    margin: .125rem 0 .5rem .5rem;
    padding-left: .75rem;
    border-left: 2px solid var(--mint-soft);
  }
  .menu__panel a { padding: .625rem .5rem; }
  .nav__cta { margin-top: 1rem; display: flex; }
  .nav__cta .btn { flex: 1; justify-content: center; }
}
@media (min-width: 900px) {
  .nav__cta { display: none; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  padding-block: clamp(40px, 7vw, 84px) clamp(56px, 8vw, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; justify-items: center; gap: 1.375rem; }
.hero__mascot {
  width: clamp(150px, 26vw, 208px);
  filter: drop-shadow(0 18px 28px rgba(26, 54, 93, .16));
}
/* Break between sentences, never mid-clause. */
.hero h1 { max-width: 24ch; text-wrap: pretty; }
.hero h1 .accent { color: var(--mint-ink); display: block; }
.hero__lede { max-width: 46ch; font-size: var(--step-1); color: var(--ink-body); }
.hero .btn-row { margin-top: .375rem; }

/* Mascot breathes rarely and gently. */
@media (prefers-reduced-motion: no-preference) {
  .hero__mascot { animation: breathe 9s var(--ease-out) 1.6s infinite; }
}
@keyframes breathe {
  0%, 82%, 100% { transform: translateY(0) rotate(0deg); }
  87%           { transform: translateY(-9px) rotate(-1.2deg); }
  93%           { transform: translateY(0) rotate(.4deg); }
  96%           { transform: translateY(-3px) rotate(0deg); }
}

/* ------------------------------------------------------------- sections -- */
.section__head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: .875rem; color: var(--ink-body); font-size: var(--step-1); }

/* ---------------------------------------------------------------- cards -- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.375rem, 2.6vw, 1.75rem);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out),
              border-color .22s var(--ease-out);
}
:root[data-theme='dark'] .card { border-color: var(--card-border); }

.grid-features {
  display: grid;
  gap: clamp(.875rem, 1.6vw, 1.125rem);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--mint-soft);
  color: var(--mint-ink);
  margin-bottom: 1.125rem;
}
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.125rem; letter-spacing: -.015em; margin-bottom: .5rem; }
.feature p { font-size: .9375rem; color: var(--ink-body); }

/* ----------------------------------------------------- how it works -------
   The ring is the app's own expiry countdown dial, reused here so each step
   reads as progress through the flow rather than as decoration.            */
.steps {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.25rem);
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step { position: relative; }
.step__dial { position: relative; width: 56px; height: 56px; margin-bottom: 1.125rem; }
.step__ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.step__track { fill: none; stroke: var(--hairline); stroke-width: 3; }
.step__arc {
  fill: none;
  stroke: var(--mint);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset .95s var(--ease-out) var(--d, 0ms);
}
.step__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
}
.steps .step:nth-child(1) .step__arc { --d: 140ms; }
.steps .step:nth-child(2) .step__arc { --d: 300ms; }
.steps .step:nth-child(3) .step__arc { --d: 460ms; }
.steps.is-in .step:nth-child(1) .step__arc { stroke-dashoffset: 88; }
.steps.is-in .step:nth-child(2) .step__arc { stroke-dashoffset: 44; }
.steps.is-in .step:nth-child(3) .step__arc { stroke-dashoffset: 0; }
.step h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.step p { font-size: .9375rem; color: var(--ink-body); max-width: 34ch; }

/* --------------------------------------------------------- screenshots -- */
.screens {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.screen figcaption { margin-top: 1.125rem; }
.screen h3 { font-size: 1rem; letter-spacing: -.012em; margin-bottom: .3125rem; text-wrap: pretty; }
.screen p { font-size: .875rem; color: var(--ink-muted); }

.device {
  position: relative;
  max-width: 260px;
  margin-inline: auto;
  padding: 6px;
  border-radius: 38px;
  background: var(--bezel);
  box-shadow: var(--shadow-md);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.screen:hover .device { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.device img { width: 100%; border-radius: 32px; background: var(--bg); }

.only-dark { display: none; }
:root[data-theme='dark'] .only-light { display: none; }
:root[data-theme='dark'] .only-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .only-light { display: none; }
  :root:not([data-theme]) .only-dark { display: block; }
}

@media (max-width: 900px) {
  .screens {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(212px, 62vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .screen { scroll-snap-align: center; }
}

/* ------------------------------------------------------------------ cta -- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--card-border);
  padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.125rem;
}
/* The app's own celebratory gradient: white → deep mint, low opacity. */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #FFFFFF 0%, #5CC49A 100%);
  opacity: .22;
}
:root[data-theme='dark'] .cta::before { opacity: .12; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .cta::before { opacity: .12; }
}
.cta__mascot { width: 84px; }
.cta h2 { max-width: 18ch; }
.cta p { max-width: 44ch; color: var(--ink-body); font-size: var(--step-1); }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 560px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); }
  .footer__brand { grid-column: auto; }
}
.footer__brand img.wordmark { height: 26px; }
.footer__tag { margin-top: .75rem; font-size: .9375rem; color: var(--ink-muted); max-width: 30ch; }
.footer__mail { margin-top: .875rem; font-size: .9375rem; display: inline-block; }
.footer h2 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .875rem;
}
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: .9375rem;
  transition: color .18s var(--ease-out);
}
.footer a:hover { color: var(--mint-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------ page head -- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-head h1 { font-size: var(--step-3); }
.page-head .meta {
  margin-top: .875rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- legal -- */
.legal__grid { display: grid; gap: 3rem; align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 1024px) {
  .legal__grid { grid-template-columns: 216px minmax(0, 1fr); gap: 4rem; }
}

.toc { display: none; }
@media (min-width: 1024px) {
  .toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    max-height: calc(100vh - var(--header-h) - 56px);
    overflow-y: auto;
    padding-right: .5rem;
  }
}
.toc h2 {
  font-size: .75rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: .875rem;
}
.toc ol { list-style: none; display: grid; gap: .125rem; counter-reset: toc; }
.toc a {
  display: block;
  padding: .375rem .625rem;
  border-left: 2px solid var(--hairline);
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.toc a:hover { color: var(--ink); border-left-color: var(--mint); }
.toc a[aria-current='true'] { color: var(--mint-ink); border-left-color: var(--mint); font-weight: 600; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.prose h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-top: 2rem;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.prose h2 + p, .prose h3 + p { margin-top: .75em; }
.prose p { line-height: 1.75; }
.prose .sec-num {
  display: block;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--mint-ink);
  margin-bottom: .45em;
}
.prose .clauses { list-style: none; display: grid; gap: .625rem; }
.prose .clauses li { line-height: 1.7; }
.prose .caps { letter-spacing: .005em; }

.callout {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--mint);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.375rem;
}
.callout p + p { margin-top: .75em; }

.backtop { margin-top: 3rem; font-size: .875rem; }

/* ------------------------------------------------------------------ faq -- */
.faq { display: grid; gap: .75rem; max-width: 68ch; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.0625rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .18s var(--ease-out);
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::marker { content: ''; }
.faq__item > summary:hover { color: var(--mint-ink); }
.faq__plus { width: 16px; height: 16px; flex: none; color: var(--mint-ink); transition: transform .24s var(--ease-out); }
.faq__item[open] .faq__plus { transform: rotate(135deg); }
.faq__body { padding: 0 1.25rem 1.25rem; font-size: .9375rem; color: var(--ink-body); }
.faq__body > * + * { margin-top: .75em; }

/* ----------------------------------------------------------- steps list -- */
.howto { display: grid; gap: 1rem; max-width: 60ch; list-style: none; counter-reset: howto; }
.howto li {
  position: relative;
  padding-left: 3.125rem;
  min-height: 2.25rem;
  display: grid;
  align-content: center;
}
.howto li::before {
  counter-increment: howto;
  content: counter(howto);
  position: absolute;
  left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--mint-soft);
  color: var(--mint-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.kbd-path {
  font-weight: 650;
  color: var(--ink);
  background: var(--mint-soft);
  border-radius: 8px;
  padding: .1875rem .4375rem;
}

/* --------------------------------------------------------------- motion -- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out) var(--d, 0ms), transform .5s var(--ease-out) var(--d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* The hero lands with a small spring; nothing else does. */
html.js .hero__mascot.reveal {
  transform: translateY(22px) scale(.94);
  transition: opacity .55s var(--ease-out), transform .65s var(--ease-spring);
}
html.js .hero__mascot.reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .steps .step:nth-child(1) .step__arc { stroke-dashoffset: 88; }
  .steps .step:nth-child(2) .step__arc { stroke-dashoffset: 44; }
  .steps .step:nth-child(3) .step__arc { stroke-dashoffset: 0; }
}

/* No JavaScript: draw the arcs at rest rather than leaving bare circles. */
html:not(.js) .steps .step:nth-child(1) .step__arc { stroke-dashoffset: 88; }
html:not(.js) .steps .step:nth-child(2) .step__arc { stroke-dashoffset: 44; }
html:not(.js) .steps .step:nth-child(3) .step__arc { stroke-dashoffset: 0; }

/* ---------------------------------------------------------------- print -- */
@media print {
  .site-header, .site-footer, .toc, .backtop, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: underline; }
}
