/* Landing page sections. Shared tokens live in site.css. */

/* Decorations (glows, confetti, tilted phones) may spill past the edges;
   clip keeps them from widening the page without breaking sticky. */
main {
  overflow-x: clip;
}
section {
  position: relative;
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 820px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head.center .lead {
  margin-inline: auto;
}

/* ---------- Phone mockup ---------- */
.phone {
  --w: 280px;
  width: var(--w);
  /* A 390×844 app screen under a 47pt status bar, inside the bezel. */
  aspect-ratio: 1000 / 2202;
  border-radius: calc(var(--w) * 0.155);
  padding: calc(var(--w) * 0.032);
  background: linear-gradient(145deg, #3a352f, #121010 40%, #2a2622);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 0.08);
  position: relative;
}
.phone::before {
  /* the island */
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.058);
  left: 50%;
  width: 30%;
  height: calc(var(--w) * 0.075);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0a09;
  z-index: 3;
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.125);
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}
/* Status bar: the app screens are rendered without one. */
.phone .screen::before,
.phone .screen::after {
  content: "";
  position: absolute;
  top: 2.64%;
  translate: 0 -50%;
  z-index: 1;
}
.phone .screen::before {
  content: "9:41";
  left: 11%;
  font: 600 calc(var(--w) * 0.045) / 1 Inter, sans-serif;
  color: var(--ink);
}
.phone .screen::after {
  right: 10%;
  width: calc(var(--w) * 0.068);
  height: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.009);
  background: var(--ink);
  opacity: 0.85;
}
.phone .screen img {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 94.725%;
  object-fit: cover;
  object-position: top;
}
.t-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* Screens follow the page theme. */
img.d {
  display: none;
}
:root[data-theme="dark"] img.l {
  display: none;
}
:root[data-theme="dark"] img.d {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.l {
    display: none;
  }
  :root:not([data-theme="light"]) img.d {
    display: block;
  }
}
.sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.22) 45%, transparent 60%) var(--sx, 120%) 0 / 250% 100% no-repeat;
  mix-blend-mode: soft-light;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: 130px 0 80px;
  display: flex;
  align-items: center;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 26px;
  position: relative;
  z-index: 2;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .w {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  opacity: 0;
  animation: rise 1.1s var(--ease) forwards;
}
@keyframes rise {
  to {
    transform: none;
    opacity: 1;
  }
}
.hero-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease) var(--d, 0s) forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-note {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.aurora {
  position: absolute;
  inset: -10% -10% auto;
  height: 120%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: drift 22s ease-in-out infinite alternate;
}
:root[data-theme="dark"] .aurora i {
  mix-blend-mode: screen;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aurora i {
    mix-blend-mode: screen;
  }
}
.aurora i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  right: 2%;
  top: 8%;
  background: radial-gradient(circle, var(--ember) 0, transparent 65%);
}
.aurora i:nth-child(2) {
  width: 34vw;
  height: 34vw;
  right: 28%;
  top: 40%;
  background: radial-gradient(circle, var(--energy) 0, transparent 65%);
  animation-duration: 28s;
  animation-delay: -6s;
  opacity: 0.7;
}
.aurora i:nth-child(3) {
  width: 30vw;
  height: 30vw;
  right: -6%;
  top: 50%;
  background: radial-gradient(circle, var(--goals) 0, transparent 65%);
  animation-duration: 32s;
  animation-delay: -12s;
  opacity: 0.45;
}
@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6vw, 4vh) scale(1.12);
  }
  100% {
    transform: translate(3vw, -5vh) scale(0.95);
  }
}

/* The app icon's script G, written huge behind the hero. */
.giant-g {
  position: absolute;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  right: -12vw;
  top: 50%;
  translate: 0 -50%;
  background: linear-gradient(115deg, var(--ink) 0 45%, transparent 55%) 100% 0 / 260% 100% no-repeat;
  -webkit-mask: url("/img/g-mask.png") center / contain no-repeat;
  mask: url("/img/g-mask.png") center / contain no-repeat;
  opacity: 0.05;
  animation: write 2.6s var(--ease) 0.3s forwards;
  pointer-events: none;
}

