/* Benevolent site. One hero object (the card), quiet everything else.
   Stone studio for the product, pine (the app icon's colour) for actions and the try-it room. */
@font-face { font-family: "Lora"; src: url("/webfonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/webfonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/webfonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/webfonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/webfonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --stone: #d8d5cf;
  --stone-hi: #e5e2dc;
  --stone-lo: #c6c2bb;
  --paper: #ecebe7;
  --ink: #1c1d1f;
  --mist: #64625e;
  --line: rgba(28, 29, 31, .14);
  --pine: #1f4a37;
  --pine-hover: #173a2b;
  --pine-deep: #0f231a;
  --on-pine: #e3ebe5;
  --on-pine-mist: #a7b9ad;
  --gold: #c4a267;
  --graphite: #1e1f21;
  --on-graphite: #e8e5de;
  --serif: "Lora", Georgia, "Noto Serif", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.12; max-width: 18ch; }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg, video, canvas, iframe { display: block; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 1px solid transparent; font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: .94rem; }
.btn--block { width: 100%; }
.btn--pine { background: var(--pine); color: #f4f7f5; }
.btn--pine:hover { background: var(--pine-hover); }
.btn--ghost { border-color: rgba(28, 29, 31, .32); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--on-pine); color: var(--pine-deep); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(227, 235, 229, .4); color: var(--on-pine); background: transparent; }
.btn--ghost-light:hover { border-color: var(--on-pine); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); transition: background-color .3s, box-shadow .3s; }
.nav--solid { background: rgba(216, 213, 207, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav--dark { background: rgba(15, 35, 26, .82); color: var(--on-pine); box-shadow: 0 1px 0 rgba(227, 235, 229, .12); }
.nav--dark .btn--pine { background: var(--on-pine); color: var(--pine-deep); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.2rem/1 var(--serif); }
.mark svg { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: .95rem; opacity: .78; padding: 6px 0; }
.nav nav a:hover, .nav nav a[aria-current] { opacity: 1; }
.nav > .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav nav { display: none; } .nav > .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 36%, var(--stone-hi) 0%, var(--stone) 48%, var(--stone-lo) 100%); }
.giant { position: absolute; left: 50%; top: 44%; z-index: 0; transform: translate(-50%, -50%); margin: 0;
  font: 500 clamp(5.5rem, 21vw, 22rem)/.9 var(--serif); letter-spacing: -.045em; white-space: nowrap;
  color: #cbc7c0; text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .05); user-select: none; }
#card-gl { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.card-fallback { display: none; }
.hero.no-gl .card-fallback { display: flex; }
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px); max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 64px; align-items: end; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1.05; max-width: 13ch; }
.hero-side { display: grid; gap: 22px; max-width: 34ch; justify-self: end; }
.hero-side p { color: #3b3c3e; font-size: 1.06rem; }

/* fallback card when WebGL is missing */
.card-fallback { position: absolute; z-index: 1; left: 50%; top: 40%; width: min(460px, 78vw); aspect-ratio: 1.586; transform: translate(-50%, -50%) perspective(1200px) rotateX(18deg) rotateY(-16deg) rotateZ(4deg);
  flex-direction: column; padding: 6% 7%; border-radius: 22px; color: #ece7dc;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 34%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), linear-gradient(150deg, #2b2c2f, #121315 60%, #222326);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 40px 60px -24px rgba(0, 0, 0, .55), 0 12px 18px -8px rgba(0, 0, 0, .35); }
.cf-top { display: flex; justify-content: space-between; font-size: .8rem; letter-spacing: .14em; opacity: .9; }
.cf-chip { width: 14%; aspect-ratio: 1.3; margin-top: 7%; border-radius: 8px; background: linear-gradient(135deg, #f3dfb0, #c9a463 45%, #8f6d37); }
.cf-label { margin-top: auto; font-size: .95rem; opacity: .9; }
.cf-value { font: 400 clamp(1.8rem, 6vw, 2.8rem)/1.1 var(--sans); color: #e2c58e; }
.cf-detail { font-size: .78rem; opacity: .8; }

@media (max-width: 760px), (max-height: 560px), (max-width: 900px) and (orientation: portrait) {
  .hero { min-height: 0; display: flex; flex-direction: column; padding-top: 64px; }
  .giant { top: calc(64px + 41svh); font-size: 27vw; }
  #card-gl { position: relative; inset: auto; height: 48svh; min-height: 320px; }
  .card-fallback { top: calc(64px + 27svh); }
  .hero-copy { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; padding: 4px var(--gutter) 48px; gap: 18px; }
  .hero-side { justify-self: start; }
}

/* ---------- try it ---------- */
.try { background: var(--pine-deep); color: var(--on-pine); padding: clamp(80px, 11vw, 140px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 540px) auto; gap: 48px clamp(40px, 7vw, 110px); align-items: center; justify-content: center; }
.try-copy { max-width: 540px; display: grid; gap: 28px; }
.try h2 { max-width: 14ch; }
.lede { font-size: 1.08rem; max-width: 46ch; }
.try .lede { color: var(--on-pine-mist); }
.tasks { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 4px; }
.tasks li { counter-increment: t; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 0; border-top: 1px solid rgba(227, 235, 229, .14); }
.tasks li::before { content: counter(t); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 .85rem/1 var(--sans); border: 1px solid rgba(227, 235, 229, .35); color: var(--on-pine); margin-top: 1px; }
.tasks b { font-weight: 500; }
.tasks span { color: var(--on-pine-mist); font-size: .96rem; }

.phone-stage { position: relative; justify-self: start; padding: 10px 0 40px; }
.phone { --w: clamp(250px, calc((100svh - 150px) / 2.07), 340px); position: relative; width: var(--w); height: calc(var(--w) * 2.07); border-radius: 58px; padding: 11px;
  background: linear-gradient(145deg, #5d6063 0%, #2a2c2f 18%, #17181a 50%, #2c2e31 82%, #6a6d70 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 0 2px #0b0c0d inset, 0 2px 1px rgba(255, 255, 255, .22) inset, 0 50px 80px -30px rgba(0, 0, 0, .75), 0 24px 30px -18px rgba(0, 0, 0, .6); }
.side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6a6d70, #2a2c2f); }
.side--power { right: -3px; top: 26%; height: 92px; }
.side--vol1 { left: -3px; top: 20%; height: 58px; }
.side--vol2 { left: -3px; top: 30%; height: 58px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 47px; overflow: hidden; background: #0b0c0d; isolation: isolate; display: flex; flex-direction: column; }
.sbar { flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; color: #f2efe8; font: 600 .95rem/1 var(--sans); }
.sb-ic { display: flex; gap: 6px; align-items: center; fill: currentColor; }
.screen iframe { flex: none; width: 390px; height: calc(390px * var(--ratio, 2.16)); border: 0; transform: scale(var(--s, .815)); transform-origin: 0 0; background: #0b0c0d; }
.island { position: absolute; z-index: 3; top: 11px; left: 50%; width: 31%; height: 30px; transform: translateX(-50%); border-radius: 20px; background: #000; pointer-events: none; }
.glare { position: absolute; z-index: 2; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 26%, transparent 40%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset; }
.screen-start { position: absolute; z-index: 1; inset: 50px 0 0; border: 0; cursor: pointer; color: var(--on-pine); font: 500 1rem var(--sans);
  background: radial-gradient(80% 50% at 50% 40%, #213a2e, #0b0c0d); display: grid; place-items: center; transition: opacity .5s; }
.screen-start span { padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(227, 235, 229, .35); }
.screen.loaded .screen-start { opacity: 0; pointer-events: none; }
.phone-shadow { position: absolute; left: 10%; right: 10%; bottom: 8px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px); z-index: -1; }
.try-mobile { display: none; }
@media (max-width: 900px) {
  .try { grid-template-columns: 1fr; }
  .try-copy { justify-self: start; }
  .try .actions, .phone-stage { display: none; }
  .try-mobile { display: grid; gap: 14px; max-width: 520px; }
  .try-mobile p { color: var(--on-pine-mist); font-size: .95rem; }
}

/* ---------- features ---------- */
.features { background: var(--paper); padding: clamp(80px, 11vw, 150px) var(--gutter); }
.features > h2, .feat-note { max-width: var(--max); margin-inline: auto; }
.feat-note { margin-top: 14px; color: var(--mist); font-size: .95rem; }
.features > h2 { max-width: var(--max); }
.feat { max-width: var(--max); margin: clamp(56px, 8vw, 100px) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 120px); align-items: center; }
.feat--flip .feat-text { order: 2; }
.feat-text { display: grid; gap: 14px; max-width: 46ch; }
.feat-text p { color: #3d3e40; }
figure { margin: 0; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } .feat--flip .feat-text { order: 0; } }

/* receipt */
.sum { justify-self: center; width: min(360px, 100%); padding: 26px 26px 34px; background: #fbfaf7; color: var(--ink); font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 22px 40px -22px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .06); transform: rotate(-1.5deg);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; }
.sum-row, .sum-total { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: .98rem; }
.sum-row { border-bottom: 1px dashed rgba(28, 29, 31, .2); }
.sum-row span { color: var(--mist); }
.sum-total { padding-top: 16px; font-size: 1.1rem; }
.sum-total b { font: 500 1.6rem/1 var(--serif); color: var(--pine); }

/* quick entry: a glass panel */
.entry { justify-self: center; width: min(360px, 100%); padding: 26px; border-radius: 28px; background: var(--graphite); color: var(--on-graphite);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 30px 50px -26px rgba(0, 0, 0, .55); display: grid; gap: 16px; }
.entry-typed { font: 400 4.2rem/1 var(--sans); letter-spacing: -.02em; }
.entry-typed::after { content: ""; display: inline-block; width: 3px; height: .8em; margin-left: 6px; vertical-align: -.05em; background: var(--gold); animation: caret 1.1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .entry-typed::after { animation: none; } }
.entry-ask { font-size: 1.05rem; color: #c9c5bc; }
.entry-ask b { color: #e2c58e; font-weight: 500; }
.entry-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-cats span { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(232, 229, 222, .2); font-size: .9rem; color: #c9c5bc; }
.entry-cats .on { background: #e8e5de; color: var(--graphite); border-color: transparent; }

/* goal dial */
.goal { justify-self: center; display: flex; align-items: center; gap: 26px; }
.goal svg { width: 150px; height: 150px; transform: rotate(-90deg); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .12)); }
.goal-track { fill: none; stroke: rgba(28, 29, 31, .1); stroke-width: 10; }
.goal-fill { fill: none; stroke: var(--pine); stroke-width: 10; stroke-linecap: round; }
.goal-text { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.goal-text b { font: 500 1.6rem/1.2 var(--serif); }
.goal-text span { color: var(--mist); font-size: .95rem; }

/* brain chat */
.chat { justify-self: center; width: min(380px, 100%); display: grid; gap: 12px; }
.chat p { padding: 14px 18px; border-radius: 22px; font-size: 1rem; line-height: 1.5; box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .3); }
.chat-q { justify-self: end; max-width: 80%; background: var(--pine); color: #f1f5f2; border-bottom-right-radius: 8px; }
.chat-a { justify-self: start; max-width: 92%; background: #fbfaf7; border-bottom-left-radius: 8px; }

/* ---------- privacy ---------- */
.privacy { background: var(--graphite); color: var(--on-graphite); padding: clamp(80px, 11vw, 150px) var(--gutter); }
.privacy h2 { max-width: var(--max); margin: 0 auto; font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: min(var(--max), 15ch); margin-inline: max(0px, calc((100% - var(--max)) / 2)); }
.facts { list-style: none; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 36px; }
.facts li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid rgba(232, 229, 222, .16); }
.facts b { font-weight: 500; font-size: 1.05rem; }
.facts span { color: #a9a6a0; font-size: .96rem; }

/* ---------- film ---------- */
.film { background: var(--paper); padding: clamp(80px, 10vw, 130px) var(--gutter); }
.film-head { max-width: var(--max); margin: 0 auto 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.film-head p { color: var(--mist); max-width: 36ch; }
.film-frame { max-width: var(--max); margin: 0 auto; border-radius: 22px; overflow: hidden; background: #0e0e0f; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55); }
.film-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0e0e0f; }
.film-frame.is-v { max-width: 420px; }
.film-frame.is-v video { aspect-ratio: 9 / 16; }
.note { max-width: var(--max); margin: 14px auto 0; color: var(--mist); font-size: .9rem; }

/* ---------- install ---------- */
.install { padding: clamp(80px, 10vw, 140px) var(--gutter); background: var(--stone); }
.install > * { max-width: var(--max); margin-inline: auto; }
.install .lede { margin-top: 18px; color: #3d3e40; }
.link-box { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-radius: 999px; background: var(--stone-hi); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 24px -18px rgba(0, 0, 0, .4); width: fit-content; max-width: 100%; margin-inline: max(0px, calc((100% - var(--max)) / 2)) auto; }
.link-url { font: 500 1.05rem var(--sans); margin-right: 8px; }
.platforms { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 64px; }
.platform h3 { font-size: 1.35rem; }
.platform ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.platform li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); overflow-wrap: anywhere; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.platform li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #f1f5f2; font: 500 .8rem/1 var(--sans); margin-top: 1px; }
@media (max-width: 560px) { .link-box { border-radius: 22px; padding: 16px; } .link-url { width: 100%; } }

/* ---------- faq ---------- */
.faq { background: var(--stone); padding: 0 var(--gutter) clamp(80px, 10vw, 130px); }
.faq > * { max-width: 820px; margin-left: max(0px, calc((100% - var(--max)) / 2)); margin-right: auto; }
.faq h2 { margin-bottom: 26px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 500; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: #3d3e40; max-width: 62ch; }

/* ---------- footer ---------- */
.foot { background: var(--pine-deep); color: var(--on-pine-mist); padding: 40px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: .95rem; }
.foot b { color: var(--on-pine); font: 500 1.1rem var(--serif); margin-right: 10px; }

@media (max-height: 820px) and (min-width: 901px) { .try { padding-block: 72px; } }
@media (max-height: 560px) and (orientation: landscape) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 100svh; padding-top: 60px; }
  #card-gl { height: calc(100svh - 60px); min-height: 0; grid-column: 2; grid-row: 1; }
  .giant { display: none; }
  .hero-copy { grid-column: 1; grid-row: 1; padding: 0 0 0 var(--gutter); }
  .hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.4rem); }
  .hero-side { gap: 14px; }
  .hero-side p { font-size: .95rem; }
}
