/* ==========================================================================
   CharmAI — Android install page
   Warm light theme, matching the app itself (orange primary, teal accent).
   Mobile-first. Every rule here serves one tap.
   ========================================================================== */

:root {
  /* Surfaces — warm paper, never clinical white */
  --paper:   #FFFCF9;
  --cream:   #FFF6EC;
  --sand:    #FDF3E9;
  --white:   #FFFFFF;

  --ink:     #1A1512;
  --body:    #5A524C;
  --muted:   #8A817A;

  /* Hairlines carry the page's warmth; a neutral grey border reads as cheap */
  --line:    rgba(120, 53, 15, 0.10);
  --line-2:  rgba(120, 53, 15, 0.17);

  /* Action */
  --flame-300: #FDBA74;
  --flame-400: #FB923C;
  --flame-500: #F97316;
  --flame-600: #EA580C;
  --flame-700: #C2410C;
  --flame-tint: #FFF1E4;

  /* Trust. Sampled from the teal lobe of the app icon (#0DCFCC), then
     darkened for legibility: 600 clears 3:1 for icons, 700 clears 4.5:1 for
     body text on --teal-tint. */
  --teal-500: #0DCFCC;
  --teal-600: #0B9695;
  --teal-700: #0F6E6D;
  --teal-tint: #E6FAFA;

  --green-600: #12A669;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-pill: 999px;

  /* Shadows are warm-tinted and highly diffused, never neutral black */
  --sh-sm: 0 1px 2px rgba(120, 53, 15, 0.05);
  --sh-md: 0 4px 16px -8px rgba(120, 53, 15, 0.16);
  --sh-lg: 0 20px 48px -26px rgba(120, 53, 15, 0.30);
  --sh-xl: 0 32px 70px -34px rgba(120, 53, 15, 0.34);

  --glow-cta:   0 10px 30px -10px rgba(249, 115, 22, 0.58), 0 2px 8px -2px rgba(249, 115, 22, 0.34);
  --glow-cta-a: 0 5px 16px -8px rgba(249, 115, 22, 0.6);

  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glide:  cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.42, 0.64, 1);

  --shell: min(100% - 40px, 600px);
  --wide:  min(100% - 40px, 980px);

  --z-grain: 40;
  --z-rail:  60;
  --z-dock:  70;
  --z-modal: 90;

  --dock-h: 0px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--dock-h);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 { letter-spacing: -0.045em; font-weight: 800; }

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--flame-tint); color: var(--flame-700); }

:focus-visible {
  outline: 2.5px solid var(--flame-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -130%);
  z-index: var(--z-modal);
  padding: 12px 22px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform 0.24s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.shell { width: var(--shell); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Atmosphere
   Fixed and pointer-events:none, so they never repaint during scroll.
   -------------------------------------------------------------------------- */

.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atmos::before,
.atmos::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.atmos::before {
  width: 92vw; height: 92vw;
  max-width: 700px; max-height: 700px;
  top: -34vw; left: 50%;
  margin-left: -46vw;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.30), rgba(251, 146, 60, 0) 68%);
  animation: drift-a 24s var(--ease-glide) infinite alternate;
}
.atmos::after {
  width: 64vw; height: 64vw;
  max-width: 460px; max-height: 460px;
  top: 46vh; right: -20vw;
  background: radial-gradient(circle, rgba(13, 207, 204, 0.17), rgba(13, 207, 204, 0) 70%);
  animation: drift-b 29s var(--ease-glide) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 4%, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-6%, -5%, 0) scale(0.94); }
}

/* Paper tooth. Multiply on a light ground; overlay would wash out. */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Scroll rail
   -------------------------------------------------------------------------- */

.rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: var(--z-rail);
  pointer-events: none;
}
.rail span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--flame-600), var(--flame-400) 60%, var(--teal-500));
}
/* Where supported, the compositor drives this straight off scroll position —
   no listener, no main-thread work. android.js only installs its fallback
   when this is unsupported. */