.hero-stage {
  position: relative;
  height: min(720px, 80svh);
  display: grid;
  place-items: center;
  perspective: 1400px;
  z-index: 1;
}
.fan {
  position: relative;
  width: 300px;
  aspect-ratio: 1000 / 2202;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.6s var(--ease);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  50% {
    translate: 0 -12px;
  }
}
.fan .phone {
  position: absolute;
  inset: 0;
  --w: 300px;
}
.fan .phone.front {
  z-index: 3;
  opacity: 0;
  animation: phoneIn 1.4s var(--ease) 0.3s forwards;
}
.fan .phone.back {
  opacity: 0;
  filter: saturate(0.9);
}
.fan .phone.left {
  animation: fanLeft 1.6s var(--ease) 0.7s forwards;
}
.fan .phone.right {
  animation: fanRight 1.6s var(--ease) 0.8s forwards;
}
@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fanLeft {
  to {
    opacity: 0.92;
    transform: translate3d(-52%, 6%, -120px) rotate(-9deg) scale(0.86);
  }
}
@keyframes fanRight {
  to {
    opacity: 0.92;
    transform: translate3d(52%, 8%, -120px) rotate(9deg) scale(0.86);
  }
}

.chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
  font-size: 14px;
  line-height: 1.25;
  opacity: 0;
  animation: chipIn 0.9s var(--spring) forwards;
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.5s var(--ease);
}
.chip b {
  display: block;
  font-weight: 600;
}
.chip small {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
}
.chip .dot,
.chip .tick {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c, var(--ember)) 16%, transparent);
  color: var(--c, var(--ember));
  font-size: 20px;
}
.chip .tick {
  background: #30735a;
  color: #fff;
  font-weight: 700;
}
.battery {
  width: 36px;
  height: 20px;
  border-radius: 6px;
  margin: 8px 0;
  box-shadow: inset 0 0 0 2px var(--ink-2);
  position: relative;
  overflow: hidden;
}
.battery::before {
  content: "";
  position: absolute;
  inset: 4px;
  right: calc(4px + (1 - var(--lvl)) * 28px);
  border-radius: 2px;
  background: var(--habits);
  transition: right 0.6s var(--ease), background 0.4s;
}
.chip.c1 {
  top: 12%;
  left: -2%;
  animation-delay: 1.3s;
}
.chip.c2 {
  top: 40%;
  right: -4%;
  animation-delay: 1.5s;
}
.chip.c3 {
  bottom: 22%;
  left: -6%;
  animation-delay: 1.7s;
}
.chip.c4 {
  bottom: 6%;
  right: 4%;
  animation-delay: 1.9s;
}
@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--ink-3);
  translate: -50% 0;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--ink-2);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  60% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 110px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-stage {
    height: 700px;
  }
  .scroll-cue {
    display: none;
  }
  .giant-g {
    top: 30%;
  }
}
@media (max-width: 520px) {
  .hero-stage {
    height: 680px;
    transform: scale(0.8);
    margin: -68px 0;
  }
  .chip.c1 {
    left: -8%;
  }
  .chip.c3 {
    left: -10%;
  }
  .chip.c2 {
    right: -10%;
  }
  .stores .store {
    flex: 1 1 100%;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 0;
  rotate: -1.2deg;
  margin: 10px -2vw;
}
.marquee .track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  white-space: nowrap;
}
.marquee .sep {
  color: var(--ember);
  font-size: 0.6em;
  align-self: center;
  vertical-align: 0;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Manifesto ---------- */
.manifesto {
  padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
}
.manifesto .eyebrow {
  margin-bottom: 24px;
}
.scrub {
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.15;
  max-width: 22em;
}
.scrub .sw {
  opacity: 0.14;
  transition: opacity 0.25s linear;
}
.scrub .sw.lit {
  opacity: 1;
}
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: clamp(56px, 8vw, 96px);
}
.vs-card {
  border-radius: var(--radius);
  padding: 32px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.vs-card h3 {
  margin-bottom: 16px;
}
.vs-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.vs-card li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.vs-card.old {
  color: var(--ink-3);
}
.vs-card li::before {
  font-family: "Phosphor";
  font-size: 15px;
  translate: 0 2px;
}
.vs-card.old li::before {
  content: "\e4f6";
  color: var(--ink-3);
}
.vs-card.old li {
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent);
}
.vs-card.new {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-lg);
}
.vs-card.new li::before {
  content: "\e182";
  color: var(--ember);
}
.vs-arrow {
  font-size: 40px;
  color: var(--ember);
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateX(8px);
  }
}
@media (max-width: 760px) {
  .versus {
    grid-template-columns: 1fr;
  }
  .vs-arrow {
    justify-self: center;
    rotate: 90deg;
  }
}

