/* ════════════════════════════════════
   CARDLY: TOKENS, PAGE BASICS, HEADER, TAB BAR, SIGN-IN
   The brand (colours, type, logo) is defined in cardly-marketing/docs/brand.md. The colour tokens below must
   match it; the spacing, radius, shadow and motion tokens are the website's own.
════════════════════════════════════ */
:root {
  /* Colours (brand) */
  --bg: #0a0a0a;
  --bg2: #111110;
  --surface: #151413;
  --surface2: #1d1b1a;
  --surface3: #262321;
  --border: #2a2725;
  --border2: #383432;
  --accent: #ff4d00;
  --accent-hover: #ff6a26;
  --ember: #b83a00;
  --cinder: #7a2500;
  --accent-dim: rgba(255,77,0,0.12);
  --accent-glow: rgba(255,77,0,0.25);
  --text: #f0ede8;
  --text2: #a09890;
  --text3: #6e6662;
  --success: #4ade80;
  --warning: #facc15;
  --danger: #f87171;

  /* Shape */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* Depth: a thin line of light on the top edge, then the shadow */
  --lift-1: inset 0 1px 0 rgba(255,255,255,0.035), 0 1px 2px rgba(0,0,0,0.35);
  --lift-2: inset 0 1px 0 rgba(255,255,255,0.045), 0 14px 34px -18px rgba(0,0,0,0.8);
  --lift-3: inset 0 1px 0 rgba(255,255,255,0.05), 0 40px 100px -24px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.4);
  --flame-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 22px -10px rgba(255,77,0,0.75);
  --glass: rgba(12,11,11,0.84);
  --hairline: rgba(255,255,255,0.07);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);

  /* Layout */
  --header-h: 64px;
  --tabbar-h: 60px;
}

*{margin:0;padding:0;box-sizing:border-box;}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Sideways overflow is cut on <html> (that is the page scroll). The body uses clip, not hidden: hidden
   would turn the body into a second scroll box inside the page, which catches the trackpad or finger for
   a moment (the scroll "sticks") and stops the top bar from staying at the top. */
html {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  /* A soft flame light at the top of every page (the iPhone app has the same). It scrolls with the page. */
  background: radial-gradient(70% 460px at 50% -140px, rgba(255,77,0,0.14), rgba(255,77,0,0.04) 55%, transparent 100%) no-repeat, var(--bg);
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── NOISE TEXTURE ── */
body::after {
  content:'';
  position:fixed;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:9998;
}

::selection{background:rgba(255,77,0,0.32);color:#fff;}

/* Keyboard focus: one flame ring everywhere (:where keeps it easy to override) */
:where(button,a,summary,select,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
:where(button,a,[role="button"]){-webkit-tap-highlight-color:transparent;}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--border2);border-radius:10px;border:3px solid var(--bg);}
::-webkit-scrollbar-thumb:hover{background:var(--text3);}
html{scrollbar-color:var(--border2) transparent;scrollbar-width:thin;}

/* ════════════════════════════════════
   SIGN-IN BOX
════════════════════════════════════ */
.auth-overlay {
  position:fixed;inset:0;
  background:rgba(6,6,6,0.74);
  backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
  z-index:500;
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  overflow-y:auto;
}

.auth-box {
  position:relative;
  background:radial-gradient(120% 60% at 50% 0%, rgba(255,77,0,0.09), transparent 62%), var(--surface);
  border:1px solid var(--border2);
  border-radius:var(--r-2xl);
  padding:38px 34px 32px;
  width:100%;max-width:420px;
  margin:auto;
  box-shadow:var(--lift-3);
  animation:authUp 0.4s var(--ease-out);
}

@keyframes authUp{
  from{opacity:0;transform:translateY(20px) scale(0.98);}
  to{opacity:1;transform:translateY(0) scale(1);}
}

.auth-wordmark{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.auth-brand{font-weight:800;font-size:24px;letter-spacing:-0.03em;}
.auth-subtitle{color:var(--text2);font-size:15px;line-height:1.5;margin-bottom:24px;}

.auth-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:4px;
  background:var(--bg);border:1px solid var(--border);
  border-radius:var(--r-md);padding:4px;
  margin-bottom:22px;
}
.auth-tab{
  height:38px;border-radius:9px;border:1px solid transparent;
  background:none;color:var(--text2);
  font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,color .15s,border-color .15s;
}
.auth-tab:hover{color:var(--text);}
.auth-tab.active{background:var(--surface3);color:var(--text);border-color:var(--border2);box-shadow:var(--lift-1);}

.auth-field{margin-bottom:14px;}
.auth-label{display:block;font-size:13px;font-weight:600;color:var(--text2);margin-bottom:7px;}
.auth-optional{font-weight:400;color:var(--text3);}
.account-hint{font-size:12.5px;color:var(--text3);line-height:1.5;margin:-2px 0 10px;}

.auth-input{
  width:100%;height:48px;background:var(--bg2);border:1px solid var(--border2);
  color:var(--text);padding:0 16px;border-radius:var(--r-md);
  font-family:'Bricolage Grotesque',sans-serif;font-size:15px;
  transition:border-color 0.2s,box-shadow 0.2s,background 0.2s;
}
textarea.auth-input{height:auto;padding:12px 16px;line-height:1.5;}
.auth-input:hover{border-color:var(--text3);}
.auth-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(255,77,0,0.18);background:var(--bg);}
.auth-input::placeholder{color:var(--text3);}

