/* alhamsapp.com
   Colours, sky and type follow the Alhams "Living Sky" design (day sand / night indigo).
   No web fonts, no scripts, no third-party requests. */

/* ---------- Tokens: day (light) ---------- */
:root {
  color-scheme: light dark;
  --bg: #F6F1E8;
  --card: #FFFFFF;
  --inset: #FBF8F2;
  --ink: #1C1A17;
  --text: #5B554C;
  --muted: #6B6458;
  --line: rgba(28, 26, 23, .12);
  --line-strong: rgba(28, 26, 23, .2);
  --accent: #0F6E66;
  --accent-strong: #0A5750;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(15, 110, 102, .1);
  --gold-ink: #7A5B15;
  --gold-soft: rgba(201, 162, 79, .18);
  --sky-ink: #10243F;
  --sky-line: rgba(16, 36, 63, .14);
  --sky-accent: #0A5750;
  --glass: rgba(255, 255, 255, .34);
  --glass-line: rgba(255, 255, 255, .62);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px rgba(13, 17, 39, .14), 0 1px 3px rgba(13, 17, 39, .08);
  --card-shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 12px 32px rgba(28, 26, 23, .07);
  --bezel: #0D1127;
  --ring-in: rgba(255, 255, 255, .5);
  --ring-out: rgba(13, 17, 39, .14);
  --icon-shadow: 0 0 0 1px rgba(13, 17, 39, .1), 0 20px 60px -10px rgba(13, 17, 39, .3);
  --sky: linear-gradient(180deg, #6EA5DD 0%, #8FBDE7 26%, #BBD8EE 52%, #E4EAE6 76%, #F6F1E8 100%);
  --cta-glow: radial-gradient(ellipse 52% 30% at 50% calc(100% - var(--crest)), rgba(255, 168, 64, .55), rgba(255, 192, 102, .22) 46%, rgba(255, 210, 140, 0) 76%), radial-gradient(ellipse 90% 75% at 50% 100%, rgba(255, 168, 64, .16), rgba(255, 168, 64, 0) 72%);
  --rim: 0 -1px 0 0 rgba(242, 179, 90, .85), 0 -1px 12px 0 rgba(255, 168, 64, .4);
  --day: 1;
  --night: 0;

  --pad: clamp(20px, 5vw, 56px);
  --bar-h: 72px;
  --crest: clamp(96px, 11vw, 170px);
  --ease: cubic-bezier(.2, .65, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------- Tokens: night (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F24;
    --card: #151B3D;
    --inset: #1B2249;
    --ink: #EEEAE0;
    --text: #AEB4CF;
    --muted: #8189AE;
    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .2);
    --accent: #5FD3C5;
    --accent-strong: #8AE6DA;
    --on-accent: #062320;
    --accent-soft: rgba(95, 211, 197, .15);
    --gold-ink: #F2C46B;
    --gold-soft: rgba(242, 196, 107, .14);
    --sky-ink: #FFFFFF;
    --sky-line: rgba(255, 255, 255, .12);
    --sky-accent: #5FD3C5;
    --glass: rgba(255, 255, 255, .1);
    --glass-line: rgba(255, 255, 255, .18);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --card-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 34px rgba(0, 0, 0, .32);
    --bezel: #04061A;
    --ring-in: rgba(255, 255, 255, .2);
    --ring-out: rgba(255, 255, 255, .12);
    --icon-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 60px -10px rgba(95, 211, 197, .35);
    --sky: linear-gradient(180deg, #04061A 0%, #0A0E2E 36%, #121A46 70%, #0B0F24 100%);
    --cta-glow: radial-gradient(ellipse 52% 30% at 50% calc(100% - var(--crest)), rgba(95, 211, 197, .32), rgba(118, 104, 214, .16) 46%, rgba(118, 104, 214, 0) 76%), radial-gradient(ellipse 90% 75% at 50% 100%, rgba(95, 211, 197, .12), rgba(95, 211, 197, 0) 72%);
    --rim: 0 -1px 0 0 rgba(245, 230, 188, .7), 0 -1px 12px 0 rgba(245, 230, 188, .35);
    --day: 0;
    --night: 1;
  }
}

/* ---------- Base ---------- */
*, ::before, ::after { box-sizing: border-box; }
html { background: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Over the sky, the teal ring is too faint on blue: use the sky ink instead */
.site-header :focus-visible, .skip:focus-visible { outline-color: var(--sky-ink); }
.menu[open] .menu-panel :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--on-accent); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
h1, h2, h3 {
  margin: 0;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 50;
  padding: 10px 16px; border-radius: 12px;
  background: var(--card); color: var(--ink); box-shadow: var(--card-shadow);
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 12px; }

/* Micro-label: eyebrow, kicker, meta, step head, stat label, scroll link, copyright */
.eyebrow, .kicker, .meta, .step-head, .stat dt, .scroll-link, .copyright, .card h2, .soon-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  line-height: 1.4;
}

/* ---------- Living sky (decorative) ---------- */
.sky {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: calc(-1 * var(--bar-h));
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--sky);
}
.sky > * { position: absolute; }
.sun {
  right: 11%;
  top: calc(var(--bar-h) + 64px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFBEA 0%, #FFE9A8 55%, #FFD16A 100%);
  box-shadow: 0 0 36px 16px rgba(255, 222, 150, .55), 0 0 90px 40px rgba(255, 232, 180, .3);
  opacity: var(--day);
}
.glow {
  left: -40px;
  right: -40px;
  bottom: 0;
  height: 56%;
  background: radial-gradient(ellipse 58% 42% at 50% 58%, rgba(255, 236, 200, .6) 0%, rgba(255, 236, 200, 0) 72%);
  opacity: var(--day);
}
.stars {
  inset: 0;
  background: url("/images/stars.svg") 0 0 / 440px 380px repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 82%);
  opacity: var(--night);
}
/* Keep stars from sitting beside headline letters, where a dot reads as punctuation */
.home .stars {
  -webkit-mask-image: radial-gradient(ellipse min(48vw, 520px) clamp(70px, 7vw, 90px) at 50% calc(var(--bar-h) + clamp(60px, 8vw, 100px)), transparent 60%, #000 100%), linear-gradient(180deg, #000 30%, transparent 82%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse min(48vw, 520px) clamp(70px, 7vw, 90px) at 50% calc(var(--bar-h) + clamp(60px, 8vw, 100px)), transparent 60%, #000 100%), linear-gradient(180deg, #000 30%, transparent 82%);
  mask-composite: intersect;
}
.doc .stars {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .2) 55%, #000 80%), linear-gradient(180deg, #000 30%, transparent 82%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .2) 55%, #000 80%), linear-gradient(180deg, #000 30%, transparent 82%);
  mask-composite: intersect;
}
.galaxy {
  left: -12%;
  top: 22%;
  width: max(700px, 86vw);
  height: max(200px, 22vw);
  transform: rotate(-14deg);
  background:
    radial-gradient(ellipse 40% 36% at 52% 50%, rgba(255, 214, 150, .15) 0%, rgba(255, 214, 150, 0) 70%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(95, 211, 197, .32) 0%, rgba(118, 104, 214, .16) 45%, rgba(13, 17, 39, 0) 75%);
  filter: blur(14px);
  opacity: var(--night);
}
.moon {
  right: 11%;
  top: calc(var(--bar-h) + 52px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 13px -7px 0 0 #F5E6BC;
  filter: drop-shadow(0 0 16px rgba(245, 230, 188, .55));
  opacity: var(--night);
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.doc .site-header { border-bottom: 1px solid var(--sky-line); }
.bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: var(--bar-h);
}
.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--sky-ink);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(13, 17, 39, .12); }
.brand-word { font-weight: 600; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.brand:hover { color: var(--sky-ink); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a {
  position: relative;
  padding: 10px 0;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sky-ink);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: .15em;
  bottom: 4px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sky-ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* "Coming soon" status capsule: glass, like the app's floating controls. Not a link. */
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-left: 6px;
  padding: 0 16px 0 14px;
  border-radius: 20px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--glass-shadow);
  color: var(--sky-ink);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.soon-pill svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* Phone menu: a native <details> disclosure, no script */
.menu { display: none; }
.menu > summary {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  border-radius: 22px;
  color: var(--sky-ink);
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; display: block; width: 22px; height: 9px; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 7.5px; }
.menu[open] .menu-icon::before { top: 3.75px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 3.75px; transform: rotate(-45deg); }
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px var(--pad) 48px;
  background: var(--bg);
  overflow-y: auto;
}
.menu-panel a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.menu-panel a:first-child { border-top: 1px solid var(--line); }
.menu-panel a[aria-current="page"] { color: var(--accent); }
.menu-panel .soon-pill { align-self: flex-start; max-width: 100%; margin: 32px 0 0; color: var(--ink); letter-spacing: .08em; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { transition: opacity .3s var(--ease); }
  @starting-style {
    .menu[open] .menu-panel { opacity: 0; }
  }
}
@media (max-width: 759px) {
  :root { --bar-h: 64px; }
  .site-nav { display: none; }
  .menu { display: block; }
  .home .sun, .home .moon { right: 5%; top: calc(var(--bar-h) + 70px); }
  /* The open menu covers the page: lock scrolling, and hide what is behind it so Tab cannot land
     on links the panel covers (WCAG 2.4.11). The panel paints over them, so nothing changes visually. */
  html:has(.menu[open]) { overflow: hidden; }
  html:has(.menu[open]) :is(main, .site-footer, .skip) { visibility: hidden; }
}
@media (min-width: 760px) {
  /* Beside the right-hand phone, clear of the headline at every width */
  .home .sun, .home .moon { right: 7%; top: calc(var(--bar-h) + clamp(150px, 20vw, 270px)); }
}