@supports (animation-timeline: scroll()) {
  .rail span {
    animation: rail-fill linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes rail-fill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--body);
}
.section { padding: clamp(64px, 13vw, 104px) 0; }
.section-head { text-align: center; margin-bottom: clamp(32px, 7vw, 52px); }
.section-head h2 {
  font-size: clamp(28px, 7.6vw, 40px);
  margin: 16px auto 0;
  max-width: 16ch;
}
.section-head p {
  margin: 12px auto 0;
  max-width: 34ch;
  font-size: 16px;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 6px 6px 6px 26px;
  min-height: 72px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--flame-400), var(--flame-600));
  color: var(--white);
  box-shadow: var(--glow-cta), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cta:active { transform: scale(0.975); box-shadow: var(--glow-cta-a), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.cta-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cta-copy b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.cta-copy small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 3px;
}

/* Button-in-button: the icon gets its own disc, flush to the inner edge. */
.cta-disc {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.42s var(--ease-spring), background-color 0.3s var(--ease);
}
.cta-disc svg { width: 22px; height: 22px; }
.cta:active .cta-disc { transform: scale(1.06); background: rgba(255, 255, 255, 0.28); }

/* One sheen as the button arrives. A loop would be noise on a page whose
   entire job is a single tap. */
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.34) 48%, transparent 62%);
  transform: translateX(-110%);
}
.cta.is-sheen::after { animation: sheen 1.15s var(--ease-glide); }
@keyframes sheen { to { transform: translateX(110%); } }

