/* ============================================================
   TidyType — Aurora design system
   Shared tokens + components for index / legal / privacy pages.
   Mobile-first. No build step; plain CSS.
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
:root {
  color-scheme: dark light;

  /* surface */
  --bg: #0a0713;
  --ink: #f6f4ff;
  --muted: #b8b2cf;
  --muted-2: #8a83a6;
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .09);
  --glass-line: rgba(255, 255, 255, .14);
  --panel: rgba(10, 7, 19, .55);

  /* brand gradient stops */
  --c1: #c060ff;   /* violet  */
  --c2: #5b8cff;   /* blue    */
  --c3: #34d399;   /* green   */
  --c4: #ff5fa0;   /* pink    */
  --grad: linear-gradient(100deg, var(--c1), var(--c2), var(--c3));
  --grad-btn: linear-gradient(135deg, var(--c1), var(--c2));

  /* feature accents */
  --grammar: #00d9a0;
  --fun: #f5a623;
  --biz: #e91e8c;
  --translate: #00c8f8;
  --voice: #ff6b6b;

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --t-hero: clamp(42px, 8.5vw, 82px);
  --t-h2: clamp(30px, 5vw, 50px);
  --t-h3: 19px;
  --t-lead: clamp(16px, 2.4vw, 19px);
  --t-body: 16px;
  --t-small: 13px;

  /* space / shape / motion */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf8ff;
    --ink: #181222;
    --muted: #5f5573;
    --muted-2: #81778f;
    --glass: rgba(255, 255, 255, .62);
    --glass-strong: rgba(255, 255, 255, .82);
    --glass-line: rgba(56, 38, 84, .16);
    --panel: rgba(255, 255, 255, .72);
    --shadow: 0 30px 80px rgba(72, 46, 104, .16);
  }
}

/* ---- Reset / base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: rgba(192, 96, 255, .32); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a0713; }
::-webkit-scrollbar-thumb { background: #2a2440; border-radius: 8px; border: 3px solid #0a0713; }
::-webkit-scrollbar-thumb:hover { background: #3a3358; }
@media (prefers-color-scheme: light) {
  ::selection { background: rgba(91, 140, 255, .22); color: #181222; }
  ::-webkit-scrollbar-track { background: #fbf8ff; }
  ::-webkit-scrollbar-thumb { background: #d7cbea; border-color: #fbf8ff; }
  ::-webkit-scrollbar-thumb:hover { background: #c7b5df; }
}

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Aurora background ------------------------------------- */
.aurora { position: fixed; inset: -20%; z-index: -2; filter: blur(70px); opacity: .8; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 20s ease-in-out infinite; }
.aurora .b1 { width: 46vw; height: 46vw; left: -6%; top: -8%; background: radial-gradient(circle, var(--c1), transparent 65%); }
.aurora .b2 { width: 42vw; height: 42vw; right: -6%; top: -4%; background: radial-gradient(circle, var(--c2), transparent 65%); animation-delay: -5s; }
.aurora .b3 { width: 40vw; height: 40vw; left: 16%; bottom: -16%; background: radial-gradient(circle, var(--c3), transparent 65%); animation-delay: -10s; }
.aurora .b4 { width: 34vw; height: 34vw; right: 6%; bottom: -12%; background: radial-gradient(circle, var(--c4), transparent 65%); animation-delay: -14s; }
.aurora--calm { opacity: .5; filter: blur(90px); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(10, 7, 19, .5); pointer-events: none; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(5%,6%) scale(1.08); } 66% { transform: translate(-4%,3%) scale(.96); } }
@media (prefers-color-scheme: light) {
  .aurora { opacity: .46; filter: blur(82px); }
  .aurora .blob { mix-blend-mode: multiply; }
  body::after { background: rgba(251, 248, 255, .68); }
}