/* ---------- Hero ---------- */
.hero-art {
  position: relative;
  isolation: isolate;
  padding-top: clamp(22px, 4.4vw, 60px);
  text-align: center;
}
.hero-mark {
  margin: 0 auto;
  padding: 0 var(--pad);
  max-width: 15em;
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--sky-ink);
  text-wrap: balance;
}
.hero-mark span { color: var(--sky-accent); }
.hero-phones {
  --w: clamp(196px, 21vw, 290px);
  position: relative;
  height: calc(var(--w) * 1.42);
  margin-top: clamp(26px, 3.6vw, 52px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 44%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 44%, transparent 88%);
}
.hero-phones .phone {
  position: absolute;
  top: 14px;
  left: 50%;
  width: var(--w);
  margin: 0 0 0 calc(var(--w) / -2);
}
.hero-phones .phone-center { z-index: 2; }
.hero-phones .phone-left { transform: translate(-96%, 9%) rotate(-7deg) scale(.86); }
.hero-phones .phone-right { transform: translate(96%, 9%) rotate(7deg) scale(.86); }
@media (prefers-reduced-motion: no-preference) {
  .hero-phones { animation: hero-in 1.4s var(--ease) both; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: calc(-1 * clamp(10px, 2.6vw, 48px));
  padding-bottom: clamp(72px, 9vw, 128px);
}
.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 15px;
  box-shadow: var(--icon-shadow);
}
.eyebrow { margin: 0; color: var(--accent); }
.hero h1 { max-width: 17em; margin: 14px auto 0; font-size: clamp(30px, 3.6vw, 52px); }
.hero-lead {
  max-width: 36em;
  margin: 22px auto 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
  margin-top: 32px;
}