/* ---------- Energy demo ---------- */
.energy {
  padding: clamp(80px, 10vw, 140px) 0;
}
.energy-demo {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
}
.meter {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: center;
  padding: 24px 12px;
  border-radius: 24px;
  background: var(--surface-2);
  position: sticky;
  top: 90px;
  align-self: start;
}
.ring {
  --e: 0.72;
  --ec: var(--habits);
  position: relative;
  width: 200px;
  height: 200px;
}
.ring svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
}
.ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.ring .track {
  stroke: var(--border);
}
.ring .fill {
  stroke: var(--ec);
  stroke-dasharray: 326.7;
  stroke-dashoffset: calc(326.7 * (1 - var(--e)));
  transition: stroke-dashoffset 0.5s var(--ease), stroke 0.5s;
}
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  align-items: baseline;
  font-family: var(--serif);
}
.ring-label b {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ring-label span {
  font-size: 24px;
  color: var(--ink-2);
}
.slider-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: -10px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: grab;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--error, #c8364b), var(--energy) 45%, var(--habits));
}
input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8364b, var(--energy) 45%, var(--habits));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.25), inset 0 0 0 3px var(--ink);
  transition: transform 0.3s var(--spring);
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--surface);
}
.presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.presets button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background 0.2s, transform 0.3s var(--spring);
}
.presets button:hover {
  transform: translateY(-2px);
}
.presets button.on {
  background: var(--ink);
  color: var(--paper);
}
.energy-msg {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  min-height: 3.6em;
}

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 4px 16px;
}
.day-head b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-right: 10px;
}
.capacity {
  flex: 0 1 220px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.capacity span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--ember);
  transition: width 0.6s var(--ease);
}
.plan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  position: relative;
}
.plan li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: opacity 0.5s, filter 0.5s, background 0.4s;
  will-change: transform;
}
.plan li .i {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.plan li .t {
  flex: 1;
  min-width: 0;
}
.plan li .t b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan li .t small {
  color: var(--ink-2);
  font-size: 13px;
}
.plan li .tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: color-mix(in srgb, var(--c) 62%, var(--ink));
}
.plan li.later {
  opacity: 0.45;
  filter: grayscale(0.7);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border), inset 0 0 0 100px transparent;
  border: 1px dashed transparent;
}
.plan li.divider {
  background: none;
  box-shadow: none;
  padding: 14px 4px 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  gap: 10px;
}
.plan li.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.plan li.rest {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--habits) 55%, transparent);
}
@media (max-width: 900px) {
  .energy-demo {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 16px;
    border-radius: 26px;
  }
  /* A compact control that stays in view, so the list reacts under it. */
  .meter {
    top: 76px;
    z-index: 2;
    grid-template-columns: 92px 1fr;
    justify-items: stretch;
    align-items: center;
    gap: 6px 14px;
    padding: 14px;
    border-radius: 20px;
    box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  }
  .ring {
    width: 92px;
    height: 92px;
    grid-row: 1;
  }
  .ring-label b {
    font-size: 34px;
  }
  .ring-label span {
    font-size: 14px;
  }
  .energy-msg {
    grid-row: 1;
    grid-column: 2;
    text-align: left;
    font-size: 16px;
    min-height: 0;
  }
  .slider-label {
    display: none;
  }
  .meter input[type="range"] {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .presets {
    grid-row: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .presets button {
    padding: 8px 4px;
  }
  .day-head b {
    font-size: 24px;
  }
  .capacity {
    flex-basis: 90px;
  }
}
@media (max-width: 480px) {
  .plan li .tag {
    display: none;
  }
}

/* ---------- Beliefs ---------- */
.beliefs {
  padding: clamp(60px, 8vw, 120px) 0;
}
.belief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.belief {
  position: relative;
  padding: 36px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s, transform 0.5s var(--ease), opacity 0.9s var(--ease);
}
.belief::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.belief:hover::before {
  opacity: 1;
}
.belief:hover {
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
}
.belief > * {
  position: relative;
}
.b-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: color-mix(in srgb, var(--c) 22%, transparent);
}
.b-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--cs);
  color: color-mix(in srgb, var(--c) 75%, var(--ink));
  margin-bottom: 28px;
  transition: transform 0.6s var(--spring);
}
.belief:hover .b-icon {
  transform: rotate(-8deg) scale(1.1);
}
.b-icon .ph {
  font-size: 28px;
}
.belief h3 {
  margin-bottom: 12px;
}
.belief p {
  margin: 0;
  color: var(--ink-2);
  max-width: 30em;
}
.belief.rest {
  background: var(--habits-soft);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--habits) 40%, transparent);
}
.b-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #30735a;
  color: #fff;
}
@media (max-width: 760px) {
  .belief-grid {
    grid-template-columns: 1fr;
  }
  .belief {
    padding: 28px;
  }
}

