/* ═══════════════════════════════════════════════════════════════════
   Periodic Alarm — marketing site
   Palette is taken from the app itself: the alarm screen's deep navy
   (#1A1A2E) and its lavender label colour (#E0BBE4).
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --navy-900: #12121f;
  --navy-800: #1a1a2e;
  --navy-700: #22223c;
  --navy-600: #2d2d4d;

  --violet-500: #7c5cff;
  --violet-400: #9d7bff;
  --violet-300: #bda6ff;
  --lavender: #e0bbe4;
  --mint: #7ee0c0;

  /* Neutrals */
  --ink-900: #14141c;
  --ink-700: #33334a;
  --ink-500: #5c5c78;
  --ink-400: #7b7b96;
  --paper: #ffffff;
  --paper-tint: #f6f5fc;
  --line: #e7e5f2;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(20, 20, 40, .06), 0 2px 8px rgba(20, 20, 40, .04);
  --shadow-md: 0 4px 12px rgba(20, 20, 40, .07), 0 14px 34px rgba(20, 20, 40, .07);
  --shadow-lg: 0 10px 30px rgba(20, 20, 40, .10), 0 32px 70px rgba(20, 20, 40, .14);
  --shadow-violet: 0 10px 26px rgba(124, 92, 255, .32);

  --container: 1160px;
  --header-h: 64px;

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .3, 1);
  --dur-fast: .15s;
  --dur-mid: .25s;
}

/* ── Reset ─────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* Anchor targets must clear the sticky header instead of hiding under it. */
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