.auth-btn{
  width:100%;height:48px;background:var(--accent);color:white;border:none;
  border-radius:var(--r-md);
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:15.5px;font-weight:700;cursor:pointer;margin-top:8px;
  box-shadow:var(--flame-shadow);
  transition:background .2s,transform .2s var(--ease);
}
.auth-btn:hover{background:var(--accent-hover);}
.auth-btn:active{transform:scale(.98);}
.auth-btn:disabled{opacity:0.5;cursor:not-allowed;transform:none;box-shadow:none;}

.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--text3);font-size:13px;}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--border);}

.auth-google{
  width:100%;height:48px;background:var(--surface2);color:var(--text);
  border:1px solid var(--border2);border-radius:var(--r-md);
  font-family:'Bricolage Grotesque',sans-serif;font-size:15px;font-weight:600;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;
  transition:border-color .2s,background .2s;
}
.auth-google:hover{border-color:var(--text3);background:var(--surface3);}
.auth-inapp{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.5;color:var(--text2);background:var(--accent-dim);border:1px solid rgba(255,77,0,.25);border-radius:12px;padding:10px 12px;margin-bottom:10px;}
.auth-inapp svg{width:16px;height:16px;color:var(--accent);flex-shrink:0;margin-top:2px;}
.auth-inapp b{color:var(--text);}
/* Sign in with Apple: black, white text (Apple's button style). Shown once APPLE_SIGN_IN is on.
   The logo comes from Apple's own artwork in public/apple-logo.svg; without that file the space stays empty. */
.auth-apple{display:none;width:100%;height:48px;margin-top:10px;background:#000;color:#fff;border:1px solid #3a3634;border-radius:12px;
  font-family:'Bricolage Grotesque',sans-serif;font-size:15px;font-weight:600;cursor:pointer;align-items:center;justify-content:center;gap:10px;transition:border-color .2s;}
