/* =====================================================================
   JustFavs — two-product site (Emoji Keyboard + Keyboard)
   Same colours and fonts as the original justfavs.app.
   Motion lives in main.js (GSAP + ScrollTrigger). The sideways
   scrolling sections only switch on for wide screens with motion
   allowed; phones and "Reduce Motion" get a normal vertical page.
   ===================================================================== */

:root {
  --bg: #090c16;
  --bg-deep: #03050b;
  --bg-elevated: #10152a;
  --bg-card: #131a33;
  --blue: #3b6bff;
  --blue-light: #8fb4ff;
  --yellow: #ffc93c;
  --text: #f4f6fb;
  --text-muted: #97a3c4;
  --border: rgba(143, 180, 255, 0.14);
  --radius: 22px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}
.blue { color: var(--blue-light); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(9, 12, 22, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(143, 180, 255, 0.08);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-marks { display: flex; gap: 7px; }
.brand-mark { width: 46px; height: 46px; border-radius: 24%; box-shadow: 0 4px 14px rgba(59, 107, 255, 0.35); transition: transform .2s ease; }
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--text-muted); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Shared bits ---------- */
.store-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-muted);
}
.store-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; border: 0;
  background: linear-gradient(155deg, #4d7dff, #2450e0);
  color: #fff; font: 600 15px 'Sora', sans-serif;
  box-shadow: 0 6px 20px rgba(59, 107, 255, 0.32);
  cursor: pointer; text-decoration: none;
}

.shot {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.02);
}
.shot img { width: 100%; height: auto; }