.cta[data-state='working'] { pointer-events: none; }
.cta[data-state='working'] .cta-disc svg { display: none; }
.cta[data-state='working'] .cta-disc::after {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  animation: spin 0.72s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta[data-state='done'] {
  background: linear-gradient(180deg, #22C98C, var(--green-600));
  box-shadow: 0 10px 30px -12px rgba(18, 166, 105, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 32px;
  text-align: center;
}

/* The mark is framed as an app-icon tile: it is literally what the user is
   about to put on their home screen. */
.hero-icon {
  width: 96px; height: 96px;
  margin: 0 auto;
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg), var(--sh-sm);
  animation: icon-in 0.9s var(--ease) both;
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }
@keyframes icon-in {
  from { opacity: 0; transform: scale(0.84) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.hero .eyebrow { margin-top: 24px; }

.hero h1 {
  font-size: clamp(38px, 11.6vw, 60px);
  margin: 18px auto 0;
  max-width: 12ch;
}
.hero h1 .grad { color: var(--flame-600); }
.hero-sub {
  margin: 16px auto 0;
  max-width: 28ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}

.hero-cta { margin: 30px auto 0; max-width: 400px; }

.hero-meta {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.trust-row {
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px 9px 11px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
}
.trust-chip svg { width: 15px; height: 15px; color: var(--teal-600); flex-shrink: 0; }

.hero-scroll {
  margin-top: auto;
  padding-top: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.hero-scroll svg { width: 15px; height: 15px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Phone mockup — frames the video poster on the watch card
   -------------------------------------------------------------------------- */

/* These are <span>s, not <div>s: one lives inside a <button>, whose content
   model permits only phrasing content. They must be blockified here or none
   of the sizing below applies. */
.phone {
  display: block;
  position: relative;
  width: 100%;
  max-width: 210px;
  margin-inline: auto;
  aspect-ratio: 200 / 406;
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(160deg, #F0E7DE, #D9CDC2 42%, #EDE3DA);
  box-shadow:
    0 22px 44px -24px rgba(120, 53, 15, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(120, 53, 15, 0.09);
}
.phone-screen {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
}
.phone-screen > video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--white);
}
.phone::after {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 5px;
  border-radius: var(--r-pill);
  background: rgba(26, 21, 18, 0.16);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */

.video-wrap { display: grid; justify-items: center; gap: 20px; }

.video-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 248px;
  border-radius: 32px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.5s var(--ease);
}
.video-card:active { transform: scale(0.975); }
.video-card .phone { max-width: 100%; }
.video-card::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -5%;
  transform: translateX(-50%);
  width: 112%; height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.26), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
}
.play-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--flame-400), var(--flame-600));
  box-shadow: 0 12px 28px -8px rgba(234, 88, 12, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 0.45s var(--ease-spring);
}
.play-disc svg { width: 21px; height: 21px; margin-left: 3px; color: var(--white); }
.video-card:active .play-disc { transform: scale(1.08); }
.play-disc::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  animation: halo 2.8s var(--ease-glide) infinite;
}
@keyframes halo {
  0%   { transform: scale(0.86); opacity: 0.9; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.video-caption { text-align: center; }
.video-caption b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.video-caption span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* Lightbox. `display` is deliberately absent from the base rule: author
   styles outrank the UA's `dialog:not([open]){display:none}` regardless of
   specificity, so declaring it here would leave the closed dialog laid out
   over the page, silently eating every tap. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  place-items: center;
  padding: 20px;
  margin: 0;
  border: 0;
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s var(--ease), overlay 0.35s var(--ease) allow-discrete, display 0.35s var(--ease) allow-discrete;
}
.lightbox::backdrop {
  /* Deep enough that the orange CTAs underneath read as dimmed rather than
     smearing into brown, and that the white caption stays legible. */
  background: rgba(28, 20, 14, 0.68);
  backdrop-filter: blur(20px) saturate(70%);
  -webkit-backdrop-filter: blur(20px) saturate(70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease), overlay 0.35s var(--ease) allow-discrete, display 0.35s var(--ease) allow-discrete;
}
.lightbox[open] { display: grid; opacity: 1; }
.lightbox[open]::backdrop { opacity: 1; }
@starting-style {
  .lightbox[open] { opacity: 0; }
  .lightbox[open]::backdrop { opacity: 0; }
}

.lightbox-inner {
  position: relative;
  width: min(100%, 370px);
  display: grid;
  gap: 16px;
  justify-items: center;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}
.lightbox[open] .lightbox-inner { transform: none; }
@starting-style { .lightbox[open] .lightbox-inner { transform: scale(0.94); } }

.lightbox video {
  width: 100%;
  max-height: 72dvh;
  border-radius: var(--r-xl);
  background: #000;
}
.lightbox-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--sh-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.lightbox-close svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Install guide — three steps
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Play Store explainer — sits directly under the hero so the question the
   hero provokes is answered before the user has to go looking for it.
   -------------------------------------------------------------------------- */

.playnote {
  padding: clamp(22px, 6vw, 30px);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  text-align: center;
}
.playnote h2 {
  font-size: clamp(20px, 5.2vw, 25px);
  margin-bottom: 10px;
}
.playnote p {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   Trust list
   -------------------------------------------------------------------------- */

.trust-list {
  display: grid;
  gap: 11px;
  max-width: 420px;
  margin: 0 auto;
  list-style: none;
}
.trust-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: 14.5px;
  color: var(--ink);
}
.trust-list svg { width: 16px; height: 16px; color: var(--teal-600); }
.trust-meta {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.guide { display: grid; gap: 14px; list-style: none; }

.step {
  position: relative;
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.step-body { min-width: 0; }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--flame-tint);
  color: var(--flame-700);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 9px;
}
.step h3 { font-size: 19.5px; }
.step p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.step p b { color: var(--ink); font-weight: 600; }

/* Android's own wording, quoted so it is recognisable when it appears. */
.step .quote {
  display: inline-block;
  margin-top: 9px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--sand);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--body);
}
.step .quote b { color: var(--flame-700); font-weight: 600; }

/* Highlighted once the download fires, to answer "what now". */
.step.is-cue {
  border-color: var(--flame-400);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14), var(--sh-lg);
}
.step.is-cue .step-n { background: var(--flame-500); color: var(--white); }