/* ---- Navigation (glass pill) ------------------------------ */
.site-nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px 11px 20px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav { background: rgba(18, 14, 30, .92); }
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.3px; text-decoration: none; color: var(--ink); }
.brand .mk { width: 30px; height: 30px; display: block; }
.nav-r { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--muted); font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); transition: color .25s; }
.nav-link:hover { color: var(--ink); }
.lang-switch { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-decoration: none; padding: 7px 10px; border-radius: var(--r-pill); border: 1px solid var(--glass-line); background: var(--glass); display: inline-flex; align-items: center; gap: 6px; }
.lang-switch:hover { background: var(--glass-strong); }
.lang-switch__flag { font-size: 15px; line-height: 1; }
.mobile-menu-toggle { display: none; align-items: center; gap: 7px; color: var(--ink); font: 700 12px/1 var(--font-body); letter-spacing: .5px; padding: 8px 10px; border-radius: var(--r-pill); border: 1px solid var(--glass-line); background: var(--glass); cursor: pointer; }
.mobile-menu-toggle:hover, .mobile-menu-toggle[aria-expanded="true"] { background: var(--glass-strong); }
.mobile-menu-toggle__icon { font-size: 15px; line-height: 1; }
.mobile-menu { position: absolute; top: calc(100% + 9px); right: 12px; width: min(260px, calc(100vw - 48px)); display: grid; gap: 5px; padding: 10px; border-radius: 20px; border: 1px solid var(--glass-line); background: rgba(18, 14, 30, .96); box-shadow: 0 20px 50px rgba(0,0,0,.38); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__link { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.mobile-menu__link:hover, .mobile-menu__link:focus-visible { background: var(--glass-strong); outline: none; }
@media (prefers-color-scheme: light) {
  .site-nav { box-shadow: 0 8px 40px rgba(72, 46, 104, .14); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-nav { background: rgba(255, 255, 255, .94); }
  }
  .mobile-menu { background: rgba(255, 255, 255, .96); box-shadow: 0 20px 50px rgba(72, 46, 104, .18); }
}

/* ---- Buttons ---------------------------------------------- */
.btn { font-family: var(--font-body); font-weight: 600; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; border-radius: var(--r-pill); padding: 11px 20px; display: inline-flex; align-items: center; gap: 9px; transition: transform .25s var(--ease), box-shadow .3s, filter .25s; white-space: nowrap; }
.btn--glass { background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { background: var(--glass-strong); transform: translateY(-1px); }
.btn--grad { background: var(--grad-btn); color: #0a0713; }
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(192, 96, 255, .4); }
.btn--light { background: linear-gradient(135deg, #fff, #e8def9); color: #0a0713; border-radius: var(--r); padding: 15px 28px; font-size: 15px; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(192, 96, 255, .35); }
.btn--lg { padding: 17px 34px; font-size: 16px; border-radius: var(--r); }

/* ---- Bits ------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: #e7defc; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--r-pill); padding: 8px 16px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c3); box-shadow: 0 0 12px var(--c3); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #c9a8ff; }
.chip { font-size: 14px; font-weight: 500; color: #efe9ff; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 16px; display: inline-flex; gap: 7px; align-items: center; transition: transform .25s var(--ease), border-color .25s; }
.chip:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); }
.chip svg { width: 15px; height: 15px; fill: var(--accent); display: block; flex-shrink: 0; }
.req { font-size: 13px; color: var(--muted); }
@media (prefers-color-scheme: light) {
  .badge { color: #3a2558; }
  .eyebrow { color: #7f3fbd; }
  .chip { color: #2a2139; }
  .chip:hover { border-color: rgba(56, 38, 84, .3); }
}

/* ---- Cards (glass) ---------------------------------------- */
.card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .badge, .chip { background: rgba(255, 255, 255, .05); }
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .28); box-shadow: 0 22px 54px rgba(0, 0, 0, .45); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card .ic svg { width: 26px; height: 26px; fill: var(--accent); display: block; }
.card .bar { position: absolute; left: 0; top: 26px; width: 3px; height: 42px; border-radius: 2px; background: var(--accent); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- Sections / layout ------------------------------------ */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
h2.title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h2); letter-spacing: -1.5px; line-height: 1.08; }
.section-head p { color: var(--muted); font-size: var(--t-lead); margin-top: 14px; }

.grid-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 60px); align-items: center; }
.split .panel { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: var(--r-lg); padding: 26px; position: relative; }

/* Privacy lock artwork — full size beside the text on desktop, compact when stacked */
.lockart-wrap { display: flex; justify-content: center; }
.lockart { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.lockart__ring { position: absolute; border-radius: 50%; }
.lockart__ring--1 { width: 200px; height: 200px; border: 1px solid rgba(192, 96, 255, .18); }
.lockart__ring--2 { width: 150px; height: 150px; border: 1px solid rgba(192, 96, 255, .25); }
.lockart__core { width: 84px; height: 84px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-line); display: grid; place-items: center; font-size: 38px; }
/* Small inline lock beside the heading — shown only when the section stacks (mobile) */
.lockart-badge { display: none; }
@media (max-width: 899px) {
  .lockart-wrap { display: none; }
  .privacy-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .lockart-badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-line); font-size: 24px; box-shadow: 0 0 0 7px rgba(192, 96, 255, .07); }
}

