/* ==========================================================================
   Task Lock — marketing + policy site
   Design language mirrors the app: Red Hat Display headings, Manrope body,
   sage-green marketing surfaces, #171615 product surfaces, #77D489 accent.
   ========================================================================== */

/* --------------------------------------------------------------- fonts -- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/assets/fonts/red-hat-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/assets/fonts/red-hat-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

  --paper: #f4f2ea;
  --paper-raised: #ffffff;
  --ink: #14140f;
  --ink-soft: #55564d;
  --ink-faint: #7c7d73;

  --sage: #7e9c73;
  --sage-deep: #5f7d56;
  --sage-wash: #e4eade;

  --night: #171615;
  --night-2: #1e1e1d;
  --night-3: #262524;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-text: #f4f4f6;
  --night-muted: #a9aaa4;

  --green: #77d489;
  --green-bright: #7cc86b;
  --amber: #e4c654;
  --clay: #f1856f;

  --line: rgba(20, 20, 15, 0.12);
  --line-strong: rgba(20, 20, 15, 0.85);

  --shadow-card: 0 22px 60px -34px rgba(20, 22, 16, 0.5);
  --shadow-hard: 5px 6px 0 var(--line-strong);
  --shadow-phone: 0 60px 120px -50px rgba(12, 18, 10, 0.6), 0 20px 40px -28px rgba(12, 18, 10, 0.45);

  --shell: 1160px;
  --gutter: 24px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 0.85, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: 'Red Hat Display', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

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

::selection {
  background: var(--green-bright);
  color: #10210c;
}

:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ----------------------------------------------------------------- nav -- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-nav[data-stuck='true'] {
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.brand-icon,
.mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  box-shadow: 0 6px 18px -8px rgba(20, 22, 16, 0.55);
}
.mark {
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--green);
  font-family: 'Red Hat Display', sans-serif;
  font-size: 19px;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

/* ------------------------------------------------------------- buttons -- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0);
}
.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 34px -20px rgba(20, 22, 16, 0.9);
}
.button.primary:hover {
  box-shadow: 0 22px 40px -20px rgba(20, 22, 16, 0.95);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 20, 15, 0.28);
}
.button.secondary:hover {
  border-color: var(--ink);
  background: rgba(20, 20, 15, 0.04);
}
.button.on-night {
  background: #fff;
  color: var(--night);
}
.button.ghost-night {
  color: var(--night-text);
  border-color: rgba(255, 255, 255, 0.3);
}
.button.ghost-night:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.button.small {
  padding: 11px 20px;
  font-size: 0.92rem;
}
.text-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(20, 20, 15, 0.2);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover {
  border-bottom-color: var(--ink);
}

/* App Store badge */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 12px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
  box-shadow: 0 18px 38px -22px rgba(20, 22, 16, 0.95);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -22px rgba(20, 22, 16, 1);
}
.appstore svg {
  width: 26px;
  height: 30px;
  fill: currentColor;
  flex: none;
}
.appstore span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.82;
}
.appstore strong {
  display: block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.appstore.on-night {
  background: #fff;
  color: var(--night);
}

/* ------------------------------------------------------------ sections -- */
.band {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}
.band-paper {
  background: var(--paper);
}
.band-wash {
  background: var(--sage-wash);
}
.band-night {
  background: var(--night);
  color: var(--night-text);
}
.band-night h2,
.band-night h3 {
  color: #fff;
}
.band-sage {
  background: var(--sage);
  color: #fff;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 14px;
}
.band-night .eyebrow {
  color: var(--green);
}
.band-sage .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
}
.section-head p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.band-night .section-head p {
  color: var(--night-muted);
}
.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  background: linear-gradient(178deg, #8fac84 0%, var(--sage) 52%, #71905f 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(244, 242, 234, 0.16));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5rem);
  line-height: 0.97;
  text-transform: lowercase;
  color: #fff;
}
.hero .lead {
  margin-top: 24px;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.93);
  font-weight: 500;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  flex: none;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 124px;
}

/* floating proof pills, echoing the App Store artwork */
.float-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
  box-shadow: var(--shadow-hard);
  animation: bob 6s ease-in-out infinite;
}
.float-pill svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.float-pill.p1 {
  top: 6%;
  left: -4%;
  animation-delay: -0.4s;
}
.float-pill.p2 {
  top: 26%;
  right: -5%;
  animation-delay: -2.1s;
}
.float-pill.p3 {
  bottom: 16%;
  left: -8%;
  animation-delay: -3.6s;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-11px) rotate(1.2deg);
  }
}

.hero-mascot {
  position: absolute;
  z-index: 1;
  width: 268px;
  top: 0;
  left: 50%;
  translate: -50% 0;
  filter: drop-shadow(0 24px 40px rgba(20, 30, 15, 0.3));
  animation: bob 9s ease-in-out infinite;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-note {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 12px;
    padding-top: 62px;
  }
  .float-pill.p1 {
    left: 0;
    top: 12%;
  }
  .float-pill.p3 {
    left: -2%;
  }
  .float-pill.p2 {
    right: 0;
    top: 30%;
  }
  .hero-mascot {
    width: 170px;
  }
}
@media (max-width: 560px) {
  .float-pill {
    font-size: 0.8rem;
    padding: 9px 14px;
    border-width: 2px;
  }
  .hero-mascot {
    display: none;
  }
  .hero-visual {
    padding-top: 8px;
  }
  .hero-note {
    max-width: 32ch;
    margin-inline: auto;
    text-align: left;
  }
  .phone.large {
    width: min(320px, 76vw);
  }
}

