/* Sonify — site styles
   Plain CSS, no build step. Dark first; light mode follows prefers-color-scheme.
   The device mock-ups live in mock.css. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark light;

  --accent: #08d48a;            /* the app's one accent */
  --accent-text: #08d48a;       /* accent when used as text on the page background */
  --accent-ink: #03170e;        /* text on an accent fill */
  --accent-soft: rgba(8, 212, 138, 0.12);

  --bg: #09090a;
  --bg-2: #111113;
  --bg-3: #19191c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #a8a8b0;
  --text-3: #85858d;

  --btn-bg: #f5f5f7;
  --btn-fg: #0b0b0c;

  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.6);

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
    "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4.5vw, 44px);
  --section: clamp(84px, 11vw, 168px);
  --header-h: 56px;

  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --accent-text: #007a50;
    --accent-soft: rgba(8, 212, 138, 0.16);

    --bg: #f5f5f7;
    --bg-2: #ffffff;
    --bg-3: #ececf0;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.16);
    --text: #1d1d1f;
    --text-2: #55555b;
    --text-3: #6c6c72;

    --btn-bg: #1d1d1f;
    --btn-fg: #ffffff;

    --shadow-lg: 0 40px 80px -34px rgba(20, 30, 40, 0.35), 0 10px 26px -14px rgba(20, 30, 40, 0.2);
    --shadow-md: 0 18px 40px -20px rgba(20, 30, 40, 0.28);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(8, 212, 138, 0.35);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.9375rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

html:not(.js) .js-only {
  display: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.75rem, 6.6vw + 0.7rem, 5.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2.05rem, 3.5vw + 0.9rem, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h3 {
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.lead {
  font-size: clamp(1.125rem, 0.55vw + 1rem, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--text-2);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent-text);
}

.eyebrow .icon {
  font-size: 1.05em;
}

.muted {
  color: var(--text-2);
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-3);
}

