/* ============================================================
   TMEject — marketing site. Premium-dark, native-Mac restraint.
   Same DNA as the app: system font, teal ritual accent used sparingly.
   ============================================================ */
:root {
  --font: -apple-system, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, "Menlo", monospace;

  /* dark (default) */
  --bg: #09090b;
  --bg-raise: #111114;
  --bg-card: #131316;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  --ink: #f4f4f6;
  --ink-2: rgba(255,255,255,0.58);
  --ink-3: rgba(255,255,255,0.36);

  --ritual: oklch(0.74 0.085 195);
  --ritual-deep: oklch(0.66 0.095 196);
  --ritual-soft: oklch(0.74 0.085 195 / 0.14);
  --ritual-ink: #0a1a1a;
  --blue: #0a84ff;
  --orange: #ff9f0a;
  --green: #30d158;

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.5; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ritual-soft); color: var(--ritual); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* skip-link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ritual); color: var(--ritual-ink); padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ritual); margin-bottom: 18px;
}

/* reveal */
html.js .reveal { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
html.js .reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px; border-radius: 11px; font-size: 15px; font-weight: 550;
  transition: transform 0.08s, background 0.16s, box-shadow 0.16s; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--ritual); outline-offset: 2px; }
.btn-primary {
  background: var(--ritual); color: var(--ritual-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px rgba(0,0,0,0.35);
}
.btn-primary:hover { background: var(--ritual-deep); box-shadow: 0 10px 30px color-mix(in oklch, var(--ritual) 35%, transparent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn-ghost { background: rgba(127,127,127,0.08); color: var(--ink); border: 0.5px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(127,127,127,0.14); }
.btn .dl-ico { margin-right: -2px; }

/* ============================================================ paged shell */
html.paged { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
@media (prefers-reduced-motion: reduce) { html.paged { scroll-snap-type: none; } }

.page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; padding: 90px 0 52px; overflow: hidden;
}
.page > .wrap { width: 100%; }

/* ============================================================ MENU BAR (= site nav) */
.macbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 30px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 14px; font-size: 13.5px; color: rgba(255,255,255,0.92);
  background: rgba(24,24,28,0.5);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 0.5px solid rgba(255,255,255,0.08); transition: background 0.3s;
}
.macbar.solid { background: rgba(12,12,14,0.82); }
.macbar-left, .macbar-right { display: flex; align-items: center; gap: 1px; }
.macbar .logo { display: grid; place-items: center; width: 24px; height: 22px; color: #fff; border-radius: 5px; }
.macbar .logo:hover { background: rgba(255,255,255,0.12); }
.macbar .app { font-weight: 680; padding: 3px 9px; letter-spacing: -0.01em; color: #fff; }
.macbar .menu { padding: 3px 9px; border-radius: 5px; color: rgba(255,255,255,0.9); transition: background 0.12s; }
.macbar .menu:hover { background: rgba(255,255,255,0.12); }
.macbar .menu.dl { font-weight: 560; }
.macbar .app.lit, .macbar .menu.lit { background: #0a6cff; color: #fff; }
.macbar .sysicon { display: grid; place-items: center; padding: 3px 5px; color: rgba(255,255,255,0.85); }
.macbar .tme-item { display: grid; place-items: center; width: 28px; height: 22px; margin: 0 1px; border-radius: 5px; color: #fff; transition: background 0.12s; }
.macbar .tme-item.active, .macbar .tme-item:hover { background: rgba(255,255,255,0.18); }
.macbar .clock { padding: 3px 2px 3px 8px; font-variant-numeric: tabular-nums; font-size: 13px; }

/* ============================================================ HERO: a full macOS desktop */
.page-hero { padding: 0; }
.page-hero .desktop-wall {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(140% 120% at 18% -5%, #3a4256 0%, #232838 42%, #15171f 78%, #0d0e13 100%);
}
.page-hero .desktop-wall::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 0.5px, transparent 0.5px);
  background-size: 4px 4px; opacity: 0.5;
}
.page-hero .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(102deg, rgba(4,5,9,0.6) 0%, rgba(4,5,9,0.28) 36%, transparent 60%),
    linear-gradient(to top, rgba(4,5,9,0.5), transparent 36%);
}
.page-hero .hero-glow2 {
  position: absolute; z-index: 1; top: -150px; left: 4%; width: 680px; height: 540px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklch, var(--ritual) 18%, transparent), transparent 70%);
  opacity: 0.4; filter: blur(10px);
}
.page-hero .wrap { position: relative; z-index: 2; display: block; }
.page-hero .hero-head { max-width: 780px; }
.page-hero .eyebrow { color: var(--ritual); }
.page-hero h1 {
  font-size: clamp(40px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.04em;
  font-weight: 600; color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,0.45); text-wrap: balance;
}
.page-hero h1 .muted { color: rgba(255,255,255,0.5); }
.page-hero .hero-lead {
  font-size: clamp(16px, 1.8vw, 21px); margin-top: 22px; max-width: 468px;
  color: rgba(255,255,255,0.8); text-shadow: 0 1px 20px rgba(0,0,0,0.4); line-height: 1.55; text-wrap: pretty;
}
.page-hero .hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.page-hero .hero-meta {
  font-size: 13.5px; color: rgba(255,255,255,0.62); margin-top: 20px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* ============================================================ live popover (persistent, fixed) */
#livePop {
  position: fixed; top: 38px; right: 30px; z-index: 46; opacity: 1; width: 300px;
  background: rgba(48,48,51,0.85); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 13px; border: 0.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.5), 0 22px 60px rgba(0,0,0,0.6); color: #f4f4f6;
}
#livePop.pop--hidden { opacity: 0; pointer-events: none; }
.pop-arrow { position: absolute; top: -6px; right: 93px; width: 16px; height: 8px; overflow: hidden; }
.pop-arrow::after {
  content:""; position:absolute; top:3px; left:3px; width:11px; height:11px;
  background: rgba(60,60,63,0.95); transform: rotate(45deg);
  border-top: 0.5px solid rgba(255,255,255,0.1); border-left: 0.5px solid rgba(255,255,255,0.1);
}
.pop-gear { position: absolute; top: 11px; right: 11px; color: rgba(255,255,255,0.5); }
.pop-hero { padding: 26px 22px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-disc { width: 72px; height: 72px; position: relative; display: grid; place-items: center; margin-bottom: 14px; }
.hero-disc .disc { position: absolute; inset: 5px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 0.5px solid rgba(255,255,255,0.1); }
.hero-disc .g { position: relative; color: rgba(255,255,255,0.6); }
#livePop .name { font-size: 15px; font-weight: 590; letter-spacing: -0.01em; }
#livePop .sub { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.pop-actions { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.ritual-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 580; letter-spacing: -0.01em;
  color: #d6f3ef; background: color-mix(in oklch, var(--ritual) 16%, transparent);
  border: 0.5px solid color-mix(in oklch, var(--ritual) 40%, transparent);
}
.ritual-btn .keys { display: inline-flex; gap: 3px; margin-left: 2px; }
.ritual-btn .keys kbd, .keycap {
  font-family: var(--font); min-width: 16px; height: 17px; padding: 0 3px; border-radius: 4px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 500;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); border: 0.5px solid rgba(255,255,255,0.16);
}
.pop-row { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; }
.pop-quiet { font-size: 13px; color: var(--blue); padding: 2px 4px; }
.pop-auto { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: rgba(255,255,255,0.55); }
.switch { width: 32px; height: 19px; border-radius: 11px; background: var(--green); position: relative; flex: none; }
.switch::after { content:""; position:absolute; top:2px; left:2px; width:15px; height:15px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,0.3); transform: translateX(13px); }

