/* Rooster Alarm: Roostbell — Authentic "Flock" Web Design System
   Uses self-hosted Archivo variable font, dark-first OLED surfaces + automatic prefers-color-scheme: light,
   authentic Flock stage colours, interactive audio preview deck, mission switcher, and 3-point QR system. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/ArchivoLatin.ttf?v=a52f467ddef0") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Dark mode (Flock default — tokens from FlockTokens.swift) */
  --bg: #000000;
  --bg-elev: #141416;
  --surface: #1C1C1E;
  --surface2: #2C2C2F;
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(86, 208, 232, 0.42);
  --ink: #FFFFFF;
  --ink2: #B6B6BD;
  --ink3: #8A8A93;
  --teal: #0E8AA3;
  --teal-bright: #5CE1FA;
  --teal-soft: rgba(14, 138, 163, 0.22);
  --amber: #F2A257;
  --amber-soft: rgba(242, 162, 87, 0.16);
  --green: #34C77B;
  --green-soft: rgba(52, 199, 123, 0.16);
  --link: #6FE3F9;
  --btn-bg: #FFFFFF;
  --btn-ink: #000000;
  --header-bg: rgba(0, 0, 0, 0.78);
  --bezel-bg: #171A21;
  --bezel-ring: rgba(255, 255, 255, 0.22);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.68);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.46);
  --hero-glow-a: rgba(14, 123, 145, 0.34);
  --hero-glow-b: rgba(158, 100, 0, 0.18);

  /* Authentic Flock stage colours (dark) */
  --st-classic: #0B6E82;
  --st-nuclear: #955E00;
  --st-twinbell: #B23A30;
  --st-klaxon: #35549E;
  --st-coach: #1E7942;
  --st-golden: #A8476A;

  accent-color: var(--teal-bright);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --bg-elev: #F7F7FA;
    --surface: #F1F1F3;
    --surface2: #E4E4E8;
    --border: rgba(0, 0, 0, 0.10);
    --border-strong: rgba(16, 120, 139, 0.38);
    --ink: #000000;
    --ink2: #4A4A52;
    --ink3: #6D6D75;
    --teal: #10788B;
    --teal-bright: #0B6E82;
    --teal-soft: rgba(16, 120, 139, 0.11);
    --amber: #A65A08;
    --amber-soft: rgba(166, 90, 8, 0.10);
    --green: #148047;
    --green-soft: rgba(20, 128, 71, 0.11);
    --link: #0B6E82;
    --btn-bg: #000000;
    --btn-ink: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.85);
    --bezel-bg: #1B1F28;
    --bezel-ring: rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 24px 56px rgba(12, 18, 28, 0.16);
    --shadow-md: 0 10px 28px rgba(12, 18, 28, 0.09);
    --hero-glow-a: rgba(16, 120, 139, 0.13);
    --hero-glow-b: rgba(242, 162, 87, 0.12);

    --st-classic: #10788B;
    --st-nuclear: #97640A;
    --st-twinbell: #C83322;
    --st-klaxon: #355EC2;
    --st-coach: #267A44;
    --st-golden: #BC3866;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 11px 18px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  border-radius: 999px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 16px; top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--teal-bright);
  outline-offset: 3px;
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

/* Sticky Header */
.top {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  min-width: 0;
}
.brand__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.brand__icon img { width: 100%; height: 100%; object-fit: cover; }
.brand__name {
  font-size: 18px;
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__accent { color: var(--teal-bright); }

.top__nav {
  display: none;
  align-items: center;
  gap: 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink2);
}
.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.top__nav a:hover,
.top__nav a[aria-current="page"] { color: var(--ink); }

.top__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.top__cta:hover { opacity: 0.9; transform: translateY(-1px); }
.top__cta:active { transform: scale(0.98); }

@media (max-width: 480px) {
  .wrap { width: min(1140px, 100% - 32px); }
  .top__in { gap: 10px; }
  .brand { gap: 9px; }
  .brand__icon { width: 32px; height: 32px; border-radius: 8px; }
  .brand__name { font-size: 15.5px; }
  .top__cta { padding: 0 13px; font-size: 14px; min-height: 40px; }
}
@media (max-width: 374px) {
  .brand__prefix { display: none; }
  .brand__name { font-size: 17px; }
}
@media (min-width: 880px) {
  .top__nav { display: flex; }
}

