/* PACE site. Colours follow the app (src/theme/tokens.ts). */
:root {
  --bg: #ffffff;
  --canvas: #f3f7fd;
  --surface: #ffffff;
  --surface-muted: #f2f5f9;
  --text: #0e1a2e;
  --text-muted: #5b6880;
  --border: #e3e8ef;
  --accent: #2468f2;
  --accent-soft: #eaf1ff;
  --on-accent: #ffffff;
  --radius: 18px;
  --gutter: 24px;
  --max: 1080px;
  --serif-ja: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --serif-en: Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --canvas: #0f1829;
    --surface: #141d2e;
    --surface-muted: #1c2740;
    --text: #eef2f8;
    --text-muted: #a9b6cc;
    --border: #2a3650;
    --accent: #6e9bff;
    --accent-soft: #1a2a4a;
    --on-accent: #0b1220;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

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

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

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

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

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* ---- header / footer ---------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  color: var(--text);
  display: inline-flex;
}
.logo svg {
  height: 22px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  color: var(--text-muted);
}

/* ---- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: -72px;
  padding: 136px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("hero.jpg") center 18% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  opacity: 0.9;
}
@media (prefers-color-scheme: dark) {
  .hero::before {
    opacity: 0.28;
  }
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero h1 span {
  display: inline-block;
}
.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text);
  margin: 0 0 32px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.badge img {
  height: 50px;
  width: auto;
}
/* The Google Play artwork has transparent padding; scale it so the visible badge matches Apple's height. */
.badge-gp img {
  height: 65px;
  margin: -7.5px -6px;
}
.note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* ---- device (iPhone-like frame around the practice screen) --------------- */

.device-wrap {
  justify-self: center;
  width: min(300px, 100%);
  perspective: 1600px;
}
/* Side-by-side hero: fit the phone to the window height so the whole device shows
   (and the copy, centred on it, sits higher) on shorter laptop screens. */
@media (min-width: 861px) {
  .hero {
    padding-top: 112px;
  }
  .device-wrap {
    width: min(300px, max(240px, calc((100svh - 176px) * 393 / 852)));
  }
}
.device {
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(145deg, #5b5f66 0%, #2b2e33 22%, #1b1d21 50%, #33363c 78%, #6a6e75 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 4px #0c0d0f,
    0 2px 1px rgba(255, 255, 255, 0.4),
    0 50px 80px -30px rgba(14, 26, 46, 0.55),
    0 24px 40px -20px rgba(14, 26, 46, 0.35);
}
/* Side buttons: action + volume on the left, power on the right. */
.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2d32, #6d7178);
}
.device::before {
  left: -3px;
  top: 17%;
  height: 7%;
  box-shadow: 0 calc(300px * 0.25) 0 0 #4a4e55, 0 calc(300px * 0.42) 0 0 #4a4e55;
}
.device::after {
  right: -3px;
  top: 27%;
  height: 12%;
  background: linear-gradient(270deg, #2a2d32, #6d7178);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: #ffffff;
  color: #0e1a2e;
  display: flex;
  flex-direction: column;
  padding: 0 14px 8px;
  font-size: 12px;
  line-height: 1.4;
  --s-accent: #2468f2;
  --s-muted: #5b6880;
  --s-border: #e3e8ef;
  --s-soft: #f2f5f9;
  --s-accent-soft: #eaf1ff;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 4px 8px 0 16px;
  font-weight: 700;
  font-size: 13px;
}
.status-icons {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.status-icons svg {
  fill: currentColor;
}
.battery {
  width: 22px;
  height: 11px;
  border-radius: 3.5px;
  border: 1px solid rgba(14, 26, 46, 0.45);
  padding: 1.5px;
  position: relative;
}
.battery::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 3.5px;
  width: 1.5px;
  height: 3.5px;
  border-radius: 0 1px 1px 0;
  background: rgba(14, 26, 46, 0.45);
}
.battery i {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: 1.5px;
  background: currentColor;
}
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 32%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.app-header svg {
  fill: currentColor;
  margin-left: -6px;
}
.app-title {
  font-weight: 700;
  font-size: 13px;
}
.app-count {
  font-weight: 700;
  font-size: 11px;
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticks {
  display: flex;
  gap: 3px;
  padding: 4px 6px 0;
}
.ticks i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--s-border);
}
.ticks i.on {
  background: var(--s-accent);
}
.stage {
  flex: 1;
  position: relative;
}
.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centred like the app's practice stage; a little lift so it reads as optical centre. */
  justify-content: center;
  padding: 0 8px 14%;
  gap: 14px;
  text-align: center;
  /* The incoming card waits for the outgoing one, so the two never overlap. */
  transition: opacity 0.18s ease 0.12s, transform 0.18s ease 0.12s;
}
.card[hidden] {
  display: flex;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--s-soft, var(--surface-muted));
  color: var(--s-muted, var(--text-muted));
}
.pill.en {
  background: var(--s-accent-soft, var(--accent-soft));
  color: var(--s-accent, var(--accent));
}
.pill svg {
  fill: currentColor;
}
.ja {
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.6;
  margin: 0;
}
.en-text {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  margin: 0;
}
.sub {
  font-family: var(--serif-ja);
  font-size: 11.5px;
  color: var(--s-muted);
  margin: 0;
}
.timer {
  padding: 0 14px;
}
.bar {
  height: 4px;
  border-radius: 2px;
  background: var(--s-soft);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--s-accent);
  transform-origin: left;
}
.bar.run i {
  animation: shrink 3s linear forwards;
}
@keyframes shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
.phone-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--s-muted);
  margin: 6px 0 0;
  height: 18px;
}
.phone-hint svg {
  fill: currentColor;
}
.phone-hint b {
  color: var(--s-accent);
  font-variant-numeric: tabular-nums;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  padding: 14px 4px 4px;
}
.tool {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--s-muted);
}
.tool-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--s-soft);
}
.tool-btn svg {
  fill: #0e1a2e;
}
.tool-btn.primary {
  width: 54px;
  height: 54px;
  background: var(--s-accent);
}
.tool-btn.primary svg {
  fill: #fff;
}
.home-indicator {
  width: 36%;
  height: 4px;
  border-radius: 2px;
  background: #0e1a2e;
  margin: 10px auto 0;
}

