/* شركاء بتكة لابس
   Built on Apple's interface guidelines: the system font and optical type sizes, grouped lists on
   a quiet background, translucent bars that content scrolls under, sheets that follow the finger,
   and feedback on the press. Colour is carried by the money and by one yellow accent. */

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --label: #1d1d1f;
  --label-2: #6e6e73;
  --label-3: #a1a1a6;
  --sep: rgba(60, 60, 67, 0.14);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-2: rgba(120, 120, 128, 0.2);
  --yellow: #ffd60a;
  --yellow-ink: #7a5b00;
  --yellow-soft: rgba(255, 214, 10, 0.2);
  --green: #1f8a3b;
  --green-soft: rgba(52, 199, 89, 0.15);
  --red: #d70015;
  --red-soft: rgba(255, 59, 48, 0.12);
  --blue: #0071e3;
  --orange: #ff9f0a;
  --teal: #30a6b8;
  --material: rgba(245, 245, 247, 0.72);
  --material-border: rgba(60, 60, 67, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --r: 22px;
  --r-s: 14px;
  /* A spring that settles without overshoot, as a CSS easing. */
  --settle: linear(0, 0.18 6%, 0.52 14%, 0.78 24%, 0.92 36%, 0.98 50%, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Arabic', 'SF Pro Text', 'Segoe UI', 'Noto Sans Arabic', Tahoma, system-ui, sans-serif;
  --tabbar: calc(58px + env(safe-area-inset-bottom));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #242426;
    --label: #f5f5f7;
    --label-2: #a1a1a6;
    --label-3: #636366;
    --sep: rgba(84, 84, 88, 0.5);
    --fill: rgba(120, 120, 128, 0.24);
    --fill-2: rgba(120, 120, 128, 0.36);
    --yellow-ink: #ffd60a;
    --green: #30d158;
    --red: #ff6961;
    --material: rgba(28, 28, 30, 0.72);
    --material-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--label); font: 400 1rem/1.5 var(--font);
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 70%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Type: tracking tightens as the size grows, and leading with it. */
.large-title { font-size: 2.125rem; line-height: 1.12; font-weight: 700; letter-spacing: -0.022em; }
.title-2 { font-size: 1.375rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.016em; }
.headline { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.008em; }
.subhead { font-size: 0.9375rem; line-height: 1.4; color: var(--label-2); }
.footnote { font-size: 0.8125rem; line-height: 1.45; color: var(--label-2); letter-spacing: 0.005em; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
.num, .money { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* ── frame: a tab bar on a phone, a sidebar on a wide screen ── */
.frame { min-height: 100dvh; }
.nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  height: var(--tabbar); padding: 6px 6px env(safe-area-inset-bottom);
  background: var(--material); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--material-border);
}
.nav-brand, .nav-foot { display: none; }
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; color: var(--label-3); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.01em;
  min-width: 0; padding: 0; transition: color 0.15s;
}
.nav-item .pill-ico { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background 0.35s var(--settle), transform 0.12s; }
.nav-item:active .pill-ico { transform: scale(0.92); }
.nav-item[aria-current='page'] { color: var(--label); }
.nav-item[aria-current='page'] .pill-ico { background: var(--yellow); color: #1d1d1f; }

.main { padding-bottom: calc(var(--tabbar) + 24px); }
.navbar {
  position: sticky; top: 0; z-index: 20; height: calc(48px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: center;
  background: var(--material); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.navbar-title { font-size: 1.0625rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.3s var(--settle); }
.navbar.scrolled { border-bottom-color: var(--material-border); }
.navbar.scrolled .navbar-title { opacity: 1; transform: none; }

.page { max-width: 760px; margin: 0 auto; padding: 4px 16px 32px; }
.page > * + * { margin-top: 24px; }
.page-head { display: grid; gap: 4px; padding-top: 4px; }
.page.enter { animation: enter 0.42s var(--settle) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .frame { display: grid; grid-template-columns: 272px minmax(0, 1fr); }
  .nav {
    position: sticky; top: 0; inset-inline: auto; height: 100dvh; flex-direction: column; justify-content: flex-start; gap: 2px;
    padding: 28px 14px 20px; background: var(--material); border-top: 0; border-inline-end: 1px solid var(--material-border);
  }
  .nav-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; }
  .nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
  .nav-brand b { display: block; font-size: 0.9375rem; letter-spacing: -0.01em; }
  .nav-brand small { display: block; font-size: 0.75rem; color: var(--label-2); }
  .nav-item { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 0.9375rem; color: var(--label); transition: background 0.12s; }
  .nav-item:hover { background: var(--fill); }
  .nav-item .pill-ico { width: auto; height: auto; background: none !important; color: var(--label-2); }
  .nav-item[aria-current='page'] { background: var(--fill); font-weight: 600; }
  .nav-item[aria-current='page'] .pill-ico { color: var(--label); }
  .nav-foot { display: block; margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--sep); font-size: 0.8125rem; color: var(--label-2); }
  .navbar { display: none; }
  .main { padding-bottom: 48px; }
  .page { padding: 52px 40px 24px; }
  .page .large-title { font-size: 2.5rem; }
}

/* ── controls ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--fill); color: var(--label); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; letter-spacing: -0.005em; transition: transform 0.14s var(--settle), background 0.12s, opacity 0.12s;
}
.btn:active { transform: scale(0.96); background: var(--fill-2); }
.btn-fill { background: var(--label); color: var(--bg); }
.btn-fill:active { background: var(--label); opacity: 0.8; }
.btn-yellow { background: var(--yellow); color: #1d1d1f; }
.btn-yellow:active { background: var(--yellow); opacity: 0.85; }
.btn-wide { width: 100%; }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 0.8125rem; }
.btn-plain { background: none; padding: 0 8px; color: var(--blue); }
.btn-danger { color: var(--red); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn .ico { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); }
.seg button { flex: 1; min-height: 32px; border: 0; border-radius: 8px; background: none; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; transition: background 0.2s, box-shadow 0.2s; }
.seg button[aria-pressed='true'] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); font-weight: 600; }
.seg button:active { opacity: 0.7; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--fill); color: var(--label-2); white-space: nowrap; }
.pill.go { background: var(--yellow-soft); color: var(--yellow-ink); }
.pill.done { background: var(--green-soft); color: var(--green); }
.pill.off { background: var(--red-soft); color: var(--red); }

/* ── grouped lists ── */
.group-title { padding: 0 16px 6px; font-size: 0.8125rem; color: var(--label-2); }
.group { background: var(--surface); border-radius: var(--r-s); overflow: hidden; }
.group-foot { padding: 8px 16px 0; font-size: 0.8125rem; line-height: 1.45; color: var(--label-2); }
.item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px;
  border: 0; background: none; text-align: start; text-decoration: none; color: inherit; transition: background 0.1s;
}
.item + .item::before { content: ''; position: absolute; inset-inline: 16px 0; top: 0; height: 1px; background: var(--sep); }
.item.has-tile + .item.has-tile::before { inset-inline-start: 58px; }
button.item:active, a.item:active { background: var(--fill); }
.item-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.item-main strong { font-weight: 500; overflow-wrap: anywhere; }
.item-side { display: grid; gap: 3px; justify-items: end; text-align: end; flex: none; font-size: 0.8125rem; color: var(--label-2); }
.item .chev { color: var(--label-3); flex: none; transform: scaleX(-1); }
[dir='ltr'] .item .chev { transform: none; }
.tile { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.tile.lg { width: 48px; height: 48px; border-radius: 12px; }
.t-blue { background: var(--blue); } .t-orange { background: var(--orange); } .t-teal { background: var(--teal); }
.t-green { background: #34c759; } .t-gray { background: #8e8e93; } .t-yellow { background: var(--yellow); color: #1d1d1f; } .t-red { background: #ff453a; } .t-ink { background: #1d1d1f; }

/* ── cards ── */
.card { background: var(--surface); border-radius: var(--r); padding: 20px; }
.card > * + * { margin-top: 12px; }

.hero {
  position: relative; overflow: hidden; color: #f5f5f7; border-radius: 28px; padding: 24px 22px 20px;
  background: radial-gradient(120% 90% at 100% 0%, #3a3a3c 0%, #1c1c1e 55%, #0b0b0c 100%);
  box-shadow: var(--shadow);
}
.hero::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); pointer-events: none; }
.hero-label { font-size: 0.9375rem; color: #a1a1a6; }
.hero-value { display: block; margin: 4px 0 2px; font-size: clamp(2.75rem, 11vw, 3.75rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; color: var(--yellow); }
.hero-note { font-size: 0.8125rem; color: #a1a1a6; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stats > div { padding-top: 14px; display: grid; gap: 2px; }
.hero-stats > div + div { padding-inline-start: 18px; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stats span { font-size: 0.8125rem; color: #a1a1a6; }
.hero-stats strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: var(--r-s); padding: 14px; display: grid; gap: 2px; }
.stat span { font-size: 0.75rem; color: var(--label-2); }
.stat strong { font-size: 1.25rem; letter-spacing: -0.02em; }
@media (max-width: 400px) { .stat { padding: 12px 10px; } .stat strong { font-size: 1.0625rem; } }

.ring-card { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg) scaleY(-1); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: var(--fill); }
.ring .value { stroke: var(--yellow); transition: stroke-dashoffset 0.9s var(--settle); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-center b { font-size: 1.5rem; letter-spacing: -0.02em; }
.ring-center span { font-size: 0.6875rem; color: var(--label-2); }

.check-row { display: flex; align-items: center; gap: 12px; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--fill-2); flex: none; display: grid; place-items: center; color: transparent; transition: background 0.3s var(--settle), border-color 0.3s; }
.dot.on { background: var(--green); border-color: var(--green); color: #fff; }
.progress-line { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.progress-line span { display: block; height: 100%; border-radius: 99px; background: var(--yellow); transition: width 0.7s var(--settle); }

.pcard { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: var(--r); background: var(--surface); text-align: start; transition: transform 0.16s var(--settle); }
.pcard:active { transform: scale(0.98); }
.pcard-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pcard-main .earn { color: var(--green); font-size: 0.8125rem; font-weight: 600; }
.pcard .chev { color: var(--label-3); transform: scaleX(-1); }
.cards { display: grid; gap: 12px; }
@media (min-width: 700px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards.cols-3 .pcard { flex-direction: column; align-items: flex-start; } .cards.cols-3 .pcard .chev { display: none; } }

.empty { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 36px 24px; background: var(--surface); border-radius: var(--r); }
.empty .tile { margin-bottom: 4px; }
.empty p { color: var(--label-2); max-width: 36ch; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-s); background: var(--yellow-soft); font-size: 0.9375rem; }
.notice.warn { background: var(--red-soft); }
.notice .ico { flex: none; margin-top: 2px; color: var(--yellow-ink); }

/* ── forms ── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 0.8125rem; font-weight: 500; color: var(--label-2); padding-inline: 4px; }
.field-hint { font-size: 0.75rem; color: var(--label-2); padding-inline: 4px; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--fill); font-size: 1rem;
  transition: box-shadow 0.15s, background 0.15s; appearance: none; -webkit-appearance: none;
}
.input:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 55%, transparent); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--label-2) 50%), linear-gradient(135deg, var(--label-2) 50%, transparent 50%); background-position: 18px 21px, 12px 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 14px; padding-inline-start: 34px; }
[dir='ltr'] select.input { background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--label-2); }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--label); flex: none; }
.check a { color: var(--blue); }
.form-error { color: var(--red); font-size: 0.875rem; min-height: 1.3em; text-align: center; }
.turnstile { min-height: 65px; display: flex; justify-content: center; }
.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper b { min-width: 2ch; text-align: center; font-size: 1.5rem; letter-spacing: -0.02em; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fill); display: grid; place-items: center; transition: transform 0.12s var(--settle); }
.stepper button:active { transform: scale(0.9); background: var(--fill-2); }

/* ── signed-out ── */
.auth { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 28px; padding: 40px 16px 56px; }
.auth-head { text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 440px; }
.auth-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.auth-head p { color: var(--label-2); font-size: 1.0625rem; line-height: 1.45; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 28px; padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.auth-points { width: 100%; max-width: 440px; }
.foot-note { text-align: center; font-size: 0.8125rem; color: var(--label-2); }
.foot-note a { color: var(--blue); }

/* ── sheets ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.42); }
.sheet {
  position: fixed; z-index: 41; inset-inline: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18); outline: none; will-change: transform;
}
.sheet-head { position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 18px 56px 8px; touch-action: none; cursor: grab; }
.sheet-head:active { cursor: grabbing; }
.grabber { position: absolute; top: 8px; inset-inline: 0; margin: auto; width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); }
.sheet-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.sheet-close { position: absolute; inset-inline-end: 14px; top: 16px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill); display: grid; place-items: center; color: var(--label-2); transition: transform 0.12s var(--settle); }
.sheet-close .ico { transform: rotate(45deg); }
.sheet-close:active { transform: scale(0.9); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); }
.sheet-body > * > * + * { margin-top: 24px; }
.sheet-body > * > .actions { margin-top: 16px; }
@media (min-width: 700px) {
  .sheet { inset: 0; margin: auto; width: min(600px, 92vw); height: fit-content; max-height: 86dvh; border-radius: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3); }
  .sheet-head { cursor: default; touch-action: auto; }
  .grabber { display: none; }
}

/* ── product sheet ── */
.pd-head { display: flex; align-items: center; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--surface); font-size: 0.8125rem; color: var(--label-2); }
.plan { background: var(--surface); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.plan.popular { box-shadow: inset 0 0 0 2px var(--yellow); }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 1.75rem; letter-spacing: -0.03em; }
.plan-price span { font-size: 0.8125rem; color: var(--label-2); }
.earn-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 0.875rem; font-weight: 600; }
.earn-line small { font-weight: 500; opacity: 0.85; }
.features { display: grid; gap: 8px; font-size: 0.9375rem; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features .ico { flex: none; margin-top: 3px; color: var(--green); }
details.more > summary { list-style: none; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--blue); padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { display: none; }
.linkbox { background: var(--fill); border-radius: 12px; padding: 12px 14px; font-size: 0.875rem; overflow-wrap: anywhere; user-select: all; }
.quote { background: var(--surface); border-radius: var(--r-s); padding: 14px 16px; font-size: 0.9375rem; line-height: 1.6; white-space: pre-line; color: var(--label); border-inline-start: 4px solid var(--yellow); }
.points li { position: relative; padding-inline-start: 16px; }
.points li + li { margin-top: 8px; }
.points li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

/* ── guide ── */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 2px; padding: 0 0 22px; padding-inline-start: 48px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: #1d1d1f; display: grid; place-items: center; font-weight: 700; font-size: 0.9375rem; }
.steps li::after { content: ''; position: absolute; inset-inline-start: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--sep); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { font-weight: 600; padding-top: 5px; }
.steps span { color: var(--label-2); font-size: 0.9375rem; }
.qa { border-top: 1px solid var(--sep); }
.qa:first-child { border-top: 0; }
.qa > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 500; cursor: pointer; }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary .ico { color: var(--label-3); flex: none; transition: transform 0.35s var(--settle); }
.qa[open] > summary .ico { transform: rotate(90deg); }
.qa > p { padding: 0 16px 16px; color: var(--label-2); font-size: 0.9375rem; line-height: 1.6; }
.two { display: grid; gap: 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.do h3, .dont h3 { font-size: 0.9375rem; margin-bottom: 8px; }
.do li, .dont li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9375rem; }
.do li + li, .dont li + li { margin-top: 8px; }
.do .ico { color: var(--green); } .dont .ico { color: var(--red); transform: rotate(45deg); }
.do .ico, .dont .ico { flex: none; margin-top: 3px; }
.rules li { display: flex; gap: 10px; padding: 12px 16px; font-size: 0.9375rem; }
.rules li + li { border-top: 1px solid var(--sep); }

/* ── toast ── */
.toast {
  position: fixed; z-index: 60; inset-inline: 0; bottom: calc(var(--tabbar) + 14px); margin: 0 auto; width: fit-content; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-align: center;
  background: var(--material); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--material-border); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none; transition: opacity 0.2s, transform 0.45s var(--settle);
}
.toast.show { opacity: 1; transform: none; }
.toast.error { color: var(--red); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.boot { min-height: 60dvh; display: grid; place-items: center; color: var(--label-2); }

/* ── accessibility: the three signals the system gives ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .page.enter { animation: fade 0.2s both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .navbar, .toast { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --sep: rgba(60, 60, 67, 0.5); --label-2: #3a3a3c; --fill: rgba(120, 120, 128, 0.22); }
  .group, .card, .plan, .pcard, .stat { outline: 1px solid var(--sep); }
}