.text-link {
  color: var(--accent-text);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--accent:hover {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn--ghost {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
  background: var(--line);
}

/* App Store button: our own drawing, not Apple's badge artwork. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px 0 20px;
  border-radius: 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(8, 212, 138, 0.55);
}

.store:active {
  transform: scale(0.98);
}

.store .icon {
  font-size: 26px;
}

.store__text {
  display: grid;
  line-height: 1.1;
  text-align: left;
}

.store__text small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.72;
}

.store__text strong {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-stuck,
html:not(.js) .site-header {
  border-bottom-color: var(--line);
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand__mark {
  width: 26px;
  height: 22px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.875rem;
  color: var(--text-2);
}

.site-nav a {
  padding: 8px 2px;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(60% 46% at 50% 0%, rgba(8, 212, 138, 0.2), transparent 70%),
    radial-gradient(42% 30% at 50% 78%, rgba(8, 212, 138, 0.14), transparent 72%);
  pointer-events: none;
}

/* The logo's bars, very large and very quiet, breathing behind the phones. */
.hero__bars {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 9%;
  width: min(1500px, 132vw);
  height: min(640px, 62%);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(50% 62% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(50% 62% at 50% 50%, #000 30%, transparent 100%);
}

.hero__bars i {
  display: block;
  width: clamp(10px, 1.7vw, 24px);
  height: calc(var(--h) * 1%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 212, 138, 0), rgba(8, 212, 138, 0.42) 35%, rgba(8, 212, 138, 0.42) 65%, rgba(8, 212, 138, 0));
  opacity: 0.55;
  transform-origin: center;
  animation: bar-breathe calc(3.2s + var(--d) * 0.37s) ease-in-out calc(var(--d) * -0.61s) infinite alternate;
}

@keyframes bar-breathe {
  from {
    transform: scaleY(0.62);
  }
  to {
    transform: scaleY(1);
  }
}

.hero__copy {
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero__copy .eyebrow {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.875rem;
}

.hero__copy .display {
  margin-top: 22px;
}

.hero__copy .display span {
  display: block;
  text-wrap: balance;
}

.hero__copy .lead {
  margin-top: 24px;
  max-width: 35em;
}

.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
}

.hero__copy .fine {
  margin-top: 18px;
}

.hero__stage {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(18px, 3.2vw, 44px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.hero__stage .phone--side {
  margin-top: clamp(36px, 5vw, 72px);
}

/* The phones rise into place on load (CSS only, so it also runs without scripting). */
.hero__stage .phone {
  animation: phone-rise 1.1s var(--ease) backwards;
}

.hero__stage .phone--center {
  animation-delay: 0.1s;
}

.hero__stage .phone--left {
  animation-delay: 0.22s;
}

.hero__stage .phone--right {
  animation-delay: 0.3s;
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

@media (max-width: 720px) {
  /* The side phones tuck behind the middle one and peek out at the edges. */
  .hero__stage {
    gap: 0;
  }
  .hero__stage .phone--center {
    z-index: 2;
  }
  .hero__stage .phone--side {
    position: absolute;
    top: 0;
    z-index: 1;
    opacity: 0.55;
  }
  .hero__stage .phone--left {
    right: 50%;
    margin-right: 54px;
  }
  .hero__stage .phone--right {
    left: 50%;
    margin-left: 54px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}

.section--tight-top {
  padding-top: 0;
}

.section__head {
  max-width: 760px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head .h2 {
  margin-top: 14px;
}

.section__head .lead {
  margin-top: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Stacked: the words come before the picture, whichever side it sits on when wide. */
  .split--visual-first > :first-child {
    order: 2;
  }
}

.checks {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--text-2);
  line-height: 1.45;
}

.checks li strong {
  color: var(--text);
  font-weight: 600;
}

.checks .icon {
  margin-top: 1px;
  font-size: 22px;
  color: var(--accent-text);
}

.caption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-3);
  text-align: center;
}

/* A rounded stage that a piece of the app sits on. */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 56px) clamp(14px, 3vw, 48px);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--stage-wash, none);
  opacity: var(--stage-wash-opacity, 1);
}

/* ---------- Launch ---------- */
.launch {
  border-top: 1px solid var(--line);
}

.launch__grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.launch__item {
  padding: 28px clamp(18px, 2.6vw, 36px) 4px;
  border-left: 1px solid var(--line);
}

.launch__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.launch__num {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}

.launch__item .h3 {
  margin-top: 12px;
}

.launch__item p:last-child {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 1rem;
}

@media (max-width: 820px) {
  .launch__grid {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }
  .launch__item,
  .launch__item:first-child {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Rooms ---------- */
.rooms .stage {
  --stage-wash: radial-gradient(90% 70% at 30% 0%, rgba(255, 122, 89, 0.42), transparent 70%),
    radial-gradient(80% 70% at 90% 100%, rgba(130, 70, 200, 0.42), transparent 70%);
}

/* ---------- Scenes ---------- */
.scenes-panel {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.scenes-panel__pick > p {
  color: var(--text-2);
  max-width: 30em;
}

.scenes-panel__pick .h3 {
  margin-bottom: 10px;
}

.scenes-panel__where {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-2);
}

.pill .icon {
  font-size: 15px;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .scenes-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- NFC ---------- */
.steps {
  margin-top: 30px;
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  color: var(--text-2);
  line-height: 1.45;
}

.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  margin-top: -2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps strong {
  color: var(--text);
  font-weight: 600;
}

.tags .stage {
  --stage-wash: radial-gradient(70% 60% at 72% 30%, rgba(8, 212, 138, 0.2), transparent 70%);
  min-height: 520px;
}

/* ---------- Bento ---------- */
.bento {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.card__text {
  padding: clamp(22px, 2.6vw, 32px);
}

.card__text p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 34em;
}

.card__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 clamp(16px, 2.4vw, 32px) clamp(22px, 2.6vw, 32px);
  min-width: 0;
}

.card__art--bleed {
  padding-bottom: 0;
  align-items: end;
}

.col-3 {
  grid-column: span 3;
}
.col-4 {
  grid-column: span 4;
}
.col-5 {
  grid-column: span 5;
}
.col-6 {
  grid-column: span 6;
}
.col-7 {
  grid-column: span 7;
}
.col-8 {
  grid-column: span 8;
}
.col-12 {
  grid-column: span 12;
}
.row-2 {
  grid-row: span 2;
}

@media (max-width: 980px) {
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 6;
  }
  .col-wide-md {
    grid-column: span 12;
  }
  .row-2 {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }
}

.card--wash-warm::before,
.card--wash-green::before,
.card--wash-violet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.card--wash-warm::before {
  background: radial-gradient(90% 80% at 80% 100%, rgba(255, 122, 89, 0.3), transparent 70%),
    radial-gradient(70% 70% at 10% 100%, rgba(130, 70, 200, 0.28), transparent 70%);
}

.card--wash-green::before {
  background: radial-gradient(80% 70% at 50% 110%, rgba(8, 212, 138, 0.2), transparent 70%);
}

.card--wash-violet::before {
  background: radial-gradient(90% 80% at 50% 110%, rgba(94, 92, 230, 0.34), transparent 70%);
}

/* Siri phrases */
.phrases {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.phrase {
  display: inline-block;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--bg-3);
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.phrase:nth-child(even) {
  justify-self: end;
  border-radius: 20px 20px 6px 20px;
}

.phrase b {
  font-weight: inherit;
  color: var(--accent-text);
}

/* Shortcuts actions */
.actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px 8px 9px;
  border-radius: 12px;
  background: var(--bg-3);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: -0.005em;
}

.action i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(160deg, #16e09a, #05b877);
  color: #03170e;
  font-size: 14px;
}

/* ---------- Details grid ---------- */
.details {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail {
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--bg-2);
}

.detail .icon {
  font-size: 26px;
  color: var(--accent-text);
}

.detail .h3 {
  margin-top: 16px;
  font-size: 1.125rem;
}

.detail p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9688rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .details {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq summary:hover::after {
  border-color: var(--text);
}

.faq details > div {
  padding: 0 2px 24px;
  color: var(--text-2);
  max-width: 44em;
}

.faq details > div p + p {
  margin-top: 12px;
}

/* ---------- Download ---------- */
.download {
  position: relative;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(8, 212, 138, 0.2), transparent 72%);
}

.download__in {
  display: grid;
  justify-items: center;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25.5px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
}

.download .h2 {
  margin-top: 30px;
  max-width: 14ch;
}

.download .lead {
  margin-top: 18px;
  max-width: 30em;
}

.download .store {
  margin-top: 34px;
}

.download .fine {
  margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 44px 56px;
  font-size: 0.875rem;
  color: var(--text-3);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.site-footer .brand {
  color: var(--text);
  margin-right: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  color: var(--text-2);
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

.site-footer__legal p {
  max-width: 62em;
}

/* ---------- Simple pages (privacy, support) ---------- */
.page {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: var(--section);
}

.page__in {
  max-width: 720px;
  margin-inline: auto;
}

.page h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.page .lead {
  margin-top: 18px;
}

.prose {
  margin-top: 48px;
}

.prose h2 {
  margin-top: 44px;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--text-2);
}

.prose ul {
  padding-left: 1.2em;
  list-style: disc;
  display: grid;
  gap: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.notice {
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background: var(--bg-2);
  font-size: 0.9375rem;
  color: var(--text-2);
}

.notice strong {
  color: var(--text);
}

.contact-card {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.contact-card .btn {
  margin-top: 16px;
}

/* ---------- Motion ---------- */
/* Reveal on scroll only when scripting is on; without it everything is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero__bars,
  .hero__glow {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
