/* NextQ site components. Tokens only (tokens.css); logical properties so RTL mirrors for free. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans);
  font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--light); color: var(--on-light); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(var(--w-content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--w-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-size: var(--fs-display); font-weight: 300; line-height: var(--lh-display); letter-spacing: var(--track-display); }
.h2 { font-size: var(--fs-3xl); font-weight: 300; line-height: var(--lh-heading); letter-spacing: var(--track-h2); }
.h3 { font-size: var(--fs-xl); font-weight: 500; line-height: 1.35; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-muted); max-width: var(--w-text); }
.dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--accent); margin-inline-start: .06em; vertical-align: baseline; box-shadow: 0 0 24px var(--accent-glow); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); }
.hl { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h);
  padding-inline: var(--s-5); border-radius: var(--r-md); font: 500 var(--fs-base)/1 var(--font-sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .4; pointer-events: none; }
.btn-sm { --h: 36px; padding-inline: var(--s-4); font-size: var(--fs-sm); border-radius: 12px; }
.btn-lg { --h: 52px; padding-inline: var(--s-6); }
.btn-primary { background: var(--light); color: var(--on-light); }
.btn-primary:hover { background: #fff; }
.btn-secondary { background: rgba(255,255,255,.08); color: var(--text); border-color: rgba(255,255,255,.06); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { box-shadow: 0 0 0 6px var(--accent-glow); }
.btn-link { padding: 0; height: auto; color: var(--text); background: none; }
.arrow { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--h-header);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(11,22,25,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.site-header .wrap-wide { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand img { height: 30px; width: auto; }
.brand.sub img { height: 38px; }
.nav { display: flex; gap: var(--s-5); margin-inline-start: var(--s-4); }
.nav a { text-decoration: none; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; transition: color var(--t-fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s-2); }
.lang { font-size: var(--fs-sm); color: var(--text-muted); text-decoration: none; padding: 8px 10px; border-radius: var(--r-sm); }
.lang:hover { color: var(--text); background: rgba(255,255,255,.06); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); color: var(--text); cursor: pointer; }
.menu-btn svg { margin: auto; }
.sheet { display: none; }
@media (max-width: 960px) {
  .nav, .header-actions .btn-secondary { display: none; }
  .menu-btn { display: grid; }
  .sheet[data-open="true"] {
    display: flex; flex-direction: column; gap: var(--s-2); position: fixed; inset: var(--h-header) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s-5) var(--gutter) var(--s-6); z-index: 49;
  }
  .sheet a:not(.btn) { padding: 12px 0; text-decoration: none; font-size: var(--fs-lg); border-bottom: 1px solid var(--border); }
  .sheet .btn { margin-top: var(--s-3); }
}
@media (max-width: 480px) { .header-actions .btn-primary { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--h-header) + var(--s-8)) 0 var(--s-9); overflow: hidden; }
.hero .display { max-width: 15ch; margin-inline: auto; }
:lang(ar) .hero .display { max-width: 14ch; }
.hero .lead { margin: var(--s-5) auto 0; }
.cta-row { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-6); }
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: var(--s-5); }

/* ripple: rings expanding from a dot (the Ping mark's idea) */
.ripple { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; }
.ripple span { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(242,240,234,.12); animation: ring 8s linear infinite; }
.ripple span:nth-child(2) { animation-delay: -2s; } .ripple span:nth-child(3) { animation-delay: -4s; } .ripple span:nth-child(4) { animation-delay: -6s; }
.ripple i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 40px 10px var(--accent-glow); }
.ripple.low { top: 38%; }
@keyframes ring { from { transform: scale(.4); opacity: 0; } 12% { opacity: 1; } to { transform: scale(9); opacity: 0; } }
.glow { position: absolute; inset: auto 0 -30% 0; height: 70%; background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 70%); opacity: .35; pointer-events: none; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: var(--s-10); }
.section-tight { padding-block: var(--s-8); }
.statement { min-height: 70vh; display: grid; place-items: center; text-align: center; overflow: hidden; border-block: 1px solid var(--border); }
.statement .display { position: relative; z-index: 1; }
.head { margin-bottom: var(--s-7); }
.head.center { text-align: center; } .head.center .lead { margin-inline: auto; }
.head .lead { margin-top: var(--s-4); }