@media (prefers-color-scheme: dark) {
  .screen {
    background: #0b1220;
    color: #eef2f8;
    --s-accent: #6e9bff;
    --s-muted: #a9b6cc;
    --s-border: #2a3650;
    --s-soft: #1c2740;
    --s-accent-soft: #1a2a4a;
  }
  .battery {
    border-color: rgba(238, 242, 248, 0.5);
  }
  .battery::after {
    background: rgba(238, 242, 248, 0.5);
  }
  .tool-btn svg {
    fill: #eef2f8;
  }
  .tool-btn.primary svg {
    fill: #0b1220;
  }
  .home-indicator {
    background: #eef2f8;
  }
}

/* ---- sections ------------------------------------------------------------ */

section {
  padding: 88px 0;
}
section.tinted {
  background: var(--canvas);
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 12px;
}
.section-lead {
  color: var(--text-muted);
  margin: 0 0 40px;
  max-width: 640px;
}

/* Steps: each card shows the moment it describes, joined by an arrow. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.steps li + li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 92px;
  width: 14px;
  height: 14px;
  border-top: 2.5px solid var(--accent);
  border-right: 2.5px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.6;
}
.step-visual {
  position: relative;
  height: 196px;
  margin: 10px 10px 0;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--canvas);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mini {
  width: 78%;
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px -14px rgba(14, 26, 46, 0.3);
}
.mini-ja {
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.mini-en {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}
.mini-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-muted);
  overflow: hidden;
}
.mini-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: shrink 3s linear infinite;
}
.step-time {
  position: absolute;
  top: 12px;
  right: 14px;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step-time small {
  font-size: 12px;
  margin-left: 1px;
}
.speech {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 84%;
}
.speech-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.speech-icon svg {
  fill: var(--on-accent);
}
.bubble {
  margin: 0;
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 12px 28px -14px rgba(14, 26, 46, 0.3);
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: center;
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(3n) { animation-delay: -0.3s; }
.wave i:nth-child(3n + 1) { animation-delay: -0.6s; }
.wave i:nth-child(4n) { animation-delay: -0.85s; }
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}
.step-body {
  padding: 20px 22px 26px;
}
.step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.step-body h3,
.tile h3 {
  font-size: 18px;
  line-height: 1.45;
  margin: 4px 0 6px;
}
.step-body p,
.tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Features: a bento grid, each tile showing a slice of the app. */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.tile {
  background: var(--canvas);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}
