/* Daily Ring — shared styles for the support, privacy and deletion pages.
   Brand and accent colours are the app's own: --brand is the icon background,
   and the --c-* accents are HabitPalette in src/constants/theme.ts. */

:root {
  --brand: #2f7fe8;
  --brand-deep: #1c4fb8;
  --brand-light: #5ab0ff;

  --c-blue: #3e9ff0;
  --c-green: #30a46c;
  --c-purple: #8e4ec6;
  --c-amber: #f5a524;
  --c-red: #e5484d;
  --c-pink: #e93d82;
  --c-teal: #12a594;
  --c-orange: #f76b15;
  --plus-ink: #9a6200;

  --bg: #f6f8fc;
  --bg-elev: #ffffff;
  --surface: #eef1f7;
  --raised: #ffffff;
  --text: #11141a;
  --muted: #5b6270;
  --border: rgba(17, 20, 26, 0.08);
  --danger: #c2262b;
  --ok: #1f8a55;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(28, 79, 184, 0.35), 0 8px 24px -12px rgba(16, 24, 40, 0.18);
  --radius: 22px;
  --header-bg: rgba(246, 248, 252, 0.72);

  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --font-display:
    ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  color-scheme: light dark;
}

/* Dark follows the system unless the theme switch pins one (data-theme on
   <html>, set before first paint by the inline script in each page's head).
   The two dark blocks are the same tokens and change together. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand: #4c93f0;
    --plus-ink: #f5b84a;
    --bg: #07090d;
    --bg-elev: #12151c;
    --surface: #181c25;
  --raised: #262b37;
    --text: #eef0f4;
    --muted: #a2a9b6;
    --border: rgba(255, 255, 255, 0.08);
    --danger: #f06a6e;
    --ok: #4cc38a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(7, 9, 13, 0.7);
  }
}

:root[data-theme='dark'] {
  --brand: #4c93f0;
  --plus-ink: #f5b84a;
  --bg: #07090d;
  --bg-elev: #12151c;
  --surface: #181c25;
  --raised: #262b37;
  --text: #eef0f4;
  --muted: #a2a9b6;
  --border: rgba(255, 255, 255, 0.08);
  --danger: #f06a6e;
  --ok: #4cc38a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(7, 9, 13, 0.7);
  color-scheme: dark;
}

:root[data-theme='light'] {
  color-scheme: light;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--bg-elev);
  padding: 8px 14px;
  border-radius: 10px;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

header.site .container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

header.site nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s;
}

header.site nav a:hover,
header.site nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface);
}

header.site nav a.nav-cta {
  background: linear-gradient(160deg, var(--brand-light), var(--brand) 60%);
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(47, 127, 232, 0.9);
}

header.site nav a.nav-cta:hover {
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fff;
}

header.site nav a.lang {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 4px;
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Header links drop out as the window narrows, never wrap: a link broken onto
   two lines in a 64px header is what these breakpoints prevent. French labels
   are longer ("Fonctionnalités", "Vie privée", "Obtenir l’app"), so French
   pages drop each link at a wider width. The footer carries every link too. */
@media (max-width: 690px) {
  header.site nav .nav-hide-sm {
    display: none;
  }
}

@media (max-width: 760px) {
  header.site nav:lang(fr) .nav-hide-sm {
    display: none;
  }
}

/* The call to action, theme and language switches stay at phone width, so the
   nav tightens rather than squeezing the brand. */
@media (max-width: 480px) {
  header.site nav {
    gap: 2px;
    font-size: 14px;
  }
  header.site nav a {
    padding: 7px 9px;
  }
  header.site nav a.nav-cta,
  header.site nav a.lang,
  header.site nav .theme-toggle {
    margin-left: 2px;
  }
}

@media (max-width: 420px) {
  header.site nav .nav-hide-xs {
    display: none;
  }
}

@media (max-width: 440px) {
  header.site nav:lang(fr) .nav-hide-xs {
    display: none;
  }
}

/* The narrowest phones keep the icon and let the name go, which screen
   readers still announce. */