/* ---- Hero ------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 56px); place-items: center; text-align: center; padding: 128px 0 36px; }
.hero > div { max-width: 780px; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-hero); line-height: 1.04; letter-spacing: -2px; margin: 22px 0; }
.hero .lead { font-size: var(--t-lead); color: var(--muted); max-width: 32em; line-height: 1.7; margin-inline: auto; }
.hero .cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero .chips { display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; margin-top: 30px; }
.hero-shots { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-start; gap: 0; margin-top: clamp(30px, 5vw, 46px); perspective: 900px; }
.hero-shots::before {
  content: ''; position: absolute; z-index: -2; left: 50%; top: 50%; width: min(500px, 86vw); height: 64%;
  transform: translate(-50%, -46%); border-radius: 999px;
  background: radial-gradient(circle at 38% 42%, rgba(192, 96, 255, .24), transparent 48%), radial-gradient(circle at 68% 56%, rgba(91, 140, 255, .2), transparent 52%), radial-gradient(circle at 50% 78%, rgba(52, 211, 153, .11), transparent 50%);
  filter: blur(16px); opacity: .86;
}
.hero-shot {
  position: relative; width: clamp(126px, 23vw, 198px); padding: 5px; overflow: hidden;
  border: 1px solid var(--phone-line); border-radius: 30px; background: var(--phone-frame);
  box-shadow: 0 24px 44px var(--phone-shadow);
}
.hero-shot img { width: 100%; height: auto; border-radius: 24px; backface-visibility: hidden; }
.hero-shot--dark { order: 2; z-index: 2; margin-left: clamp(-18px, -2.3vw, -8px); transform: rotate(1.2deg) translateY(8px); }
.hero-shot--dark { --phone-frame: #15111f; --phone-line: rgba(255, 255, 255, .16); --phone-shadow: rgba(0, 0, 0, .38); }
.hero-shot--light { order: 1; z-index: 1; margin-right: clamp(-18px, -2.3vw, -8px); transform: rotate(-1.8deg); }
.hero-shot--light { --phone-frame: #fffaff; --phone-line: rgba(56, 38, 84, .14); --phone-shadow: rgba(72, 46, 104, .2); }
@media (prefers-color-scheme: light) {
  .hero-shots::before { opacity: .68; filter: blur(18px); }
  .hero-shot--dark { order: 1; z-index: 1; margin-left: 0; margin-right: clamp(-18px, -2.3vw, -8px); opacity: .86; transform: rotate(-1.8deg) translateY(8px); }
  .hero-shot--dark { --phone-shadow: rgba(72, 46, 104, .18); }
  .hero-shot--light { order: 2; z-index: 2; margin-right: 0; margin-left: clamp(-18px, -2.3vw, -8px); opacity: 1; transform: rotate(1.2deg); }
  .hero-shot--light { --phone-shadow: rgba(72, 46, 104, .22); }
}

/* ---- Stats / spec rows ------------------------------------ */
.stats { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; max-width: 460px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -1px; }
.stat .l { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.spec { display: flex; flex-direction: column; gap: 10px; }
.spec .row { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-sm); font-size: 14px; }
.spec .row .v { font-weight: 500; }
.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullets .b { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #d6d2e6; }
.bullets .b i { width: 30px; height: 30px; border-radius: 8px; background: rgba(192, 96, 255, .14); display: grid; place-items: center; font-style: normal; flex-shrink: 0; }
@media (prefers-color-scheme: light) {
  .bullets .b { color: #382f48; }
}

/* ---- Beta access section ---------------------------------- */
.beta-section { text-align: left; }
.beta-card {
  position: relative; overflow: hidden; border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 12% 10%, rgba(192, 96, 255, .32), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(52, 211, 153, .20), transparent 32%),
    rgba(255, 255, 255, .055);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow); padding: clamp(28px, 5vw, 58px);
}
.beta-card__badge { margin-bottom: clamp(28px, 5vw, 52px); }
.beta-card__head { max-width: 760px; }
.beta-card__head .title { font-size: var(--t-hero); margin: 14px 0 18px; }
.beta-card__head .lead { color: var(--muted); max-width: 34em; }
.beta-steps { display: grid; gap: 24px; margin: clamp(32px, 5vw, 48px) 0 30px; max-width: 820px; }
.beta-step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.beta-step__num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 32px; color: #fff;
  background: linear-gradient(145deg, #a855f7, #5b8cff);
  box-shadow: 0 14px 30px rgba(91, 140, 255, .28);
}
.beta-step h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); line-height: 1.15; margin-bottom: 8px; }
.beta-step p { color: var(--muted); font-size: var(--t-lead); line-height: 1.55; max-width: 34em; }
.beta-card__cta { box-shadow: 0 0 40px rgba(52, 211, 153, .18); }
.beta-step__cta { margin-top: 16px; }
.beta-card__req { margin-top: 18px; }
@media (max-width: 560px) {
  .beta-step { grid-template-columns: 48px 1fr; gap: 14px; }
  .beta-step__num { width: 48px; height: 48px; font-size: 24px; }
}