/* --------------------------------------------------------- phone frame -- */
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 393 / 852;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #4a4a48, #131312 34%, #353533 70%, #0f0f0e);
  box-shadow: var(--shadow-phone);
  z-index: 2;
}
.phone::before {
  /* dynamic island */
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 25px;
  background: #080807;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--night);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-status {
  position: absolute;
  inset: 0 0 auto 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.phone-status svg {
  height: 12px;
  width: auto;
  fill: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.phone.large {
  width: min(340px, 82vw);
}

/* --------------------------------------------------------- proof strip -- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--night-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--night);
  padding: 30px 26px;
}
.metric dt {
  font-size: 0.86rem;
  color: var(--night-muted);
  margin-bottom: 10px;
}
.metric dd {
  margin: 0;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  color: #fff;
}
.metric dd em {
  font-style: normal;
  color: var(--green);
}

/* ------------------------------------------------------------- steps  -- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 70px -38px rgba(20, 22, 16, 0.55);
}
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--night);
  color: var(--green);
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.step p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ------------------------------------------------------ feature splits -- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split + .split {
  margin-top: clamp(72px, 9vw, 128px);
}
.split.reverse .split-visual {
  order: -1;
}
.split-visual {
  display: grid;
  place-items: center;
}
.split h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.split p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}
.band-night .split p {
  color: var(--night-muted);
}
.checks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.checks li {
  position: relative;
  padding-left: 34px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.band-night .checks li {
  color: var(--night-muted);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-visual {
    order: 0;
  }
}

/* -------------------------------------------------------- habit chips  -- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  color: var(--night-text);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}
.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.chip.amber .dot {
  background: var(--amber);
}
.chip.clay .dot {
  background: var(--clay);
}
.chip.blue .dot {
  background: #83adff;
}
.chip.purple .dot {
  background: #b8a0ff;
}

/* --------------------------------------------------------- world strip -- */
.worlds {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(214px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.worlds::-webkit-scrollbar {
  height: 8px;
}
.worlds::-webkit-scrollbar-thumb {
  background: var(--night-3);
  border-radius: 99px;
}
.world {
  position: relative;
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1170 / 2532;
  background: var(--night-2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}
.world img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.world:hover img {
  transform: scale(1.05);
}
.world figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* --------------------------------------------------------- privacy row -- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.privacy-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.privacy-card h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}
.privacy-card p {
  color: var(--night-muted);
  font-size: 0.98rem;
}
.privacy-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(119, 212, 137, 0.14);
  margin-bottom: 18px;
}
.privacy-card .ico svg {
  width: 21px;
  height: 21px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

/* ----------------------------------------------------------------- faq -- */
.faq {
  max-width: 800px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 15px;
  height: 15px;
  translate: 0 -50%;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after {
  rotate: 135deg;
}
.faq details p {
  padding: 0 0 26px;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* -------------------------------------------------------- closing cta  -- */
.closing {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing h2 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  text-transform: lowercase;
  color: #fff;
}
.closing .lead {
  color: rgba(255, 255, 255, 0.9);
  margin: 22px auto 0;
  max-width: 46ch;
}
.closing-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.closing-mascot {
  width: 132px;
  margin: 0 auto 26px;
  animation: bob 8s ease-in-out infinite;
}

/* ------------------------------------------------------- legal + links -- */
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* -------------------------------------------------------------- footer -- */
.footer {
  background: var(--night);
  color: var(--night-muted);
  padding: 64px 0 44px;
  font-size: 0.94rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--night-line);
}
.footer .brand {
  color: #fff;
}
.footer-blurb {
  margin-top: 16px;
  max-width: 34ch;
}
.footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.footer-col a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: #fff;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}
@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================== policy / support document pages ========= */
body:not(.landing-page) .site-nav,
.nav {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.nav .nav-links {
  gap: 22px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 6vw, 76px) 0 clamp(60px, 8vw, 100px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.toc a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.toc a:hover {
  background: var(--sage-wash);
  color: var(--ink);
}
.document {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-card);
  max-width: 78ch;
}
.document-header {
  padding-bottom: 26px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.document-header h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  margin-bottom: 18px;
}
.document-header p + p {
  margin-top: 14px;
}
.document h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 44px 0 14px;
  scroll-margin-top: 100px;
}
.document h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}
.document p,
.document li {
  color: var(--ink-soft);
}
.document p + p {
  margin-top: 14px;
}
.document ul,
.document ol {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 9px;
}
.document a {
  color: var(--sage-deep);
  font-weight: 600;
}
.document table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.95rem;
}
.document th,
.document td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.document th {
  font-weight: 700;
  color: var(--ink);
}
.document blockquote,
.document .callout {
  margin: 22px 0 0;
  padding: 20px 22px;
  background: var(--sage-wash);
  border-radius: var(--radius);
  border: 1px solid rgba(95, 125, 86, 0.22);
  color: var(--ink);
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ------------------------------------------------- simple content pages -- */
.page-hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 52px);
  max-width: 46ch;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: clamp(60px, 8vw, 100px);
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.card h2 {
  font-size: 1.3rem;
}
.card p {
  color: var(--ink-soft);
  font-size: 1rem;
}
.card .text-link {
  margin-top: auto;
  font-size: 0.96rem;
}
.microcopy {
  margin-top: 18px;
  font-size: 0.94rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------- motion -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