@media (max-width: 360px) {
  header.site .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* Theme switch: Automatic, Light or Dark, as in the app's Settings. Hidden
   without JS, since site.js is what makes it do anything. */
header.site nav .theme-toggle {
  display: none;
}

html.theme-js header.site nav .theme-toggle {
  display: grid;
}

.theme-switch {
  position: relative;
  display: flex;
}

header.site nav .theme-toggle {
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}

header.site nav .theme-toggle:hover,
header.site nav .theme-toggle[aria-expanded='true'] {
  color: var(--text);
  background: var(--surface);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-menu {
  position: absolute;
  z-index: 60;
  right: 0;
  top: calc(100% + 12px);
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  animation: picker-in 0.16s ease-out;
}

.theme-menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}

.theme-menu li:hover,
.theme-menu li:focus {
  outline: none;
  background: var(--surface);
}

.theme-menu .theme-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
}

.theme-menu li[aria-checked='true'] {
  font-weight: 650;
}

.theme-menu li[aria-checked='true'] .theme-icon {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}

.theme-menu .theme-icon svg {
  width: 17px;
  height: 17px;
}

.theme-menu .theme-check {
  width: 17px;
  height: 17px;
  margin-left: auto;
  padding-left: 8px;
  box-sizing: content-box;
  color: var(--brand);
  opacity: 0;
}

.theme-menu li[aria-checked='true'] .theme-check {
  opacity: 1;
}

/* ---------- Buttons and pills ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(47, 127, 232, 0.8);
}

.button-primary:hover {
  background: var(--brand-deep);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

/* Store badges. Each is an <a> with no href until site.js has a store URL for
   it, so a "coming soon" badge is plain text: not focusable, not a dead link.
   Neutral glyphs rather than the stores' logos, which only their official
   badge artwork may carry; swap that artwork in once the listings are live. */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  padding: 11px 22px 11px 16px;
  border-radius: 16px;
  background: #0b0d12;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 14px 30px -14px rgba(5, 12, 30, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.store-badge svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.store-badge small {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
}

