/* CueBack landing page — Ember brand. Dark by design, like the app. */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --coal: #080503;
  --flame: #ff6a1a;
  --glow: #ffa24a;
  --core: #ffd699;
  --rust: #b8360a;
  --lava: #8e1a08;
  --cream: #fff3e8;
  --ash: #cdb8a9;
  --ink: #1b0900;
  --glass: rgba(26, 11, 4, 0.56);
  --glass-strong: rgba(34, 14, 5, 0.78);
  --hair: rgba(255, 214, 170, 0.14);
  --line: rgba(255, 200, 160, 0.10);
  --radius: 28px;
  --radius-sm: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--coal); }

body {
  margin: 0;
  background-color: var(--coal);
  background-image:
    radial-gradient(1200px 700px at 50% -220px, rgba(184, 54, 10, 0.75), transparent 70%),
    radial-gradient(700px 420px at 50% -120px, rgba(255, 106, 26, 0.35), transparent 70%),
    radial-gradient(600px 900px at -200px 420px, rgba(184, 54, 10, 0.28), transparent 70%),
    radial-gradient(600px 900px at calc(100% + 200px) 640px, rgba(184, 54, 10, 0.24), transparent 70%),
    radial-gradient(500px 900px at -220px 3200px, rgba(184, 54, 10, 0.20), transparent 70%),
    radial-gradient(500px 900px at calc(100% + 220px) 5600px, rgba(184, 54, 10, 0.18), transparent 70%),
    radial-gradient(500px 900px at -220px 8200px, rgba(184, 54, 10, 0.18), transparent 70%);
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain, like the app's backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: var(--core); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--flame); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 78px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.eyebrow { color: var(--glow); font-weight: 500; font-size: 16px; letter-spacing: 0; margin-bottom: 14px; }
.lede { color: var(--ash); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }
.muted { color: var(--ash); }
.hot { color: var(--glow); }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--hair), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--flame); color: var(--ink); box-shadow: 0 10px 40px -10px rgba(255, 106, 26, 0.7); }
.btn-primary:hover { background: #ff7a33; color: var(--ink); }
.btn-glass { background: var(--glass); color: var(--cream); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hair); }
.btn-glass:hover { background: rgba(60, 26, 10, 0.6); color: var(--cream); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(8, 5, 3, 0.82), rgba(8, 5, 3, 0.55));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 200, 160, 0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ash); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav ul a:hover { color: var(--cream); background: rgba(255, 243, 232, 0.06); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 880px) { .nav ul { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 span { display: block; }
.hero h1 .line2 { color: var(--glow); }
.hero .lede { margin-top: 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--cream);
  background: var(--glass); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hair);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 12px var(--flame); }
.hero-visual { position: relative; display: flex; justify-content: flex-end; padding-left: 16%; }
.hero-visual .owl {
  position: absolute; width: 38%; max-width: 190px; left: -6%; top: 6%; z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(255, 106, 26, 0.35));
  animation: hover 6s ease-in-out infinite;
}
.hero-visual .halo {
  position: absolute; width: 90%; aspect-ratio: 1; left: 5%; top: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.35), transparent 65%); filter: blur(10px);
}
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; justify-content: center; padding-left: 0; }
  .hero-visual .owl { left: max(-8px, calc(50% - 215px)); top: -4%; width: 28%; max-width: 130px; }
}