/* The store-badge slot: a calm, non-link capsule */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px 0 18px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.soon svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.scroll-link::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
}
.scroll-link:hover { color: var(--accent); }
.scroll-link:hover::after { transform: translateY(4px) rotate(45deg); }

/* ---------- Phone frame (shared) ---------- */
.phone {
  position: relative;
  margin: 0;
  border-radius: 12.5% / 8.4%;
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--ring-in), 0 0 0 7px var(--bezel), 0 0 0 8px var(--ring-out);
}
.phone img { width: 100%; height: auto; border-radius: inherit; }

/* ---------- Stats band ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { margin: 0 auto; display: grid; }
.stat {
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.stat:first-child { border-top: 0; }
.stat dt { color: var(--muted); text-align: right; text-wrap: balance; }
.stat dd {
  margin: 0;
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}
@media (min-width: 760px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;
    padding: clamp(36px, 4.5vw, 64px) clamp(20px, 3vw, 48px);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .stat dt { text-align: left; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { display: flex; align-items: center; margin: 0 0 26px; color: var(--muted); }
.kicker span { display: inline-flex; align-items: center; color: var(--accent); }
.kicker span::after { content: ""; width: 40px; height: 1px; margin: 0 16px; background: var(--line-strong); }
.section h2 { font-size: clamp(34px, 5.2vw, 72px); }
.section-intro { max-width: 34em; margin: 24px 0 0; font-size: clamp(16px, 1.3vw, 19px); }
@media (min-width: 960px) {
  .section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
  .section-head .section-intro { margin: 0 0 6px; }
}

/* Rail of steps with phones */
.rail {
  margin: clamp(48px, 7vw, 96px) calc(-1 * var(--pad)) 0;
  padding: 12px var(--pad) 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76vw, 320px);
  gap: 28px;
}
.step { display: flex; flex-direction: column; scroll-snap-align: start; }
.step-head {
  order: 0;
  display: flex;
  justify-content: space-between;
  margin: 0 0 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}