.store-badge[href]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 36px -14px rgba(5, 12, 30, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.store-badge.is-soon {
  cursor: default;
}

.hero .store-row {
  margin-top: 30px;
}

.hero-more {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
}

.hero-more:hover {
  opacity: 1;
  text-decoration: underline;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(160deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-deep) 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: var(--c-pink);
  left: -140px;
  bottom: -180px;
}

.hero::after {
  width: 360px;
  height: 360px;
  background: var(--c-purple);
  right: 18%;
  bottom: -220px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 0;
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 72px);
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 .ring-word {
  background: linear-gradient(90deg, #fff 0%, #ffe8a3 50%, #ffd1e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34em;
  margin: 0 0 28px;
}

.hero .platforms {
  margin: 20px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-copy {
  padding-bottom: 72px;
}

.hero-art {
  position: relative;
  height: 560px;
  align-self: end;
}

.hero-art .phone {
  position: absolute;
  width: 300px;
  border-radius: 34px;
  box-shadow: 0 40px 80px -24px rgba(5, 20, 60, 0.6);
  overflow: hidden;
}

.hero-art .phone-front {
  left: 8%;
  bottom: -40px;
  z-index: 2;
  transform: rotate(-4deg);
}

/* The folded iPhone Duo: its raw cover screen in a drawn case, behind the
   phone on the right. The hinge runs down its left edge. */
.hero-art .hero-duo {
  position: absolute;
  width: 240px;
  right: -9%;
  bottom: 40px;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(145deg, #3a3d44, #121317 55%, #26282e);
  box-shadow:
    0 40px 80px -24px rgba(5, 20, 60, 0.6),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  transform: rotate(6deg);
}

.hero-duo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
  background: #000;
}

.hero-duo::before {
  /* the hinge */
  content: '';
  position: absolute;
  left: -5px;
  top: 30px;
  bottom: 30px;
  width: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #5c606a, #2a2c31);
}

/* The watch rides in front of the phones, at the bottom-left corner. */
.hero-art .hero-watch {
  width: 204px;
  left: -9%;
  bottom: 48px;
  z-index: 3;
  transform: rotate(-8deg);
  box-shadow:
    0 30px 60px -18px rgba(5, 20, 60, 0.7),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

/* The Wear OS watch sits beside the Apple Watch, in front of the phone. */
.hero-art .hero-wear {
  width: 170px;
  left: 27%;
  bottom: 96px;
  z-index: 3;
  transform: rotate(6deg);
  box-shadow:
    0 30px 60px -18px rgba(5, 20, 60, 0.7),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #11141a;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 16px 40px -14px rgba(5, 20, 60, 0.55);
  animation: bob 6s ease-in-out infinite;
}

.float-chip .dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
}

.chip-a {
  top: 70px;
  left: -4%;
}

.chip-b {
  top: 112px;
  right: -6%;
  animation-delay: -3s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1100px) {
  .hero-art .hero-watch {
    width: 176px;
    left: -1%;
  }
  .hero-art .phone {
    width: 264px;
  }
  .hero-art .phone-front {
    left: 4%;
  }
  .hero-art .hero-duo {
    width: 214px;
    right: -3%;
  }
  .hero-art .hero-wear {
    width: 148px;
    left: 30%;
    bottom: 90px;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 48px;
    text-align: center;
  }
  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .pill-row,
  .hero .store-row {
    justify-content: center;
  }
  .hero-copy {
    padding-bottom: 8px;
  }
  .hero-art {
    height: 440px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-art .phone {
    width: 230px;
  }
  .hero-art .phone-front {
    left: 4%;
  }
  .hero-art .hero-duo {
    width: 206px;
    right: 0;
    bottom: 28px;
    padding: 7px;
    border-radius: 31px;
  }
  .hero-duo img {
    border-radius: 24px;
  }
  .hero-art .hero-watch {
    width: 140px;
    left: -2%;
    bottom: 24px;
  }
  .hero-art .hero-wear {
    width: 118px;
    left: 29%;
    bottom: 56px;
  }
  .chip-a {
    left: 0;
    top: 0;
  }
  .chip-b {
    right: 0;
    top: 66px;
  }
}

/* ---------- Stats strip ---------- */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-elev);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stat {
  padding: 22px 20px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stat strong {
    font-size: 23px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* ---------- Sections ---------- */

section.block {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
  text-wrap: balance;
}

/* Feature rows: screenshot on one side, copy on the other, alternating. */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 0 auto 96px;
  max-width: 980px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature:nth-child(even) .feature-art {
  order: 2;
}

.feature-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-art::before {
  content: '';
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: var(--accent, var(--brand));
  filter: blur(80px);
  opacity: 0.35;
}

.shot {
  position: relative;
  width: min(340px, 100%);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Apple Watch: two raw watch screens in a drawn case, one tucked behind. */

.watch-pair {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 340 / 360;
}

.watch {
  position: absolute;
  width: 62%;
  padding: 3.2%;
  border-radius: 26% / 22%;
  background: linear-gradient(145deg, #3a3d44, #121317 55%, #26282e);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.watch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22% / 18.5%;
  background: #000;
}

.watch::after {
  /* the Digital Crown */
  content: '';
  position: absolute;
  right: -3.5%;
  top: 24%;
  width: 4%;
  height: 15%;
  border-radius: 3px;
  background: linear-gradient(90deg, #2a2c31, #5c606a);
}

.watch-front {
  left: 0;
  bottom: 0;
  transform: rotate(-4deg);
  z-index: 1;
}

.watch-back {
  right: 0;
  top: 0;
  transform: rotate(5deg) scale(0.9);
  opacity: 0.92;
}

/* Wear OS: a raw round watch screen in a drawn round case. */

.wear {
  position: absolute;
  padding: 4.5%;
  border-radius: 50%;
  background: linear-gradient(145deg, #3a3d44, #121317 55%, #26282e);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.wear img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: #000;
}

.wear::after {
  /* the crown */
  content: '';
  position: absolute;
  right: -3%;
  top: 42%;
  width: 4.5%;
  height: 16%;
  border-radius: 3px;
  background: linear-gradient(90deg, #2a2c31, #5c606a);
}

.wear-back {
  width: 56%;
  right: 0;
  top: 0;
  transform: rotate(6deg);
}

.feature-copy h3 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0 0 14px;
  font-weight: 800;
}

.feature-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent, var(--brand)) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--brand)) 30%, transparent);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-size: 16px;
}

.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--accent, var(--brand));
}

@media (max-width: 820px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    margin-bottom: 72px;
  }
  .feature:nth-child(even) .feature-art {
    order: 0;
  }
  .shot {
    width: min(280px, 80%);
  }
  .watch-pair {
    width: min(300px, 86%);
  }
  .ticks {
    display: inline-block;
    text-align: left;
  }
}

/* How it works: three numbered cards. */

.how {
  padding-bottom: 24px;
}

.steps-row {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1020px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(
      260px 160px at 100% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 70%
    ),
    var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.step h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 820px) {
  .steps-row {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* Schedules and shields: two small cards drawn in the app's own style rather
   than a screenshot, so the art follows the theme and needs no made-up history.
   The selected weekday is the app's monochrome accent (text on its background),
   the week marks are the habit's colour. */

.week-art {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(360px, 100%);
}

.mini-card {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.week-repeat {
  margin-right: 32px;
  transform: rotate(-2deg);
}

.week-streak {
  margin-left: 32px;
  transform: rotate(1.5deg);
}

.mini-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.mini-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 3px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.mini-seg span {
  padding: 8px 4px;
  border-radius: 11px;
}

.mini-seg .on {
  background: var(--raised);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.mini-days {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 14px 0 10px;
}

.mini-days span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mini-days .on {
  background: var(--text);
  color: var(--bg-elev);
}

.mini-note {
  color: var(--muted);
  font-size: 13px;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 15px;
}

.mini-habit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.mini-emoji {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-size: 17px;
}

.mini-badges {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.mini-marks {
  display: flex;
  justify-content: space-between;
}

.mini-marks > span {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.mini-marks i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.mini-marks .done i {
  background: var(--accent);
}

.mini-marks .shield i {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 15px;
}

.mini-marks .rest i {
  background: var(--surface);
}

@media (max-width: 420px) {
  .week-repeat {
    margin-right: 12px;
  }
  .week-streak {
    margin-left: 12px;
  }
  .mini-card {
    padding: 16px;
  }
  .mini-days span {
    width: 30px;
    height: 30px;
  }
  .mini-marks i {
    width: 28px;
    height: 28px;
  }
}

/* Moments: six small scenes from a day with the app, in a 3-2-1 grid. */

.moments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.moment {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* A thin accent line along the top edge, in the moment's habit colour. */
.moment::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 30%, transparent)
  );
}

.moment h3 {
  font-size: 21px;
  margin: 0 0 8px;
}

.moment p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 900px) {
  .moments {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .moments {
    grid-template-columns: 1fr;
  }
}

/* Reviews: real ones only, rendered by site.js from REVIEWS. */

.reviews {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1020px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  margin: 0 0 12px;
  color: var(--c-amber);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.review blockquote {
  flex: 1;
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
}

.review-who {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

.review-who span {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

/* iPad band */

.band {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(142, 78, 198, 0.35), transparent 60%),
    radial-gradient(900px 400px at 90% 100%, rgba(18, 165, 148, 0.3), transparent 60%),
    linear-gradient(160deg, #10203f 0%, #0a1226 100%);
  color: #fff;
  overflow: hidden;
}

.band .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.band .eyebrow {
  color: #8fc4ff;
}

/* iPad and the open iPhone Duo, side by side; stacked on narrow screens. */
.screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.screens figure {
  margin: 0;
}

.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7);
}

.screens figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 820px) {
  .screens {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 620px;
  }
}

.device-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.device-row .pill {
  font-size: 15px;
  padding: 8px 16px;
}

/* ---------- Daily Ring Plus ----------
   Gold is the app's Plus mark (HabitPalette's amber); --plus-ink is the same
   hue dark enough for small text on the light page. */

.pill-plus {
  text-decoration: none;
  color: var(--plus-ink);
  background: color-mix(in srgb, var(--c-amber) 16%, var(--bg-elev));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-amber) 40%, transparent);
}

.plus {
  position: relative;
  background:
    radial-gradient(700px 360px at 50% 0%, color-mix(in srgb, var(--c-amber) 14%, transparent), transparent 70%),
    radial-gradient(600px 400px at 0% 70%, color-mix(in srgb, var(--c-purple) 9%, transparent), transparent 70%),
    radial-gradient(600px 400px at 100% 90%, color-mix(in srgb, var(--c-teal) 9%, transparent), transparent 70%);
}

.plus .eyebrow.plus-eyebrow {
  color: var(--plus-ink);
}

.plus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row dense;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.plus-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* A soft wash of the tile's accent in one corner. */
.plus-tile::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: var(--accent, var(--brand));
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
}

.plus-tile > * {
  position: relative;
}

.plus-tile h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}

.plus-tile p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  text-wrap: pretty;
}