/* Lock the page behind the open mobile nav sheet. */
html.nav-open, html.nav-open body { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` contains the hero bloom without making body a scroll container,
     which is what `overflow-x: hidden` does — and that interferes with
     position: sticky/fixed descendants and with scroll-padding-top. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-500); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: rgba(124, 92, 255, .13);
  padding: .1em .42em;
  border-radius: 6px;
}

/* ── Utilities ─────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.narrow { max-width: 800px; }
.center { text-align: center; }

.sr-only, .skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-inline-start: 16px; top: 12px;
  z-index: 200;
  background: var(--violet-500); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  font-weight: 600;
}

/* Visible focus everywhere — keyboard users first */
:focus-visible {
  outline: 3px solid var(--violet-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--violet-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 650;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.2, .8, .3, 1),
              box-shadow .18s ease,
              background-color .18s ease,
              border-color .18s ease,
              color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: .55rem 1.05rem; font-size: .93rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.03rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--violet-500), #6a45ff);
  color: #fff;
  box-shadow: var(--shadow-violet);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(124, 92, 255, .42); }

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--violet-300); color: var(--violet-500); }

/* On dark sections */
.section-dark .btn-ghost,
.hero .btn-ghost,
.download .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.section-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.download .btn-ghost:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* ── Header ────────────────────────────────────────────────────── */

.site-header {
  /* Fixed, not sticky, so the hero's gradient runs underneath it and the bar
     can be genuinely transparent at rest instead of translucent over white. */
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  /* Notch and landscape-cutout safe. */
  padding-top: calc(env(safe-area-inset-top, 0px));
  background: transparent;
  /* The rule and blur only appear once you scroll. */
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-mid) ease,
              border-color var(--dur-mid) ease,
              box-shadow var(--dur-mid) ease,
              backdrop-filter var(--dur-mid) ease;
}
.site-header.is-stuck {
  background: rgba(18, 18, 31, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
}

/* Blur unavailable (older Firefox, low-power modes) — stay legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-stuck { background: rgba(18, 18, 31, .97); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.06rem;
  /* Keeps the wordmark from wrapping under the mark at 320px. */
  min-width: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.brand:hover { text-decoration: none; }
.brand:active { scale: .98; }

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-500), var(--lavender));
  box-shadow: var(--shadow-violet);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark.small { width: 32px; height: 32px; border-radius: 9px; }
.brand-mark.small svg { width: 18px; height: 18px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}
/* Only shown inside the mobile sheet. */
.nav-foot { display: none; }
.primary-nav a {
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
  font-weight: 550;
  position: relative;
  padding-block: .3rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.primary-nav a:hover,
.primary-nav a.is-active { color: #fff; text-decoration: none; }
.primary-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-400), var(--lavender));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.primary-nav ul a.is-active::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  .primary-nav ul a:hover::after { transform: scaleX(1); }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .12); }
.nav-toggle:active { scale: .96; }
.nav-toggle-bars {
  display: grid;
  gap: 5px;
  justify-items: center;
}
.nav-toggle-bars span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--dur-mid) var(--ease-out), opacity .18s ease-out;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop behind the open mobile sheet. */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 16, .5);
  animation: scrim-in .2s var(--ease-out);
}
.nav-scrim[hidden] { display: none; }
@keyframes scrim-in { from { opacity: 0 } to { opacity: 1 } }

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  /* Clears the fixed header, which sits over this gradient. */
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(2.5rem, 6vw, 4.5rem))
           0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(1100px 620px at 12% -10%, #33325c 0%, transparent 62%),
    radial-gradient(900px 560px at 92% 8%, #46295e 0%, transparent 60%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
}

/* Soft animated bloom behind the copy */
.hero-glow {
  position: absolute;
  z-index: -1;
  top: -22%; left: 48%;
  width: 780px; height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 92, 255, .40), transparent 66%);
  filter: blur(46px);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-50%, 0) scale(1); }
  to   { transform: translate(-42%, 34px) scale(1.1); }
}

/* Subtle dot grid for texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--lavender), var(--violet-300) 55%, #8fd6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.4rem;
  padding: .4rem .95rem .4rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(126, 224, 192, .2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.82); }
}

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.19rem);
  color: rgba(255, 255, 255, .76);
  max-width: 33em;
  margin-bottom: 1.5rem;
}
.lede strong { color: #fff; font-weight: 700; }

.hero-points {
  display: grid;
  gap: .6rem;
  margin-bottom: 2rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.9rem;
  color: rgba(255, 255, 255, .8);
  font-size: .98rem;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(126, 224, 192, .25), rgba(124, 92, 255, .25));
  border: 1px solid rgba(126, 224, 192, .5);
}
.hero-points li::after {
  content: "";
  position: absolute;
  left: 6px; top: .68em;
  width: 5px; height: 9px;
  border: 2px solid var(--mint);
  border-top: 0; border-left: 0;
  transform: rotate(42deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.center-actions { justify-content: center; }

.hero-note {
  font-size: .87rem;
  color: rgba(255, 255, 255, .5);
}

/* ── Phone mockups ─────────────────────────────────────────────── */

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone {
  position: absolute;
  width: 258px;
  aspect-ratio: 9 / 19.2;
  padding: 9px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #3b3b57, #191926);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    var(--shadow-lg);
}
/* Camera notch */
.phone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .55);
  z-index: 3;
}

.phone-screen {
  width: 100%; height: 100%;
  border-radius: 27px;
  overflow: hidden;
  position: relative;
}

.phone-back {
  transform: translate(-32%, -4%) rotate(-8deg) scale(.9);
  opacity: .96;
}
.phone-front {
  transform: translate(22%, 5%) rotate(5deg);
  z-index: 2;
}

/* Alarm-list screen */
.screen-list {
  background: #f4f2fb;
  padding: 0 0 12px;
  font-size: 11px;
}
.app-bar {
  background: linear-gradient(135deg, #e5dcff, #f0e7ff);
  color: #3a2a6b;
  font-weight: 800;
  font-size: 13px;
  padding: 30px 14px 12px;
  letter-spacing: -.01em;
}
.alarm-card {
  margin: 9px 10px;
  padding: 10px 11px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(30, 20, 70, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.alarm-card.muted { opacity: .5; }
.alarm-time {
  font-size: 17px;
  font-weight: 800;
  color: #2a1d52;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.alarm-time span { font-size: 9px; font-weight: 600; color: #7a6ea8; }
.alarm-label { color: #5a5080; margin-top: 1px; font-size: 10px; }
.alarm-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(124, 92, 255, .12);
  color: #6244d6;
  font-size: 9px;
  font-weight: 700;
}
.toggle {
  flex: 0 0 auto;
  width: 30px; height: 17px;
  border-radius: var(--r-pill);
  background: #cfc9e4;
  position: relative;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.toggle.on { background: var(--violet-500); }
.toggle.on::after { transform: translateX(13px); }

.fab {
  position: absolute;
  right: 12px; bottom: 14px;
  width: 34px; height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-500), #6a45ff);
  box-shadow: var(--shadow-violet);
}

/* Ringing screen */
.screen-ringing {
  background:
    radial-gradient(120% 80% at 50% 0%, #2b2b4d 0%, transparent 60%),
    var(--navy-800);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 16px;
}
.ring-time {
  font-size: 54px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.03em;
}
.ring-ampm {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, .7);
  margin-top: 2px;
}
.ring-date {
  font-size: 10px;
  color: rgba(255, 255, 255, .55);
  margin-top: 8px;
}
.ring-label {
  margin-top: 30px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lavender);
  line-height: 1.4;
}
.ring-dismiss { margin-top: 42px; }
.ring-dismiss-text {
  display: block;
  font-size: 8.5px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 9px;
}
.ring-arrow {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-inline: auto;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  animation: nudge 1.9s ease-in-out infinite;
}
.ring-arrow svg { width: 24px; height: 24px; }
@keyframes nudge {
  0%, 100% { transform: translateY(0);    box-shadow: 0 0 0 0 rgba(255, 255, 255, .16); }
  50%      { transform: translateY(-7px); box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

/* ── Trust strip ───────────────────────────────────────────────── */

.strip {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.strip-item h3 { color: #fff; margin-bottom: .3rem; font-size: 1rem; }
.strip-item p {
  color: rgba(255, 255, 255, .58);
  font-size: .9rem;
  line-height: 1.55;
}
.strip-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: .7rem;
  border-radius: 12px;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}

/* ── Sections ──────────────────────────────────────────────────── */

.section { padding: clamp(3.6rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--paper-tint); }
.section-dark {
  background:
    radial-gradient(900px 520px at 85% 0%, #3a2a5e 0%, transparent 58%),
    linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .76);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
}
.kicker {
  margin-bottom: .7rem;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--violet-500);
}
.section-dark .kicker { color: var(--lavender); }

.section-sub {
  font-size: 1.06rem;
  color: var(--ink-500);
}
.section-dark .section-sub { color: rgba(255, 255, 255, .68); }

/* ── Use-case cards ────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.15rem;
}

.card {
  position: relative;
  padding: 1.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1),
              box-shadow .22s ease,
              border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-300);
}
.card p { color: var(--ink-500); font-size: .95rem; }

/* Hero card spans two columns on wide screens */
.card-feature {
  grid-column: span 2;
  background: linear-gradient(150deg, #f3efff, #fff 58%);
  border-color: #ded2ff;
}
.card-feature h3 { font-size: 1.32rem; }
.card-feature p { font-size: 1rem; color: var(--ink-700); }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: .9rem;
  border-radius: 13px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, .13), rgba(224, 187, 228, .3));
  border: 1px solid rgba(124, 92, 255, .16);
}

.disclaimer {
  margin-top: 2rem;
  padding: 1.05rem 1.3rem;
  border-left: 3px solid var(--violet-400);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--paper-tint);
  color: var(--ink-500);
  font-size: .92rem;
}
.disclaimer strong { color: var(--ink-900); }

/* ── Gap-days section ──────────────────────────────────────────── */

.gap-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.gap-copy p { color: rgba(255, 255, 255, .72); }
.gap-copy strong { color: #fff; }

.gap-list {
  display: grid;
  gap: .55rem;
  margin: 1.6rem 0;
}
.gap-list li {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding: .62rem .95rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: background-color .2s ease, transform .2s ease;
}
.gap-list li:hover {
  background: rgba(255, 255, 255, .09);
  transform: translateX(4px);
}
.gap-list b {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--lavender), var(--violet-300));
}
.gap-list span { color: rgba(255, 255, 255, .82); font-size: .97rem; }

.gap-foot { font-size: .95rem; color: rgba(255, 255, 255, .6) !important; }

.gap-visual {
  margin: 0;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.gap-visual figcaption {
  margin-bottom: 1.1rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .66);
}
.gap-visual figcaption b { color: var(--lavender); }

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.cal-dow {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .38);
  padding-bottom: 3px;
}
.cal-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 11px;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}
.cal-day.is-ring {
  color: var(--navy-900);
  background: linear-gradient(140deg, var(--lavender), var(--violet-300));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(224, 187, 228, .3);
}
.cal-day.is-start {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 4px 14px rgba(224, 187, 228, .3);
}

.cal-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.15rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .58);
}
.cal-key span { display: inline-flex; align-items: center; gap: .45rem; }
.key-swatch {
  width: 13px; height: 13px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.key-swatch.key-ring {
  background: linear-gradient(140deg, var(--lavender), var(--violet-300));
  border-color: transparent;
}

/* ── Steps ─────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.8rem 1.5rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step p { color: var(--ink-500); font-size: .95rem; }
.step-num {
  position: absolute;
  top: -18px; left: 1.5rem;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-500), #6a45ff);
  box-shadow: var(--shadow-violet);
}
.step h3 { margin-top: .55rem; }

/* ── Feature grid ──────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1.15rem;
}
.feat {
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .45rem;
}
.feat h3 span { font-size: 1.2rem; }
.feat p { color: var(--ink-500); font-size: .94rem; }

/* ── Privacy ───────────────────────────────────────────────────── */

.privacy-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.privacy-lede { font-size: 1.06rem; color: rgba(255, 255, 255, .74); }

.check-list {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0 2rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, .8);
  font-size: .97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(126, 224, 192, .16);
  border: 1px solid rgba(126, 224, 192, .45);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6.5px; top: .62em;
  width: 5px; height: 10px;
  border: 2px solid var(--mint);
  border-top: 0; border-left: 0;
  transform: rotate(42deg);
}

.perm-card {
  padding: 1.7rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .11);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.perm-card h3 { margin-bottom: 1.1rem; }
.perm-card dl { margin: 0; }
.perm-card dt {
  font-weight: 700;
  color: var(--lavender);
  font-size: .9rem;
  margin-top: .85rem;
}
.perm-card dt:first-of-type { margin-top: 0; }
.perm-card dd {
  margin: .15rem 0 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .66);
}
.perm-foot {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .87rem;
  color: rgba(255, 255, 255, .5);
}

/* ── FAQ ───────────────────────────────────────────────────────── */

.faq { display: grid; gap: .8rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] {
  border-color: var(--violet-300);
  box-shadow: var(--shadow-md);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink-900);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border: 2px solid var(--violet-500);
  border-top: 0; border-left: 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq summary:hover { color: var(--violet-500); }
.faq details p {
  padding: 0 1.35rem 1.25rem;
  margin: 0;
  color: var(--ink-500);
  font-size: .96rem;
}

/* ── Download ──────────────────────────────────────────────────── */

.download {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(700px 380px at 50% 0%, #3d2c66 0%, transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .76);
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 -55% 0;
  height: 460px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, .28), transparent 62%);
  filter: blur(30px);
}
.download h2 { color: #fff; }
.download-sub {
  max-width: 46ch;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, .68);
  font-size: 1.06rem;
}
.download .hero-note { margin-top: 1.1rem; }

/* ── Footer ────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .6);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.footer-brand b { color: #fff; font-size: 1rem; }
.footer-brand p {
  margin: 0;
  font-size: .87rem;
  color: rgba(255, 255, 255, .5);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.footer-links a {
  color: rgba(255, 255, 255, .66);
  font-size: .93rem;
}
.footer-links a:hover { color: #fff; }

.footer-legal {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
}
.footer-legal p {
  margin: 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
}

/* ── Scroll-reveal ─────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .8, .3, 1),
              transform .7s cubic-bezier(.2, .8, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero-inner,
  .gap-layout,
  .privacy-layout { grid-template-columns: 1fr; }

  .hero-copy { max-width: 42em; }
  .hero-visual { min-height: 520px; margin-top: 1.5rem; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: grid; place-items: center; }

  /* A sheet that fills the viewport below the bar, not a cramped dropdown. */
  .primary-nav {
    position: fixed;
    z-index: 95;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.25rem 24px calc(2rem + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 18, 31, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Enters from a nearby state, exits the same way.
       `visibility` is stepped with a delay rather than transitioned: it flips
       to visible instantly on open (so the sheet is focusable in the same
       tick), and its return to hidden waits for the fade-out to finish. */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease-out),
                transform .22s var(--ease-out),
                visibility 0s linear .22s;
  }
  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .22s var(--ease-out),
                transform .22s var(--ease-out),
                visibility 0s linear 0s;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav ul a {
    display: flex;
    align-items: center;
    /* Comfortably over the 44px touch-target floor. */
    min-height: 52px;
    padding: .8rem .2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 1.06rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
  }
  .primary-nav ul a.is-active { color: #fff; }
  /* Absolute so switching sections doesn't nudge the label sideways. */
  .primary-nav ul a.is-active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    translate: 0 -50%;
    width: 3px;
    height: 1.15em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--violet-400), var(--lavender));
  }
  .primary-nav ul a::after { display: none; }
  .primary-nav .btn {
    margin-top: 1.4rem;
    align-self: stretch;
    padding-block: .9rem;
    font-size: 1rem;
  }
  .nav-foot {
    display: block;
    margin: 1.1rem 0 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
    text-align: center;
  }

  .phone { width: 216px; }
  .phone-back  { transform: translate(-26%, -6%) rotate(-8deg) scale(.88); }
  .phone-front { transform: translate(20%, 6%) rotate(5deg); }
  .hero-visual { min-height: 460px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* The scrim exists only for the mobile sheet. */
@media (min-width: 761px) {
  .nav-scrim { display: none !important; }
}

/* Landscape phones: the sheet must scroll rather than clip its CTA. */
@media (max-width: 760px) and (max-height: 520px) {
  .primary-nav ul a { min-height: 46px; font-size: 1rem; }
  .primary-nav .btn { margin-top: 1rem; }
}

@media (max-width: 460px) {
  .strip-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 190px; }
  .phone-back { display: none; }
  .phone-front { transform: none; }
  .hero-visual { min-height: 420px; }
}

/* ── Motion & contrast preferences ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-visual, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
}
