:root {
  --bg: #f7f5f1;
  --bg-raised: #ffffff;
  --line: #e3e0d9;
  --text: #17181c;
  --muted: #5f626c;
  --accent: #ee5622;                       /* a little deeper than the logo orange, so it reads on white */
  --accent-soft: rgba(238, 86, 34, 0.1);
  --glass: rgba(255, 255, 255, 0.86);      /* panels that float over the 3D keyboard */
  --shadow: 0 18px 50px rgba(40, 30, 20, 0.1);
  --blue: #5b7cff;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% 300px, rgba(255, 107, 61, 0.2), transparent 70%),
    radial-gradient(700px 500px at 85% 120px, rgba(91, 124, 255, 0.12), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; max-width: 18ch; }
h3 { font-size: 21px; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
.accent { color: var(--accent); }

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

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(247, 245, 241, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px "Space Grotesk", sans-serif; text-decoration: none; }
.brand-logo { width: 32px; height: 32px; display: block; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: 600 16px Inter, sans-serif; text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 107, 61, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 107, 61, 0.45); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4vw, 52px) var(--gutter) 40px; text-align: center; }
.hero-copy { max-width: 820px; margin: 0 auto; }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; margin: 16px auto 0; }

.stage { position: relative; width: min(1100px, 100%); margin: -6px auto 0; aspect-ratio: 16 / 7.4; }
#keyboard {
  width: 100%; height: 100%; display: block; touch-action: manipulation; cursor: pointer; outline: none;
  /* fade the glow out before it reaches the edge of the canvas */
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 62%, transparent 100%);
}

.sound-gate {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--glass); color: var(--text); font: 500 15px Inter, sans-serif; cursor: pointer; box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: nudge 2.2s ease-in-out infinite;
  transition: opacity 0.4s, visibility 0.4s;
}
.sound-gate.off { opacity: 0; visibility: hidden; }
.sound-gate-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.7); animation: ping 1.6s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(255, 107, 61, 0); } }
@keyframes nudge { 50% { transform: translateX(-50%) translateY(-5px); } }

.hud { position: absolute; top: 6%; right: 3%; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.combo {
  font: 700 clamp(20px, 3vw, 34px) "Space Grotesk", sans-serif; color: var(--accent);
  padding: 6px 16px; border-radius: 12px; background: var(--glass); border: 1px solid rgba(255, 107, 61, 0.4);
}
.combo.bump { animation: bump 0.18s ease-out; }
@keyframes bump { 40% { transform: scale(1.18) rotate(-2deg); } }
.meter { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.meter-track { width: clamp(90px, 14vw, 160px); height: 8px; border-radius: 4px; background: #dedbd3; overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #ffc83c, var(--accent), #ff3d3d); transition: width 0.12s linear; }

.packs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 10px auto 0; }
.chip {
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text);
  font: 500 15px Inter, sans-serif; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.chip:hover { border-color: var(--muted); transform: translateY(-1px); }
.chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip small { font-weight: 600; font-size: 11px; letter-spacing: 0.08em; opacity: 0.7; margin-left: 6px; text-transform: uppercase; }
.pack-blurb { color: var(--muted); margin-top: 16px; min-height: 1.6em; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 130px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.section.narrow { max-width: 820px; }
.body { color: var(--muted); max-width: 52ch; margin-top: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 44px; }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card { box-shadow: 0 1px 2px rgba(40, 30, 20, 0.04); }
.card:hover { transform: translateY(-6px); border-color: rgba(238, 86, 34, 0.55); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 16px; flex: 1; }
.link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent); font: 600 15px Inter, sans-serif; cursor: pointer; }
.link::after { content: " →"; transition: margin 0.2s; }
.card:hover .link::after { margin-left: 4px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 30px; }
.shortcuts button {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-raised);
  color: var(--muted); font: 500 14px Inter, sans-serif; cursor: pointer; text-align: left;
  transition: border-color 0.2s, transform 0.12s;
}
.shortcuts button:hover { border-color: var(--accent); }
.shortcuts button:active { transform: scale(0.97); }
.shortcuts span { flex-basis: 100%; margin-top: 4px; }
kbd {
  display: inline-block; padding: 4px 9px; border-radius: 7px; background: #24262e; color: #f1f1f4;
  font: 600 13px Inter, sans-serif; box-shadow: 0 3px 0 #0c0d11;
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.facts li { padding-left: 20px; border-left: 2px solid var(--line); transition: border-color 0.3s; }
.facts li:hover { border-color: var(--accent); }
.facts p { color: var(--muted); font-size: 16px; margin-top: 6px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 820px; margin-top: 44px; }
.plan { padding: 32px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan { box-shadow: 0 1px 2px rgba(40, 30, 20, 0.04); }
.plan-full { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--bg-raised) 60%); box-shadow: var(--shadow); }
.price { font: 700 46px "Space Grotesk", sans-serif; }
.price small { font: 500 15px Inter, sans-serif; color: var(--muted); }
.plan ul { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 9px; align-content: start; color: var(--muted); font-size: 16px; flex: 1; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.plan .btn { text-align: center; }
.fine { color: var(--muted); font-size: 15px; margin-top: 22px; }

details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { margin-top: 30px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font: 500 19px "Space Grotesk", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; max-width: 60ch; }

.cta { text-align: center; padding: clamp(70px, 10vw, 130px) var(--gutter); display: grid; gap: 30px; justify-items: center; }
.cta h2 { max-width: none; }

footer { display: flex; justify-content: space-between; gap: 16px; padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sound-gate, .sound-gate-icon { animation: none; }
}

@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .split { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 16 / 10; }
  .hud { top: 0; right: 0; }
  /* on phones the prompt sits under the keyboard instead of over it */
  .sound-gate { position: static; transform: none; animation: none; margin: 4px auto 16px; font-size: 14px; }
  .sound-gate.off { display: none; }
}