.auth-apple:hover{border-color:var(--text3);}
.auth-apple-logo{width:15px;height:18px;background:currentColor;-webkit-mask:url(/apple-logo.svg) center/contain no-repeat;mask:url(/apple-logo.svg) center/contain no-repeat;}
body.apple-on .auth-apple{display:flex;}
body:not(.apple-on) .apple-only{display:none !important;}
/* Cookie choices: only shown once an ad pixel is set up (TRACKING), or from Cookie settings in the footer */
.consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:900;max-width:720px;margin:0 auto;background:var(--surface);border:1px solid var(--border2);border-radius:18px;box-shadow:var(--lift-3);padding:18px 20px;}
.consent[hidden]{display:none;}
.consent-main{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.consent-text{flex:1 1 320px;min-width:0;}
.consent-text b{display:block;font-size:15px;margin-bottom:4px;}
.consent-text p{font-size:13.5px;line-height:1.55;color:var(--text2);margin:0;}
.consent-text a{color:var(--accent);font-weight:600;text-decoration:none;}
.consent-actions{display:flex;gap:8px;flex-wrap:wrap;}
.consent-btn{height:40px;padding:0 16px;border-radius:10px;border:1px solid var(--border2);background:var(--surface2);color:var(--text);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;}
.consent-btn:hover{border-color:var(--text3);}
.consent-btn.link{background:none;border-color:transparent;color:var(--text2);text-decoration:underline;padding:0 8px;}
.consent-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.consent-choices{margin-top:14px;padding-top:14px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:10px;}
.consent-choices[hidden]{display:none;}
.consent-row{display:flex;align-items:flex-start;gap:10px;font-size:14px;cursor:pointer;}
.consent-row input{margin-top:3px;accent-color:var(--accent);width:16px;height:16px;flex-shrink:0;}
.consent-row small{display:block;color:var(--text3);font-size:12.5px;line-height:1.45;margin-top:1px;}
.consent-choices .consent-btn{align-self:flex-start;}
@media(max-width:560px){.consent{left:10px;right:10px;bottom:10px;padding:16px;}.consent-actions{width:100%;}.consent-actions .consent-btn{flex:1;}}

.auth-close{
  position:absolute;top:14px;right:14px;
  width:36px;height:36px;
  background:none;border:none;color:var(--text3);
  cursor:pointer;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  transition:color 0.15s,background 0.15s;
}
.auth-close:hover{color:var(--text);background:var(--surface2);}

.auth-success{background:rgba(74,222,128,0.08);border:1px solid rgba(74,222,128,0.25);color:var(--success);padding:11px 14px;border-radius:10px;font-size:13.5px;margin-top:12px;line-height:1.5;}
.auth-error{background:rgba(248,113,113,0.08);border:1px solid rgba(248,113,113,0.25);color:#f87171;padding:11px 14px;border-radius:10px;font-size:13.5px;margin-top:12px;display:flex;align-items:flex-start;gap:8px;line-height:1.5;}
.auth-forgot{background:none;border:none;color:var(--accent);font-size:13px;cursor:pointer;font-family:'Bricolage Grotesque',sans-serif;padding:0;font-weight:600;transition:opacity .15s;}
.auth-forgot:hover{opacity:.7;}
@media(max-width:480px){ .auth-box{padding:34px 22px 26px;border-radius:20px;} }

/* ════════════════════════════════════
   HEADER
   One bar for the homepage and the app. It is clear at the very top of the homepage and turns to dark
   glass once the page moves (class "scrolled", startup.js); in the app it is always glass.
════════════════════════════════════ */
header{
  display:grid;grid-template-columns:1fr auto 1fr;
  align-items:center;
  height:var(--header-h);
  padding:0 32px;
  border-bottom:1px solid transparent;
  background:transparent;
  position:sticky;top:0;z-index:100;
  transition:background .25s ease,border-color .25s ease;
}
header.scrolled,body.signed-in header{
  background:var(--glass);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom-color:var(--hairline);
}

.header-nav{display:flex;align-items:center;gap:2px;justify-content:center;grid-column:2;}
.header-right{display:flex;align-items:center;gap:8px;justify-content:flex-end;grid-column:3;}

.wordmark{display:flex;align-items:center;gap:10px;cursor:pointer;justify-self:start;border-radius:10px;}
.wordmark svg{transition:transform .35s var(--spring);}
.wordmark:hover svg{transform:translateY(-1px) rotate(-4deg);}
.wordmark-text{font-weight:800;font-size:20px;letter-spacing:-0.035em;}

.nav-link{
  background:none;border:none;color:var(--text2);
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:14px;font-weight:600;cursor:pointer;
  height:36px;padding:0 14px;border-radius:var(--r-pill);transition:color 0.15s,background 0.15s;
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
}
.nav-link:hover{color:var(--text);background:rgba(255,255,255,0.06);}
.nav-link.active{color:var(--text);background:rgba(255,255,255,0.08);}
.nav-link svg{width:14px;height:14px;}

/* The homepage's section links sit in one quiet pill */
body:not(.signed-in) .header-nav{padding:4px;border-radius:var(--r-pill);background:rgba(255,255,255,0.035);border:1px solid var(--hairline);}

/* The app's two screens (header.js). On phones they are in the tab bar at the bottom. */
.app-tabs{display:inline-flex;gap:2px;padding:4px;border-radius:var(--r-pill);background:rgba(255,255,255,0.04);border:1px solid var(--hairline);}
.app-tab{
  display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 18px 0 14px;border-radius:var(--r-pill);
  border:1px solid transparent;background:none;color:var(--text2);
  font-family:inherit;font-size:14.5px;font-weight:700;letter-spacing:-0.01em;cursor:pointer;
  transition:color .15s,background .2s,border-color .2s;
}
.app-tab svg{width:16px;height:16px;flex-shrink:0;transition:color .15s;}
.app-tab:hover{color:var(--text);}
.app-tab.active{color:var(--text);background:var(--surface3);border-color:var(--border2);box-shadow:var(--lift-1);}
.app-tab.active svg{color:var(--accent);}

.usage-pill{
  display:inline-flex;align-items:center;gap:5px;
  font-variant-numeric:tabular-nums;font-weight:600;font-style:normal;
  font-size:12.5px;height:28px;padding:0 11px;border-radius:var(--r-pill);
  background:var(--surface2);border:1px solid var(--border2);color:var(--text2);white-space:nowrap;
}
.usage-pill.limit{background:rgba(248,113,113,0.08);border-color:rgba(248,113,113,0.25);color:var(--danger);}
.usage-pill.pro{background:var(--accent-dim);border-color:rgba(255,77,0,0.3);color:var(--accent);}
.usage-pill svg{width:13px;height:13px;flex-shrink:0;}

.btn-header-cta{
  background:var(--accent);color:white;border:none;
  height:36px;padding:0 16px;border-radius:var(--r-pill);
  font-family:'Bricolage Grotesque',sans-serif;font-size:14px;font-weight:700;
  cursor:pointer;transition:background 0.2s,transform 0.2s var(--ease);
  box-shadow:var(--flame-shadow);white-space:nowrap;
}
.btn-header-cta:hover{background:var(--accent-hover);}
.btn-header-cta:active{transform:scale(.97);}

/* Account, in the header: the first letter of the name, and the word */
.account-chip{
  display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 13px 0 4px;border-radius:var(--r-pill);
  border:1px solid var(--hairline);background:rgba(255,255,255,0.035);color:var(--text);
  font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:border-color .15s,background .15s;
}
.account-chip:hover{border-color:var(--border2);background:rgba(255,255,255,0.07);}
.account-avatar{
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,var(--accent),var(--ember));color:#fff;
  font-size:13px;font-weight:800;line-height:1;box-shadow:inset 0 1px 0 rgba(255,255,255,0.25);
}
.account-avatar svg{width:14px;height:14px;}

/* ── PHONE MENU ──
   Signed out: opened by the hamburger in the header. Signed in: by the Account tab of the bar below. */
.btn-mobile-menu{
  display:none;background:rgba(255,255,255,0.035);border:1px solid var(--hairline);
  color:var(--text);width:40px;height:40px;border-radius:var(--r-md);cursor:pointer;
  align-items:center;justify-content:center;
}
.mobile-menu{
  display:none;position:fixed;inset:0;top:var(--header-h);
  background:rgba(10,10,10,0.96);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  z-index:99;padding:14px 16px 28px;
  flex-direction:column;gap:0;border-top:1px solid var(--hairline);
  overflow-y:auto;overscroll-behavior:contain;
}
.mobile-menu.open{display:flex;animation:menuIn .22s var(--ease-out);}
@keyframes menuIn{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}
body.signed-in .mobile-menu{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px));}
#mobileMenuContent{display:flex;flex-direction:column;width:100%;gap:2px;}
.mobile-menu-link{
  display:flex;align-items:center;gap:14px;
  background:none;border:none;color:var(--text);
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:17px;font-weight:600;letter-spacing:-0.01em;cursor:pointer;
  min-height:52px;padding:0 12px;border-radius:var(--r-md);
  text-align:left;transition:background 0.15s,color 0.15s;
}
.mobile-menu-link svg{width:19px;height:19px;color:var(--text2);flex-shrink:0;}
.mobile-menu-link:hover,.mobile-menu-link:active{background:var(--surface2);}
.mobile-menu-out{color:var(--text2);margin-top:8px;}
.mobile-menu-user{display:flex;align-items:center;gap:12px;padding:10px 12px 16px;margin-bottom:8px;border-bottom:1px solid var(--border);min-width:0;}
.mobile-menu-user .account-avatar{width:42px;height:42px;font-size:18px;}
.mobile-menu-user div{flex:1;min-width:0;}
.mobile-menu-user b{display:block;font-size:16.5px;font-weight:700;letter-spacing:-0.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mobile-menu-user small{display:block;font-size:13px;color:var(--text3);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mobile-menu-cta{
  background:var(--accent);color:white;border:none;
  height:52px;border-radius:var(--r-lg);margin-top:14px;
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:16.5px;font-weight:700;cursor:pointer;box-shadow:var(--flame-shadow);
}

/* ── TAB BAR (phones, signed in): Library, Generate, Account ── */
.tabbar{display:none;}

/* ════════════════════════════════════
   VIEWS
════════════════════════════════════ */
.view{display:none;}
.view.active{display:block;}

/* Small laptops and tablets: the plan pill and the word Account step aside so the tabs keep their room. */
@media(max-width:1024px){
  header{padding:0 20px;}
  body.signed-in .header-right .usage-pill{display:none;}
  .account-chip{padding:0 3px;gap:0;}
  .account-chip > span:last-child{display:none;}
}

@media(max-width:768px){
  :root{--header-h:56px;}
  header{display:flex;padding:0 16px;gap:0;justify-content:space-between;}
  #headerNav{display:none !important;}
  .header-right .nav-link{display:none !important;}
  .header-right .account-chip{display:none !important;}
  .header-right .usage-pill{display:none !important;}
  .header-right{gap:8px;display:flex;align-items:center;}
  .header-right .btn-header-cta{height:34px;padding:0 13px;font-size:13.5px;}
  .btn-mobile-menu{display:flex !important;}

  body.signed-in .tabbar:not([hidden]){
    display:grid;grid-template-columns:repeat(3,1fr);
    position:fixed;left:0;right:0;bottom:0;z-index:120;
    height:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px));
    padding:6px 12px env(safe-area-inset-bottom,0px);
    background:rgba(14,13,12,0.96);
    backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);
    border-top:1px solid var(--hairline);
  }
  .tabbar-item{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;
    background:none;border:none;border-radius:var(--r-md);color:var(--text3);
    font-family:inherit;font-size:11.5px;font-weight:700;letter-spacing:-0.005em;cursor:pointer;
    transition:color .15s,transform .2s var(--ease);
  }
  .tabbar-item svg{width:22px;height:22px;stroke-width:2;transition:transform .3s var(--spring);}
  .tabbar-item.active{color:var(--text);}
  .tabbar-item.active svg{color:var(--accent);transform:translateY(-1px) scale(1.06);}
  .tabbar-item:active{transform:scale(.94);}
  /* Room for the bar under every page of the app; study mode and the quiz hide it. */
  body.signed-in{padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px));}
  body.signed-in.focus-mode{padding-bottom:0;}
  body.focus-mode .tabbar{display:none !important;}
  /* The cookie box stays clear of the tab bar, and of the homepage's button bar (landing.css: .lp-cta-bar) */
  body.signed-in:not(.focus-mode) .consent{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px) + 10px);}
  .lp-cta-bar.on ~ .consent{bottom:calc(80px + env(safe-area-inset-bottom,0px));}
  .lp-cta-bar.on ~ .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px));}
}

/* Study mode and the quiz player: only the logo and the streak stay in the header. */
body.focus-mode #headerNav,
body.focus-mode .header-right > :not(.streak-badge){display:none !important;}

/* Browsers without the blur behind glass: solid bars, so the page never shows through the text. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  header.scrolled,body.signed-in header,.tabbar,.mobile-menu{background:#0e0d0c !important;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .auth-box,.mobile-menu.open{animation:none;}
  .wordmark:hover svg,.tabbar-item.active svg{transform:none;}
}