/* Hero — overflow stays visible vertically so desktop Scan QR popover is never clipped */
.hero {
  position: relative;
  z-index: 3;
  overflow: visible;
  padding: 48px 0 64px;
}
.hero__glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.hero__glow::before {
  content: "";
  position: absolute;
  inset: -140px -80px auto;
  height: 700px;
  background:
    radial-gradient(560px 440px at 76% 36%, var(--hero-glow-a), transparent 70%),
    radial-gradient(420px 340px at 20% 18%, var(--hero-glow-b), transparent 72%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-bright);
  margin-bottom: 18px;
}
@media (max-width: 389px) {
  .eyebrow { font-size: 12.2px; padding: 5px 11px; gap: 6px; }
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
}
.display {
  margin: 0 0 16px;
  font-size: clamp(38px, 6.2vw, 64px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.99;
  letter-spacing: -0.014em;
  word-spacing: 0.055em;
  text-wrap: balance;
}
.lead {
  margin: 0 0 26px;
  font-size: clamp(17.5px, 2.1vw, 20px);
  line-height: 1.52;
  color: var(--ink2);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.appstore {
  display: inline-flex;
  border-radius: 11px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.appstore img { width: 156px; height: 52px; }
.appstore:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.appstore:active { transform: scale(0.98); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.trust-strip li {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink2);
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Phone hardware bezels */
.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-pair {
  position: relative;
  width: min(380px, 100%);
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 248px;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(155deg, #2E3440, var(--bezel-bg) 44%, #0B0D12);
  border: 1.5px solid var(--bezel-ring);
  box-shadow: var(--shadow-lg);
}
.phone img {
  width: 100%;
  border-radius: 35px;
  aspect-ratio: 918 / 1996;
  object-fit: cover;
}
.phone--primary { z-index: 2; }
.phone--secondary {
  position: absolute;
  right: 4px;
  bottom: -16px;
  width: 172px;
  padding: 7px;
  border-radius: 33px;
  z-index: 3;
  transform: rotate(3.5deg);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.62);
}
.phone--secondary img { border-radius: 26px; }
@media (max-width: 420px) {
  .phone { width: 218px; }
  .phone--secondary { width: 146px; right: 4px; }
}

@media (min-width: 920px) {
  .hero { padding: 68px 0 84px; }
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; gap: 48px; }
  .phone-pair { width: 430px; justify-content: flex-start; padding-left: 14px; }
  .phone { width: 268px; }
  .phone--secondary { width: 206px; right: 2px; bottom: -18px; }
}
@media (min-width: 920px) and (max-height: 820px) {
  .hero { padding: 40px 0 64px; }
}

/* Section Scaffolding */
.sec {
  position: relative;
  z-index: 1;
  padding: 72px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 84px;
}
.sec__head {
  max-width: 680px;
  margin-bottom: 36px;
}
.h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 900;
  font-stretch: 80%;
  line-height: 1.05;
  letter-spacing: -0.014em;
  word-spacing: 0.05em;
  text-wrap: balance;
}
.sub {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.56;
  color: var(--ink2);
  text-wrap: pretty;
}

/* Section 2: Interactive 6-Card Flock Sound Deck
   Mobile (< 680px): 1-col horizontal soundboard so text & play button never touch portraits.
   Tablet (680-979px): 2-col cards. Desktop (>= 980px): 3-col cards with strict art clearance. */
.sdeck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.sdeck__card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}
.sdeck__btn {
  appearance: none;
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: #FFFFFF;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--stage, #0B6E82);
  background-image: radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%);
  box-shadow: var(--shadow-md);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.sdeck__btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.48); }
.sdeck__btn:active { transform: scale(0.985); }
.sdeck__btn.is-playing {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--teal-bright), var(--shadow-md);
}
.sdeck__btn--classic { --stage: var(--st-classic); }
.sdeck__btn--nuclear { --stage: var(--st-nuclear); }
.sdeck__btn--twinbell { --stage: var(--st-twinbell); }
.sdeck__btn--klaxon { --stage: var(--st-klaxon); }
.sdeck__btn--coach { --stage: var(--st-coach); }
.sdeck__btn--golden { --stage: var(--st-golden); }

