/* Wuflo website. Tokens: brand/design-tokens.json (Direction A, Warm & Natural). No external requests. */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f7f4ec;
  --surface: #ffffff;
  --text: #1c2620;
  --muted: #566259;
  --primary: #1f4d3a;
  --on-primary: #ffffff;
  --sage: #dce6dd;
  --on-sage: #1f4d3a;
  --hairline: #e4decb;
  --focus: #1f4d3a;
  --panel-sage: #dce6dd;
  --panel-forest: #1f4d3a;
  --on-forest: #f1efe7;
  --on-forest-muted: #bfd3c6;
  --panel-gold: #f1e2bc;
  --footer-bg: #1f4d3a;
  /* illustration palette (same as src/components/hills.tsx) */
  --sky: #dce6dd;
  --h1: #bbd0c1;
  --h2: #8fb29c;
  --h3: #1f4d3a;
  --leash: #f7f4ec;
  --dot: #e0a23a;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1713;
    --surface: #18221d;
    --text: #f1efe7;
    --muted: #a9b5ac;
    --primary: #8ccba6;
    --on-primary: #0e1b14;
    --sage: #243a2e;
    --on-sage: #bfe0cc;
    --hairline: #2c3b33;
    --focus: #8ccba6;
    --panel-sage: #1c2c23;
    --panel-forest: #1b3a2c;
    --on-forest: #f1efe7;
    --on-forest-muted: #a9c4b4;
    --panel-gold: #2d2a1c;
    --footer-bg: #0a100d;
    --sky: #1b2b22;
    --h1: #233a2d;
    --h2: #2e5642;
    --h3: #192a21;
    --leash: #f1efe7;
    --dot: #ebb75a;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 12px;
  z-index: 20;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.75rem, 6.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
}

.lede {
  max-width: 38ch;
  margin-top: 22px;
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--primary);
  text-decoration: underline;
}

.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--on-sage);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- the "coming soon" App Store state (no fake button) ---------- */
.soon {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 14px 22px;
  border: 1.5px solid var(--primary);
  border-radius: 16px;
  color: var(--primary);
}