/* ---------- hero extras ---------- */
.typed {
  position: absolute; top: 3%; left: 50%; transform: translateX(-50%); z-index: 2;
  min-height: 1.5em; max-width: 90%; white-space: pre; overflow: hidden;
  font: 500 clamp(16px, 2vw, 24px) "Space Grotesk", sans-serif; color: var(--text); letter-spacing: 0.02em;
  pointer-events: none;
}
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; background: var(--accent); vertical-align: -0.15em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.volume { position: absolute; left: 3%; bottom: 3%; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.volume button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--line) center / 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M16.5 8.5a5 5 0 010 7M19 6a8.5 8.5 0 010 12'/%3E%3C/svg%3E");
}
.volume button[aria-pressed="true"] {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E");
}
.volume input { width: clamp(70px, 10vw, 110px); accent-color: var(--accent); }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.challenge-hud {
  position: absolute; top: 6%; left: 3%; display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--accent);
  font: 700 clamp(20px, 2.6vw, 30px) "Space Grotesk", sans-serif; color: var(--accent);
}
.result {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 3;
  width: min(420px, 92%); padding: 30px; border-radius: var(--radius); text-align: center;
  background: #ffffff; border: 1px solid var(--accent); box-shadow: 0 30px 80px rgba(40, 30, 20, 0.28);
  display: grid; gap: 12px; justify-items: center; animation: pop 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.85); opacity: 0; } }
.result-score { font: 700 clamp(44px, 7vw, 64px) "Space Grotesk", sans-serif; line-height: 1; }
.result-score span { color: var(--accent); }
.result-detail { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0; }
.result-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }

.toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 18px 10px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text); font: 500 15px Inter, sans-serif;
}
.toggle-dot { width: 34px; height: 20px; border-radius: 10px; background: #cfccc4; position: relative; transition: background 0.2s; }
.toggle-dot::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.toggle[aria-pressed="true"] { border-color: var(--accent); }
.toggle[aria-pressed="true"] .toggle-dot { background: var(--accent); }
.toggle[aria-pressed="true"] .toggle-dot::after { transform: translateX(14px); }

/* ---------- app screenshots ---------- */
.app-facts { margin-top: 34px; }
.shots { position: relative; display: grid; justify-items: center; }
.window { margin: 0; width: min(300px, 80%); border-radius: 14px; overflow: hidden; border: 1px solid #23262f; background: #17181c; box-shadow: 0 30px 70px rgba(40, 30, 20, 0.3); transform: rotate(1.5deg); transition: transform 0.4s; }
.window:hover { transform: rotate(0) scale(1.02); }
.window figcaption { display: flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: 13px; color: #9a9eac; background: #101116; }
.window figcaption span { width: 10px; height: 10px; border-radius: 50%; background: #2a2d37; }
.window figcaption span:last-of-type { margin-right: 6px; }
.window img { display: block; width: 100%; height: auto; }
.shot-combo { position: absolute; left: 0; bottom: 8%; width: min(250px, 60%); height: auto; border-radius: 12px; border: 1px solid rgba(255, 200, 60, 0.5); box-shadow: 0 20px 50px rgba(40, 30, 20, 0.35); transform: rotate(-4deg); }

.trust { color: var(--muted); font-size: 13px; text-align: center; }
.trust a, details p a { color: var(--accent); }

/* ---------- download nudge ---------- */
.nudge {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 20px; border-radius: 999px; max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--accent); box-shadow: 0 20px 60px rgba(40, 30, 20, 0.25); backdrop-filter: blur(12px);
  font-size: 15px; animation: rise 0.45s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes rise { from { transform: translate(-50%, 80px); opacity: 0; } }
.nudge button { border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; padding: 0 6px; }

@media (max-width: 820px) {
  .volume { position: static; width: max-content; margin: 0 auto 12px; }
  .typed { top: 0; }
  .challenge-hud { top: 0; left: 0; }
  .shot-combo { position: static; margin-top: 18px; transform: none; }
  .nudge { border-radius: 18px; flex-wrap: wrap; justify-content: center; text-align: center; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .caret, .nudge, .result { animation: none; } }

/* ---------- privacy, terms and refund pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 90px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); margin-top: 26px; }
.legal h2 { font-size: 24px; max-width: none; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #3a3d46; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .summary { margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--bg-raised); color: var(--text); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
/* details still to be filled in before the site goes live */
mark.todo { background: rgba(255, 200, 60, 0.3); color: #6b4a00; padding: 1px 6px; border-radius: 5px; border: 1px dashed #c99a1a; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- demo video pop-up ---------- */
.nav .btn-ghost { display: inline-flex; align-items: center; gap: 8px; }
.play { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--accent); }
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: clamp(14px, 4vw, 48px);
  background: rgba(5, 6, 9, 0.86); backdrop-filter: blur(10px); animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.promo {
  display: block; width: min(1180px, 100%); height: auto; max-height: calc(100vh - 110px); border-radius: var(--radius);
  border: 1px solid var(--line); background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 90px rgba(255, 107, 61, 0.18);
  animation: zoomIn 0.28s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes zoomIn { from { transform: scale(0.92); opacity: 0; } }
.modal-close {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-raised); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-close:hover { border-color: var(--accent); }
body.modal-open { overflow: hidden; }
@media (max-width: 820px) {
  .nav { gap: 10px; }
  .nav #demoOpen { margin-left: auto; }
  .nav #demoOpen + .btn-small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .modal, .promo { animation: none; } }

/* ---------- download ---------- */
.download-info { margin-top: 4px; font-size: 13px; min-height: 1.3em; }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: flex-start; gap: 14px;
  width: min(400px, calc(100% - 40px)); padding: 16px 18px; border-radius: 16px;
  background: #ffffff; border: 1px solid var(--accent); box-shadow: 0 20px 60px rgba(40, 30, 20, 0.25);
  animation: toastIn 0.4s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes toastIn { from { transform: translateY(60px); opacity: 0; } }
.toast p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.toast button { border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- launch pricing ---------- */
.price s { font: 500 22px Inter, sans-serif; color: var(--muted); text-decoration-thickness: 2px; margin: 0 4px; }
.price s:empty { display: none; }
.launch { color: var(--accent); font-weight: 600; font-size: 15px; margin-top: -6px; }
.launch:empty, .launch-note:empty { display: none; }
.launch-note { color: var(--accent); font-weight: 600; margin-top: 6px; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tiers li::before { content: none; }
.tiers li.now { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 600; }
.tiers li.done { opacity: 0.55; }
.tiers li.done b { text-decoration: line-through; }