.sdeck__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: calc(100% - 108px);
}
.sdeck__tier {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  color: #FFFFFF;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.sdeck__tier--free {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.sdeck__ctl {
  order: -1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sdeck__btn.is-playing .sdeck__ctl {
  background: #FFFFFF;
  color: #000000;
}
.sdeck__btn .ic-pause { display: none; }
.sdeck__btn.is-playing .ic-play { display: none; }
.sdeck__btn.is-playing .ic-pause { display: block; }

.sdeck__art {
  position: absolute;
  right: 2px;
  bottom: -4px;
  width: 102px;
  height: 102px;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  z-index: 1;
}
.sdeck__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.20) 56%, rgba(0, 0, 0, 0) 86%);
  pointer-events: none;
  z-index: 1;
}
.sdeck__meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 108px);
}
.sdeck__name {
  font-size: 18px;
  font-weight: 800;
  font-stretch: 90%;
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.sdeck__sub {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
}
.sdeck__time {
  font-family: var(--mono);
  font-size: 13px;
}

@media (min-width: 390px) and (max-width: 679px) {
  .sdeck__art { width: 112px; height: 112px; right: 4px; }
  .sdeck__top, .sdeck__meta { max-width: calc(100% - 118px); }
}
@media (min-width: 680px) {
  .sdeck { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sdeck__card, .sdeck__btn { border-radius: 26px; }
  .sdeck__btn { min-height: 222px; padding: 16px; }
  .sdeck__top { justify-content: space-between; max-width: none; }
  .sdeck__ctl { order: 0; width: 38px; height: 38px; }
  .sdeck__art { width: 126px; height: 126px; right: 0; bottom: -4px; }
  .sdeck__scrim {
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.56) 52%, rgba(0, 0, 0, 0.78) 100%);
  }
  .sdeck__meta { max-width: calc(100% - 126px); }
}
@media (min-width: 980px) {
  .sdeck { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .sdeck__art { width: 122px; height: 122px; }
  .sdeck__meta { max-width: calc(100% - 122px); }
}
@media (min-width: 1180px) {
  .sdeck__btn { min-height: 228px; padding: 18px; }
  .sdeck__art { width: 138px; height: 138px; }
  .sdeck__meta { max-width: calc(100% - 138px); }
}

.chips-bar {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.chips-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips-bar__list li {
  font-size: 14.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--ink);
}
.chips-bar p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink2);
}

/* Section 3: Interactive Wake Missions Switcher */
.missions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
@media (min-width: 880px) {
  .missions-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}
.mtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.mtab {
  appearance: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  font: 700 15.5px/1 var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mtab:hover { color: var(--ink); }
.mtab.is-active {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-color: var(--btn-bg);
}
.mtab__pro {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
}
.mtab.is-active .mtab__pro {
  background: rgba(128, 128, 128, 0.22);
  color: inherit;
}

.mpanel {
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
}
.mpanel[hidden] { display: none; }
.mpanel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mpanel h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -0.02em;
}
.mpanel__pill {
  font-size: 14px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .mpanel { padding: 22px 20px; }
  .mpanel h3 { font-size: 22px; }
}
.mpanel__pill--pro {
  background: var(--amber-soft);
  color: var(--amber);
}
.mpanel p {
  margin: 0;
  color: var(--ink2);
  font-size: 16.5px;
}
.mpanel__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}
.mpanel__specs li {
  padding: 7px 13px;
  border-radius: 14px;
  background: var(--surface2);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.missions-note {
  margin: 16px 0 0;
  font-size: 15.5px;
  color: var(--ink3);
}
.missions-stage {
  display: flex;
  justify-content: center;
}
.missions-stage .phone { width: 262px; }
.missions-stage .phone[hidden] { display: none; }

/* Section 4: Stay Awake 3-Card Showcase */
.stay-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) {
  .stay-grid { grid-template-columns: repeat(3, 1fr); }
}
.scard {
  padding: 26px 24px 0;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}
.scard__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-bright);
  margin-bottom: 10px;
}
.scard h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.scard p {
  margin: 0;
  font-size: 16px;
  color: var(--ink2);
}
.scard__shot {
  width: min(226px, 82%);
  margin: 4px auto 0;
  padding: 7px 7px 0;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(155deg, #2E3440, var(--bezel-bg));
  border: 1.5px solid var(--bezel-ring);
  border-bottom: 0;
  max-height: 290px;
  overflow: hidden;
}
.scard__shot img {
  width: 100%;
  border-radius: 25px 25px 0 0;
}

/* Section 5: AlarmKit, StandBy & Apple Watch Split */
.rel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
@media (min-width: 880px) {
  .rel-grid { grid-template-columns: 1.12fr 0.88fr; gap: 52px; }
}
.rlist {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}
.rlist li {
  padding: 17px 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--ink2);
}
.rlist strong { color: var(--ink); font-weight: 700; }