/* ---------- How it works ---------- */
.how {
  padding: clamp(60px, 8vw, 120px) 0;
}
.path {
  position: relative;
}
.path-line {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
}
.path-line path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2.5;
  stroke-dasharray: 1100;
  stroke-dashoffset: calc(1100 * (1 - var(--p, 0)));
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.node {
  display: grid;
  gap: 8px;
  align-content: start;
}
.n-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--c);
  font-family: var(--serif);
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--paper), inset 0 0 0 2px var(--c);
  margin-bottom: 14px;
  transition: background 0.4s, color 0.4s;
}
.node.in .n-dot {
  background: var(--c);
  color: #fff;
  transition-delay: calc(var(--d, 0s) + 0.4s);
}
.node h3 {
  font-size: 24px;
}
.node p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.mini {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 8px;
}
.pill .ph {
  font-size: 1.25em;
  vertical-align: -0.2em;
  margin-right: 2px;
}
.pill {
  justify-self: start;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: color-mix(in srgb, var(--c) 62%, var(--ink));
}
@media (max-width: 860px) {
  .path-steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .path-line {
    display: none;
  }
}
@media (max-width: 480px) {
  .path-steps {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .node {
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    row-gap: 4px;
  }
  .n-dot {
    grid-row: span 3;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  .node > :not(.n-dot) {
    grid-column: 2;
  }
}

/* ---------- Tour (scrollytelling) ---------- */
.tour {
  padding: clamp(60px, 8vw, 120px) 0;
}
.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.tour-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
}
.phone.big {
  --w: min(340px, 34vh);
}
.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), clip-path 0.9s var(--ease);
  clip-path: inset(0 0 100% 0 round 0);
}
.layer.on {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 0);
}
.tour-progress {
  display: flex;
  gap: 6px;
}
.tour-progress i {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition: background 0.4s, width 0.4s var(--ease);
}
.tour-progress i.on {
  width: 40px;
  background: var(--ember);
}
.tour-steps {
  padding: 20vh 0 30vh;
}
.t-step {
  min-height: 80vh;
  display: grid;
  align-content: center;
  gap: 16px;
  opacity: 0.25;
  transition: opacity 0.6s var(--ease);
}
.t-step.on {
  opacity: 1;
}
.t-kicker {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 62%, var(--ink));
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.t-kicker .ph {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 19px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
}
.t-step h3 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.t-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 30em;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "\e182";
  font-family: "Phosphor";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  background: var(--ember-soft);
  color: var(--ember-ink);
}
.ticks b {
  color: var(--ink);
  font-weight: 600;
}
.t-shot {
  display: none;
}
@media (max-width: 900px) {
  .tour-grid {
    grid-template-columns: 1fr;
  }
  .tour-stage {
    display: none;
  }
  .tour-steps {
    padding: 0;
    display: grid;
    gap: 80px;
  }
  .t-step {
    min-height: 0;
    opacity: 1;
  }
  .t-shot {
    display: block;
    position: relative;
    width: min(300px, 80%);
    aspect-ratio: 390 / 844;
    margin: 16px auto 0;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 8px #1a1714;
  }
}