.tile-content {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
}
.tile-content .tile-text {
  flex: 0 0 38%;
}
.tile-content .tile-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile-marks {
  grid-column: span 2;
}
.tile-audio {
  grid-column: span 2;
}
.tile-calm {
  grid-column: span 4;
  background: var(--text);
  color: var(--bg);
}
.tile-calm h3 {
  font-size: 22px;
  margin: 0;
}
.tile-calm ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile-calm li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile-calm svg {
  width: 26px;
  height: 26px;
}
.tile-calm b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.tile-calm span {
  font-size: 13.5px;
  line-height: 1.65;
  opacity: 0.72;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-row span {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.chip-row span.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.chip-row .tag {
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-muted);
}
.rows {
  background: var(--surface);
  border-radius: 16px;
  padding: 4px 14px;
  margin-top: auto;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 11.5px;
  color: var(--text-muted);
}
.row + .row {
  border-top: 1px solid var(--border);
}
.row span {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
.row b {
  display: block;
  font-size: 13px;
  color: var(--text);
}
.mark {
  font-style: normal;
  font-size: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
}
.mark.check {
  background: #33c5a3;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.tile-audio .tile-visual {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seg {
  display: flex;
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.tile-audio .seg {
  background: var(--surface);
}
.seg span {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 9px;
  color: var(--text-muted);
}
.seg span.on {
  background: var(--accent);
  color: var(--on-accent);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}
.switch {
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: var(--accent);
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.bento + .note {
  margin-top: 20px;
}

/* ---- pricing ------------------------------------------------------------- */

/* Break between phrases, never inside one. */
.nowrap {
  display: inline-block;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.plan h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}
/* The headline of each plan: what you get (free) or what it costs (full). */
.plan-amount {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.plan-amount b {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 2px;
  font-variant-numeric: tabular-nums;
}
.plan-amount small {
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
}
.plan-price {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
.plan-price b {
  font-variant-numeric: tabular-nums;
}
/* Same level chips as the app: lit ones are included. */
.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
}
.levels span {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-muted);
  opacity: 0.55;
}
.levels span.on {
  background: var(--accent-soft);
  color: var(--accent);
  opacity: 1;
}
.plan ul {
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: grid;
  gap: 12px;
}
.plan li {
  padding-left: 32px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
}
.plan li small {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}
/* Check in a soft circle; "minus" marks the trade-off of the free plan. */
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.plan li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan li.minus::before {
  background: var(--surface-muted);
}
.plan li.minus::after {
  left: 6px;
  top: 11px;
  width: 9px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--text-muted);
  transform: none;
}

/* Recommended plan: same white card, marked by an accent border and a faint blue wash. */
.plan.full {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0, var(--surface) 180px);
  box-shadow: 0 18px 40px -28px rgba(36, 104, 242, 0.45);
}
.plan.full .plan-amount b {
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .plan.full {
    box-shadow: none;
  }
}

/* ---- documents (privacy / support) ------------------------------------- */

.doc {
  padding: 32px 0 88px;
}
.doc h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.35;
  margin: 24px 0 8px;
}
.doc .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}
.doc h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 48px 0 12px;
  padding-top: 8px;
}
.doc h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  font-size: 16px;
}
.doc ul,
.doc ol {
  padding-left: 1.4em;
}
.doc li + li {
  margin-top: 6px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
.doc th {
  width: 28%;
  font-weight: 700;
}
.table-scroll {
  overflow-x: auto;
}

.contact-card {
  background: var(--canvas);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0 8px;
}
.contact-card p {
  margin: 0 0 8px;
}
.mail {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  word-break: break-all;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 32px 14px 0;
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
details[open] summary::after {
  transform: rotate(-135deg);
  top: 26px;
}
details > :not(summary) {
  margin-top: 0;
  color: var(--text-muted);
}

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  /* Stacked hero: copy and store badges centred above the phone. */
  .hero-copy {
    text-align: center;
  }
  .hero-copy .stores {
    justify-content: center;
  }
  .steps {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .steps li + li::before {
    left: 50%;
    top: -19px;
    margin-left: -7px;
    transform: rotate(135deg);
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .tile-content,
  .tile-calm {
    grid-column: span 2;
  }
  .tile-marks,
  .tile-audio {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .plan {
    padding: 26px 22px;
  }
  .site-nav {
    gap: 14px;
    font-size: 13px;
  }
  .site-nav .wide {
    display: none;
  }
  .hero {
    padding: 112px 0 56px;
  }
  .device-wrap {
    width: min(270px, 100%);
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .tile-content,
  .tile-calm,
  .tile-marks,
  .tile-audio {
    grid-column: auto;
  }
  .tile-content {
    flex-direction: column;
    align-items: stretch;
  }
  .tile-calm ul {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 24px 20px;
  }
  section {
    padding: 64px 0;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .doc th,
  .doc td {
    display: block;
    width: 100%;
    padding: 4px 0;
    border: 0;
  }
  .doc tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .bar.run i,
  .mini-bar i,
  .wave i,
  .caret {
    animation: none;
  }
}