.eco-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 22px;
}
.eco-stage .phone { width: 252px; }
.watch-card {
  position: absolute;
  right: max(0px, calc(50% - 196px));
  bottom: 0;
  width: 138px;
  padding: 8px;
  border-radius: 34px;
  background: linear-gradient(155deg, #343A46, #14171E);
  border: 1.5px solid var(--bezel-ring);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.62);
  z-index: 3;
}
.watch-card img {
  width: 100%;
  border-radius: 26px;
}
@media (max-width: 420px) {
  .eco-stage .phone { width: 220px; }
  .watch-card { width: 118px; right: 2px; border-radius: 29px; padding: 7px; }
  .watch-card img { border-radius: 22px; }
}

/* Section 6: Free vs Pro Comparison */
.plans-two {
  display: grid;
  gap: 20px;
}
@media (min-width: 780px) {
  .plans-two { grid-template-columns: repeat(2, 1fr); }
}
.pcard {
  padding: 30px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pcard--pro {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--teal-soft), var(--surface) 58%);
  box-shadow: var(--shadow-md);
}
.pcard__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.pcard h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  font-stretch: 82%;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .pcard { padding: 24px 20px; }
  .pcard h3 { font-size: 22px; }
}
.pcard__sub {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink2);
}
.pcard ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 9px;
  font-size: 16px;
  color: var(--ink2);
}
.pcard li strong { color: var(--ink); }
.plan-legal {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink3);
  max-width: 78ch;
}
.plan-legal a { color: var(--link); }

/* Section 7: FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 840px;
}
.faq-list details {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 22px;
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 0;
  font-size: 17.5px;
  font-weight: 700;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  inline-size: 11px;
  block-size: 11px;
  flex-shrink: 0;
  border-right: 2.2px solid var(--teal-bright);
  border-bottom: 2.2px solid var(--teal-bright);
  transform: rotate(45deg);
  margin-right: 4px;
}
.faq-list details[open] > summary::after {
  transform: rotate(-135deg);
}
.faq-list details p {
  margin: 0 0 20px;
  color: var(--ink2);
  font-size: 16.5px;
  line-height: 1.58;
  max-width: 72ch;
}
.faq-list details a { color: var(--link); }

/* Section 8: Closing CTA Band */
.cta-band {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 84px;
}
.cta-band__box {
  padding: 48px 28px;
  border-radius: 36px;
  color: #FFFFFF;
  background:
    var(--st-classic)
    radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
.cta-band__box .h2 { color: #FFFFFF; margin: 0; }
.cta-band__box p {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.90);
  max-width: 50ch;
  text-wrap: balance;
}

/* Footer */
.foot {
  border-top: 1px solid var(--border);
  padding: 40px 0 54px;
  color: var(--ink3);
  font-size: 15px;
}
.foot__grid { display: grid; gap: 18px; }
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-stretch: 88%;
  color: var(--ink);
  text-decoration: none;
}
.foot__brand img { width: 30px; height: 30px; border-radius: 7px; }
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.foot__nav a,
.foot__linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink2);
  text-decoration: none;
  font: inherit;
}
.foot__linkbtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.foot__nav a:hover,
.foot__linkbtn:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot__note {
  margin: 0;
  line-height: 1.55;
  max-width: 84ch;
}

/* Cookie Consent Banner (EEA/UK timezone gated in analytics.js) */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 540px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 16px;
}
.cookie p { margin: 0 0 12px; }
.cookie a { color: var(--link); }
.cookie-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cookie button {
  min-height: 46px;
  border: 0;
  border-radius: 23px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 700 16px var(--font);
  cursor: pointer;
}
.cookie button[data-v="denied"] {
  background: var(--surface2);
  color: var(--ink);
}

/* Document Pages (Privacy / Support) & 404 */
.doc {
  padding: 44px 0 84px;
  font-size: 17px;
  line-height: 1.62;
}
.doc__in { max-width: 760px; }
.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 900;
  font-stretch: 80%;
  line-height: 1.05;
  letter-spacing: -0.014em;
  word-spacing: 0.05em;
}
.doc .meta {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--ink3);
}
.doc h2 {
  margin: 38px 0 12px;
  font-size: 25px;
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -0.018em;
  scroll-margin-top: 84px;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 19.5px;
  font-weight: 700;
  font-stretch: 92%;
  scroll-margin-top: 84px;
}
.doc p { margin: 0 0 14px; color: var(--ink2); text-wrap: pretty; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.25em; color: var(--ink2); }
.doc li { margin: 0 0 8px; text-wrap: pretty; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 21px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 700;
}
.toc a:hover { border-color: var(--border-strong); }

.btn-copy {
  appearance: none;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--teal-soft);
  color: var(--ink);
  font: 700 14px/1 var(--font);
  cursor: pointer;
  margin-left: 6px;
}
.btn-copy.is-copied { border-color: var(--green); color: var(--green); }