.plus-tile .icon-badge {
  width: 46px;
  height: 46px;
  font-size: 22px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.plus-tall {
  grid-row: span 2;
}

/* Copy beside a screenshot that runs off the tile's bottom edge. */
.plus-split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 260px);
  gap: 28px;
  align-items: start;
  padding-bottom: 0;
}

.plus-split .plus-copy {
  padding-bottom: 30px;
}

.plus-tall {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.plus-tall .plus-copy {
  padding-bottom: 0;
}

.plus-peek {
  align-self: end;
  height: 300px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
}

.plus-tall .plus-peek {
  align-self: stretch;
  height: auto;
  min-height: 320px;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.plus-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* The tall tile's peek can outgrow the screenshot, so it is drawn a little
   larger than the tile and the phone's lower edge always runs off the bottom. */
.plus-tall .plus-peek {
  position: relative;
}

.plus-tall .plus-peek img {
  position: absolute;
  top: 0;
  left: -12%;
  width: 124%;
  max-width: none;
  height: auto;
}

.plus-figure {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0 18px;
  background: linear-gradient(120deg, var(--c-blue), var(--c-purple) 55%, var(--c-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Make it your own: icons, sounds and palettes, one labelled row each. */
.style-rows {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.style-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
}

.style-label {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.style-label small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}

.app-icons,
.sound-packs,
.palettes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-icons li {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.app-icons img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px var(--border),
    0 6px 16px -8px rgba(16, 24, 40, 0.45);
}

.sound-packs {
  gap: 8px;
}

.sound-packs button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.sound-packs button:hover {
  transform: translateY(-1px);
}

.sound-packs button[aria-pressed='true'] {
  box-shadow: inset 0 0 0 2px var(--tone);
}

.sound-packs strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.sound-packs small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.sound-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 14px;
  color: #fff;
  background: var(--tone);
}

.sound-packs button[aria-pressed='true'] .sound-icon {
  animation: pulse 0.9s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(0.88);
  }
}

.palettes {
  gap: 22px;
}

.palettes li {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.swatches {
  display: flex;
}

.swatches i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: -5px;
  box-shadow: 0 0 0 2px var(--bg-elev);
}

/* Challenge lengths: the free three, then Plus's three in gold. */
.day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
}

.day-chips span {
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
}

.day-chips .is-plus {
  color: var(--plus-ink);
  background: color-mix(in srgb, var(--c-amber) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-amber) 45%, transparent);
}

/* Widget sizes, drawn: small is free, the two-column ones are Plus. */
.widget-sizes {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.ws {
  border-radius: 14px;
  background:
    repeating-linear-gradient(
        180deg,
        transparent 0 9px,
        color-mix(in srgb, var(--text) 10%, transparent) 9px 13px,
        transparent 13px 18px
      )
      14px 14px / calc(100% - 28px) calc(100% - 28px) no-repeat,
    var(--surface);
}

.ws-s {
  box-shadow: inset 0 0 0 1px var(--border);
  width: 56px;
  height: 56px;
}

.ws-m {
  width: 118px;
  height: 56px;
}

.ws-l {
  width: 118px;
  height: 118px;
}

.ws.is-plus {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-amber) 60%, transparent);
  background-color: color-mix(in srgb, var(--c-amber) 10%, var(--surface));
}