.soon-main {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.soon-sub {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.on-dark .soon {
  border-color: var(--on-forest);
  color: var(--on-forest);
}

.on-dark .soon-sub {
  color: var(--on-forest-muted);
}

.badge-link img {
  height: 52px;
  width: auto;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 40px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .soon,
.hero-copy .badge-link {
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.stage {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 40px;
  overflow: hidden;
  background: var(--sky);
}

.stage-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage .phone {
  position: absolute;
}

.stage .phone-front {
  --w: 280px;
  right: 8%;
  bottom: -3%;
}

.stage .phone-back {
  --w: 214px;
  left: 5%;
  bottom: -9%;
  transform: rotate(-5deg);
}

/* ---------- sections ---------- */
.section {
  padding-top: 120px;
}

.section-head {
  max-width: 640px;
}

.section-head p {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
}

.step-num {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
}

.step h3 {
  margin-top: -4px;
}

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

.step .mini {
  margin-top: auto;
}

.mini {
  padding: 16px;
  background: var(--sage);
  border-radius: 18px;
  color: var(--on-sage);
  font-size: 14px;
  line-height: 1.4;
}

.mini strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.mini .bar {
  margin: 10px 0 6px;
}

.mini-count {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-count u {
  text-decoration: none;
  font-weight: 600;
}

.mini-btn {
  padding: 10px;
  text-align: center;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.mini-bars {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.mini-bars i {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: rgb(31 77 58 / 0.18);
}

.mini-bars i.on {
  background: var(--primary);
}

.bar {
  height: 8px;
  border-radius: 4px;
  background: rgb(31 77 58 / 0.18);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
}

.w-25 {
  width: 25%;
}

.w-60 {
  width: 60%;
}

/* feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature.rev .media {
  order: 2;
}

.media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  min-height: 600px;
  padding-top: 56px;
  border-radius: 40px;
  overflow: hidden;
  background: var(--panel-sage);
}

.media-forest {
  background: var(--panel-forest);
}

.media-gold {
  background: var(--panel-gold);
  align-items: center;
  padding: 56px 0;
}

.media .phone {
  --w: 270px;
  margin-bottom: -24px;
}

.media .phone + .phone {
  position: relative;
  z-index: 1;
  margin-left: -30px;
  margin-bottom: -90px;
  --w: 208px;
}

.media-forest .phone:first-child {
  --w: 236px;
}

.media .proof {
  --pw: 280px;
}

.copy h2 {
  max-width: 14ch;
}

.copy > p {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.ticks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.ticks li {
  position: relative;
  padding-left: 36px;
  max-width: 50ch;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 15px;
  height: 8px;
  border-left: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(-45deg);
}

.ticks strong {
  display: block;
  font-size: 1.05rem;
}

.ticks span {
  color: var(--muted);
}

.note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Walk Without Pulling */
.path {
  position: relative;
  padding: 64px 48px 56px;
  border-radius: 40px;
  background: var(--panel-forest);
  color: var(--on-forest);
  overflow: hidden;
}

.path h2,
.path h3 {
  color: var(--on-forest);
}

.path .lede {
  color: var(--on-forest-muted);
}

.path-line {
  width: 100%;
  height: 80px;
  margin: 32px 0 8px;
}

.path-line path {
  fill: none;
  stroke: var(--on-forest);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  vector-effect: non-scaling-stroke;
}

.path-line circle {
  fill: var(--dot);
}

.path-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-card {
  padding: 24px 22px;
  border: 1px solid rgb(241 239 231 / 0.18);
  border-radius: 24px;
  background: rgb(241 239 231 / 0.06);
}

.path-card .n {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}

.path-card .m {
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-forest-muted);
}

.path-card p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-forest-muted);
}

/* resource cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgb(31 77 58 / 0.5);
}

.card-art {
  aspect-ratio: 393 / 240;
  overflow: hidden;
}

.card-art svg {
  width: 100%;
  height: 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 24px 26px 26px;
}

.tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.card-body h3 {
  font-size: 1.4rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.card-body .meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.featured {
  grid-column: 1 / -1;
}

.featured .card-link {
  flex-direction: row;
}

.featured .card-art {
  flex: 1.1;
  aspect-ratio: auto;
  min-height: 300px;
}

.featured .card-body {
  flex: 1;
  justify-content: center;
  padding: 40px;
}

.featured h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.section-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  align-items: start;
}

.faq-grid .section-head p a {
  font-weight: 600;
}

.faq {
  margin: 0;
}

.faq details {
  border-top: 1px solid var(--hairline);
}

.faq details:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq .answer {
  padding: 0 48px 24px 0;
  color: var(--muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* final CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 0;
  border-radius: 40px;
  background: var(--panel-forest);
  color: var(--on-forest);
  text-align: center;
  --sky: #1f4d3a;
  --h1: #2a5f49;
  --h2: #3c7a5e;
  --h3: #16382b;
  --leash: #f7f4ec;
  --dot: #e0a23a;
}

.cta h2 {
  max-width: 16ch;
  margin: 0 auto;
  color: var(--on-forest);
}

.cta p {
  max-width: 44ch;
  margin: 20px auto 32px;
  color: var(--on-forest-muted);
  font-size: 1.15rem;
}

.cta a {
  color: var(--on-forest);
}

.cta .strip {
  margin: 8px -24px 0;
}

.cta .strip svg {
  width: 100%;
  height: auto;
}

.cta .strip .sky {
  fill: transparent;
}

.cta-body {
  position: relative;
  z-index: 1;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 120px;
  padding: 72px 0 40px;
  background: var(--footer-bg);
  color: var(--on-forest);
  font-size: 15px;
}

.site-footer a {
  color: var(--on-forest);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand img {
  height: 44px;
  width: auto;
}

.foot-brand p {
  max-width: 30ch;
  margin: 18px 0 0;
  color: var(--on-forest-muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--on-forest);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-block;
  padding: 6px 0;
}

.foot-fine {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgb(241 239 231 / 0.16);
  color: var(--on-forest-muted);
  font-size: 13px;
  line-height: 1.6;
}

.foot-fine p {
  max-width: 78ch;
  margin: 0 0 8px;
}

/* ---------- inner pages ---------- */
.page {
  padding-top: 56px;
  max-width: 760px;
}

.page h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.page .lede {
  max-width: 44ch;
}

.page h2 {
  margin-top: 48px;
  font-size: 1.6rem;
}

.page h2 + p {
  margin-top: 8px;
}

.page p,
.page li {
  max-width: 62ch;
}

.card {
  margin-top: 40px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}

.card h3 {
  font-family: var(--sans);
  font-size: 17px;
  margin-bottom: 4px;
}

.card p:last-child {
  margin-bottom: 0;
}

.center {
  max-width: 560px;
  margin: 0 auto;
  padding-top: 72px;
  text-align: center;
}

.center h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
}

.center .badge {
  display: block;
  width: 88px;
  margin: 0 auto 24px;
}

.center .lede {
  margin-left: auto;
  margin-right: auto;
}

[hidden] {
  display: none !important;
}

/* ---------- resources ---------- */
.crumbs {
  padding-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
}

.crumbs a {
  color: var(--muted);
}

.index-head {
  padding-top: 32px;
  padding-bottom: 40px;
}

.index-head > * {
  max-width: 760px;
}

.index-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.article-head {
  padding-top: 24px;
}

.article-head > h1,
.article-head > .lede,
.article-head > .byline {
  max-width: 820px;
}

.article-head h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
}

.article-head .lede {
  max-width: 52ch;
}

.byline {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.article-art {
  margin-top: 40px;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 393 / 115;
}

.article-art svg {
  width: 100%;
  height: 100%;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
  margin-top: 48px;
}

.toc {
  margin-bottom: 40px;
  padding: 24px 28px;
  background: var(--sage);
  color: var(--on-sage);
  border-radius: 24px;
}

.toc h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--on-sage);
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 40px;
  font-size: 15px;
  line-height: 1.5;
}

.toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.toc a {
  color: var(--on-sage);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 68ch;
  font-size: 1.15rem;
  line-height: 1.7;
}

.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  scroll-margin-top: 24px;
}

