/* Cupids web — layout & components. Colours come from palette.css roles
 * (var(--cu-…)) only; type, radius and space follow DESIGN.md §4–5. */

:root {
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 14px; --r-inner: 16px; --r-lg: 22px; --r-card: 24px; --r-xl: 28px; --r-pill: 999px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--cu-ink);
  background: var(--cu-surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before { /* soft spotlight behind the hero */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background: var(--cu-grad-spotlight);
  z-index: -1;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cu-accent); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cu-accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; } /* headings focused by script on view change */

.ic { width: 20px; height: 20px; flex: none; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--cu-surface-raised); box-shadow: var(--cu-shadow-soft);
}
.skip:focus { top: 12px; }

/* ── Type (CuText) ── */
.display { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.display span { display: block; }
.display .accent { color: var(--cu-accent); }
.question { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.4px; }
.section { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.2px; }
.title-lg { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.4px; }
.title-sm { font-size: 16px; line-height: 1.3; font-weight: 800; display: block; }
.lead { font-size: 18px; line-height: 1.55; color: var(--cu-body); max-width: 30em; }
.body { color: var(--cu-body); line-height: 1.5; }
.label { font-size: 13px; line-height: 1.3; font-weight: 700; color: var(--cu-meta); }
.caption { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--cu-meta); display: block; }
.center { text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cu-accent);
}

/* ── Layout ── */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
main { flex: 1; width: 100%; overflow-x: clip; } /* tilted mockups and deck cards may poke past the edge */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.h2 span { display: block; }
.h2 .accent { color: var(--cu-accent); }
.title { font-size: 18px; line-height: 1.3; font-weight: 800; }
.block { padding-block: 72px; }
@media (min-width: 960px) { .block { padding-block: 112px; } }
.block-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 40px; }
.block-head .lead { max-width: none; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cu-surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--cu-line-soft); }
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1180px; margin: 0 auto; padding: 12px var(--gutter);
}
.nav-links { display: none; gap: 4px; margin-right: auto; }
.nav-links a {
  padding: 10px 14px; border-radius: var(--r-pill);
  color: var(--cu-body); font-size: 15px; font-weight: 700;
}
.nav-links a:hover { color: var(--cu-ink); background: var(--cu-wash); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 900px) {
  .nav-links { display: flex; margin-left: 12px; }
  .nav-actions { margin-left: 0; }
}
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 479px) { .nav-actions .nav-get { display: none; } }
.brand { display: inline-flex; padding: 6px 0; }
.wordmark { height: 30px; width: auto; display: block; }
.wm-ink { fill: var(--cu-brand-ink); }
.wm-heart { fill: var(--cu-brand-heart); }
.wm-stroke { stroke: var(--cu-brand-heart); }
.demo-pill {
  justify-self: start; width: max-content;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--cu-wash); color: var(--cu-accent); border: 1px solid var(--cu-line-strong);
}

/* ── Hero ── */
.hero {
  display: grid; gap: 56px; align-items: center;
  padding-top: 32px; padding-bottom: 72px;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding-top: 72px; padding-bottom: 120px; }
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy .display { font-size: clamp(40px, 5.6vw, 66px); }
@media (max-width: 599px) { .hero-copy .lead { font-size: 16px; } }

