/* Key Helper — site styles v2
   One committed dark look that matches the extension: deep indigo, frosted glass,
   yellow for "home", lavender for "away", orange for "tension", magenta for "surprise". */
:root {
  --bg: #0f0a22; --bg2: #171033; --ink: #f5f1ff; --muted: #a99fcc; --faint: #6f6696;
  --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.18);
  --glass: rgba(255,255,255,.045); --glass2: rgba(255,255,255,.08);
  --yel: #ffd60a; --lav: #b69cff; --org: #ff9f5a; --mag: #ff7ee0;
  --display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  --body: Figtree, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; color: var(--ink); font: 17px/1.6 var(--body);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(182,156,255,.30), transparent 62%),
    radial-gradient(800px 480px at -6% 22%, rgba(255,214,10,.09), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(255,126,224,.08), transparent 60%),
    var(--bg);
}
/* fine grain so the gradients don't band */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--yel); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.04; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: linear-gradient(180deg, rgba(15,10,34,.85), rgba(15,10,34,.55)); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4b0, var(--yel) 55%, #c9a400); box-shadow: 0 0 16px rgba(255,214,10,.75); }
.nav .links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav .links a { color: var(--muted); text-decoration: none; }
.nav .links a:hover { color: var(--ink); }
.nav .links .btn { padding: 9px 16px; font-size: 14.5px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 14px; font: 700 16px var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn-yel { color: #24124f !important; background: linear-gradient(180deg, #fff2a8, var(--yel)); box-shadow: 0 12px 30px rgba(255,214,10,.30), inset 0 1px 0 #fff; }
.btn-yel:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(255,214,10,.38), inset 0 1px 0 #fff; }
.btn-ghost { color: var(--ink) !important; background: var(--glass); border: 1px solid var(--line2); }
.btn-ghost:hover { background: var(--glass2); }
.btn[aria-disabled="true"] { cursor: default; transform: none; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-block: 72px 44px; display: grid; justify-items: center; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line2); font-size: 14px; color: var(--muted); }
.pill b { background: var(--yel); color: #24124f; font-size: 12px; padding: 2px 9px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(46px, 8vw, 96px); font-weight: 800; max-width: 13ch; letter-spacing: -.035em; }
.hero h1 .grad { background: linear-gradient(92deg, #fff3a6 0%, var(--yel) 30%, var(--org) 58%, var(--mag) 80%, var(--lav) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 40ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: 14px; color: var(--faint); }
.meta span::before { content: "✓ "; color: var(--yel); font-weight: 800; }

/* ---------- demo in a browser frame ---------- */
.stage { position: relative; margin: 16px auto 0; max-width: 1040px; }
.stage::before { content: ""; position: absolute; inset: 8% -6% -10%; z-index: -1; filter: blur(60px);
  background: conic-gradient(from 200deg at 50% 50%, rgba(255,214,10,.35), rgba(255,159,90,.28), rgba(255,126,224,.28), rgba(182,156,255,.40), rgba(255,214,10,.35)); border-radius: 50%; opacity: .55; }
.browser { border-radius: 18px; overflow: hidden; background: #1a1236; border: 1px solid var(--line2);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); }
.bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: linear-gradient(180deg, #241a47, #1c1439); border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.url { flex: 1; max-width: 460px; margin-inline: auto; text-align: center; font-size: 13px; color: var(--muted); background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url b { color: var(--ink); font-weight: 600; }
.ext { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,214,10,.14); border: 1px solid rgba(255,214,10,.4); }
.ext .dot { width: 9px; height: 9px; }
.browser video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #140d2c; }

/* ---------- section scaffolding ---------- */
section { padding-block: 96px; }
.head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 680px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head p { font-size: 18px; }

/* ---------- the idea: a tension curve ---------- */
.idea { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.curve { padding: 30px 26px 24px; border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14); }
.curve .key { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.curve .key b { color: var(--yel); letter-spacing: 0; font: 800 17px var(--display); margin-left: 6px; }
.curve svg { display: block; width: 100%; height: 120px; margin: 22px 0 8px; overflow: visible; }
.curve svg path.line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip { border-radius: 16px; padding: 14px 6px 12px; text-align: center; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1.5px solid color-mix(in srgb, var(--c) 65%, transparent); }
.chip b { display: block; font: 800 32px var(--display); color: #fff; line-height: 1.1; }
.chip i { display: block; font-style: normal; font-weight: 800; color: var(--c); font-size: 15px; }
.chip span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.roles { display: grid; gap: 12px; margin-top: 28px; }
.role { display: grid; grid-template-columns: 14px 110px 1fr; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.role::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.role b { font: 700 17px var(--display); color: var(--c); }
.role span { color: var(--muted); font-size: 15.5px; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.tile p { color: var(--muted); font-size: 16px; max-width: 42ch; }
.tile .demo-ui { margin-top: 12px; }
.t-key { grid-column: span 3; } .t-deg { grid-column: span 3; }
.t-mod, .t-why, .t-heb { grid-column: span 2; }
.bigkey { font: 800 58px var(--display); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #ffe680 70%, var(--yel)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.scale span { min-width: 40px; text-align: center; padding: 5px 0; border-radius: 10px; background: var(--glass2); border: 1px solid var(--line); font-weight: 700; }
.scale em { display: block; font-style: normal; font-size: 11px; color: var(--yel); }
.mini { display: flex; gap: 8px; flex-wrap: wrap; }
.mini span { padding: 7px 12px; border-radius: 10px; font-weight: 700; background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.mini span i { font-style: normal; color: var(--c); font-size: 12.5px; margin-left: 6px; }
.modpill { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 14px; background: linear-gradient(90deg, rgba(182,156,255,.3), rgba(255,214,10,.2)); border: 1px solid var(--line2); }
.modpill b { color: var(--yel); }
.whycard { padding: 12px 14px; border-radius: 14px; background: rgba(255,214,10,.08); border: 1px solid rgba(255,214,10,.3); font-size: 14.5px; color: #eee7ff; }
.whycard b { color: var(--yel); }
.rtl { direction: rtl; font-size: 15px; color: var(--muted); }
.rtl .ch { direction: ltr; display: inline-block; color: #8fb8ff; font-weight: 700; margin-inline: 6px; }

/* ---------- live faces ---------- */
.feel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.facecard { justify-self: center; width: min(420px, 100%); padding: 28px; border-radius: 26px; text-align: center; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.facebox { width: 170px; height: 170px; margin: 0 auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.45)) drop-shadow(0 0 30px rgba(255,214,10,.25)); }
.facebox svg { width: 100%; height: 100%; overflow: visible; }
.mood { margin-top: 14px; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--c, var(--yel)); transition: color .3s; }
.mchord { font: 800 44px var(--display); line-height: 1.1; }
.mroman { color: var(--c, var(--yel)); font-weight: 700; transition: color .3s; }
.timeline { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.timeline span { width: 34px; height: 6px; border-radius: 3px; background: var(--line2); transition: background .3s; }
.timeline span.on { background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ---------- price ---------- */
.price { position: relative; max-width: 480px; margin: 0 auto; text-align: center; padding: 40px 32px 32px; border-radius: 28px;
  background: linear-gradient(170deg, rgba(40,28,82,.95), rgba(22,15,48,.95)) padding-box,
              linear-gradient(140deg, var(--yel), var(--org) 35%, var(--mag) 65%, var(--lav)) border-box;
  border: 1.5px solid transparent; box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 80px rgba(182,156,255,.15); }
.price .amount { font: 800 76px var(--display); letter-spacing: -.04em; margin: 10px 0 0; line-height: 1; }
.price .amount small { font: 600 18px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price ul { list-style: none; padding: 0; margin: 26px 0 28px; text-align: left; display: grid; gap: 12px; }
.price li { padding-left: 30px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--yel); font-weight: 800; }
.secure { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding-block: 20px; }
summary { cursor: pointer; font: 700 19px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--yel); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; max-width: 68ch; }

/* ---------- closing ---------- */
.closing { text-align: center; padding-block: 60px 100px; display: grid; justify-items: center; gap: 22px; }
.closing h2 { max-width: 16ch; }

footer { border-top: 1px solid var(--line); padding-block: 28px 44px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; color: var(--faint); font-size: 14px; }
footer a { color: var(--muted); }

/* ---------- legal pages ---------- */
nav.simple { padding-block: 22px; }
.legal { max-width: 720px; padding-block: 30px 60px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: #ddd6f3; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }

/* ---------- reveal on scroll (content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--yel); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 900px) {
  .idea, .feel { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-key, .t-deg { grid-column: span 2; }
  .t-mod, .t-why, .t-heb { grid-column: span 1; }
  .nav .links a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  section { padding-block: 64px; }
  .bento { grid-template-columns: 1fr; }
  .t-key, .t-deg, .t-mod, .t-why, .t-heb { grid-column: auto; }
  .chips { gap: 6px; } .chip b { font-size: 24px; }
  .role { grid-template-columns: 14px 90px 1fr; }
  .url { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .curve svg path.line { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}