.guide-note {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--teal-tint);
  border: 1px solid rgba(11, 150, 149, 0.22);
}
.guide-note-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-600);
  box-shadow: var(--sh-sm);
}
.guide-note-icon svg { width: 17px; height: 17px; }
.guide-note p { font-size: 13.5px; line-height: 1.5; color: var(--teal-700); }
.guide-note p b { font-weight: 600; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 10px; }
.qa {
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.qa[open] { border-color: var(--line-2); box-shadow: var(--sh-md); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-sign { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.qa-sign::before,
.qa-sign::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.8px;
  border-radius: 2px;
  background: var(--flame-500);
  transform: translate(-50%, -50%);
  transition: transform 0.42s var(--ease);
}
.qa-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.qa-body { padding: 0 19px 17px; }
.qa-body p { font-size: 14.5px; line-height: 1.6; color: var(--body); max-width: 52ch; }
.qa-body a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Closer
   -------------------------------------------------------------------------- */

.closer {
  padding: clamp(64px, 13vw, 108px) 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, var(--cream));
  border-top: 1px solid var(--line);
}
.closer h2 { font-size: clamp(29px, 8.4vw, 42px); max-width: 13ch; margin-inline: auto; }
.closer > .shell > p { margin: 14px auto 0; max-width: 30ch; font-size: 16px; color: var(--body); }
.closer .hero-cta { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot {
  padding: 30px 0 40px;
  background: var(--cream);
  text-align: center;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  font-size: 13.5px;
  color: var(--body);
}
.foot-links a { transition: color 0.3s var(--ease); }
.foot-links a:hover { color: var(--flame-700); }
.foot-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Sticky install dock
   -------------------------------------------------------------------------- */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-dock);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 252, 249, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
  transform: translateY(115%);
  transition: transform 0.55s var(--ease-glide);
}
.dock.is-in { transform: none; }
.dock-inner { width: min(100%, 440px); margin-inline: auto; }
.dock .cta { min-height: 62px; padding-left: 24px; }
.dock .cta-disc { width: 50px; height: 50px; }
.dock .cta-copy b { font-size: 17px; }
.dock .cta-copy small { font-size: 11.5px; }

/* --------------------------------------------------------------------------
   Non-Android escape hatch
   -------------------------------------------------------------------------- */

.notice { display: none; margin: 0 auto; width: var(--shell); }
.notice.is-on { display: block; }
.notice-inner {
  margin-top: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: 13.5px;
  color: var(--body);
}
.notice-inner > svg { width: 18px; height: 18px; color: var(--muted); }
.notice-inner a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.notice.is-on ~ .hero { padding-top: 24px; }

/* --------------------------------------------------------------------------
   Scroll reveals

   The hidden state is gated behind .has-js, which an inline script in <head>
   sets and a failsafe removes if the reveal system never initialises. A page
   whose whole job is one tap must never render blank because a script failed.
   -------------------------------------------------------------------------- */

.reveal {
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.has-js .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(5px);
}
.has-js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* --------------------------------------------------------------------------
   Larger viewports
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
  .hero h1 { max-width: 13ch; }
  .hero-sub { font-size: 18.5px; max-width: 34ch; }
  .video-card { max-width: 272px; }
}

@media (min-width: 900px) {
  :root { --shell: min(100% - 64px, 640px); }

  /* Narrower than --wide on purpose: at full width the copy strands a large
     empty gutter to the right of every card. */
  .guide, .guide-note { width: min(100% - 64px, 760px); margin-inline: auto; }
  .step { padding: 22px; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; }
  .step .phone { max-width: 112px; }
  .step p { max-width: 46ch; }
  .step:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
  .guide-note { margin-top: 24px; }

  .faq { width: min(100% - 64px, 700px); margin-inline: auto; }
  .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(249, 115, 22, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  }
  .cta:hover .cta-disc { transform: translateY(1px) scale(1.05); background: rgba(255, 255, 255, 0.28); }
  .video-card:hover .play-disc { transform: scale(1.07); }
}

/* Narrow phones */
@media (max-width: 400px) {
  .step { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 15px; }
  .step .phone { max-width: 80px; }
  .step h3 { font-size: 17.5px; }
  .step p { font-size: 13.5px; }
  .step .quote { font-size: 12px; padding: 6px 10px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Reveals must not leave content invisible once transitions are disabled. */
  .has-js .reveal, .reveal { opacity: 1; transform: none; filter: none; }

  .dock { transform: none; display: none; }
  .dock.is-in { display: block; }
}