/* Store buttons — our own, not the official badges, while the apps aren't live. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 22px 0 18px; border-radius: var(--r-lg);
  background: var(--cu-ink); color: var(--cu-surface);
  transition: transform .15s var(--ease);
}
.store:hover { text-decoration: none; transform: translateY(-2px); }
.store .ic { width: 24px; height: 24px; }
.store > span { display: grid; line-height: 1.15; text-align: left; }
.store-top { font-size: 11px; font-weight: 600; opacity: .8; }
.store-name { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; }
.stores-on-grad .store { background: var(--cu-on-accent); color: var(--cu-badge); }

/* Phone mockup (Discover) */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 420px; padding: 8px 36px 24px; }
.phone {
  position: relative; margin: 0 auto; width: 100%; max-width: 300px; aspect-ratio: 9 / 18.5;
  padding: 10px; border-radius: 46px; background: var(--cu-frame);
  box-shadow: var(--cu-shadow-float), var(--cu-shadow-card);
  transform: rotate(-3deg);
}
.screen {
  height: 100%; border-radius: 37px; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 10px;
  background: var(--cu-surface);
}
.s-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 0; }
.s-wm .wordmark { height: 20px; }
.s-dots { display: flex; gap: 6px; }
.s-dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--cu-fill-muted); }
.s-card { flex: 1; min-height: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--cu-shadow-card); }
.photo { position: relative; display: block; background: var(--cu-photo-a); overflow: hidden; }
.photo::before { /* silhouette */
  content: ""; position: absolute; inset: 14% 10% 0; background: var(--cu-photo-silhouette);
  -webkit-mask: var(--mask-person) center bottom / contain no-repeat; mask: var(--mask-person) center bottom / contain no-repeat;
}
.photo-a { background: var(--cu-photo-a); }
.photo-b { background: var(--cu-photo-b); }
.photo-c { background: var(--cu-photo-c); }
.photo-d { background: var(--cu-photo-d); }
.s-card .photo {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 16px; color: var(--cu-on-photo);
}
.s-card .photo::after { content: ""; position: absolute; inset: 45% 0 0; background: var(--cu-grad-photo-scrim); }
.s-card .photo > * { position: relative; z-index: 1; }
.s-card .photo > .s-chip {
  position: absolute; top: 14px; left: 14px; max-width: calc(100% - 28px);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; background: var(--cu-on-photo-chip); border: 1px solid var(--cu-on-photo-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.s-chip .ic { width: 13px; height: 13px; }
.s-name { display: flex; align-items: baseline; gap: 8px; }
.s-name strong { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.s-name span { font-size: 22px; font-weight: 500; }
.s-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; opacity: .92; }
.s-meta .ic { width: 14px; height: 14px; }
.s-actions { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 4px 0; }
.act { display: grid; place-items: center; border-radius: 50%; background: var(--cu-surface-raised); box-shadow: var(--cu-shadow-soft); border: 1px solid var(--cu-line); }
.act-pass, .act-shot { width: 46px; height: 46px; color: var(--cu-meta); }
.act-shot { color: var(--cu-accent); }
.act-like { width: 58px; height: 58px; background: var(--cu-grad-primary); color: var(--cu-on-accent); border: 0; box-shadow: var(--cu-shadow-primary); }
.act-like .ic { width: 26px; height: 26px; }
.s-nav { display: flex; justify-content: space-around; padding: 8px 4px; border-radius: var(--r-pill); background: var(--cu-surface-raised); border: 1px solid var(--cu-line); }
.s-nav span { display: grid; place-items: center; width: 40px; height: 32px; border-radius: var(--r-pill); color: var(--cu-muted); }
.s-nav span.on { background: var(--cu-wash); color: var(--cu-accent); }
.s-nav .ic { width: 18px; height: 18px; }

.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: var(--r-card);
  background: var(--cu-surface-raised); border: 1px solid var(--cu-float-border);
  box-shadow: var(--cu-shadow-float);
  animation: bob 6s ease-in-out infinite;
}
.float > span:last-child { display: grid; }
.float strong { font-size: 15px; font-weight: 800; }
.float-ship { left: 0; top: 44%; }
.float-match { right: 0; top: 10%; padding: 10px 16px; gap: 8px; animation-delay: -3s; }
.float-match .ic { color: var(--cu-accent-bright); }
.float-points { right: -8px; bottom: -6px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ── How it works ── */
.steps { display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 28px; border-radius: var(--r-xl);
  background: var(--cu-surface-raised); border: 1px solid var(--cu-line);
}
.step-hl { background: var(--cu-wash); border-color: var(--cu-line-strong); }
.step-n {
  position: absolute; top: 22px; right: 26px;
  font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1px;
  color: var(--cu-line-strong); font-variant-numeric: tabular-nums;
}
.step .tile { margin-bottom: 8px; }

/* ── Play Cupid ── */
.band { background: var(--cu-wash); border-block: 1px solid var(--cu-line); }
.split-2 { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .split-2 { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.split-copy { display: grid; gap: 22px; }
.feature-list { display: grid; gap: 18px; margin-top: 4px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tile { background: var(--cu-surface-raised); }
.feature-list div { display: grid; gap: 2px; }
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-card);
  background: var(--cu-surface-raised); border: 1px dashed var(--cu-line-strong);
  color: var(--cu-body); line-height: 1.5;
}
.callout .ic { color: var(--cu-accent); margin-top: 2px; }
.callout strong { color: var(--cu-ink); }

@media (max-width: 959px) { .task-art { order: 2; } }
.task-art { position: relative; width: 100%; max-width: 400px; justify-self: center; padding-bottom: 24px; }
.task { display: grid; gap: 16px; padding: 22px; transform: rotate(2deg); }
.task-target { display: flex; align-items: center; gap: 12px; }
.av { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.task-target > div { display: grid; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.task-grid .photo { aspect-ratio: 4 / 5; border-radius: var(--r-inner); overflow: visible; }
.task-grid .photo::before { border-radius: inherit; }
.task-grid .sel { outline: 3px solid var(--cu-accent-bright); outline-offset: 2px; }
.task-grid i {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cu-grad-primary); color: var(--cu-on-accent);
}
.task-grid i .ic { width: 13px; height: 13px; }
.btn-mock { pointer-events: none; min-height: 50px; }

/* ── Tabs ── */
.tabs-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tab-card {
  display: grid; gap: 10px; align-content: start;
  padding: 24px; border-radius: var(--r-xl);
  background: var(--cu-surface-raised); border: 1px solid var(--cu-line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tab-card:hover { transform: translateY(-3px); box-shadow: var(--cu-shadow-soft); }
.tab-card .tile { margin-bottom: 6px; }

/* ── Safety ── */
.safety { padding: 32px 24px; box-shadow: none; border: 1px solid var(--cu-line); background: var(--cu-grad-spotlight); }
@media (min-width: 640px) { .safety { padding: 56px; } }
.safety-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .safety-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .safety-grid { grid-template-columns: repeat(4, 1fr); } }
.safety-grid li { display: grid; gap: 8px; align-content: start; }
.safety-grid .tile { margin-bottom: 6px; background: var(--cu-surface-raised); }

/* ── FAQ ── */
.faq-wrap { display: grid; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } }
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--r-card); background: var(--cu-surface-raised); border: 1px solid var(--cu-line);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--cu-line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 22px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--cu-accent); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > p { padding: 0 22px 20px; }

/* ── CTA ── */
.cta-section { padding-bottom: 96px; }
@media (min-width: 960px) { .cta-section { padding-bottom: 120px; } }
.cta {
  display: grid; gap: 16px; justify-items: center; text-align: center;
  padding: 64px 24px; border-radius: 36px;
  background: var(--cu-grad-celebrate); color: var(--cu-on-accent);
}
.cta .lead { color: var(--cu-on-accent); opacity: .92; }
.cta .stores { justify-content: center; }
.cta-mark {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: color-mix(in srgb, var(--cu-on-accent) 16%, transparent); margin-bottom: 4px;
}
.cta-mark .ic { width: 32px; height: 32px; }

/* ── Account page (account.html) ── */
.acct-main { padding-block: 32px 96px; }
@media (min-width: 960px) { .acct-main { padding-block: 72px 120px; } }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 960px) { .acct-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.acct-copy { display: grid; gap: 22px; }
.acct-copy .feature-list .tile { background: var(--cu-wash); }
.panel .demo-pill { justify-self: center; margin: -8px auto 14px; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 960px; }
.dash .who { padding: 14px 14px 14px 16px; border-radius: var(--r-card); background: var(--cu-surface-raised); border: 1px solid var(--cu-line); }
.dash-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.dash-card { display: grid; gap: 16px; align-content: start; padding: 28px 24px; box-shadow: var(--cu-shadow-soft); border-color: var(--cu-line); }
@media (min-width: 480px) { .dash-card { padding: 32px; } }
.dash-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 4px; }
.status {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--cu-success);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.restore { display: grid; justify-items: center; }
.restore .panel { width: 100%; max-width: 460px; min-height: 0; gap: 18px; display: grid; }

/* Deck: two tilted cards behind the panel (Discover stack). */
.deck { position: relative; width: 100%; max-width: 440px; justify-self: center; }
.deck-back {
  position: absolute; inset: 0; border-radius: var(--r-xl);
  transition: transform .5s var(--ease);
}
.deck-back-1 { background: var(--cu-stack-back-1); transform: rotate(4deg) translate(10px, 8px); }
.deck-back-2 { background: var(--cu-stack-back-2); transform: rotate(-5deg) translate(-12px, 14px); border: 1px solid var(--cu-line-strong); }
.deck:hover .deck-back-1 { transform: rotate(6deg) translate(16px, 6px); }
.deck:hover .deck-back-2 { transform: rotate(-7deg) translate(-18px, 16px); }

.card {
  position: relative;
  background: var(--cu-surface-raised);
  border: 1px solid var(--cu-float-border);
  border-radius: var(--r-xl);
  box-shadow: var(--cu-shadow-card);
}
.panel { padding: 28px 24px; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 480px) { .panel { padding: 36px 32px; } }
.view { display: grid; gap: 18px; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.stack-12 { display: grid; gap: 12px; }
.code-slot { display: grid; gap: 14px; }

/* ── Buttons ── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 22px; width: 100%;
  border: 0; border-radius: var(--r-lg);
  font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn::after { /* pressed overlay */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--cu-pressed); opacity: 0; transition: opacity .15s;
}
.btn:active::after { opacity: 1; }
.btn:disabled { cursor: default; transform: none; }
/* White on the gradient's light end needs ≥ 19 px / 800 (DESIGN.md §3.5). */
.btn-primary {
  background: var(--cu-grad-primary); color: var(--cu-on-accent);
  box-shadow: var(--cu-shadow-primary);
  font-size: 19px; font-weight: 800; min-height: 58px;
}
.btn-primary:disabled { background: var(--cu-disabled-fill); box-shadow: none; color: var(--cu-muted); }
.btn-sm { width: auto; min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 700; }
.btn-primary.btn-sm { background: var(--cu-badge); box-shadow: none; }
.btn-apple { background: var(--cu-ink); color: var(--cu-surface); }
.btn-google { background: var(--cu-surface-raised); color: var(--cu-ink); border: 1px solid var(--cu-line-control); }
.btn-ghost { background: var(--cu-surface-raised); color: var(--cu-ink); border: 1px solid var(--cu-line); }
.btn-ghost .ic { width: 18px; height: 18px; color: var(--cu-accent); }
.google-official { display: flex; justify-content: center; min-height: 44px; }
.stack-10 { display: grid; gap: 10px; }
.btn-text { background: none; min-height: 48px; color: var(--cu-accent); }
.btn-text:disabled { color: var(--cu-muted); }
.btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.btn[aria-busy="true"] > * { visibility: hidden; }
.btn[aria-busy="true"]::before {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--cu-on-accent); border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.btn-text[aria-busy="true"]::before, .btn-ghost[aria-busy="true"]::before, .btn-google[aria-busy="true"]::before { border-color: var(--cu-accent); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(1turn); } }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--cu-fill-muted); color: var(--cu-ink); cursor: pointer;
  transition: transform .15s var(--ease);
}
.icon-btn:active { transform: scale(.94); }