/* ---------- Check-in toy ---------- */
.checkin {
  padding: clamp(80px, 10vw, 140px) 0;
}
.checkin-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
}
.checkin-grid > div:first-child {
  display: grid;
  gap: 20px;
}
.habit-card {
  position: relative;
  padding: 28px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
  display: grid;
  gap: 20px;
}
.burst {
  position: absolute;
  inset: -80px;
  width: calc(100% + 160px);
  height: calc(100% + 160px);
  pointer-events: none;
  z-index: 4;
}
.hc-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hc-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--habits);
  background: var(--habits-soft);
}
.hc-top b {
  display: block;
  font-size: 18px;
}
.hc-top small {
  color: var(--ink-2);
  font-size: 14px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.week .d {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background 0.5s var(--ease), color 0.4s, transform 0.5s var(--spring);
}
.week .d i {
  font-style: normal;
}
.week .d.done {
  background: #30735a;
  color: #fff;
}
.week .d.missed {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.week .d.today {
  box-shadow: inset 0 0 0 2px var(--habits);
  color: var(--habits);
}
.week .d.today.done {
  color: #fff;
  transform: scale(1.12);
}
.hc-missed {
  margin: -8px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
.hc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.streak {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flame {
  font-size: 34px;
  color: var(--ember);
  transition: transform 0.6s var(--spring);
}
.habit-card.checked .flame {
  transform: scale(1.35) rotate(-8deg);
}
.count {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  height: 54px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.count span {
  display: block;
  animation: flip 0.6s var(--spring);
}
@keyframes flip {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
}
.streak small {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.2;
}
.check {
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  -webkit-tap-highlight-color: transparent;
}
.check svg {
  width: 84px;
  height: 84px;
  rotate: -90deg;
  transition: transform 0.4s var(--spring);
}
.check:hover svg {
  transform: scale(1.06);
}
.check:active svg {
  transform: scale(0.9);
}
.check circle {
  fill: none;
  stroke-width: 5;
}
.c-track {
  stroke: var(--border);
  fill: var(--surface-2) !important;
}
.c-fill {
  stroke: var(--habits);
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease), fill 0.3s 0.4s;
}
.c-tick {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  rotate: 90deg;
  transform-origin: 32px 32px;
  stroke-dasharray: 40;
  transition: stroke 0.3s 0.4s;
}
.habit-card.checked .c-fill {
  stroke-dashoffset: 0;
  fill: var(--habits) !important;
}
.habit-card.checked .c-tick {
  stroke: #fff;
  animation: tick 0.5s var(--ease) 0.45s both;
}
@keyframes tick {
  from {
    stroke-dashoffset: 40;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.hc-toast {
  margin: 0;
  min-height: 1.6em;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--habits);
}
@media (max-width: 900px) {
  .checkin-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Together ---------- */
.together {
  padding: clamp(80px, 10vw, 140px) 0;
}
.together-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.together-grid > div:last-child {
  display: grid;
  gap: 20px;
}
.friends-visual {
  position: relative;
  height: 460px;
}
.orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.orbit svg {
  position: absolute;
  width: 340px;
  height: 340px;
  animation: spin 60s linear infinite;
}
.orbit circle {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.av {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 0 5px var(--paper), var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.av.a1 {
  background: var(--ember-fill);
  translate: 0 -170px;
}
.av.a2 {
  background: #a8385c;
  translate: 148px 86px;
  animation-delay: -1.5s;
}
.av.a3 {
  background: #6a3aa5;
  translate: -148px 86px;
  animation-delay: -3s;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
.f-card {
  position: absolute;
  display: grid;
  gap: 6px;
  width: min(250px, 70%);
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
  font-size: 15px;
}
.f-card small {
  color: var(--ink-2);
  font-size: 13px;
}
.f-card.f1 {
  top: 18%;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
}
.f-card.f2 {
  top: 48%;
  left: 2%;
  rotate: -3deg;
}
.f-card.f3 {
  bottom: 4%;
  right: -2%;
  rotate: 2.5deg;
}
.friends-visual.in .f-card {
  animation: chipIn 0.9s var(--spring) both;
}
.friends-visual.in .f2 {
  animation-delay: 0.25s;
}
.friends-visual.in .f3 {
  animation-delay: 0.5s;
}
@media (max-width: 900px) {
  .together-grid {
    grid-template-columns: 1fr;
  }
  .friends-visual {
    order: 2;
    height: 420px;
  }
}
/* Phones: the cards stack as a loose pile instead of orbiting. */
@media (max-width: 600px) {
  .friends-visual {
    height: auto;
    display: grid;
    gap: 14px;
    padding: 8px 4px;
  }
  .orbit {
    display: none;
  }
  .f-card,
  .f-card.f1,
  .f-card.f2,
  .f-card.f3 {
    position: relative;
    inset: auto;
    translate: none;
    width: auto;
  }
  .f-card.f1 {
    rotate: -1.5deg;
    margin-right: 24px;
  }
  .f-card.f2 {
    rotate: 1.5deg;
    margin-left: 24px;
  }
  .f-card.f3 {
    rotate: -1deg;
    margin-right: 12px;
  }
}

/* ---------- AI ---------- */
.ai {
  padding: clamp(80px, 10vw, 140px) 0;
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ai-grid > div:first-child {
  display: grid;
  gap: 20px;
}
.connectors {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.logo {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 600;
  color: var(--ink);
}
.chat {
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.chat-head small {
  color: var(--ink-2);
  margin-left: auto;
}
.spark {
  color: var(--ember);
  font-size: 20px;
  display: inline-grid;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  50% {
    transform: rotate(90deg) scale(0.8);
    opacity: 0.6;
  }
}
.chat-body {
  min-height: 430px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.45;
  animation: msgIn 0.5s var(--spring) both;
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}
.msg.me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 6px;
}
.msg.typing {
  display: flex;
  gap: 5px;
  padding: 16px 18px;
}
.msg.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: dots 1.2s ease-in-out infinite;
}
.msg.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.msg.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dots {
  30% {
    transform: translateY(-5px);
    opacity: 0.4;
  }
}
.suggest {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.suggest div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  animation: msgIn 0.4s var(--spring) both;
  transition: background 0.3s;
}
.suggest .kind {
  font-size: 18px;
  color: var(--c);
}
.suggest span {
  flex: 1;
}
.suggest .done {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  color: #fff;
  background: var(--habits);
  transform: scale(0);
  transition: transform 0.4s var(--spring);
}
.suggest div.ok .done {
  transform: none;
}
.apply {
  align-self: flex-start;
  display: flex;
  gap: 8px;
  animation: msgIn 0.5s var(--spring) both;
}
.apply span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border);
}
.apply span.go {
  background: var(--ember-fill);
  color: #fff;
  box-shadow: none;
}
.apply span.go.pressed {
  animation: press 0.4s var(--spring);
}
@keyframes press {
  50% {
    transform: scale(0.9);
  }
}
@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Bento ---------- */
.bento-sec {
  padding: clamp(60px, 8vw, 120px) 0;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, -100%) var(--my, -100%), color-mix(in srgb, var(--ember) 13%, transparent), transparent 45%);
}
.tile.wide {
  grid-column: span 2;
}
.tile h3 {
  font-size: 24px;
}
.tile p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 34em;
}
.t-ico {
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ember-soft);
  color: var(--ember-ink);
  margin-bottom: 8px;
  transition: transform 0.6s var(--spring);
}
.tile:hover .t-ico {
  transform: rotate(-8deg) scale(1.08);
}
kbd + kbd {
  margin-left: 3px;
}
kbd {
  font: 600 13px var(--sans);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 -2px 0 var(--border), inset 0 0 0 1px var(--border);
  color: var(--ink);
}
.sync-anim {
  position: absolute;
  right: 28px;
  top: 28px;
  display: flex;
  gap: 8px;
}
.sync-anim span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--habits);
  animation: dots 1.6s ease-in-out infinite;
}
.sync-anim span:nth-child(2) {
  animation-delay: 0.2s;
}
.sync-anim span:nth-child(3) {
  animation-delay: 0.4s;
}
.sky {
  position: absolute;
  right: 0;
  top: 0;
  width: 220px;
  height: 140px;
  pointer-events: none;
}
.sky .sun {
  position: absolute;
  right: 50px;
  top: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27a, var(--energy));
  box-shadow: 0 0 40px 10px rgb(233 194 74 / 0.45);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 60px 18px rgb(233 194 74 / 0.3);
  }
}
.sky .cloud {
  position: absolute;
  top: 54px;
  right: 80px;
  width: 80px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 18px -12px 0 4px var(--surface-2), 40px 0 0 0 var(--surface-2);
  animation: cloud 14s ease-in-out infinite alternate;
}
.sky .cloud.two {
  top: 90px;
  right: 10px;
  scale: 0.7;
  animation-duration: 18s;
}
@keyframes cloud {
  to {
    translate: -50px 0;
  }
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tile {
    min-height: 0;
    padding: 22px;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    row-gap: 4px;
  }
  .tile .t-ico {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 14px;
    margin: 0;
  }
  .tile h3 {
    font-size: 21px;
  }
  .tile.wide {
    grid-column: auto;
  }
  .sky {
    opacity: 0.5;
  }
}

