/* The Perfect Keyboard: homepage. Colours follow the app icon: #5B5BF0 to #8B3FEA, sticker yellow #FFC83D. */
:root {
  --bg: #f7f6ff;
  --bg-2: #ffffff;
  --tint: #efedff;
  --ink: #15122b;
  --ink-2: #5a5675;
  --line: #e2def7;
  --card: #ffffff;
  --indigo: #5b5bf0;
  --violet: #8b3fea;
  --pink: #e04fd0;
  --sun: #ffc83d;
  --orange: #ff8a3d;
  --grad: linear-gradient(120deg, #5b5bf0 0%, #8b3fea 55%, #e04fd0 100%);
  --grad-icon: linear-gradient(135deg, #5b5bf0 0%, #8b3fea 100%);
  --grad-sun: linear-gradient(120deg, #ff8a3d 0%, #ffb02e 45%, #e04fd0 100%);
  --grad-pink: linear-gradient(120deg, #e04fd0 0%, #ff6b8b 50%, #ff8a3d 100%);
  --shadow: 0 30px 70px -28px rgba(70, 40, 190, 0.45);
  --shadow-sm: 0 12px 30px -14px rgba(70, 40, 190, 0.35);
  --wide: 1180px;
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-btn: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a1d;
    --bg-2: #120f28;
    --tint: #16123a;
    --ink: #f5f3ff;
    --ink-2: #aca7cc;
    --line: #2b2550;
    --card: #17143a;
    --grad: linear-gradient(120deg, #8a8aff 0%, #b67cff 55%, #ff7be8 100%);
    --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.85);
    --shadow-sm: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.015em; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.big { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin: 18px 0 0; }

.grad, .grad-anim, .grad-sun, .grad-pink, .grad-light {
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad { background-image: var(--grad); }
.grad-sun { background-image: var(--grad-sun); }
.grad-pink { background-image: var(--grad-pink); }
.grad-light { background-image: linear-gradient(120deg, #fff 0%, #ffe28a 50%, #ffb3f2 100%); }
.grad-anim {
  background-image: linear-gradient(90deg, #5b5bf0, #8b3fea, #e04fd0, #ff8a3d, #ffc83d, #e04fd0, #8b3fea, #5b5bf0);
  background-size: 300% 100%;
  animation: flow 8s linear infinite;
}
@keyframes flow { to { background-position: 300% 0; } }

/* Moving colour behind the whole page */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.bg-orbs span:nth-child(1) { width: 560px; height: 560px; background: #7b6bff; top: -180px; right: -120px; animation: orb1 18s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; background: #ff7be0; top: 30%; left: -200px; opacity: 0.35; animation: orb2 22s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(3) { width: 420px; height: 420px; background: #ffc83d; bottom: -160px; right: 10%; opacity: 0.3; animation: orb1 26s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { .bg-orbs span { opacity: 0.32; } .bg-orbs span:nth-child(3) { opacity: 0.16; } }
@keyframes orb1 { to { transform: translate(-120px, 140px) scale(1.15); } }
@keyframes orb2 { to { transform: translate(160px, -100px) scale(0.9); } }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: var(--shadow-sm); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.get {
  position: relative; overflow: hidden;
  background: var(--grad-icon); color: #fff;
  font-weight: 750; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 8px; border-radius: 12px;
  box-shadow: 0 8px 20px -8px rgba(91, 91, 240, 0.8);
}
.get .as-icon { width: 24px; height: 24px; }
.get:hover { text-decoration: none; filter: brightness(1.08); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.badge-row { margin: 0 0 22px; }
.chip-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 650; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.chip-badge img { border-radius: 6px; }
h1 { font-size: clamp(42px, 5.4vw, 74px); font-weight: 850; letter-spacing: -0.04em; line-height: 1.0; }
h1 .line { display: block; padding-bottom: 0.04em; opacity: 0; transform: translateY(24px); animation: rise 0.8s cubic-bezier(.2,.8,.2,1) forwards; }
h1 .line:nth-child(2) { animation-delay: 0.12s, 0s; }
h1 .line:nth-child(3) { animation-delay: 0.24s; }
h1 .grad-anim.line { animation: rise 0.8s cubic-bezier(.2,.8,.2,1) 0.12s forwards, flow 8s linear infinite; }
.small-line { font-size: 0.52em; color: var(--ink-2); font-weight: 750; margin-top: 10px; letter-spacing: -0.02em; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin: 24px 0 22px; max-width: 34ch; opacity: 0; animation: rise 0.8s ease 0.36s forwards; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; opacity: 0; animation: rise 0.8s ease 0.46s forwards; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
.d1 { background: #5b5bf0; } .d2 { background: #ffb02e; } .d3 { background: #e04fd0; } .d4 { background: #22c58b; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; opacity: 0; animation: rise 0.8s ease 0.56s forwards; }
.meta { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.45; }

/* Download button with a looping shine */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 68px; padding: 10px 30px 10px 12px;
  border-radius: var(--r-btn);
  background: var(--grad-icon); color: #fff;
  box-shadow: 0 18px 40px -14px rgba(110, 60, 240, 0.85);
  line-height: 1.1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta:hover { text-decoration: none; transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 46px -14px rgba(110, 60, 240, 0.95); }
.cta-text { display: flex; flex-direction: column; }
.cta-small { font-size: 13px; font-weight: 600; opacity: 0.92; }
.as-icon { width: 46px; height: 46px; flex: none; border-radius: 11px; box-shadow: 0 4px 10px -3px rgba(10, 40, 120, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.9); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cta-big { font-size: 26px; font-weight: 850; letter-spacing: -0.02em; }
.cta::after, .get::after {
  content: ""; position: absolute; z-index: -1;
  top: -60%; left: 0; width: 32%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-160%) rotate(22deg);
  animation: shine 2.4s ease-in-out infinite;
}
.get::after { z-index: 0; }
@keyframes shine {
  0% { transform: translateX(-160%) rotate(22deg); }
  38%, 100% { transform: translateX(420%) rotate(22deg); }
}
.cta.small { min-height: 56px; width: 100%; justify-content: center; padding: 8px 20px; margin-top: 18px; }
.cta.small .as-icon { width: 32px; height: 32px; border-radius: 8px; }
.cta.small .cta-big { font-size: 19px; }
.cta.white { background: #fff; color: #4b2bd6; box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.45); }
.cta.white::after { background: linear-gradient(90deg, transparent, rgba(139, 63, 234, 0.25), transparent); }

/* Phones */
.phone {
  position: relative;
  width: min(300px, 70vw);
  filter: drop-shadow(0 34px 40px rgba(50, 30, 150, 0.32)) drop-shadow(0 6px 10px rgba(30, 20, 80, 0.18));
}
.phone img { width: 100%; }
.phone.mini { width: min(250px, 60vw); }

.hero-art { position: relative; height: 640px; }
.hero-art .phone { position: absolute; }
.hero-art .front { left: 50%; top: 40px; transform: translateX(-62%) rotate(-4deg); z-index: 3; animation: hover1 7s ease-in-out infinite; }
.hero-art .back { left: 50%; top: 0; transform: translateX(2%) rotate(7deg) scale(0.9); z-index: 1; opacity: 0.95; animation: hover2 8s ease-in-out infinite; }
@keyframes hover1 { 50% { transform: translateX(-62%) rotate(-2deg) translateY(-12px); } }
@keyframes hover2 { 50% { transform: translateX(2%) rotate(9deg) scale(0.9) translateY(10px); } }
.ring { position: absolute; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--violet) 40%, transparent); left: 50%; top: 50%; translate: -50% -50%; animation: spin 40s linear infinite; }
.r1 { width: 560px; height: 560px; }
.r2 { width: 420px; height: 420px; animation-direction: reverse; animation-duration: 30s; border-color: color-mix(in srgb, var(--pink) 35%, transparent); }
@keyframes spin { to { rotate: 360deg; } }

.clip {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: clipIn 0.7s cubic-bezier(.2,.8,.2,1) both, bob 6s ease-in-out infinite;
}
.clip b { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c1 { top: 110px; left: -40px; animation-delay: 0.7s, 1.5s; }
.c2 { top: 300px; right: -16px; animation-delay: 0.95s, 0.4s; }
.c3 { bottom: 40px; left: -30px; animation-delay: 1.2s, 2.2s; }
@keyframes clipIn { from { opacity: 0; transform: translateX(-30px) scale(0.9); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.sticker { position: absolute; z-index: 6; width: 96px; filter: drop-shadow(0 14px 18px rgba(40, 20, 120, 0.3)); animation: pop 0.7s cubic-bezier(.3,1.6,.5,1) both, wobble 5s ease-in-out infinite; }
.s1 { top: 6px; left: 12%; animation-delay: 1.0s, 1.7s; }
.s2 { top: 200px; right: 2%; width: 84px; animation-delay: 1.2s, 0.6s; }
.s3 { bottom: 150px; right: 14%; width: 104px; animation-delay: 1.4s, 2.6s; }
.s4 { bottom: 10px; left: 38%; width: 76px; animation-delay: 1.6s, 1.1s; }
@keyframes pop { from { opacity: 0; transform: scale(0.2) rotate(-30deg); } }
@keyframes wobble { 0%, 100% { rotate: -8deg; translate: 0 0; } 50% { rotate: 8deg; translate: 0 -14px; } }

/* Marquee */
.marquee {
  overflow: hidden; padding: 18px 0;
  background: var(--grad-icon);
  transform: rotate(-1.5deg); margin: 10px -20px 0;
  box-shadow: 0 20px 40px -24px rgba(91, 91, 240, 0.8);
}
.track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.row { display: flex; gap: 14px; padding-right: 14px; }
.row span {
  color: #fff; font-weight: 750; font-size: 18px; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
}
.row span:nth-child(3n+2) { background: rgba(255, 200, 61, 0.28); }
.row span:nth-child(3n) { background: rgba(224, 79, 208, 0.3); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.block { padding: 110px 0; position: relative; }
.tinted { background: color-mix(in srgb, var(--tint) 75%, transparent); }
.colorful {
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(255, 200, 61, 0.22), transparent 70%),
    radial-gradient(600px 420px at 10% 90%, rgba(224, 79, 208, 0.16), transparent 70%),
    color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.split.rev .copy { order: 2; }
.kicker { margin: 0 0 14px; font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.k-blue { color: var(--indigo); } .k-sun { color: #f08a1c; } .k-pink { color: var(--pink); }
.why {
  margin: 26px 0 0; padding: 18px 20px 18px 22px;
  border-radius: var(--r-md); font-size: 18px; font-weight: 550;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.why::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad); }
.why span { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.colorful .why::before { background: var(--grad-sun); }
.colorful .why span { background-image: var(--grad-sun); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; font-size: 15px; color: var(--ink-2); position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; margin-bottom: 10px;
  background: var(--grad-icon); color: #fff; font-weight: 800; font-size: 16px;
}
.steps b { color: var(--ink); }

.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 32px; margin: 11px 0; color: var(--ink-2); }
.ticks b { color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.25em;
  width: 20px; height: 20px; border-radius: 7px;
  background: var(--grad-icon);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.25em + 4px);
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.colorful .ticks li::before { background: var(--grad-sun); }

.art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(4deg); }
.float-card {
  position: absolute; z-index: 3;
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm);
  animation: bob 5s ease-in-out infinite;
}
.float-card b { font-size: 28px; font-weight: 850; margin-right: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc1 { top: 18%; left: 0; }
.fc2 { bottom: 16%; right: 0; animation-delay: -2.5s; }

.sticker-wall {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: center;
  opacity: 0.95;
}
.sticker-wall img { width: 100%; max-width: 110px; margin: auto; filter: drop-shadow(0 10px 12px rgba(60, 30, 120, 0.25)); animation: wobble 5s ease-in-out infinite; }
.sticker-wall img:nth-child(odd) { animation-delay: -1.3s; }
.sticker-wall img:nth-child(3n) { animation-delay: -2.6s; animation-duration: 6s; }
.sticker-wall img:nth-child(4n) { animation-delay: -3.8s; }
.art .phone.mini { z-index: 2; }

/* Photo stickers */
.photo-band {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.photo-band::before { content: ""; position: absolute; inset: auto -100px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 79, 208, 0.25), transparent 70%); }
.photo-band .why::before { background: var(--grad-pink); }
.photo-band .why span { background-image: var(--grad-pink); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--grad-icon); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.cutout { display: flex; align-items: center; justify-content: center; gap: 18px; position: relative; }
.photo-frame { width: 150px; height: 190px; border-radius: var(--r-md); display: grid; place-items: center; background: linear-gradient(160deg, #9fd7ff, #7aa8ff 50%, #b78cff); box-shadow: var(--shadow-sm); }
.photo-frame img { width: 110px; }
.arrow { font-size: 34px; font-weight: 800; color: var(--pink); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.cut img { width: 150px; filter: drop-shadow(0 0 0 #fff) drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 16px 18px rgba(80, 30, 120, 0.35)); animation: wobble 4s ease-in-out infinite; }

/* Keyboard features */
.head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.head .kicker { justify-content: center; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feat i {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 16px;
  font-style: normal; font-weight: 800; font-size: 20px; color: #fff;
  box-shadow: var(--shadow-sm);
}
.feat h3 .new {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px;
  border-radius: 999px; background: var(--grad-icon); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.feat p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.g1 { background: linear-gradient(135deg, #5b5bf0, #8b3fea); }
.g2 { background: linear-gradient(135deg, #e04fd0, #ff6b8b); }
.g3 { background: linear-gradient(135deg, #22c58b, #19a3c9); }
.g4 { background: linear-gradient(135deg, #ff8a3d, #ffc83d); }
.g5 { background: linear-gradient(135deg, #3b82f6, #5b5bf0); }
.g6 { background: linear-gradient(135deg, #8b3fea, #e04fd0); }
.g7 { background: linear-gradient(135deg, #ffb02e, #ff6b8b); }
.g8 { background: linear-gradient(135deg, #19a3c9, #5b5bf0); }

/* Privacy */
.privacy { padding: 30px 0 110px; }
.privacy-card {
  border-radius: var(--r-xl); padding: 64px 56px;
  background: linear-gradient(135deg, #3b2bd6 0%, #5b5bf0 35%, #8b3fea 70%, #b43fd8 100%);
  background-size: 200% 200%;
  animation: shift 14s ease-in-out infinite alternate;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -36px rgba(91, 63, 234, 0.8);
}
@keyframes shift { to { background-position: 100% 100%; } }
.privacy-card::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -100px; top: -140px; background: radial-gradient(circle, rgba(255, 200, 61, 0.45), transparent 70%); }
.privacy-card h2 { max-width: 18ch; position: relative; z-index: 1; }
.priv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; position: relative; z-index: 1; }
.priv-grid div { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-md); padding: 22px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.priv-grid b { font-size: 19px; }
.priv-grid p { margin: 6px 0 0; font-size: 15px; opacity: 0.88; }

/* Plans */
.plans { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 26px; margin-top: 4px; }
.plan-tag { margin: 0; font-weight: 850; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); display: flex; align-items: center; gap: 10px; }
.plan.pro {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #5b5bf0, #8b3fea, #e04fd0, #ffc83d) border-box;
  box-shadow: var(--shadow);
  position: relative;
}
.plan.pro .plan-tag { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.once { -webkit-text-fill-color: #fff; background: var(--grad-icon); padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: 0.06em; }
.ghost { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 20px 8px 8px; border-radius: var(--r-btn); border: 2px solid var(--indigo); font-weight: 750; }
.ghost .as-icon { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
.ghost:hover { text-decoration: none; background: var(--indigo); color: #fff; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.reasons div { padding: 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--indigo) 9%, var(--card)); font-size: 15px; color: var(--ink-2); }
.reasons b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 20px; }
.th {
  --tbg: #000; --tk: #333; --tr: #0a85ff; --tb: transparent;
  aspect-ratio: 1.25; border-radius: 10px; position: relative; overflow: hidden;
  background: var(--tbg); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.th:hover { transform: scale(1.12) rotate(-3deg); z-index: 1; }
.th::before {
  content: ""; position: absolute; inset: 18% 10% 34% 10%;
  background:
    repeating-linear-gradient(90deg, var(--tk) 0 15%, transparent 15% 20%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26%, transparent 26% 37%);
  mask: repeating-linear-gradient(180deg, #000 0 26%, transparent 26% 37%);
  outline: 1px solid var(--tb);
}
.th::after { content: ""; position: absolute; right: 10%; bottom: 12%; width: 30%; height: 16%; border-radius: 3px; background: var(--tr); }
.th::before { box-shadow: none; }
.t-midnight { --tbg: #000; --tk: #2b2b2e; --tr: #0a85ff; }
.t-graphite { --tbg: #292a2e; --tk: #4d4f54; --tr: #ededf2; }
.t-paper { --tbg: #f5f0e6; --tk: #fffdf7; --tr: #332e29; }
.t-sand { --tbg: #e3d6c2; --tk: #f7f0e3; --tr: #8c613d; }
.t-sage { --tbg: #d6e0d4; --tk: #f7faf5; --tr: #456b4f; }
.t-ocean { --tbg: #0d1a2e; --tk: #21334f; --tr: #2473d9; }
.t-forest { --tbg: #12211a; --tk: #263b30; --tr: #6bb385; }
.t-rose { --tbg: #f5e3e0; --tk: #fffaf7; --tr: #a8525a; }
.t-monol { --tbg: #ffffff; --tk: #e6e6ea; --tr: #121214; }
.t-monod { --tbg: #0a0a0a; --tk: #2a2a2a; --tr: #f5f5f5; }
.t-sunset { --tbg: linear-gradient(#fce3cc, #f5ccc2); --tk: #fffaf5; --tr: #b3573d; }
.t-glacier { --tbg: linear-gradient(#e6f2fa, #cce0f0); --tk: #fcffff; --tr: #2973b3; }
.fonts { margin: 18px 0 0; font-size: 22px; text-align: center; padding: 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--indigo) 9%, var(--card)); }
.fine { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; text-align: center; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 750; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--violet); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--ink-2); }
.more { margin-top: 26px; font-weight: 700; }

/* Closing */
.closing {
  position: relative; overflow: hidden;
  padding: 120px 0 130px; color: #fff;
  background: linear-gradient(135deg, #4a3df0 0%, #8b3fea 50%, #d23fc8 100%);
  background-size: 200% 200%;
  animation: shift 12s ease-in-out infinite alternate;
}
.closing h2 { font-size: clamp(42px, 6.4vw, 76px); }
.closing .big { color: rgba(255, 255, 255, 0.88); margin: 18px auto 34px; max-width: 30ch; }
.app-icon { width: 120px; margin: 0 auto 28px; border-radius: 28px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.5); animation: bob 5s ease-in-out infinite; }
.meta.light { color: rgba(255, 255, 255, 0.8); margin-top: 16px; }
.burst img { position: absolute; width: 90px; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.3)); animation: wobble 6s ease-in-out infinite; }
.burst img:nth-child(1) { left: 6%; top: 14%; }
.burst img:nth-child(2) { right: 8%; top: 12%; width: 76px; animation-delay: -2s; }
.burst img:nth-child(3) { left: 14%; bottom: 12%; width: 104px; animation-delay: -3.4s; }
.burst img:nth-child(4) { right: 14%; bottom: 16%; animation-delay: -1.2s; }
.burst img:nth-child(5) { left: 30%; top: 6%; width: 60px; animation-delay: -4s; }
.burst img:nth-child(6) { right: 30%; bottom: 6%; width: 66px; animation-delay: -2.8s; }

/* Footer */
.site-foot { position: relative; background: var(--bg-2); padding: 64px 0 30px; font-size: 15px; color: var(--ink-2); }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #5b5bf0, #8b3fea, #e04fd0, #ff8a3d, #ffc83d); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 14px 0 20px; max-width: 34ch; }
.foot-brand .brand { font-size: 18px; }
.foot-brand .brand img { border-radius: 11px; }
.foot-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--bg); font-weight: 750; font-size: 15px;
}
.foot-cta:hover { text-decoration: none; opacity: 0.9; }
.foot-cta .as-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: none; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { margin: 4px 0 6px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.foot-col a { color: var(--ink-2); font-weight: 550; }
.foot-col a:hover { color: var(--indigo); text-decoration: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); }

/* Scroll reveal (only when the script runs, so the page still shows without it) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .feat-grid .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.js .feat-grid .reveal:nth-child(3n) { transition-delay: 0.16s; }

/* Tablet */
@media (max-width: 980px) {
  .top nav { display: none; }
  .get { margin-left: auto; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.rev .copy { order: 0; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-points { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }
  .cta-row { justify-content: center; }
  .hero-art { height: 600px; max-width: 560px; margin: 0 auto; width: 100%; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .priv-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .photo-band { grid-template-columns: 1fr; padding: 40px; }
}
/* Phone */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding: 36px 0 30px; }
  .hero-points { grid-template-columns: 1fr; gap: 8px; max-width: 300px; }
  .cta-row { flex-direction: column; gap: 14px; }
  .hero-art { height: 500px; }
  .hero-art .phone { width: 220px; }
  .hero-art .front { top: 30px; }
  .r1 { width: 400px; height: 400px; } .r2 { width: 300px; height: 300px; }
  .clip { font-size: 12px; padding: 8px 11px; }
  .c1 { top: 70px; left: 0; } .c2 { top: 250px; right: 0; } .c3 { bottom: 40px; left: 0; }
  .sticker { width: 70px; } .s2 { width: 62px; } .s3 { width: 76px; bottom: 120px; } .s4 { width: 56px; }
  .marquee { margin-top: 0; }
  .row span { font-size: 15px; padding: 6px 14px; }
  .block { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .art { min-height: 480px; }
  .float-card { font-size: 13px; padding: 10px 14px; } .float-card b { font-size: 22px; }
  .sticker-wall { gap: 6px; }
  .photo-band { padding: 28px 22px; border-radius: 30px; }
  .photo-frame { width: 110px; height: 140px; } .photo-frame img { width: 80px; } .cut img { width: 110px; }
  .feat-grid { grid-template-columns: 1fr; }
  .privacy { padding: 10px 0 72px; }
  .privacy-card { padding: 40px 22px; border-radius: 30px; }
  .priv-grid { grid-template-columns: 1fr; }
  .plan { padding: 26px 20px; border-radius: 26px; }
  .reasons { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(4, 1fr); }
  .fonts { font-size: 17px; }
  .closing { padding: 90px 0 100px; }
  .burst img { width: 56px !important; }
  .top .wrap { gap: 12px; }
  .brand { font-size: 15px; white-space: nowrap; }
  .get { white-space: nowrap; font-size: 14px; padding: 6px 12px 6px 6px; }
  .get .as-icon { width: 22px; height: 22px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
  .site-foot { padding-top: 48px; }
  .cta { min-height: 62px; }
  .as-icon { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .line, .lede, .hero-points, .cta-row { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-art .front { transform: translateX(-62%) rotate(-4deg); }
  .hero-art .back { transform: translateX(2%) rotate(7deg) scale(0.9); }
}