.kb-card {
  margin: 0;
  border-radius: 26px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(59, 107, 255, 0.18));
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 80px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 10% -10%, rgba(59, 107, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(143, 180, 255, 0.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.product-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(143, 180, 255, 0.08); border: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .06em; color: var(--blue-light);
}
.product-tag img { width: 26px; height: 26px; border-radius: 7px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-top: 22px; max-width: 12ch; }
.hero .sub { color: var(--text-muted); font-size: 18px; max-width: 34ch; margin: 22px 0 0; }
.hero-visual .shot { max-width: 440px; margin-left: auto; transform: rotate(2.5deg); }

.emoji-stage { position: relative; height: 110px; margin: 26px 0 8px; max-width: 460px; }
.scatter-item {
  position: absolute; top: 50%; left: 50%; font-size: 24px;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
  opacity: .5; filter: saturate(.8);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity 1.1s ease;
}
.emoji-stage.organized .scatter-item { transform: translate(-50%, -50%) translateX(var(--final-x)); opacity: 0; }
.favorites-row {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  opacity: 0; transform: scale(.9); transform-origin: left center;
  transition: opacity .8s ease .5s, transform .8s cubic-bezier(.16,1,.3,1) .5s;
}
.emoji-stage.organized .favorites-row { opacity: 1; transform: none; }
.favorites-row span { font-size: 38px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.cta-row { margin-top: 14px; }

/* ---------- 2 & 5. Story panels (phones: stacked) ---------- */
.hscroll { position: relative; }
.panel {
  display: grid; gap: 32px; align-items: center;
  padding: 64px 24px;
  max-width: 560px; margin: 0 auto;
}
.panel-copy h2 { font-size: clamp(32px, 7vw, 56px); }
.panel-copy p { color: var(--text-muted); font-size: 17px; max-width: 36ch; margin: 18px 0 0; }
.panel-copy p.lines { line-height: 1.7; }
.inline-key { display: inline-block; height: 1.55em; width: auto; vertical-align: -0.42em; margin: 0 2px; border-radius: 0.34em; box-shadow: 0 2px 8px rgba(59,107,255,.35); }
.step { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--blue-light); margin-bottom: 14px; letter-spacing: .1em; }
.panel .shot { max-width: 340px; width: 100%; justify-self: center; }
.panel .kb-card { width: 100%; }

.feature-list, .custom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.feature-list .fi {
  flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(59,107,255,.14); border: 1px solid rgba(143,180,255,.3); color: var(--blue-light); font-size: 18px;
}
.feature-list strong, .custom-list strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.feature-list div span, .custom-list span { color: var(--text-muted); font-size: 14.5px; }

.custom-card {
  padding: 28px; border-radius: 24px;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.swatches { display: flex; gap: 14px; margin-bottom: 26px; }
.swatches span {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 45%, transparent);
}
.swatches span:first-child { outline: 3px solid #fff; outline-offset: 3px; }
.custom-list li { padding: 12px 0; border-top: 1px solid var(--border); }


/* Customization panel: the intro's list + the real nine accent colors */
.intro-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.intro-list li { display: flex; align-items: center; gap: 16px; }
.intro-list .ic {
  flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(59,107,255,.13); border: 1.5px solid rgba(143,180,255,.45); color: var(--blue-light);
}
.intro-list .ic svg { width: 22px; height: 22px; fill: currentColor; }
.intro-list strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 18px; line-height: 1.25; }
.intro-list div span { color: var(--text-muted); font-size: 14.5px; }

.color-card {
  --acc: #5377ae;
  justify-self: center; width: 100%; max-width: 440px;
  padding: 18px 18px 22px; border-radius: 26px;
  background: #f2f2f7; color: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.color-card, .color-card * { transition-property: background-color, color, border-color, box-shadow, fill, stroke; transition-duration: .35s; transition-timing-function: ease; }
.color-card .chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 16%, #fff); color: var(--acc);
  font-size: 14px; font-weight: 600;
}
.color-card .chip svg { width: 18px; height: 18px; }

/* Mini keyboard preview -- the real JustFavs Keyboard layout.
   Only the accent parts change color, like the app's preview. */
.mini-kb {
  --soft: color-mix(in srgb, var(--acc) 14%, #fff);
  background: #e3e4e9; border-radius: 16px; padding: 4px 4px 5px;
  display: grid; gap: 5px; user-select: none;
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.mini-kb .kb-row { display: flex; gap: 4px; }
.mini-kb i {
  font-style: normal; display: grid; place-items: center; flex: 1 1 0; min-width: 0;
  height: 36px; border-radius: 7px; background: #fff; color: #111;
  font-size: 17px; font-weight: 400; line-height: 1;
}
.mini-kb svg { width: 18px; height: 18px; fill: currentColor; }
.mini-kb .kb-num i { height: 18px; background: none; color: #8e8e93; font-size: 13px; }
.mini-kb .kb-sym i { height: 32px; }
.mini-kb .sy { background: var(--soft); color: var(--acc); font-size: 15px; font-weight: 500; }
.mini-kb .fill { background: var(--acc); color: #fff; }
.mini-kb .grey { background: #c9cad0; color: #111; }
.mini-kb .r2 { padding: 0 5%; }
.mini-kb .r3 .shift, .mini-kb .r3 .bk { flex: 1.35 1 0; }
.mini-kb .r3 .shift { background: var(--soft); color: var(--acc); margin-right: 2%; }
.mini-kb .r3 .bk { margin-left: 2%; }
.mini-kb .kb-letters { position: relative; display: grid; gap: 5px; }
.mini-kb .r4 i { height: 38px; }
.mini-kb .jf { flex: 1.25 1 0; }
.mini-kb .jf svg { width: 30px; height: 30px; }
.mini-kb .gear { flex: .85 1 0; }
.mini-kb .gear svg { width: 17px; height: 17px; }
.mini-kb .space { flex: 3.8 1 0; display: flex; justify-content: center; align-items: center; gap: 6px; color: #8e8e93; font-size: 15px; }
.mini-kb .space b { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.mini-kb .pn { font-size: 18px; }
.mini-kb .ret { flex: 2.2 1 0; font-size: 15px; }

/* Swipe trail drawn over the letters in the accent color */
.kb-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.kb-trail path {
  fill: none; stroke: var(--acc); stroke-width: 7px; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1;
}
.kb-trail.draw path { animation: kbTrail 1.5s ease-out forwards; }
@keyframes kbTrail {
  0%   { opacity: .75; stroke-dashoffset: 1; }
  55%  { opacity: .75; stroke-dashoffset: 0; }
  100% { opacity: 0;   stroke-dashoffset: 0; }
}

/* The nine colors -- each one is a button */
.color-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
.color-grid li { display: flex; justify-content: center; }
.color-grid .swatch {
  all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 2px; border-radius: 14px;
}
.color-grid .swatch:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.color-grid .dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px #f2f2f7, 0 0 0 5.5px #dcdce2; position: relative;
  transition: transform .2s ease, box-shadow .35s ease;
}
.color-grid .swatch:hover .dot { transform: scale(1.06); }
.color-grid .swatch:active .dot { transform: scale(.94); }
.color-grid .picked .dot { box-shadow: 0 0 0 4px #f2f2f7, 0 0 0 7px #b9b9bf; }
.color-grid .dot::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 9px; height: 18px;
  border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: translate(-50%, -50%) rotate(45deg) scale(.4);
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.color-grid .picked .dot::after { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.color-grid .nm { font-size: 13.5px; color: #1c1c1e; white-space: nowrap; }
.color-grid .picked .nm { font-weight: 700; }
@media (max-width: 400px) {
  .color-grid .dot { width: 42px; height: 42px; } .color-grid .nm { font-size: 12px; }
  .mini-kb .kb-row { gap: 3px; } .mini-kb i { font-size: 14px; height: 32px; } .mini-kb .sy { font-size: 13px; }
  .mini-kb .space, .mini-kb .ret { font-size: 12.5px; } .mini-kb .jf svg { width: 26px; height: 26px; }
}
@media (min-width: 900px) and (max-height: 780px) {
  .mini-kb i { height: 28px; font-size: 15px; } .mini-kb .kb-sym i { height: 24px; } .mini-kb .r4 i { height: 30px; }
  .mini-kb .kb-num i { height: 14px; font-size: 11px; } .mini-kb .jf svg { width: 24px; height: 24px; }
  .color-grid .dot { width: 38px; height: 38px; } .color-grid { row-gap: 8px; margin-top: 10px; }
  .color-card .chip { margin-top: 10px; padding: 5px 12px; font-size: 13px; }
}

/* ---------- 3. One more thing ---------- */
.omt {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  background: var(--bg-deep);
  padding: 0 24px;
}
.omt-line { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.025em; margin: 0; line-height: 1.1; }
.omt-a { font-size: clamp(34px, 6vw, 64px); color: var(--text-muted); }
.omt-b { font-size: clamp(34px, 6vw, 64px); margin-top: 10px; }

/* ---------- 4. Meet JustFavs Keyboard ---------- */
.reveal-kb {
  min-height: 100vh; min-height: 100svh;
  background: var(--bg-deep);
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 30px) 24px 40px;
  overflow: hidden;
}
.reveal-inner { width: 100%; max-width: 760px; }
.kb-icon-wrap { position: relative; width: clamp(110px, 16vw, 150px); aspect-ratio: 1; margin: 0 auto; }
.kb-icon { position: relative; width: 100%; border-radius: 22.5%; }
.kb-glow {
  position: absolute; inset: -45%; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,107,255,.55), rgba(59,107,255,0) 65%);
  filter: blur(8px);
}
.meet { font-size: clamp(32px, 5.6vw, 60px); margin-top: 34px; }
.meet-sub { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(20px, 3vw, 30px); margin: 12px 0 0; letter-spacing: -.02em; }
.kb-rise { margin: 40px auto 0; max-width: 560px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(59,107,255,.25)); }

/* ---------- 6. NO section (same as the app intro) ---------- */
.no-section {
  min-height: 100vh; min-height: 100svh;
  background: var(--bg-deep);
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 20px) 24px 40px;
}
.no-inner { width: 100%; max-width: 700px; }
.no-title {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(40px, min(7vw, 8vh), 76px); line-height: 1; letter-spacing: -.03em;
  color: var(--blue-light);
}
.no-list { list-style: none; margin: 0; padding: 0; }
.no-list li {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(18px, min(3.2vw, 3.3vh), 32px); line-height: 1.32;
  color: rgba(244, 246, 251, 0.78);
}
.no-arrow { font-size: clamp(22px, min(3vw, 3.4vh), 34px); color: var(--blue-light); margin: min(14px, 1.4vh) 0; line-height: 1; font-weight: 700; }
.no-h { font-size: clamp(26px, min(5vw, 5.4vh), 54px); }
.no-tag { color: var(--text-muted); font-size: clamp(15px, min(2vw, 2.4vh), 22px); margin: min(14px, 1.4vh) 0 0; }
.no-quote { margin: min(26px, 2.8vh) 0 0; }
.no-quote blockquote { margin: 0; font-style: italic; font-size: clamp(16px, min(2.1vw, 2.5vh), 22px); color: #e8ecf6; }
.no-quote figcaption { margin-top: 6px; font-size: clamp(12px, min(1.5vw, 1.8vh), 15px); color: var(--text-muted); letter-spacing: .02em; }

/* ---------- 7. Finale ---------- */
.finale { padding: 130px 0 100px; text-align: center; background: linear-gradient(var(--bg-deep), var(--bg) 40%); }
.finale-h { font-size: clamp(38px, 6.5vw, 76px); }
.finale-sub { font-size: clamp(19px, 2.4vw, 26px); color: var(--text-muted); margin: 18px auto 0; max-width: 36ch; }
.finale-sub strong { color: var(--text); font-weight: 600; }
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 64px auto 0; max-width: 880px; text-align: left; }
.product-card { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; }
.product-card img { width: 64px; height: 64px; border-radius: 15px; }
.product-card h3 { font-size: 24px; margin-top: 18px; }
.product-card p { color: var(--text-muted); font-size: 15px; margin: 10px 0 22px; flex: 1; }
.product-card p { flex: 0 0 auto; margin-bottom: 14px; }
.price-lines { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; display: grid; gap: 4px; align-content: start; }
.price-lines li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text); }
.price-lines li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-light); font-weight: 700; }
.price-lines li.muted { color: var(--text-muted); }
.price-lines li.muted::before { content: "–"; color: var(--text-muted); }
.android-note { color: var(--text-muted); font-size: 15px; margin: 22px 0 0; }

.waitlist-card { max-width: 560px; margin: 56px auto 0; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(9,12,22,.6); text-align: left; }
.waitlist-card h3 { font-size: 24px; }
.waitlist-card > p { color: var(--text-muted); font-size: 15px; margin: 6px 0 18px; }
.field-label, .interest-options legend { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.email-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.email-row input { height: 46px; padding: 0 14px; border: 1px solid rgba(143,180,255,.2); border-radius: 12px; background: rgba(19,26,51,.86); color: var(--text); font: inherit; font-size: 16px; min-width: 0; }
.email-row .btn { height: 46px; white-space: nowrap; }
.interest-options { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; border: 0; }
.check-option { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 14px; cursor: pointer; }
.check-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.form-note { margin: 15px 0 0; color: #7180a8; font-size: 12px; }
.form-note a { color: var(--blue-light); }
.hidden-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 34px 0 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Content pages (support / privacy / thanks) ---------- */
.content-page { padding: calc(var(--nav-h) + 50px) 0 100px; }
.content-page .page-head { margin-bottom: 40px; }
.content-page h1 { font-size: clamp(30px, 4vw, 40px); margin-top: 12px; }
.content-page h2 { font-size: 21px; margin: 40px 0 12px; }
.content-page p, .content-page li { color: var(--text-muted); font-size: 16px; }
.content-page strong { color: var(--text); }
.content-page a.link { color: var(--blue-light); text-underline-offset: 3px; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 12px; }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; }
.faq-item p { margin: 0; font-size: 14.5px; }
.thanks-card { max-width: 680px; margin: 0 auto; padding: 44px 34px; text-align: center; border: 1px solid var(--border); border-radius: 24px; background: var(--bg-card); }

/* =====================================================================
   Wide screens with motion allowed: the story sections scroll sideways.
   ===================================================================== */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hscroll { height: 100vh; overflow: hidden; }
  .hs-track { display: flex; height: 100%; width: max-content; will-change: transform; }
  .panel {
    flex: 0 0 100vw; width: 100vw; height: 100vh; max-width: none; margin: 0;
    grid-template-columns: 1fr 1fr; gap: 6vw;
    padding: calc(var(--nav-h) + 20px) 8vw 40px;
  }
  .panel .shot { max-width: min(360px, 30vw); max-height: 74vh; }
  .panel .shot img { max-height: 74vh; object-fit: cover; object-position: top; }
  .panel .kb-card { max-width: 560px; }
  .panel .feature-list, .panel .custom-card { max-width: 480px; }
  #emoji-story { background: linear-gradient(90deg, var(--bg), #0c1122); }
  #keyboard-story { background: var(--bg-deep); }
}

/* ---------- Phones ---------- */
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { text-align: left; padding-top: calc(var(--nav-h) + 36px); }
  .hero-visual .shot { margin: 0 auto; max-width: 300px; }
  .panel { padding: 56px 20px; }
  .product-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { gap: 16px; font-size: 13.5px; }
  .nav-quiet { display: none; }
  .brand-name { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .email-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .emoji-stage { max-width: 100%; }
  .favorites-row span { font-size: 32px; }
}

/* ---------- Reduce Motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Support / Privacy additions ---------- */
.wrap.narrow { max-width: 760px; }
.content-page .lead { font-size: 18px; color: var(--text-muted); margin-top: 14px; }
.content-page ul { padding-left: 22px; }
.content-page li { margin: 6px 0; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jump-links a { text-decoration: none; padding: 9px 16px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); font-size: 14px; color: var(--blue-light); }
.help-section { margin-top: 44px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.help-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.help-head img { width: 44px; height: 44px; border-radius: 11px; }
.help-head h2 { margin: 0; font-size: 24px; }
details.faq-item { padding: 0; }
details.faq-item summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 22px; position: relative; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--blue-light); font-size: 22px; font-weight: 500; transition: transform .2s; }
details.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq-item summary h3 { margin: 0; font-size: 16px; }
details.faq-item > div { padding: 0 22px 18px; }
details.faq-item > div p { margin: 0 0 10px; font-size: 15px; }
details.faq-item > div p:last-child { margin-bottom: 0; }
.footer-langs { flex-basis: 100%; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.footer-langs a { text-decoration: none; }
.footer-langs a:hover { color: var(--text); }
@media (max-width: 560px) { .footer-langs { justify-content: center; } }

.content-page .updated { color: var(--text-muted); font-size: 14px; margin-top: 10px; }

/* Functionality panel: the intro's list, as the panel's visual */
.intro-list-big { margin: 0; gap: 18px; justify-self: center; width: 100%; max-width: 460px; }
.intro-list-big .ic { flex-basis: 52px; height: 52px; }
.intro-list-big .ic svg { width: 24px; height: 24px; }
.intro-list-big strong { font-size: 20px; }
.intro-list-big div span { font-size: 15px; }
.intro-list .ic-logo { background: none; border: 0; overflow: hidden; }
.intro-list .ic-logo img { width: 100%; height: 100%; border-radius: 12px; }

/* "More symbols" panel: letters keyboard -> tap the chevron -> symbols */
.kb-anim { position: relative; }
.kb-anim img { display: block; width: 100%; height: auto; }
.kb-anim .kb-b {
  position: absolute; left: 0; top: 0;
  opacity: 0; transition: opacity .35s ease;
}
.kb-anim.show-b .kb-b { opacity: 1; }
.kb-anim.show-b .kb-a { opacity: 0; transition: opacity .35s ease; }
.kb-anim .kb-a { transition: opacity .35s ease; }
/* the chevron key sits top-right of the symbol row */
.kb-anim .kb-press {
  position: absolute; left: var(--px, 90.2%); top: var(--py, 16.3%); width: var(--pw, 8.5%); height: var(--ph, 12.4%);
  border-radius: 12% / 16%; background: rgba(0, 0, 0, .22);
  opacity: 0; transition: opacity .12s ease;
  pointer-events: none;
}
.kb-anim.pressing .kb-press { opacity: 1; }
.kb-anim .kb-tap {
  position: absolute; left: var(--tx, 94.4%); top: var(--ty, 22.5%); width: 12%; aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, -50%) scale(.4);
  border: 3px solid rgba(255, 255, 255, .95);
  background: rgba(143, 180, 255, .35);
  box-shadow: 0 0 0 6px rgba(59, 107, 255, .25);
  opacity: 0; pointer-events: none;
}
.kb-anim.tapping .kb-tap { animation: kbTap .7s ease-out forwards; }
@keyframes kbTap {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(1.4); }
  35%  { opacity: 1;   transform: translate(-50%, -50%) scale(.85); }
  70%  { opacity: 1;   transform: translate(-50%, -50%) scale(.95); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.25); }
}

/* JF -> emojis: the emoji screen is taller, so it sets the card's size
   and the letters keyboard sits at the bottom of it (like a phone). */
.kb-anim.a-bottom .kb-b { position: relative; }
.kb-anim.a-bottom .kb-a { position: absolute; left: 0; bottom: 0; }

/* Support page: typing-quirk feedback callout */
.feedback-card {
  background: linear-gradient(180deg, rgba(59,107,255,.14), rgba(59,107,255,.05));
  border: 1px solid rgba(143,180,255,.35); border-radius: 16px; padding: 22px 24px;
}
.feedback-card h2 { margin: 0 0 10px; font-size: 22px; }
.feedback-card p { margin: 0 0 10px; }
.feedback-card .muted-note { margin: 0; color: var(--text-muted); font-size: 14px; }