.prose h3 {
  margin: 36px 0 12px;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 8px;
}

.callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--sage);
  color: var(--on-sage);
  border-radius: 20px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout a {
  color: var(--on-sage);
}

.sources {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 1rem;
}

.sources h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.sources ul {
  margin: 0;
  padding-left: 1.3em;
}

.disclaimer {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

.aside {
  position: sticky;
  top: 24px;
}

.promo {
  padding: 28px;
  background: var(--panel-forest);
  color: var(--on-forest);
  border-radius: 28px;
}

.promo h2 {
  font-size: 1.6rem;
  color: var(--on-forest);
}

.promo p {
  margin: 12px 0 20px;
  color: var(--on-forest-muted);
  font-size: 1rem;
}

.promo a {
  color: var(--on-forest);
}

.related {
  padding-top: 88px;
}

.related h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
}

/* ---------- art palettes ---------- */
.art-forest {
  --sky: #1f4d3a;
  --h1: #2a5f49;
  --h2: #3c7a5e;
  --h3: #16382b;
  --leash: #f7f4ec;
  --dot: #e0a23a;
}

.art-gold {
  --sky: #f1e2bc;
  --h1: #e6cd92;
  --h2: #d8b46a;
  --h3: #1f4d3a;
  --leash: #f7f4ec;
  --dot: #1f4d3a;
}

.art-svg .sky {
  fill: var(--sky);
}
.art-svg .h1,
.art-svg .stage-h1 {
  fill: var(--h1);
}
.art-svg .h2 {
  fill: var(--h2);
}
.art-svg .h3 {
  fill: var(--h3);
}
.art-svg .leash {
  fill: none;
  stroke: var(--leash);
  stroke-linecap: round;
}
.art-svg .faint {
  opacity: 0.6;
}
.art-svg .ring-0 {
  opacity: 0.9;
}
.art-svg .ring-1 {
  opacity: 0.6;
}
.art-svg .ring-2 {
  opacity: 0.35;
}
.art-svg .dot {
  fill: var(--dot);
}

/* ---------- phone mockups: HTML recreations of the app's screens (always the light app theme) ---------- */
.phone,
.proof {
  --a-bg: #f7f4ec;
  --a-surface: #ffffff;
  --a-text: #1c2620;
  --a-muted: #566259;
  --a-primary: #1f4d3a;
  --a-sage: #dce6dd;
  --a-hair: #e4decb;
  --a-border: #8a8470;
  --sky: #dce6dd;
  --h1: #bbd0c1;
  --h2: #8fb29c;
  --h3: #1f4d3a;
  --leash: #f7f4ec;
  --dot: #e0a23a;
  color: var(--a-text);
}

.phone {
  --w: 300px;
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 9 / 17.2;
  font-size: calc(var(--w) / 20);
}

.phone-body {
  position: relative;
  height: 100%;
  padding: 0.5em;
  border-radius: 2.7em;
  background: #0f1713;
  box-shadow:
    0 2.2em 4em -1.4em rgb(15 23 19 / 0.5),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.island {
  position: absolute;
  top: 1em;
  left: 50%;
  z-index: 2;
  width: 5.2em;
  height: 1.5em;
  transform: translateX(-50%);
  border-radius: 1em;
  background: #000;
}

.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 2.2em;
  background: var(--a-bg);
  font-family: var(--sans);
  line-height: 1.3;
}

.sb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.7em 0;
  font-size: 0.78em;
  font-weight: 600;
}

.sb-r {
  display: flex;
  gap: 0.35em;
  align-items: center;
}