/* ── Form ── */
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--cu-meta); }
.input {
  width: 100%; min-height: 54px; padding: 0 18px;
  font: inherit; font-size: 16px; color: var(--cu-ink);
  background: var(--cu-surface-raised);
  border: 1px solid var(--cu-line-control); border-radius: var(--r-lg);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--cu-accent); box-shadow: 0 0 0 3px var(--cu-wash); }
.input[aria-invalid="true"] { border-color: var(--cu-accent); }
.input-code { font-size: 26px; font-weight: 800; letter-spacing: .5em; text-align: center; padding-left: calc(18px + .5em); font-variant-numeric: tabular-nums; }
/* No separate error red: accent text + alert glyph (DESIGN.md §3.4). */
.error {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 14px; font-weight: 700; color: var(--cu-accent);
}
.error::before {
  content: ""; width: 18px; height: 18px; flex: none; margin-top: 1px; background: currentColor;
  -webkit-mask: var(--mask-alert) center / contain no-repeat; mask: var(--mask-alert) center / contain no-repeat;
}
/* ── Account ── */
.who { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.who-text { flex: 1; min-width: 0; }
.who-email { display: block; font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--cu-grad-primary); color: var(--cu-on-accent);
  font-size: 22px; font-weight: 800; text-transform: uppercase;
}

