/* Typikey — typikey.app
   One committed look: the poster's world. Dark blue-grey ground, pastel
   keycap accents, SF system type. Single-theme by design. */

:root {
  --ink: #12161b;
  --panel: #1a2027;
  --line: #2a323b;
  --text: #f2f5f7;
  --muted: #97a4b0;
  --pink: #e8a0a8;
  --orange: #e8b06a;
  --yellow: #e2d488;
  --blue: #8fb8e8;
  --green: #a9d4ab;
}

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

html {
  scroll-behavior: smooth;
  /* The page scrolls, the scrollbar doesn't show — the dark hero reads
     as one clean canvas. Keyboard, wheel and touch scrolling all keep
     working; only the track is hidden. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar { display: none; }

body {
  background: var(--ink);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* notched iPhones in landscape: content stays out of the sensor housing */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img { max-width: 100%; height: auto; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) 1.5rem clamp(4rem, 10vh, 7rem);
  text-align: center;
}

.hero .mark {
  position: relative;
  border-radius: 27px;
  box-shadow: 0 0 80px 24px rgba(168, 205, 240, 0.10);
}

/* The morph: a soft pastel form breathing behind the icon, cycling through
   the four icon colours. One signature motion, nothing else competes. */
.blob {
  position: absolute;
  left: 50%;
  top: clamp(4rem, 12vh, 8rem);
  width: min(340px, 70vw);
  aspect-ratio: 1;
  translate: -50% 0;
  background: linear-gradient(135deg, #f7e9a3, #b5e0b7 35%, #a8cdf0 70%, #fadfa3);
  opacity: 0.16;
  filter: blur(28px);
  animation: morph 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; rotate: 0deg;   scale: 1; }
  50%  { border-radius: 42% 58% 38% 62% / 60% 38% 62% 40%; rotate: 12deg;  scale: 1.08; }
  100% { border-radius: 52% 48% 62% 38% / 40% 60% 42% 58%; rotate: -10deg; scale: 0.96; }
}


.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 .h1-brand { display: block; }
.hero h1 .h1-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-wrap: balance;
}

.hero .tag {
  margin-top: 0.4rem;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero .sub {
  margin: 0.9rem auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.1rem;
}

/* A small working word board: the product itself is the hero's wow moment. */
.demo {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 2.2rem auto 0;
  padding: 0.7rem;
  border: 1px solid #35404a;
  border-radius: 26px;
  background: #202730;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 70px rgba(0, 0, 0, 0.28);
  text-align: left;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.demo.is-ready {
  border-color: #4a5967;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 32px 90px rgba(0, 0, 0, 0.36);
}

.demo::before {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--blue);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  content: "";
}

@keyframes demo-idle {
  0%, 100% { opacity: 0.12; box-shadow: 0 0 0 0 rgba(143, 184, 232, 0); }
  50% { opacity: 0.7; box-shadow: 0 0 32px 4px rgba(143, 184, 232, 0.16); }
}

.demo.is-idle::before { animation: demo-idle 3.4s ease-in-out infinite; }

.demo-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  min-height: 78px;
  padding: 0.8rem 1rem;
  border: 1px solid #303943;
  border-radius: 18px;
  background: #11161c;
  align-items: center;
}

.demo-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-sentence {
  grid-column: 1;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 650;
  line-height: 1.35;
}

.demo-sentence.is-placeholder {
  color: #6f7d89;
  font-style: italic;
  font-weight: 500;
}

.demo-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.8rem 0.15rem 0.15rem;
}

.demo-key,
.demo-clear {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.demo-key {
  display: flex;
  min-height: 96px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(18, 22, 27, 0.35);
  border-radius: 13px;
  color: #11161b;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.1;
  box-shadow: 0 5px 0 #0d1116, 0 8px 16px rgba(0, 0, 0, 0.18);
  translate: 0 0;
  transition: translate 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
}

.demo-key img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}