.sb-sig {
  width: 1.1em;
  height: 0.65em;
  background: linear-gradient(
    90deg,
    currentColor 20%,
    transparent 20% 30%,
    currentColor 30% 50%,
    transparent 50% 60%,
    currentColor 60% 80%,
    transparent 80% 90%,
    currentColor 90%
  );
  clip-path: polygon(0 100%, 0 70%, 30% 70%, 30% 45%, 60% 45%, 60% 20%, 100% 20%, 100% 100%);
}

.sb-bat {
  width: 1.6em;
  height: 0.7em;
  border: 1px solid currentColor;
  border-radius: 0.25em;
  background: linear-gradient(90deg, currentColor 75%, transparent 75%);
  background-clip: content-box;
  padding: 1px;
}

.app-pad {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75em;
  padding: 0.9em 1.1em 0;
  overflow: hidden;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dots {
  display: flex;
  gap: 0.4em;
}

.dots i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--a-hair);
}

.dots i.on {
  background: var(--a-primary);
}

.dots i.cur {
  background: var(--a-bg);
  box-shadow: 0 0 0 0.16em var(--a-primary);
}

.cap {
  font-size: 0.68em;
  font-weight: 500;
  color: var(--a-muted);
}

.app-title {
  font-family: var(--serif);
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.12;
}

.app-title.t2 {
  font-size: 1.15em;
}

.app-nav {
  font-size: 1.75em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-nav.small {
  text-align: center;
  font-size: 0.85em;
  font-weight: 600;
}

.a-card {
  padding: 0.85em 0.95em;
  border: 1px solid var(--a-hair);
  border-radius: 1em;
  background: var(--a-surface);
  font-size: 0.74em;
  line-height: 1.42;
}

.a-card p {
  margin: 0 0 0.55em;
}

.a-card p:last-child {
  margin-bottom: 0;
}

.a-goal {
  background: var(--a-sage);
  border-color: transparent;
}

.a-goal strong {
  display: block;
  margin-bottom: 0.25em;
  font-size: 1.05em;
}

.a-link {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--a-primary);
}

.a-foot {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0.8em 1.1em 1.4em;
  border-top: 1px solid var(--a-hair);
  background: var(--a-bg);
}

.a-count {
  display: flex;
  justify-content: space-between;
  font-size: 0.68em;
  color: var(--a-muted);
}

.a-count u {
  text-decoration: none;
  font-weight: 600;
  color: var(--a-primary);
}

.a-btn {
  padding: 0.85em 0.7em;
  border-radius: 0.95em;
  background: var(--a-primary);
  color: #fff;
  font-size: 0.78em;
  font-weight: 600;
  text-align: center;
}

.a-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68em;
  font-weight: 600;
  color: var(--a-primary);
}

.a-path {
  padding: 0;
  overflow: hidden;
  border-color: transparent;
  background: var(--a-sage);
}

.a-banner {
  height: 4.6em;
  overflow: hidden;
}

.a-banner svg {
  width: 100%;
  height: 100%;
}

.a-path-body {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 0.75em 0.9em 0.9em;
}

.a-path-body .sub {
  font-size: 0.9em;
  color: var(--a-muted);
}

.a-path .bar {
  background: rgb(31 77 58 / 0.16);
}

.a-path .bar i {
  background: var(--a-primary);
}

.a-list {
  border: 1px solid var(--a-hair);
  border-radius: 1em;
  background: var(--a-surface);
  font-size: 0.72em;
}

.a-li {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.7em 0.9em;
}

.a-li + .a-li {
  border-top: 1px solid var(--a-hair);
}

.a-li-t {
  font-weight: 600;
}

.a-li-m {
  color: var(--a-muted);
  white-space: nowrap;
}

.a-li-m b {
  margin-left: 0.3em;
  color: var(--a-primary);
}

.a-rescue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7em 0.9em;
  border: 1px solid var(--a-border);
  border-radius: 1em;
  background: var(--a-surface);
}

.a-rescue strong {
  display: block;
  font-size: 0.8em;
}

.a-rescue span {
  font-size: 0.7em;
  color: var(--a-muted);
}

.a-rescue em {
  font-style: normal;
  color: var(--a-muted);
}