.nf {
  padding: 96px 0 116px;
  text-align: center;
}
.nf h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  font-stretch: 78%;
}
.nf p {
  margin: 0 auto 24px;
  color: var(--ink2);
  max-width: 44ch;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

/* Desktop QR code inline trigger + scroll-aware right-hand QR dock (matching cleanspeakersound.app & anxietytracker.net) */
.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.qr-inline-wrap {
  position: relative;
  display: none;
}
.qr-trigger {
  height: 52px;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.cta-band__box .qr-trigger {
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.36);
}
.cta-band__box .qr-trigger__txt span { color: rgba(255, 255, 255, 0.84); }
.qr-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--teal-bright);
  box-shadow: var(--shadow-md);
}
.qr-trigger__txt { display: grid; line-height: 1.2; }
.qr-trigger__txt strong { font-size: 14px; font-weight: 800; }
.qr-trigger__txt span { font-size: 12px; font-weight: 600; color: var(--ink2); }
.qr-mini-box {
  width: 32px;
  height: 32px;
  padding: 3px;
  background: #FFFFFF;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.qr-mini-box img { width: 100%; height: 100%; display: block; }

.qr-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 228px;
  background: #FFFFFF;
  color: #0B1220;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
  text-align: center;
}
.qr-inline-wrap--up .qr-popover {
  top: auto;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -6px);
}
.qr-inline-wrap--flip .qr-popover {
  top: auto;
  bottom: calc(100% + 10px);
  left: 0;
  transform: translateY(-6px);
}
.qr-inline-wrap:hover .qr-popover,
.qr-inline-wrap:focus-within .qr-popover,
.qr-inline-wrap.is-open .qr-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.qr-inline-wrap--up:hover .qr-popover,
.qr-inline-wrap--up:focus-within .qr-popover,
.qr-inline-wrap--up.is-open .qr-popover {
  transform: translate(-50%, 0);
}
.qr-inline-wrap--flip:hover .qr-popover,
.qr-inline-wrap--flip:focus-within .qr-popover,
.qr-inline-wrap--flip.is-open .qr-popover {
  transform: translateY(0);
}
.qr-popover .qr-big {
  width: 164px;
  height: 164px;
  margin: 0 auto 10px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: #FFFFFF;
}
.qr-popover .qr-big img { width: 100%; height: 100%; display: block; }
@media (max-height: 820px) {
  .qr-popover { padding: 13px; width: 216px; }
  .qr-popover .qr-big { width: 148px; height: 148px; margin-bottom: 8px; }
}
.qr-popover p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #0B1220;
}
.qr-popover span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-top: 3px;
}

.qr-dock {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.qr-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.qr-dock__btn {
  background: #FFFFFF;
  color: #0B1220;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 18px;
  padding: 10px 15px 10px 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 244px;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.qr-dock__btn:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}
.qr-dock__code {
  width: 64px;
  height: 64px;
  padding: 3px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}
.qr-dock__code img { width: 100%; height: 100%; display: block; }
.qr-dock__txt {
  font-size: 12.5px;
  line-height: 1.3;
  color: #475569;
  font-weight: 600;
  display: block;
}
.qr-dock__txt strong {
  display: block;
  font-size: 14px;
  color: #0B1220;
  font-weight: 800;
  margin-bottom: 2px;
}
.qr-dock__popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 246px;
  background: #FFFFFF;
  color: #0B1220;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
  text-align: center;
}
.qr-dock.is-visible:hover .qr-dock__popover,
.qr-dock.is-visible:focus-within .qr-dock__popover,
.qr-dock.is-visible.is-open .qr-dock__popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.qr-dock__popover .qr-big {
  width: 184px;
  height: 184px;
  margin: 0 auto 10px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: #FFFFFF;
}
.qr-dock__popover .qr-big img { width: 100%; height: 100%; display: block; }
.qr-dock__popover p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #0B1220;
}
.qr-dock__popover span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-top: 3px;
}

@media (min-width: 1024px) {
  .qr-inline-wrap { display: inline-block; }
  .qr-dock { display: block; }
}
@media (prefers-color-scheme: light) {
  .qr-trigger {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.16);
  }
  .qr-popover, .qr-dock__btn, .qr-dock__popover {
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.20);
  }
}
@media (prefers-reduced-motion: reduce) {
  .top__cta, .appstore, .sdeck__btn, .mtab, .qr-trigger, .qr-popover, .qr-dock, .qr-dock__btn, .qr-dock__popover {
    transition: none;
  }
}