/* On your wrist: copy beside the two watches. */
.plus-wrist {
  grid-template-columns: 1fr minmax(0, 340px);
  align-items: center;
  padding-bottom: 30px;
}

.plus-wrist .plus-copy {
  padding-bottom: 0;
}

.plus-wrist .ticks {
  margin-top: 18px;
}

.plus-wrist .watch-pair {
  width: min(320px, 100%);
  justify-self: center;
}

.plus-promise {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
}

.plus-promise p {
  text-wrap: balance;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
}

.plus-promise strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .plus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-3,
  .plus-tall {
    grid-column: span 2;
    grid-row: auto;
  }
  .plus-tall {
    grid-template-columns: 1fr minmax(0, 260px);
  }
  .plus-tall .plus-copy {
    padding-bottom: 30px;
  }
  .plus-tall {
    grid-template-rows: auto;
  }
  .plus-tall .plus-peek {
    align-self: end;
    height: 300px;
    min-height: 0;
  }
  .plus-tall .plus-peek img {
    position: static;
    width: 100%;
    height: 100%;
  }
  /* The third single tile would sit alone; give it the row, drawing on the right. */
  .plus-widgets {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 28px;
    align-content: start;
  }
  .plus-widgets > * {
    grid-column: 1;
  }
  .plus-widgets .widget-sizes {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .plus-grid {
    grid-template-columns: 1fr;
  }
  .span-2,
  .span-3,
  .plus-tall,
  .plus-widgets {
    grid-column: auto;
  }
  .plus-widgets {
    display: flex;
  }
  .plus-widgets .widget-sizes {
    padding-top: 22px;
  }
  .plus-tile {
    padding: 24px;
  }
  .plus-split,
  .plus-tall,
  .plus-wrist {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .plus-split .plus-copy {
    padding-bottom: 0;
  }
  .plus-split:not(.plus-wrist) {
    padding-bottom: 0;
  }
  .plus-peek,
  .plus-tall .plus-peek {
    width: min(260px, 100%);
    height: 260px;
    margin: 0 auto;
  }
  .style-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Value cards */


.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.value p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.value .icon-badge {
  width: 46px;
  height: 46px;
  font-size: 22px;
  border-radius: 14px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Download call to action ---------- */

.cta {
  position: relative;
  overflow: hidden;
  max-width: 1020px;
  margin: 0 auto;
  padding: 64px 32px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(520px 300px at 0% 100%, rgba(233, 61, 130, 0.42), transparent 60%),
    radial-gradient(520px 300px at 100% 0%, rgba(142, 78, 198, 0.45), transparent 60%),
    linear-gradient(160deg, var(--brand-light), var(--brand) 45%, var(--brand-deep));
  box-shadow: var(--shadow-lg);
}

/* A faint ring behind the copy, after the app's own glyph. */
.cta::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 56px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 22px;
  box-shadow: 0 18px 40px -16px rgba(5, 12, 30, 0.7);
}

.cta h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  margin: 0 0 12px;
}

.cta p {
  max-width: 34em;
  margin: 0 auto 30px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.cta .store-row {
  justify-content: center;
}

@media (max-width: 560px) {
  .cta {
    padding: 48px 20px;
    border-radius: 26px;
  }
}

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

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  max-width: 1020px;
  margin: 0 auto;
  /* Not overflow: hidden, which would clip the topic menu; the aside rounds its
     own corners instead. */
  border-radius: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.contact-aside {
  position: relative;
  padding: 44px;
  border-radius: 27px 0 0 27px;
  color: #fff;
  background:
    radial-gradient(500px 300px at 0% 100%, rgba(233, 61, 130, 0.45), transparent 60%),
    linear-gradient(160deg, var(--brand-light), var(--brand) 50%, var(--brand-deep));
}

.contact-aside h2 {
  font-size: 34px;
  margin: 0 0 12px;
  font-weight: 800;
}

.contact-aside p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
}

.contact-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-aside li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.contact-aside li span:first-child {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}

form.contact-form {
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg-elev);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 14px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* Topic picker, drawn by site.js over the native select it keeps in sync. */
.picker {
  position: relative;
}

.picker-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font: inherit;
  font-size: 16px;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 7px 14px 7px 7px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.picker-button:hover {
  background: color-mix(in srgb, var(--surface) 60%, var(--bg-elev));
}

.picker-button:focus-visible,
.picker-button[aria-expanded='true'] {
  outline: none;
  background: var(--bg-elev);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}

.picker-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}