.a-opts {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.a-opt {
  padding: 0.7em 0.85em;
  border-radius: 0.95em;
  background: var(--a-sage);
  color: var(--a-primary);
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.3;
}

.a-signs {
  background: var(--a-surface);
}

/* Progress Proof card: 360 x 640 design units, scaled with container units like the app does */
.proof {
  --pw: 280px;
  container-type: inline-size;
  position: relative;
  flex: none;
  width: var(--pw);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: var(--a-bg);
  box-shadow: 0 30px 60px -28px rgb(15 23 19 / 0.55);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}

.proof > * {
  --u: calc(100cqw / 360);
}

.proof-top {
  position: relative;
  height: calc(214 * var(--u));
  border-radius: 0 0 calc(36 * var(--u)) calc(36 * var(--u));
  overflow: hidden;
}

.proof-top > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.proof-logo {
  position: absolute;
  top: calc(30 * var(--u));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.proof-logo img {
  height: calc(48 * var(--u));
  width: auto;
}

.proof-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: calc(20 * var(--u)) calc(24 * var(--u)) calc(22 * var(--u));
}

.p-cap {
  font-size: calc(14 * var(--u));
  line-height: calc(18 * var(--u));
  font-weight: 500;
  color: var(--a-muted);
}

.p-name {
  font-family: var(--serif);
  font-size: calc(40 * var(--u));
  line-height: calc(46 * var(--u));
  font-weight: 600;
}

.p-path {
  font-size: calc(16 * var(--u));
  line-height: calc(22 * var(--u));
  color: var(--a-muted);
}

.p-big {
  display: flex;
  align-items: baseline;
  gap: calc(8 * var(--u));
  margin-top: calc(16 * var(--u));
  font-size: calc(16 * var(--u));
}

.p-big span {
  font-family: var(--serif);
  font-size: calc(52 * var(--u));
  line-height: calc(58 * var(--u));
  font-weight: 600;
  color: var(--a-primary);
}

.p-bars {
  display: flex;
  gap: calc(6 * var(--u));
  margin-top: calc(8 * var(--u));
}

.p-bars i {
  flex: 1;
  height: calc(8 * var(--u));
  border-radius: calc(4 * var(--u));
  background: #efeadf;
}

.p-bars i.on {
  background: var(--a-primary);
}

.p-rows {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  margin-top: calc(16 * var(--u));
}

.p-row {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
}

.p-tick {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  border-radius: 50%;
  background: #efeadf;
  color: #fff;
  font-size: calc(13 * var(--u));
  font-weight: 700;
}

.p-tick.done {
  background: var(--a-primary);
}

.p-t {
  flex: 1;
  font-size: calc(16 * var(--u));
  font-weight: 600;
  line-height: calc(22 * var(--u));
}

.p-d {
  font-size: calc(13 * var(--u));
  color: var(--a-muted);
}

.p-spacer {
  flex: 1;
}

.p-foot {
  font-size: calc(15 * var(--u));
  font-weight: 600;
}

.p-small {
  margin-top: calc(2 * var(--u));
  font-size: calc(12 * var(--u));
  color: var(--a-muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid,
  .feature {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature.rev .media {
    order: 0;
  }
  .stage {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }
  .steps,
  .cards,
  .cards.two,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    gap: 8px;
  }
  .path-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .aside {
    position: static;
  }
  .featured .card-link {
    flex-direction: column;
  }
  .featured .card-art {
    min-height: 0;
    aspect-ratio: 393 / 200;
  }
  .featured .card-body {
    padding: 28px;
  }
  .site-nav .nav-extra {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 20px;
  }
  .logo img {
    height: 38px;
  }
  .site-nav {
    gap: 18px;
  }
  .pill {
    display: none;
  }
  .hero {
    padding-top: 24px;
  }
  .section {
    padding-top: 80px;
  }
  .stage {
    aspect-ratio: 1 / 1.3;
    border-radius: 28px;
  }
  .stage .phone-front {
    --w: 224px;
    right: 50%;
    transform: translateX(50%);
    bottom: -4%;
  }
  .stage .phone-back {
    display: none;
  }
  .media {
    min-height: 480px;
    border-radius: 28px;
    padding-top: 40px;
  }
  .media .phone {
    --w: 236px;
    margin-bottom: -24px;
  }
  .media .phone + .phone {
    display: none;
  }
  .media-gold {
    padding: 40px 0;
  }
  .media .proof {
    --pw: 248px;
  }
  .path {
    padding: 40px 22px;
    border-radius: 28px;
  }
  .path-cards {
    grid-template-columns: 1fr;
  }
  .cta {
    padding: 64px 20px 0;
    border-radius: 28px;
  }
  .cta .strip {
    margin: 8px -20px 0;
  }
  .faq summary {
    font-size: 1.15rem;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer {
    margin-top: 80px;
  }
  .prose {
    font-size: 1.08rem;
  }
  .article-art {
    border-radius: 22px;
    aspect-ratio: 393 / 170;
  }
  .toc ol {
    columns: 1;
  }
}