.demo-key span { display: block; }

.demo-key:hover { filter: brightness(1.06); }

.demo-key:active,
.demo-key.is-pressed {
  translate: 0 4px;
  box-shadow: 0 1px 0 #0d1116, 0 3px 7px rgba(0, 0, 0, 0.2);
}

.demo-key:focus-visible,
.demo-clear:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.key-pink { background: var(--pink); }
.key-orange { background: var(--orange); }
.key-yellow { background: var(--yellow); }
.key-blue { background: var(--blue); }
.key-green { background: var(--green); }

.demo-clear {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.demo-clear:hover { color: var(--text); }

.cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  background: var(--blue);
  color: #10141a;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
  .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(143, 184, 232, 0.35);
  }
}

.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(143, 184, 232, 0.35);
}

.cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.cta-note { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* language switcher */

.langs {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  z-index: 3;
}

.langs summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(25, 31, 38, 0.88);
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.langs summary::-webkit-details-marker { display: none; }

.langs summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin: -0.2rem 0 0 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  transition: rotate 160ms ease, margin 160ms ease;
}

.langs[open] summary::after {
  margin: 0.2rem 0 0 0.1rem;
  rotate: 225deg;
}

.langs summary strong {
  color: var(--text);
  font-size: inherit;
}

.langs summary:focus-visible,
.lang-menu a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  min-width: 230px;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(25, 31, 38, 0.97);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lang-menu a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.lang-menu a.on {
  color: var(--text);
  background: rgba(143, 184, 232, 0.12);
}