/* ---- Video slot ------------------------------------------- */
.video-frame { max-width: 880px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-line); background: var(--glass); aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame .ph { text-align: center; color: var(--muted-2); font-size: 14px; padding: 24px; }
.video-frame .ph .play { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-btn); display: grid; place-items: center; margin: 0 auto 14px; font-size: 22px; color: #0a0713; }

/* Feature video demo (auto-advancing carousel) */
.chipdemo { max-width: 840px; margin: 0 auto; }
.chipdemo__features { display: flex; flex-direction: column; gap: 12px; justify-content: center; position: relative; }
.chiptab { position: relative; overflow: hidden; display: block; width: 100%; text-align: left; font-family: var(--font-body); color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 18px; padding: 15px 18px 17px; cursor: pointer; transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.chiptab__head { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; color: var(--ink); line-height: 1.15; }
.chiptab svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.chiptab__desc { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.chiptab:hover { background: var(--glass); border-color: var(--glass-line); }
.chiptab.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.chiptab.active .chiptab__head { color: var(--accent); }
.chiptab__bar { position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0; background: var(--accent); border-radius: 2px; }

.chipdemo__stage { display: grid; grid-template-columns: minmax(250px, 322px) minmax(250px, 1fr); align-items: center; gap: clamp(30px, 5vw, 60px); margin: 0 auto; }
.chipdemo__media { width: 100%; }
.chipdemo__phone { width: 100%; border-radius: 28px; border: 1px solid var(--glass-line); background: #0b0813; padding: 2px; box-shadow: 0 26px 70px rgba(0,0,0,.5); overflow: hidden; }
.chipdemo__phone video { display: block; width: 100%; aspect-ratio: 25 / 54; object-fit: cover; object-position: center; border-radius: 25px; background: #000; transition: opacity .3s ease; }
.chipdemo__phone video.swapping { opacity: 0; }
.chipdemo__info h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); color: var(--accent); margin-bottom: 12px; transition: color .3s var(--ease); }
.chipdemo__info p { color: var(--muted); font-size: var(--t-lead); line-height: 1.6; max-width: 32ch; }
.chipdemo__sound { margin: 14px auto 0; color: var(--ink); font: 700 13px/1 var(--font-body); background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-pill); padding: 10px 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chipdemo__sound:hover, .chipdemo__sound[aria-pressed="true"] { background: var(--glass-strong); border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-line)); }
.chipdemo__sound[hidden] { display: none; }