.picker-icon svg {
  width: 19px;
  height: 19px;
}

.picker-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.picker-button[aria-expanded='true'] .picker-chevron {
  transform: rotate(180deg);
}

.picker-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(430px, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform-origin: top center;
  animation: picker-in 0.16s ease-out;
}

.picker-list:focus {
  outline: none;
}

.picker-list.is-up {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom center;
}

.picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 9px;
  border-radius: 12px;
  cursor: pointer;
}

.picker-option.is-active {
  background: var(--surface);
}

.picker-option .picker-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.picker-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.picker-label {
  font-size: 15px;
  font-weight: 500;
}

.picker-hint {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.picker-check {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--brand);
  opacity: 0;
}

.picker-option[aria-selected='true'] .picker-label {
  font-weight: 650;
}

.picker-option[aria-selected='true'] .picker-check {
  opacity: 1;
}

@keyframes picker-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

.picker-list.is-up {
  animation-name: picker-in-up;
}

@keyframes picker-in-up {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
}

/* Off-screen rather than display:none, which some bots skip. */
.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-foot .note {
  flex: 1 1 220px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  min-height: 1.6em;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--danger);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-aside {
    border-radius: 27px 27px 0 0;
  }
  .contact-aside,
  form.contact-form {
    padding: 28px 22px;
  }
}