.lang-menu small {
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* floating keycap stickers */

.cap { position: absolute; width: clamp(70px, 11vw, 150px); pointer-events: none; }
.cap-a { top: 9%;  left: 4%;  rotate: -10deg; animation: floaty 7s ease-in-out infinite; }
.cap-b { top: 55%; left: 9%;  rotate: 7deg;   animation: floaty 8s 1s ease-in-out infinite; }
.cap-c { top: 12%; right: 5%; rotate: 9deg;   animation: floaty 7.5s 0.5s ease-in-out infinite; }
.cap-d { top: 58%; right: 8%; rotate: -7deg;  animation: floaty 8.5s 1.5s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* One orchestrated entrance, then the existing ambient float takes over. */
@keyframes cap-arrive-left {
  from { opacity: 0; translate: -18vw -8vh; scale: 0.62; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes cap-arrive-right {
  from { opacity: 0; translate: 18vw -8vh; scale: 0.62; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes hero-pop {
  from { opacity: 0; translate: 0 20px; scale: 0.88; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes hero-rise {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

.js .cap-a { animation: cap-arrive-left 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.2) both, floaty 7s 1.2s ease-in-out infinite; }
.js .cap-b { animation: cap-arrive-left 1s 0.12s cubic-bezier(0.2, 0.9, 0.25, 1.15) both, floaty 8s 1.4s ease-in-out infinite; }
.js .cap-c { animation: cap-arrive-right 0.9s 0.06s cubic-bezier(0.2, 0.9, 0.25, 1.2) both, floaty 7.5s 1.25s ease-in-out infinite; }
.js .cap-d { animation: cap-arrive-right 1s 0.18s cubic-bezier(0.2, 0.9, 0.25, 1.15) both, floaty 8.5s 1.5s ease-in-out infinite; }
.js .hero .mark { animation: hero-pop 0.7s 0.28s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.js .hero h1 { animation: hero-rise 0.6s 0.42s ease-out both; }
.js .hero .tag { animation: hero-rise 0.6s 0.54s ease-out both; }
.js .hero .sub { animation: hero-rise 0.6s 0.66s ease-out both; }
.js .hero .demo { animation: hero-rise 0.7s 0.82s ease-out both; }
.js .hero .cta { animation: hero-rise 0.6s 1s ease-out both; }
.js .hero .cta-note { animation: hero-rise 0.6s 1.08s ease-out both; }

/* ---------- sections ---------- */

main { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

.block {
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

/* Reveal-on-scroll only ever hides content when JS is there to unhide it. */
.js .block { opacity: 0; translate: 0 18px; transition: opacity 0.6s ease, translate 0.6s ease; }
.js .block.in { opacity: 1; translate: 0 0; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.pink   { color: var(--pink); }
.eyebrow.orange { color: var(--orange); }
.eyebrow.yellow { color: var(--yellow); }
.eyebrow.blue   { color: var(--blue); }
.eyebrow.green  { color: var(--green); }

.block h2 {
  margin: 0.6rem 0 1.8rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 26ch;
  text-wrap: balance;
}

.tone-pink   { --key-color: var(--pink); }
.tone-orange { --key-color: var(--orange); }
.tone-yellow { --key-color: var(--yellow); }
.tone-blue   { --key-color: var(--blue); }
.tone-green  { --key-color: var(--green); }

.problem-console {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #35404a;
  border-radius: 26px;
  background: #202730;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.problem-tabs {
  display: grid;
  align-content: center;
  gap: 0.72rem;
}

.problem-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  min-height: 90px;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 15px;
  background: var(--key-color);
  color: #111820;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  text-align: left;
  transition: translate 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.problem-tab:hover { filter: brightness(1.05); }
.problem-tab[aria-selected="true"] { translate: 0 5px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.problem-tab:active { translate: 0 7px; box-shadow: none; }
.problem-tab:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.problem-cue {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(17, 24, 32, 0.65);
  border-radius: 50%;
}

.cue-target::before,
.cue-target::after,
.cue-target i {
  content: "";
  position: absolute;
  border: 2px solid #111820;
  border-radius: 50%;
}
.cue-target::before { width: 28px; height: 28px; }
.cue-target::after { width: 14px; height: 14px; }
.cue-target i { width: 4px; height: 4px; background: #111820; }

.cue-slow {
  grid-template-columns: repeat(3, 5px);
  align-content: center;
  align-items: end;
  justify-content: center;
  gap: 4px;
}
.cue-slow i { height: 22px; background: #111820; }
.cue-slow i:nth-child(2) { height: 15px; }
.cue-slow i:nth-child(3) { height: 8px; }
.cue-fatigue { display: flex; align-items: center; justify-content: center; gap: 3px; }
.cue-fatigue i { width: 11px; height: 11px; border: 2px solid #111820; border-radius: 50%; }
.cue-fatigue i:nth-child(2) { width: 9px; height: 9px; opacity: 0.58; }
.cue-fatigue i:nth-child(3) { width: 7px; height: 7px; opacity: 0.26; }

.problem-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
  min-height: 350px;
  overflow: hidden;
  border: 1px solid #2d3740;
  border-radius: 19px;
  background: #111820;
}

.problem-stage:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.problem-scenes {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(143, 184, 232, 0.09), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.problem-scene { display: none; width: 100%; height: 100%; place-items: center; }
.problem-stage[data-mode="targets"] .scene-targets,
.problem-stage[data-mode="slow"] .scene-slow,
.problem-stage[data-mode="fatigue"] .scene-fatigue { display: grid; }

.tiny-keyboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 6px;
  padding: 16px;
  border: 1px solid #3a4550;
  border-radius: 13px;
  background: #202730;
  rotate: -3deg;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.tiny-keyboard > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 5px;
  background: #56616c;
  color: #dbe1e6;
  box-shadow: 0 3px 0 #303840;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
}

.miss-ring {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 3px solid var(--pink);
  border-radius: 50%;
  opacity: 0;
  animation: miss-target 2.1s ease-out infinite;
}
.ring-one { top: 4px; right: -25px; }
.ring-two { bottom: -22px; left: 22px; animation-delay: 1.05s; }

@keyframes miss-target {
  0% { opacity: 0; scale: 0.55; }
  25% { opacity: 0.9; }
  75%, 100% { opacity: 0; scale: 1.35; }
}

.scene-slow { align-content: center; gap: 1.3rem; }
.slow-output {
  display: flex;
  gap: 7px;
  width: min(250px, 72%);
  padding: 14px;
  border: 1px solid #34404a;
  border-radius: 13px;
  background: #1b222a;
}
.slow-output i {
  width: 0;
  height: 12px;
  border-radius: 4px;
  background: var(--orange);
  animation: slow-letter 3.6s steps(1) infinite;
}
.slow-output i:nth-child(2) { animation-delay: 0.5s; }
.slow-output i:nth-child(3) { animation-delay: 1s; }
.slow-output i:nth-child(4) { animation-delay: 1.5s; }
.slow-output i:nth-child(5) { animation-delay: 2s; }
.slow-output i:nth-child(6) { animation-delay: 2.5s; }
.slow-timer { color: var(--orange); font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; }

@keyframes slow-letter {
  0%, 12% { width: 0; }
  13%, 100% { width: 28px; }
}

.tap-trail { position: relative; width: min(290px, 80%); height: 190px; }
.tap-trail i {
  position: absolute;
  width: 58px;
  height: 58px;
  border: 4px solid var(--blue);
  border-radius: 50%;
  animation: fatigue-tap 2.8s ease-out infinite;
}
.tap-trail i:nth-child(1) { left: 2%; top: 15%; }
.tap-trail i:nth-child(2) { left: 27%; top: 52%; animation-delay: 0.35s; }
.tap-trail i:nth-child(3) { left: 51%; top: 8%; animation-delay: 0.7s; }
.tap-trail i:nth-child(4) { left: 72%; top: 58%; animation-delay: 1.05s; }
.tap-trail i:nth-child(5) { left: 10%; top: 65%; animation-delay: 1.4s; }
.tap-trail i:nth-child(6) { left: 42%; top: 42%; animation-delay: 1.75s; }
.tap-trail i:nth-child(7) { left: 76%; top: 12%; animation-delay: 2.1s; }

@keyframes fatigue-tap {
  0% { opacity: 0; scale: 0.5; }
  18% { opacity: 0.9; }
  60%, 100% { opacity: 0; scale: 1.35; }
}

.problem-readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 1px solid #2d3740;
  background: #181f26;
}
.problem-kicker {
  margin-bottom: 0.7rem;
  color: var(--pink);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.problem-readout h3 { margin-bottom: 0.7rem; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.15; }
.problem-readout > p:last-child { color: var(--muted); font-size: 0.94rem; }

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split p { color: var(--muted); }

.feats { margin-top: 1.2rem; padding-left: 1.2rem; display: grid; gap: 0.7rem; }
.feats li { color: var(--muted); }
.feats strong { color: var(--text); }
.feats li::marker { color: var(--green); }

.product-showcase {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #35404a;
  border-radius: 24px;
  background: #202730;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.showcase-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  min-height: 68px;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 13px;
  background: var(--key-color);
  color: #111820;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: left;
  transition: translate 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.showcase-tab > span:last-child { min-width: 0; overflow-wrap: anywhere; }

.showcase-tab:hover { filter: brightness(1.05); }
.showcase-tab[aria-selected="true"] { translate: 0 4px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.showcase-tab:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.screen-cue {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 3px;
}
.screen-cue i { width: 10px; height: 10px; border: 1.5px solid #111820; border-radius: 3px; }
.cue-home i:first-child { background: #111820; }
.cue-categories i:nth-child(2),
.cue-categories i:nth-child(3) { background: #111820; }
.cue-countries { rotate: 45deg; }
.cue-countries i { border-radius: 50%; }
.cue-countries i:nth-child(1),
.cue-countries i:nth-child(4) { background: #111820; }

.showcase-stage { position: relative; overflow: hidden; border-radius: 16px; background: #111820; }
.showcase-stage img { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 16px; }
.showcase-stage figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.82);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 650;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.outcomes { display: grid; gap: 2rem; }
.outcome-headings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.outcome-headings h2 { margin-bottom: 0; }
.outcome-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid #35404a;
  border-radius: 26px;
  background: #202730;
}

.outcome-key {
  position: relative;
  min-height: 190px;
  padding: 1.3rem;
  border-radius: 17px;
  background: var(--key-color);
  color: #111820;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
  transition: translate 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

@media (hover: hover) {
  .outcome-key:hover { translate: 0 4px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); filter: brightness(1.04); }
}

.outcome-key h3 { margin: 1.15rem 0 0.4rem; font-size: 1.16rem; }
.outcome-key p { color: rgba(17, 24, 32, 0.75); font-size: 0.94rem; }
.outcome-cue { display: flex; align-items: end; gap: 5px; height: 32px; }
.outcome-cue i { display: block; width: 16px; height: 16px; border: 2px solid #111820; border-radius: 5px; }
.cue-sentence i:last-child { width: 28px; }
.cue-learn i:nth-child(2) { translate: 0 -8px; }
.cue-learn i:nth-child(3) { translate: 0 -16px; }
.cue-ready { display: grid; grid-template-columns: repeat(2, 14px); gap: 3px; }
.cue-ready i { width: 14px; height: 14px; }
.cue-heard i { border-radius: 50%; }
.cue-heard i:nth-child(2) { width: 24px; height: 24px; }

.story {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.story-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid #35404a;
  border-radius: 26px;
  background: #202730;
  rotate: -3deg;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.story-board i {
  aspect-ratio: 1;
  border-radius: 15px;
  background: var(--key-color);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3);
}

.story-copy p:last-child { max-width: 62ch; color: var(--muted); }

/* ---------- footer ---------- */

.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; }
.closing p { color: var(--muted); max-width: 44ch; margin: 0 auto 0.5rem; }
.closing .cta { margin-top: 1.4rem; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 3rem 1.5rem calc(3.5rem + env(safe-area-inset-bottom));
  color: var(--muted);
}

.foot {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
  font-size: 0.92rem;
}

.foot .mut { color: var(--muted); }
.foot p { margin-bottom: 0.3rem; }
.foot .credit { margin-top: 1rem; font-size: 0.78rem; line-height: 1.5; }
.footer-linkedin { margin: 1rem 0; }
.foot .footer-label {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
footer img { border-radius: 10px; margin-bottom: 0.6rem; }
footer a { color: var(--blue); text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

@media (max-width: 700px) {
  .foot { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- responsive & motion ---------- */

/* Studio Display portrait at the default Retina scale (1440 × 2560). */
@media (min-width: 1200px) and (orientation: portrait) {
  .hero {
    max-width: 1200px;
    padding: clamp(7rem, 9vh, 11rem) 2.5rem clamp(5rem, 6vh, 8rem);
  }

  .cap { width: clamp(120px, 10vw, 170px); }

  main, .foot {
    max-width: 1120px;
  }

  main { padding: 0 2.5rem; }

  .block {
    padding: clamp(4rem, 5.5vh, 7rem) 0;
  }

  .block h2 {
    font-size: clamp(2rem, 3.3vw, 2.8rem);
  }

  .split { gap: 3rem; }
}

/* Studio Display landscape at the default Retina scale (2560 × 1440).
   The wider editorial grid uses the screen without stretching body copy. */
@media (min-width: 1800px) and (orientation: landscape) {
  .hero {
    display: flex;
    min-height: min(900px, 72vh);
    max-width: 1800px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 2.5rem 6rem;
  }

  .blob {
    top: 50%;
    width: 380px;
    translate: -50% -62%;
  }

  .cap { width: clamp(160px, 8vw, 220px); }
  .cap-a { top: 14%; left: 5%; }
  .cap-b { top: 57%; left: 11%; }
  .cap-c { top: 16%; right: 6%; }
  .cap-d { top: 59%; right: 10%; }

  main, .foot {
    max-width: 1440px;
  }

  main { padding: 0 2rem; }

  .block {
    padding: clamp(4.5rem, 7vh, 6.5rem) 0;
  }

  .block:not(.closing) {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 2fr);
    column-gap: 5rem;
    align-items: start;
  }

  .block:not(.closing) > .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .block:not(.closing) > h2 {
    grid-column: 1;
    grid-row: 2;
    max-width: 17ch;
    margin-bottom: 0;
    font-size: clamp(2.1rem, 2.2vw, 2.75rem);
  }

  .block:not(.closing) > .problem-console,
  .block:not(.closing) > .split,
  .block:not(.closing) > p:not(.eyebrow) {
    grid-column: 2;
    grid-row: 2;
  }

  .split {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
    gap: 3.5rem;
  }

  .block.outcomes,
  .block.story {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 2fr);
  }

  .outcomes > .outcome-headings,
  .story > .story-board { grid-column: 1; grid-row: 1; }

  .outcomes > .outcome-board,
  .story > .story-copy { grid-column: 2; grid-row: 1; }

  .outcome-headings { grid-template-columns: 1fr; align-content: space-between; }
}

/* Mirror the user's preferred 125% browser scale across the whole Studio view. */
@media (min-width: 1200px) and (orientation: portrait),
       (min-width: 1800px) and (orientation: landscape) {
  body { zoom: 1.25; }
}

/* iPad portrait and down: AAC boards and split layouts stack. */
@media (max-width: 834px) {
  .problem-console,
  .outcome-headings,
  .split,
  .story { grid-template-columns: 1fr; }

  .problem-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-board { width: min(320px, 72vw); justify-self: center; }
}

/* iPhone: fewer floating caps, tighter hero, full-width CTA. */
@media (max-width: 480px) {
  .cap-b, .cap-d { display: none; }
  .cap { width: 64px; }
  .hero { padding-top: 4.5rem; }
  .demo { padding: 0.55rem; border-radius: 21px; }
  .demo-screen { padding: 0.75rem 0.8rem; border-radius: 15px; }
  .demo-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-key { min-height: 86px; }
  .demo-key img { width: 42px; height: 42px; }
  .demo-clear { justify-self: stretch; text-align: center; }
  .problem-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .problem-tab { display: block; min-height: 58px; padding: 0.55rem 0.3rem; font-size: 0.74rem; text-align: center; }
  .problem-tab .problem-cue { display: none; }
  .problem-stage { grid-template-columns: 1fr; }
  .problem-scenes { min-height: 240px; }
  .problem-readout { border-top: 1px solid #2d3740; border-left: 0; }
  .outcome-board { grid-template-columns: 1fr; }
  .showcase-tab { display: block; min-height: 54px; padding: 0.55rem 0.35rem; text-align: center; }
  .screen-cue { display: none; }
  .outcome-key { min-height: 160px; }
  .story-board { width: min(230px, 74vw); margin: 0 auto; }
  .cta { display: block; margin-left: 1rem; margin-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .cap, .js .blob,
  .js .hero .mark, .js .hero h1, .js .hero .tag, .js .hero .sub,
  .js .hero .demo, .js .hero .cta, .js .hero .cta-note { animation: none; }
  .demo.is-idle::before { animation: none; }
  .js .block { opacity: 1; translate: 0 0; transition: none; }
  .cta, .demo, .demo-key, .problem-tab, .showcase-tab, .outcome-key { transition: none; }
  .miss-ring, .slow-output i, .tap-trail i { animation: none; }
  .miss-ring { opacity: 0.45; }
  .slow-output i { width: 28px; }
  .tap-trail i { opacity: 0.35; }
}