/* ---------- phone frame ---------- */
.phone {
  position: relative; z-index: 1;
  width: 100%; max-width: 320px;
  padding: 9px; border-radius: 44px;
  background: linear-gradient(to bottom, #5c341e, #25140b 40%, #1a0e07);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 200, 160, 0.08);
}
.phone img, .phone picture { border-radius: 36px; width: 100%; overflow: hidden; background: #0c0704; }
.phone.sm { max-width: 260px; border-radius: 38px; padding: 8px; }
.phone.sm img { border-radius: 31px; }

/* ---------- sections ---------- */
section { padding: clamp(52px, 7vw, 92px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lede { margin-top: 18px; }

/* problem / fix */
.pf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pf .glass { padding: clamp(26px, 3.5vw, 44px); }
.pf .label { font-weight: 500; font-size: 15px; color: var(--ash); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.pf .label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ash); }
.pf .fix .label { color: var(--glow); }
.pf .fix .label::before { background: var(--flame); box-shadow: 0 0 12px var(--flame); }
.pf .fix { border-color: rgba(255, 106, 26, 0.35); }
.pf blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; }
.pf ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pf li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; color: var(--ash); }
.pf li b { color: var(--cream); font-weight: 500; }
@media (max-width: 760px) { .pf { grid-template-columns: 1fr; } .pf li { grid-template-columns: 1fr; gap: 2px; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.stat { padding: 26px 28px; }
.stat .n { font-size: clamp(36px, 4vw, 52px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; color: var(--glow); }
.stat p { margin-top: 10px; color: var(--ash); font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* walkthrough */
.steps { display: grid; gap: clamp(20px, 3vw, 28px); }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding: clamp(24px, 3.5vw, 44px);
}
.step:nth-child(even) { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.step:nth-child(even) .step-media { order: -1; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 106, 26, 0.16); color: var(--glow); font-weight: 600; margin-bottom: 20px;
}
.step h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; }
.step p { margin-top: 14px; color: var(--ash); max-width: 52ch; }
.step .note { margin-top: 18px; font-size: 14px; color: var(--ash); opacity: 0.85; }
.step-media { display: flex; justify-content: center; }
.step-media .wide { width: 100%; max-width: 360px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
@media (max-width: 760px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-media { order: 0; }
}

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(20px, 3vw, 28px); }
.more .glass { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.more .phone { margin: 0 auto; }
.more h3 { font-size: 24px; }
.more p { color: var(--ash); font-size: 16px; margin-top: 8px; }
@media (max-width: 960px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .more { grid-template-columns: 1fr; } }

.figure { padding: clamp(10px, 1.5vw, 16px); overflow: hidden; }
.figure img { border-radius: calc(var(--radius) - 10px); width: 100%; }
.figure-cap { margin-top: 14px; color: var(--ash); font-size: 15px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: clamp(16px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.gallery li { margin: 0; }
.gallery .phone { max-width: none; padding: 6px; border-radius: 28px; }
.gallery .phone img { border-radius: 23px; }
.gallery b { display: block; margin-top: 14px; font-weight: 500; font-size: 16px; text-align: center; }
.gallery span { display: block; color: var(--ash); font-size: 14px; text-align: center; line-height: 1.4; margin-top: 2px; }
@media (max-width: 420px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* pro */
.pro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.tier { padding: 30px; }
.tier h3 { font-size: 32px; }
.tier .sub { color: var(--ash); font-size: 15px; font-weight: 500; margin-top: 8px; }
.tier ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.tier li { display: flex; gap: 12px; align-items: baseline; }
.tier li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ash); transform: translateY(-2px); }
.tier.pro { border-color: rgba(255, 106, 26, 0.6); background: rgba(40, 16, 5, 0.66); }
.tier.pro h3 { color: var(--glow); }
.tier.pro li::before { background: var(--flame); }
.plans { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.plans li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 243, 232, 0.04); border: 1px solid var(--line); }
.plans li::before { display: none; }
.plans li.best { background: rgba(255, 106, 26, 0.12); border-color: rgba(255, 106, 26, 0.45); }
.plans .name { font-weight: 500; }
.plans .name small, .plans .price small { display: block; color: var(--ash); font-weight: 400; font-size: 13px; }
.plans .price { text-align: right; font-weight: 500; font-size: 19px; }
.plans li.best .price { color: var(--glow); }
.fine { margin-top: 14px; color: var(--ash); font-size: 13px; }
@media (max-width: 960px) { .pro-grid { grid-template-columns: 1fr 1fr; } .pro-grid .tier:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .pro-grid { grid-template-columns: 1fr; } }

.rc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 20px; padding: clamp(24px, 3.5vw, 44px); }
.rc-row .rc-logo { height: 34px; width: auto; margin-bottom: 22px; }
.flow { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; counter-reset: f; }
.flow li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ash); }
.flow li::before {
  counter-increment: f; content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 106, 26, 0.16); color: var(--glow); font-weight: 600; font-size: 14px;
}
.flow b { color: var(--cream); font-weight: 500; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: rgba(255, 243, 232, 0.07); padding: 1px 6px; border-radius: 6px; color: var(--core); }
@media (max-width: 760px) { .rc-row { grid-template-columns: 1fr; } }

/* privacy */
.priv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.priv .glass { padding: 28px; }
.priv h3 { font-size: 22px; }
.priv p { margin-top: 10px; color: var(--ash); font-size: 16px; }
.priv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.priv-head img { width: 150px; filter: drop-shadow(0 18px 36px rgba(255, 106, 26, 0.3)); }
@media (max-width: 960px) { .priv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .priv { grid-template-columns: 1fr; } .priv-head { grid-template-columns: 1fr; } .priv-head img { width: 110px; } }

/* try */
.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.try .glass { padding: clamp(24px, 3.5vw, 40px); min-width: 0; }
.try ol { margin: 18px 0 0; padding-left: 22px; color: var(--ash); display: grid; gap: 10px; }
.try ol b { color: var(--cream); font-weight: 500; }
pre {
  margin: 18px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto;
  background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); color: var(--cream);
  font: 14px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
pre .c { color: var(--ash); }
.try .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; } }

/* footer */
footer { padding: 56px 0 64px; border-top: 1px solid rgba(255, 200, 160, 0.07); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
footer p { color: var(--ash); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--ash); text-decoration: none; font-size: 15px; }
footer nav a:hover { color: var(--cream); }

/* reveal on scroll (only when motion is allowed and JS ran) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual .owl { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