#popBody { min-height: 150px; }
.pop-prog { padding: 4px 16px 2px; }
.pop-prog .lab { display:flex; justify-content:space-between; align-items:baseline; font-size:11.5px; color:rgba(255,255,255,0.55); margin-bottom:6px; }
.pop-prog .lab b { color:#fff; font-weight:560; font-size:12px; font-variant-numeric:tabular-nums; }
.pop-bar { height:4px; border-radius:3px; background:rgba(255,255,255,0.12); overflow:hidden; }
.pop-bar > i { display:block; height:100%; border-radius:3px; background:var(--blue); width:0%; }
.pop-bar.indet > i { width:36%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0%{transform:translateX(-120%);} 100%{transform:translateX(360%);} }
.pop-note { font-size:11px; color:rgba(255,255,255,0.42); line-height:1.4; padding: 8px 16px 16px; }
.pop-why { font-size:11.5px; color:rgba(255,255,255,0.5); padding: 8px 16px 14px; }
.pop-why .pid { font-family: var(--mono); color: var(--orange); }
.ring-spin { animation: ringspin .9s linear infinite; transform-origin: 50% 50%; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.twin { display:flex; gap:8px; padding: 4px 14px 14px; }
.twin button { flex:1; height:32px; border-radius:8px; font-size:12.5px; font-weight:530; color:#fff; }
.twin .b1 { background: var(--blue); }
.twin .b2 { background: rgba(255,255,255,0.12); }

/* ============================================================ RITUAL SECTION */
.ritual-sec { border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); position: relative; overflow: hidden; }
.ritual-sec .glow { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; background: radial-gradient(50% 50% at 50% 50%, var(--ritual-soft) 0%, transparent 70%); opacity: 0.7; pointer-events: none; }
.ritual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; position: relative; z-index: 1; width: 100%; }
.ritual-copy h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.ritual-copy p { font-size: 17px; color: var(--ink-2); margin-top: 20px; max-width: 460px; line-height: 1.6; text-wrap: pretty; }
.shortcut-display { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.big-key {
  min-width: 56px; height: 60px; padding: 0 16px; border-radius: 13px;
  background: linear-gradient(180deg, var(--bg-card), color-mix(in srgb, var(--bg-card) 70%, #000));
  border: 0.5px solid var(--line-strong);
  box-shadow: 0 4px 0 rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  display: grid; place-items: center; font-size: 24px; font-weight: 500; color: var(--ink);
}
.big-key.lett { color: var(--ritual); }
.shortcut-cap { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* the ritual moment card — product-shot surface stays dark in both modes */
.ritual-vis { display: grid; place-items: center; }
.confirm-card {
  width: 280px; border-radius: 16px; padding: 30px 24px; text-align: center;
  background: rgba(48,48,51,0.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid rgba(255,255,255,0.1); box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  color: #f4f4f6;
}
.confirm-ring { width: 64px; height: 64px; margin: 0 auto 16px; position: relative; display: grid; place-items: center; color: var(--ritual); }
.confirm-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.confirm-card p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; line-height: 1.5; }

/* ============================================================ FEATURES */
.page-features .feat-head { max-width: 620px; margin-bottom: clamp(20px, 3vh, 40px); }
.page-features .feat-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.page-features .feat-head p { font-size: 15.5px; color: var(--ink-2); margin-top: 14px; line-height: 1.55; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.page-features .feat-card {
  background: var(--bg-card); border: 0.5px solid var(--line); border-radius: 16px; padding: 18px 20px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.page-features .feat-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.page-features .feat-ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(127,127,127,0.08); border: 0.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink); margin-bottom: 14px;
}
.feat-card.accent .feat-ico {
  background: var(--ritual-soft); border-color: color-mix(in oklch, var(--ritual) 30%, transparent); color: var(--ritual);
}
.page-features .feat-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.page-features .feat-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; text-wrap: pretty; }
.page-features .feat-card .tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  background: rgba(127,127,127,0.06); border: 0.5px solid var(--line);
  padding: 3px 8px; border-radius: 6px;
}

/* ============================================================ STATES SECTION */
.states-sec { border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); }
.states-grid { display:flex; flex-direction:column; gap: clamp(22px,3vh,34px); max-width: 560px; }
.states-sec .states-head { text-align: left; margin: 0; max-width: none; }
.states-sec .states-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.states-sec .states-head p { font-size: 16px; color: var(--ink-2); margin-top: 14px; line-height: 1.55; }
.states-hint { margin-top:16px; font-size:13px; color: var(--ink-3); }
.states-hint b { color: var(--ink); font-weight: 580; }
.states-sec .states-row { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.states-sec .state-item {
  display: flex; flex-direction: row; text-align: left; align-items: center; gap: 15px; padding: 12px 16px;
  border-radius: 14px; background: var(--bg-card); border: 0.5px solid var(--line);
  opacity: 0.42; transform: none; transition: opacity .3s, background .3s, border-color .3s, transform .3s;
}
.states-sec .state-item .state-icn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; position: relative; color: var(--ink); }
.states-sec .state-item .state-name { font-size: 14px; font-weight: 560; }
.states-sec .state-item .state-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.states-sec .state-item.lit { opacity: 1; background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--line-strong); transform: translateX(5px); }

/* ============================================================ DOWNLOAD CTA + FOOTER */
.page-download { justify-content: center; text-align: center; position: relative; overflow: hidden; }
.page-download .glow {
  position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklch, var(--ritual) 18%, transparent) 0%, transparent 70%);
  opacity: 0.55; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.page-download h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.page-download p { font-size: 18px; color: var(--ink-2); margin-top: 20px; }