@media (max-width: 680px) {
  .chipdemo { display: block; max-width: 560px; }
  .chipdemo__features { width: 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 10px; padding: 0 var(--gutter) 5px; scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    --edgeL: transparent; --edgeR: transparent;
    -webkit-mask-image: linear-gradient(90deg, var(--edgeL) 0, #000 26px, #000 calc(100% - 26px), var(--edgeR) 100%);
    mask-image: linear-gradient(90deg, var(--edgeL) 0, #000 26px, #000 calc(100% - 26px), var(--edgeR) 100%); }
  .chipdemo__features { flex-direction: row; margin-top: 24px; }
  .chipdemo__features.at-start { --edgeL: #000; }
  .chipdemo__features.at-end { --edgeR: #000; }
  .chipdemo__features::-webkit-scrollbar { display: none; }
  .chiptab { width: min(250px, calc(100vw - var(--gutter) * 2)); flex: 0 0 auto; scroll-snap-align: center; padding: 13px 15px 16px; background: var(--glass); border-color: var(--glass-line); }
  .chiptab__head { font-size: 18px; }
  .chiptab__desc { font-size: 13px; }
  .chipdemo__stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; width: 100%; overflow: hidden; }
  .chipdemo__media { display: grid; justify-items: center; width: 100%; }
  .chipdemo__phone { width: min(76vw, 270px); justify-self: center; }
  .chipdemo__info { width: 100%; }
}
@media (max-width: 420px) {
  .hero-shot { width: clamp(112px, 39vw, 146px); }
  .hero-shot { padding: 4px; border-radius: 24px; }
  .hero-shot img { border-radius: 19px; }
  .hero-shot--dark { margin-left: -12px; }
  .hero-shot--light { margin-right: -12px; }
  @media (prefers-color-scheme: light) {
    .hero-shot--dark { margin-left: 0; margin-right: -12px; }
    .hero-shot--light { margin-right: 0; margin-left: -12px; }
  }
}

/* ---- Footer ----------------------------------------------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 30px 0; }
.site-footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--ink); }
.site-footer .cr { font-size: 13px; color: var(--muted-2); }

/* ---- Scroll reveal (progressive) -------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 2% cover 24%; }
  }
}

/* ---- Doc pages (legal / privacy) -------------------------- */
.doc { max-width: 820px; margin: 0 auto; padding: 120px 0 80px; }
.doc h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 6vw, 46px); letter-spacing: -1.5px; margin-bottom: 10px; }
.doc .updated { color: var(--muted-2); font-size: 13px; margin-bottom: 36px; }
.doc h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 36px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--muted); line-height: 1.75; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc a { color: #c9a8ff; }
.doc code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.doc hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 32px 0; }
.doc .card { padding: 22px 24px; margin: 18px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .updated, .doc .meta { color: var(--muted-2); font-size: 13px; margin-bottom: 36px; }
.doc .license { color: var(--muted-2); font-size: .94em; }
.doc .component { margin: 16px 0; }
.doc .component .desc { margin: 4px 0; }
.doc .contact { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---- Responsive (enhance up) ------------------------------ */
@media (min-width: 560px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .split--media { grid-template-columns: 1.1fr minmax(0, 340px); }
  .split--visual { grid-template-columns: 240px 1fr; }
}
@media (max-width: 600px) {
  .site-nav { padding-left: 14px; }
  .nav-r { gap: 6px; }
  .nav-r .nav-link { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .nav-r .btn { padding: 10px 13px; font-size: 13px; }
}
@media (max-width: 420px) {
  .site-nav .brand { font-size: 0; gap: 0; }
  .lang-switch { padding-inline: 8px; }
  .mobile-menu-toggle { padding-inline: 9px; }
}
@media (max-width: 340px) {
  .mobile-menu-toggle span:last-child { display: none; }
}

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