/* ---------- Plans ---------- */
.plans {
  padding: clamp(80px, 10vw, 140px) 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform 0.5s var(--ease), box-shadow 0.4s, opacity 0.9s var(--ease);
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
}
.plan-card .muted {
  margin: 0;
  font-size: 15px;
}
.price {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price small {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
}
.tbd {
  font-size: 22px;
  color: var(--ink-2);
}
.plan-card.featured {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured .muted,
.plan-card.featured .ticks li,
.plan-card.featured .tbd {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}
.plan-card.featured .ticks b {
  color: var(--paper);
}
.badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ember-fill);
  color: #fff;
}
@media (max-width: 900px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(60px, 8vw, 120px) 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.faq-grid > div:first-child {
  display: grid;
  gap: 18px;
  align-content: start;
}
.faq-grid a {
  color: var(--ember-ink);
}
.faq-list {
  display: grid;
  gap: 10px;
}
details {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  content: "\e3d4";
  font-family: "Phosphor";
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ember-ink);
  background: var(--surface-2);
  transition: rotate 0.4s var(--spring);
}
details[open] summary::after {
  rotate: 135deg;
}
details > div {
  padding: 0 24px 20px;
  color: var(--ink-2);
}
details > div p {
  margin: 0;
}
details[open] > div {
  animation: fadeUp 0.5s var(--ease);
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Final CTA ---------- */
.final {
  padding: 40px 16px clamp(60px, 8vw, 100px);
}
.final-card {
  position: relative;
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) 24px;
  border-radius: 40px;
  background: #1f1b16;
  color: #f3eee6;
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
  --ink: #f3eee6;
  --paper: #1f1b16;
}
.final-card .lead {
  color: #b3aa9d;
  margin: 0;
}
.final-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgb(204 78 39 / 0.55), transparent 60%), radial-gradient(500px circle at 10% 110%, rgb(123 73 184 / 0.35), transparent 60%);
  transition: background 0.2s;
}
.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #f1f1f3 url("/img/app-icon-1024.png") center / cover;
  box-shadow: 0 20px 50px -10px rgb(0 0 0 / 0.6);
  animation: floaty 6s ease-in-out infinite;
}
.final h2 {
  font-size: clamp(48px, 8vw, 104px);
}
.stores.center {
  justify-content: center;
}
.final .store {
  background: #f3eee6;
  color: #1f1b16;
}
.final .store.web {
  background: transparent;
  color: #f3eee6;
  box-shadow: inset 0 0 0 1.5px rgb(243 238 230 / 0.25);
}

/* ---------- "Coming soon" toast ---------- */
.soon-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  translate: -50% calc(100% + 48px);
  visibility: hidden;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  transition: translate 0.6s var(--spring), visibility 0s 0.6s;
}
.soon-toast.show {
  translate: -50% 0;
  visibility: visible;
  transition: translate 0.6s var(--spring), visibility 0s;
}
.soon-toast a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title .w,
  .hero-in,
  .fan .phone,
  .chip {
    opacity: 1 !important;
    transform: none;
  }
  .fan .phone.left {
    transform: translate3d(-52%, 6%, -120px) rotate(-9deg) scale(0.86);
    opacity: 0.92 !important;
  }
  .fan .phone.right {
    transform: translate3d(52%, 8%, -120px) rotate(9deg) scale(0.86);
    opacity: 0.92 !important;
  }
  .giant-g,
  .wordmark.write {
    background-position: 0 0;
  }
  .marquee .track {
    animation: none;
  }
  .scrub .sw {
    opacity: 1;
  }
  .path-line path {
    stroke-dashoffset: 0;
  }
}