.page-download .hero-cta { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.cta-reqs { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.cta-reqs .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.page-download .footer { position: absolute; left: 0; right: 0; bottom: 0; border-top: 0.5px solid var(--line); padding: 28px 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-card); border: 0.5px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 13.5px; color: var(--ink-3); transition: color 0.15s; }
.foot-links a:hover { color: var(--ink-2); }
.foot-copy { font-size: 13px; color: var(--ink-3); }

/* ============================================================ PAGE DOTS */
.pagedots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 14px; }
.pagedots a { width: 9px; height: 9px; border-radius: 50%; background: rgba(127,127,127,0.32); transition: background 0.2s, transform 0.2s; }
.pagedots a:hover { background: rgba(127,127,127,0.55); }
.pagedots a.active { background: var(--ritual); transform: scale(1.3); }

/* mobile-only hint shown beneath CTA on touch / narrow viewports */
.mobile-hint { display: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 880px) {
  html.paged { scroll-snap-type: none; }

  /* No more vertical centering / 100vh sections — sections collapse to content. */
  .page {
    min-height: auto;
    padding: 56px 0 48px;
    overflow: visible;
    justify-content: flex-start;
  }
  .wrap { padding: 0 22px; }

  .page-hero { padding: 70px 0 44px; }
  .page-hero .wrap { height: auto; }
  #livePop { display: none; }

  /* Strip the macOS chrome down to brand + Download — the rest is desktop cosplay. */
  .macbar .sysicon,
  .macbar .tme-item,
  .macbar .clock,
  .macbar .menu:not(.dl) { display: none; }
  .macbar { padding: 0 10px 0 12px; }

  /* Big radial glows are clipped, expensive, and cause Safari scroll jank. */
  .page-hero .hero-glow2,
  .ritual-sec .glow,
  .page-download .glow { display: none; }

  /* HERO */
  .page-hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .page-hero h1 br { display: none; }
  .page-hero .hero-lead { font-size: 16px; margin-top: 16px; max-width: none; line-height: 1.5; }
  .page-hero .hero-cta { margin-top: 22px; gap: 12px; }
  .page-hero .hero-meta { margin-top: 14px; font-size: 12.5px; gap: 8px; }
  .mobile-hint {
    display: block; margin-top: 14px; font-size: 12.5px;
    color: var(--ink-3); max-width: 360px; line-height: 1.45;
  }

  /* RITUAL — single column, keep visual after copy so the page reads top-down */
  .ritual-grid { grid-template-columns: 1fr; gap: 28px; }
  .ritual-vis { order: 0; }
  .ritual-copy h2 { font-size: clamp(26px, 7vw, 36px); }
  .ritual-copy p { font-size: 15.5px; margin-top: 14px; max-width: none; }
  .confirm-card { width: 100%; max-width: 320px; padding: 24px 20px; }
  .shortcut-display { gap: 6px; margin-top: 22px; flex-wrap: wrap; }
  .big-key { min-width: 48px; height: 52px; padding: 0 12px; font-size: 20px; border-radius: 11px; }
  .shortcut-cap { margin-top: 14px; }

  /* FEATURES */
  .feat-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-features .feat-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .page-features .feat-head p { font-size: 15px; }
  .page-features .feat-card { padding: 16px 18px 18px; }

  /* STATES */
  .states-sec .states-head h2 { font-size: clamp(24px, 6vw, 30px); }
  .states-sec .states-head p { font-size: 15px; }
  .states-sec .state-item { padding: 11px 14px; }

  /* DOWNLOAD */
  .page-download h2 { font-size: clamp(28px, 7vw, 40px); }
  .page-download p { font-size: 16px; margin-top: 14px; }
  .page-download .hero-cta { margin-top: 24px; }
  .cta-reqs { margin-top: 16px; font-size: 12.5px; gap: 8px; }
  .page-download .footer { position: static; margin-top: 40px; padding: 22px 0; }
  .footer .wrap { justify-content: flex-start; gap: 14px 24px; }
  .foot-links { gap: 16px 20px; flex-wrap: wrap; }

  .pagedots { display: none; }
}

/* Extra-narrow phones (iPhone SE 1, 320px) */
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .big-key { min-width: 44px; height: 48px; padding: 0 10px; font-size: 18px; border-radius: 10px; }
  .shortcut-display { gap: 5px; }
  .macbar .app { padding: 3px 6px; }
  .btn { padding: 0 18px; }
}