@media (max-width: 520px) {
  form.contact-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Document pages (privacy, deletion) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 64px 0 120px;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(233, 61, 130, 0.35), transparent 60%),
    linear-gradient(160deg, var(--brand-light), var(--brand) 50%, var(--brand-deep));
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 12px;
  font-weight: 800;
}

.page-hero .lede {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40em;
  margin: 0;
}

.page-hero .meta {
  display: inline-block;
  margin-bottom: 16px;
}

.doc {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: -72px auto 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 48px 56px;
}

.doc h2 {
  font-size: 26px;
  margin: 44px 0 10px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  font-size: 19px;
  margin: 28px 0 6px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc .muted {
  color: var(--muted);
}

.callout {
  background: color-mix(in srgb, var(--accent, var(--brand)) 9%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--accent, var(--brand)) 22%, transparent);
  border-radius: 20px;
  padding: 24px 28px;
  margin: 24px 0;
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.callout ul,
.callout ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.callout > :last-child {
  margin-bottom: 0;
}

ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 46px;
  margin-bottom: 10px;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.danger {
  color: var(--danger);
  font-weight: 600;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--accent, var(--brand));
}

@media (max-width: 640px) {
  .page-hero {
    padding: 44px 0 100px;
  }
  .doc {
    margin: -64px 12px 0;
    padding: 28px 22px;
    border-radius: 22px;
  }
}

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

footer.site {
  margin-top: 96px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer.site .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

footer.site .brand {
  font-size: 16px;
}

footer.site .brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

footer.site nav a {
  color: var(--muted);
  text-decoration: none;
}

footer.site nav a:hover {
  color: var(--text);
}

footer.site .copy {
  flex-basis: 100%;
  margin: 0;
}

/* ---------- Scroll reveal ----------
   Only hidden once the script has marked the page, so nothing is lost without JS. */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .picker-list,
  .theme-menu {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-chip {
    animation: none;
  }
  .value:hover {
    transform: none;
  }
}