.step-head .num { color: var(--accent); }
.shot {
  order: 1;
  margin: 0 0 26px;
  padding: 9px 9px 0;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 98%);
}
/* On sand, a long fade turns the night-sky screens muddy grey: fade only the last fifth */
@media (prefers-color-scheme: light) {
  .shot {
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  }
}
.step h3 { order: 2; font-size: clamp(21px, 1.8vw, 25px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.step > p:not(.step-head) { order: 3; margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
@media (min-width: 960px) {
  .rail { margin-left: 0; margin-right: 0; padding: 12px 0 0; overflow: visible; }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
}

/* Two-column "list" sections (the template's labels section) */
.split { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
}
.label-list { margin: 0; border-top: 1px solid var(--line-strong); }
.label-row { display: grid; gap: 14px; padding: 30px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .label-row { grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; }
}
.label-row dt { padding-top: 1px; }
.label-row dd { margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 14px 6px 11px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; flex: 0 0 auto; }
.chip-solid { background: var(--accent); color: var(--on-accent); }
.chip-soft { background: var(--accent-soft); color: var(--accent-strong); }
.chip-gold { background: var(--gold-soft); color: var(--gold-ink); }
.chip-quiet { background: var(--card); color: var(--ink); box-shadow: var(--card-shadow); }
.list-note { margin: 28px 0 0; font-size: 15px; color: var(--muted); }

/* Icons: 24px stroke icons drawn inline */
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Help band on the home page (the support page's contact card) */
.help { padding: 0 0 clamp(84px, 11vw, 150px); }

/* ---------- CTA horizon ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(96px, 13vw, 180px) 0 clamp(170px, 19vw, 260px);
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(420px, 50vw, 700px);
  background: var(--cta-glow);
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(100% - var(--crest));
  width: max(1500px, 190vw);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--rim);
}
.cta-icon { width: 88px; height: 88px; margin: 0 auto 36px; border-radius: 21px; box-shadow: var(--icon-shadow); }
.cta h2 { font-size: clamp(46px, 8.6vw, 124px); letter-spacing: -0.045em; line-height: 1.02; }
.cta h2 span { color: var(--accent); }
.cta p { margin: 22px auto 36px; max-width: 30em; font-size: clamp(16px, 1.4vw, 20px); text-wrap: balance; }
.cta .soon { margin: 0; max-width: none; font-size: 15.5px; }
/* Phones: both "Coming soon" capsules stay on one line, down to 320 px */
@media (max-width: 759px) {
  .hero-actions .soon, .cta .soon { gap: 8px; padding: 0 16px 0 12px; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 64px) 0 clamp(40px, 5vw, 56px); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 30px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.site-footer .brand { color: var(--ink); }
.site-footer .brand:hover { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.footer-nav a {
  padding: 12px 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav .footer-email { font-weight: 500; font-size: 14.5px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.footer-nav .footer-email:hover { color: var(--accent-strong); text-decoration: underline; }
.disclaimer { max-width: 62em; margin: 0 0 18px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.copyright { margin: 0; color: var(--muted); }

/* ---------- Document pages ---------- */
.doc main { position: relative; isolation: isolate; }
.doc .sky { bottom: auto; height: calc(var(--bar-h) + clamp(250px, 26vw, 360px)); }
.doc .moon, .doc .sun { top: calc(var(--bar-h) + clamp(40px, 6vw, 84px)); }
.doc .galaxy { top: 6%; opacity: calc(var(--night) * .7); }
.page { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(80px, 11vw, 150px); }
.legal-head {
  padding-bottom: clamp(36px, 5vw, 64px);
  margin-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line-strong);
}
.legal-head .eyebrow { color: var(--sky-accent); }
.legal-head h1 { margin-top: 18px; font-size: clamp(42px, 7.4vw, 104px); letter-spacing: -0.04em; line-height: 1.02; }
.legal-head .meta { margin: 24px 0 0; color: var(--text); }
.legal-head .lead { max-width: 36em; margin: 28px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--text); }
.legal-intro, .clause { display: grid; gap: 18px; }
.legal-intro { padding-bottom: clamp(28px, 4vw, 48px); }
.clause { padding: clamp(30px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.clause h2 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
.clause-body > :last-child, .legal-intro > :last-child { margin-bottom: 0; }
.clause-body p, .legal-intro > p, .clause-body ul, .clause-body ol { max-width: 40em; }
.clause-body h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.clause-body h3:first-child { margin-top: 0; }
@media (min-width: 960px) {
  .legal-intro, .clause { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .legal-intro > * { grid-column: 2; }
}
.legal ul { margin: 0 0 1.1em; padding: 0; list-style: none; }
.legal li { position: relative; margin: 10px 0; padding-left: 26px; }
.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
}
.legal ol { margin: 0 0 1.1em; padding: 0 0 0 1.4em; }
.legal ol li { padding-left: 6px; }
.legal ol li::before { content: none; }
.legal ol li::marker { color: var(--accent); font-weight: 600; }
.path { color: var(--ink); font-weight: 600; }
.quote { color: var(--ink); }

/* Solid card (the app's card): radius 26, soft shadow, no border, no accent bar */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.card h2 { margin: 0 0 14px; color: var(--ink); }
.card ul { margin: 0; }

/* Table */
table { width: 100%; margin: 4px 0 26px; border-collapse: collapse; font-size: 15px; }
th {
  padding: 0 18px 14px 0;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  vertical-align: bottom;
}
td { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; color: var(--text); }
td:first-child { color: var(--ink); font-weight: 600; }
td:last-child, th:last-child { padding-right: 0; }
@media (max-width: 719px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  tr:first-child { border-top: 1px solid var(--line-strong); }
  td { padding: 5px 0; border: 0; }
  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* Contact card */
.contact { display: grid; gap: 26px; align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 760px) {
  .contact { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
}
.contact .email {
  margin: 6px 0 0;
  font-weight: 300;
  font-size: clamp(20px, calc(4.2vw + 6px), 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.contact .email a { color: var(--ink); text-decoration: none; }
.contact .email a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contact-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); max-width: 40em; }
.help .contact { margin-bottom: 0; }

/* Primary capsule button (the app's primary button) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); }
.button svg { width: 18px; height: 18px; }

/* FAQ: native details, no script */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq details:first-child summary { padding-top: 0; }
.faq details:first-child summary::after { top: .725em; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 48px 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: calc(.725em + 20px);
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  background:
    linear-gradient(currentColor, currentColor) center / 15px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 15px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 48px 24px 0; }
.faq .answer > :last-child { margin-bottom: 0; }
.faq .answer p, .faq .answer ul, .faq .answer ol { max-width: 40em; }

/* 404 */
.notfound .legal-head { border-bottom: 0; margin-bottom: 0; }
.notfound .hero-actions { justify-content: flex-start; }
.scroll-link.text-link::after { margin-top: 0; transform: rotate(-45deg); }
.scroll-link.text-link:hover::after { transform: translateX(4px) rotate(-45deg); }

/* ---------- Windows High Contrast ---------- */
@media (forced-colors: active) {
  /* The menu lines are painted backgrounds, which forced colours would erase */
  .menu-icon::before, .menu-icon::after { forced-color-adjust: none; background: CanvasText; }
  .button, .soon, .soon-pill, .chip, .card { border: 1px solid CanvasText; }
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-phones { animation: none; }
  .site-nav a::after, .menu-icon::before, .menu-icon::after, .scroll-link::after, .faq summary::after, .button { transition: none; }
}
@media print {
  .sky, .site-nav, .menu, .hero-art, .rail, .cta::before, .cta::after, .soon-pill { display: none; }
  body, html { background: #fff; color: #000; }
}