/* ---------- tabs ---------- */
.modes { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: center; }
@media (max-width: 960px) { .modes { grid-template-columns: 1fr; } }
.tablist { display: flex; gap: var(--s-2); margin-top: var(--s-6); flex-wrap: wrap; }
.tab {
  position: relative; display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 14px; border-radius: 12px;
  background: none; border: 1px solid var(--border); color: var(--text-muted); font: 500 var(--fs-base) var(--font-sans); cursor: pointer; overflow: hidden;
}
.tab small { font-size: var(--fs-xs); color: var(--text-subtle); }
.tab[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--border-input); }
.tab .bar { position: absolute; inset-inline: 12px; bottom: 6px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.tab .bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--accent); }
.tab[aria-selected="true"] .bar::after { width: 100%; transition: width 5s linear; }
.tabs.manual .tab[aria-selected="true"] .bar::after { transition: none; }
.panel-text { margin-top: var(--s-5); min-height: 5.5em; }
.panel-text p { color: var(--text-muted); font-size: var(--fs-lg); }
.stage { position: relative; display: grid; place-items: center; min-height: 560px; border-radius: var(--r-xl); background: radial-gradient(60% 60% at 50% 45%, var(--surface-2), var(--surface) 70%); border: 1px solid var(--border); overflow: hidden; }
.stage [role="tabpanel"] { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.stage [role="tabpanel"].active { opacity: 1; transform: none; }
.no-js .stage { min-height: 0; display: flex; gap: var(--s-5); padding: var(--s-6); flex-wrap: wrap; justify-content: center; }
.no-js .stage [role="tabpanel"] { position: static; opacity: 1; transform: none; }

/* ---------- device mocks (CSS-drawn, text stays real) ---------- */
.phone { width: 252px; height: 516px; border-radius: 44px; background: #050c0e; padding: 10px; box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255,255,255,.08) inset; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #050c0e; z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: linear-gradient(170deg, #22424a, #10232a 65%); display: flex; flex-direction: column; align-items: center; padding: 56px 16px 20px; text-align: center; gap: 12px; color: #fff; }
.screen.light { background: #F5F3EE; color: var(--on-light); }
.status { font-size: 11px; opacity: .7; }
.viewfinder { position: relative; width: 170px; height: 170px; margin-top: 30px; border-radius: 18px; display: grid; place-items: center; }
.viewfinder::before, .viewfinder::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--accent); border-radius: 18px; clip-path: polygon(0 0,30% 0,30% 6%,6% 6%,6% 30%,0 30%, 0 70%,6% 70%,6% 94%,30% 94%,30% 100%,0 100%, 100% 100%,70% 100%,70% 94%,94% 94%,94% 70%,100% 70%, 100% 30%,94% 30%,94% 6%,70% 6%,70% 0,100% 0); }
.viewfinder::after { clip-path: none; border: 0; height: 2px; top: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); animation: scan 2.4s var(--ease) infinite alternate; }
@keyframes scan { from { top: 12%; } to { top: 86%; } }
.viewfinder img { width: 130px; height: 130px; border-radius: 10px; background: #fff; padding: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: rgba(0,0,0,.07); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticket-no { font-size: 84px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; margin-top: 6px; }
.queue-dots { display: flex; gap: 6px; justify-content: center; }
.queue-dots b { width: 10px; height: 10px; border-radius: 50%; background: rgba(22,41,47,.18); }
.queue-dots b.me { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.venue { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.venue i { width: 24px; height: 24px; border-radius: 7px; background: var(--on-light); display: grid; place-items: center; }
.small-print { font-size: 12px; opacity: .65; margin-top: auto; }
.clock { font-size: 56px; font-weight: 300; line-height: 1; margin-top: 10px; }
.notif { width: 100%; background: rgba(255,255,255,.95); color: var(--on-light); border-radius: 18px; padding: 10px 12px; display: flex; gap: 10px; text-align: start; margin-top: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: drop .7s var(--ease) both; }
.notif img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.notif b { display: block; font-size: 11px; } .notif span { display: block; font-size: 13px; line-height: 1.35; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.buzzing .phone { animation: buzz .5s ease-in-out 3; }
@keyframes buzz { 0%,100% { transform: translateX(0) } 20% { transform: translateX(-4px) rotate(-1deg) } 40% { transform: translateX(4px) rotate(1deg) } 60% { transform: translateX(-3px) } 80% { transform: translateX(3px) } }
.ready-pill { margin-top: auto; background: var(--success); color: var(--on-accent); font-weight: 600; padding: 12px; border-radius: 16px; width: 100%; }

.tablet { width: min(560px, 100%); aspect-ratio: 4 / 3; border-radius: 28px; background: #050c0e; padding: 12px; box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255,255,255,.08) inset; }
.tablet .ui { height: 100%; border-radius: 18px; background: #F5F3EE; color: var(--on-light); display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; padding: 16px; font-size: 13px; }
.tablet h4 { margin: 0 0 8px; font-size: 13px; }
.entry { background: #fff; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.entry .field { background: #F5F3EE; border-radius: 10px; padding: 8px 12px; font-size: 26px; font-weight: 300; letter-spacing: .04em; min-height: 46px; direction: ltr; text-align: center; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.keys span { background: #F5F3EE; border-radius: 8px; display: grid; place-items: center; font-weight: 500; font-size: 15px; }
.keys .go { grid-column: span 3; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.orders { display: flex; flex-direction: column; gap: 6px; }
.order { background: #fff; border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.order b { font-size: 16px; min-width: 2.2em; direction: ltr; }
.order em { font-style: normal; margin-inline-start: auto; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(22,41,47,.07); }
.order em.ready { background: var(--success); color: var(--on-accent); }
.order em.wait { background: rgba(238,138,53,.18); color: #8a4a0b; }

.display-mock { width: 168px; height: 224px; border-radius: 14px; background: #050c0e; padding: 8px; box-shadow: var(--shadow-pop); }
.display-mock .d { height: 100%; border-radius: 8px; background: #16292F; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 0; overflow: hidden; }
.display-mock .d img.logo { height: 14px; }
.display-mock .d .q { background: #fff; border-radius: 8px; padding: 4px; } .display-mock .d .q img { width: 104px; height: 104px; }
.display-mock .d .n { margin-top: auto; width: calc(100% + 16px); background: var(--accent); color: var(--on-accent); text-align: center; font-weight: 700; font-size: 22px; padding: 6px 0 8px; direction: ltr; }

/* ---------- facts strip ---------- */
.facts { display: flex; justify-content: center; gap: var(--s-6); flex-wrap: wrap; color: var(--text-muted); font-size: var(--fs-sm); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); transition: border-color var(--t-base) var(--ease); }
.card:hover { border-color: var(--border-input); }
.card .mock { height: 190px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; position: relative; transition: transform var(--t-base) var(--ease); }
.card:hover .mock { transform: translateY(-4px); }
.card p { color: var(--text-muted); } .card p b { color: var(--text); font-weight: 600; }

/* mini mocks inside cards */
.mini-keys { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; direction: ltr; }
.mini-keys span { height: 30px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 13px; color: var(--text-muted); }
.mini-keys .go { grid-column: span 3; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.browser { width: 82%; background: #F5F3EE; color: var(--on-light); border-radius: 12px; overflow: hidden; font-size: 12px; }
.browser .url { background: #e6e3db; padding: 7px 10px; display: flex; align-items: center; gap: 6px; direction: ltr; }
.browser .url::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.browser .page { padding: 14px; text-align: center; } .browser .page b { font-size: 30px; font-weight: 300; display: block; line-height: 1.1; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; direction: ltr; }
.bars i { width: 16px; border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.12); }
.bars i.hi { background: var(--accent); }
.lang-mock { display: flex; flex-direction: column; gap: 8px; width: 80%; }
.lang-mock div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.lang-mock .ar { direction: rtl; text-align: right; } .lang-mock .en { direction: ltr; text-align: left; color: var(--text-muted); }
.mini-notif { width: 84%; background: rgba(255,255,255,.95); color: var(--on-light); border-radius: 14px; padding: 9px 11px; display: flex; gap: 9px; font-size: 12px; text-align: start; }
.mini-notif img { width: 28px; height: 28px; border-radius: 7px; }
.mini-notif + .mini-notif { opacity: .45; transform: scale(.94); margin-top: -6px; }

/* product cards */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 960px) { .products { grid-template-columns: 1fr; } }
.product { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-5); }
.product::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent); pointer-events: none; transition: transform var(--t-slow) var(--ease); }
[dir="rtl"] .product::after { inset: auto auto -60% -20%; }
.product:hover::after { transform: scale(1.15); }
.product img.lockup { height: 52px; width: auto; align-self: flex-start; }
.product ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); }
.product li { display: flex; gap: 10px; align-items: flex-start; }
.product li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 4px; }
.product .btn { align-self: flex-start; margin-top: auto; position: relative; z-index: 1; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--border-input); padding-top: var(--s-5); }
.step b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 600; margin-bottom: var(--s-4); }
.step h3 { font-size: var(--fs-xl); font-weight: 500; margin-bottom: 6px; }
.step p { color: var(--text-muted); }

.showcase { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: center; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr; } }
.showcase .stage { min-height: 520px; padding: var(--s-6); display: flex; gap: var(--s-6); justify-content: center; align-items: center; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-block: 1px solid var(--border); }
.stats div { padding: var(--s-7) var(--s-4); }
.stats div + div { border-inline-start: 1px solid var(--border); }
.stats b { display: block; font-size: var(--fs-4xl); font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: var(--s-3); }
.stats span { color: var(--text-muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stats div + div { border-inline-start: 0; border-top: 1px solid var(--border); } }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s-8); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: var(--s-6); } }
details { border-bottom: 1px solid var(--border); }
summary { list-style: none; cursor: pointer; padding: var(--s-5) 0; display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-lg); font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary .plus { flex: none; width: 24px; height: 24px; position: relative; transition: transform var(--t-base) var(--ease); }
summary .plus::before, summary .plus::after { content: ""; position: absolute; inset: 11px 4px; background: var(--text-muted); border-radius: 2px; }
summary .plus::after { transform: rotate(90deg); }
details[open] summary .plus { transform: rotate(45deg); }
details p { color: var(--text-muted); padding-bottom: var(--s-5); max-width: 60ch; }

/* cta + footer */
.cta { text-align: center; overflow: hidden; padding-block: var(--s-11); }
.cta .h2 { font-size: var(--fs-4xl); max-width: 18ch; margin-inline: auto; position: relative; z-index: 1; }
.cta .lead { margin: var(--s-4) auto 0; position: relative; z-index: 1; }
.cta .cta-row { position: relative; z-index: 1; }
.site-footer { border-top: 1px solid var(--border); padding-block: var(--s-8) var(--s-6); color: var(--text-muted); font-size: var(--fs-sm); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { color: var(--text); font-size: var(--fs-sm); margin: 0 0 var(--s-3); font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { color: var(--text); }
.foot-brand img { height: 28px; margin-bottom: var(--s-4); }
.endorse { display: inline-flex; gap: 8px; align-items: center; margin-top: var(--s-3); }
.foot-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); }
.placeholder { border: 1px dashed var(--border-input); border-radius: 6px; padding: 1px 6px; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* design page */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.swatch { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; font-size: var(--fs-xs); }
.swatch i { display: block; height: 64px; }
.swatch div { padding: 8px 10px; } .swatch code { color: var(--text-muted); }
.row { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; }
.ds h2 { margin: var(--s-8) 0 var(--s-5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ripple span { transform: scale(calc(1 + var(--i, 1) * 1.6)); opacity: .6; }
}
.statement .ripple i { display: none; }