.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--cu-wash); color: var(--cu-accent);
}
.tile-lg { width: 56px; height: 56px; border-radius: 18px; }
.tile-lg .ic { width: 26px; height: 26px; }
.tile-grad { background: var(--cu-grad-primary); color: var(--cu-on-accent); }

.bullets { display: grid; gap: 12px; }
.bullets li { position: relative; padding-left: 20px; color: var(--cu-body); line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--cu-accent-bright); }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-inner);
  background: var(--cu-fill-muted); color: var(--cu-body); font-size: 14px; line-height: 1.5;
}
.note .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--cu-accent); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--cu-line-soft); background: var(--cu-surface-raised); }
.footer-inner { display: grid; gap: 24px; padding-block: 40px 32px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand { display: grid; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--cu-body); font-size: 14px; }
.footer-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--cu-line-soft); }

/* ── Sheet (dialog) ── */
.sheet {
  width: 100%; max-width: 460px; max-height: calc(100dvh - 24px);
  margin: auto auto 0; padding: 0; overflow: auto;
  border: 1px solid var(--cu-float-border); border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--cu-surface-raised); color: var(--cu-ink);
  box-shadow: var(--cu-shadow-card);
}
@media (min-width: 560px) { .sheet { margin: auto; border-radius: var(--r-xl); } }
.sheet::backdrop { background: var(--cu-scrim); }
.sheet[open] { animation: sheet-in .35s var(--ease); }
.sheet[open]::backdrop { animation: fade .25s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-body { display: grid; gap: 16px; padding: 32px 24px 24px; }
@media (min-width: 480px) { .sheet-body { padding: 36px 32px 28px; } }
.sheet-body > .question { padding-right: 40px; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); font-size: 14px;
  background: var(--cu-wash); border: 1px solid var(--cu-line-strong);
}

.noscript { padding: 24px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Glyph masks (shape only, no colour). */
:root {
  --mask-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Ccircle cx='50' cy='44' r='21'/%3E%3Cpath d='M8 120c0-30 19-46 42-46s42 16 42 46z'/%3E%3C/svg%3E");
  --mask-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5M12 16.2v.1'/%3E%3C/g%3E%3C/svg%3E");
}
