/* PaNebula website. One dark look, taken from the app: deep space, soft glow, Nebu.
   Layout: a single centred column (max 1120px) with full-width bands; features as a 3-up grid of screenshots. */
:root {
  --space: #0b0a1f;        /* the page */
  --space-2: #131033;      /* bands and cards */
  --line: rgba(196, 181, 253, 0.16);
  --ink: #eeeaff;          /* text */
  --dim: #aaa3d2;          /* quiet text */
  --glow: #c4b5fd;         /* lavender glow */
  --sky: #7dd3fc;
  --peach: #ffb38a;
  --gold: #ffd27a;
  --pink: #ff8fb8;
  --nebula: linear-gradient(100deg, var(--gold), var(--pink) 55%, var(--glow));
  --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--space); color: var(--ink);
  font: 17px/1.6 var(--body);
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(125, 211, 252, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 8%, rgba(255, 143, 184, 0.10), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.neb { background: var(--nebula); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 0.78rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); }
.lead { font-size: 1.15rem; color: var(--dim); max-width: 60ch; }

/* ---- header ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11, 10, 31, 0.94); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.25rem var(--display); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { display: inline; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font: 600 1rem var(--display); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: rgba(196, 181, 253, 0.06); cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { color: var(--ink); background: rgba(196, 181, 253, 0.14); border-color: rgba(196, 181, 253, 0.4); transform: translateY(-1px); }
.btn.primary { background: var(--nebula); color: #1b1030; border: 0; box-shadow: 0 6px 30px rgba(255, 143, 184, 0.28); }
.btn.primary:hover { color: #1b1030; box-shadow: 0 8px 40px rgba(255, 143, 184, 0.42); }
.btn.sm { padding: 8px 16px; font-size: 0.92rem; }
.btn s { opacity: 0.6; font-weight: 400; }
.tag { font: 600 0.72rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 210, 122, 0.16); color: var(--gold); }

/* ---- hero ---- */
.hero { padding-block: 72px 40px; }
.hero .wrap { display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.cta-note { font-size: 0.9rem; color: var(--dim); }
.screen { position: relative; width: 100%; margin-top: 18px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 80px rgba(196, 181, 253, 0.12); aspect-ratio: 16 / 9; max-width: 100%; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen video { display: block; width: 100%; height: 100%; background: #000; }
.play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; background: radial-gradient(ellipse at center, rgba(11, 10, 31, 0.15), rgba(11, 10, 31, 0.55)); border: 0; color: var(--ink); cursor: pointer; font: 600 1.05rem var(--display); width: 100%; }
.play i { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4); transition: transform .25s, background .25s; }
.play i::before { content: ''; margin-left: 6px; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.play:hover i { transform: scale(1.08); background: rgba(255, 255, 255, 0.22); }
.play span { padding: 6px 14px; border-radius: 999px; background: rgba(11, 10, 31, 0.6); }

/* ---- sections ---- */
section { padding-block: 72px; }
.head { display: grid; gap: 14px; margin-bottom: 40px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feats { grid-template-columns: minmax(0, 1fr); } }
.feat { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s, transform .25s; }
.feat:hover { border-color: rgba(196, 181, 253, 0.45); transform: translateY(-3px); }
.feat img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; border-bottom: 1px solid var(--line); }
.feat div { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.feat p { color: var(--dim); font-size: 0.98rem; }
.keys { font: 600 0.8rem var(--display); color: var(--gold); }
kbd { font: 600 0.78em var(--display); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--ink); }

.more { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 32px; padding: 0; list-style: none; }
.more li { padding-left: 22px; position: relative; color: var(--dim); }
.more li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.more b { color: var(--ink); font-weight: 700; }

/* ---- meet Nebu ---- */
.meet { background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.06) 30%, rgba(196, 181, 253, 0.06) 70%, transparent); }
.meet .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
@media (max-width: 820px) { .meet .wrap { grid-template-columns: minmax(0, 1fr); } }
.stage { display: grid; justify-items: center; gap: 22px; }
.big-nebu { width: min(300px, 70vw); aspect-ratio: 1; animation: bob 4.5s ease-in-out infinite; }
.big-nebu img { width: 100%; height: 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.moods button { font: 500 0.88rem var(--display); color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.moods button:hover, .moods button.on { color: var(--ink); border-color: var(--glow); background: rgba(196, 181, 253, 0.12); }
.meet-text { display: grid; gap: 18px; }
.meet-text p { color: var(--dim); }
.meet-text p b { color: var(--ink); }

/* ---- about ---- */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: minmax(0, 1fr); } }
.about-story { display: grid; gap: 16px; }
.about-story p { color: var(--dim); max-width: 62ch; }
.about-story b { color: var(--ink); }
.about .sign { color: var(--ink); font-family: var(--display); font-weight: 500; }
.about-ai { display: grid; gap: 12px; padding: 26px; border-radius: var(--r); background: var(--space-2); border: 1px solid var(--line); margin-top: 34px; }
.about-ai p { color: var(--dim); font-size: 0.98rem; }

/* ---- roadmap ---- */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .lanes { grid-template-columns: minmax(0, 1fr); } }
.lane { background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 24px; display: grid; gap: 14px; align-content: start; }
.lane h3 { display: flex; align-items: center; gap: 10px; }
.lane h3 i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lane.now h3 i { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.lane.soon h3 i { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.lane.later h3 i { background: transparent; border: 2px solid var(--glow); }
.lane.now { border-color: rgba(255, 210, 122, 0.35); }
.lane ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lane li { color: var(--dim); font-size: 0.98rem; }
.lane li b { color: var(--ink); }

/* ---- privacy band ---- */
.promise .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.promise h2 { grid-column: 1 / -1; }
.pr { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.pr p { color: var(--dim); font-size: 0.98rem; }

/* ---- pricing ---- */
.price-card { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 18px; justify-items: center; padding: 40px 28px; border-radius: 22px; background: var(--space-2); border: 1px solid rgba(255, 210, 122, 0.35); box-shadow: 0 0 80px rgba(255, 143, 184, 0.12); }
.amount { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); }
.amount b { font-size: 4rem; font-weight: 700; line-height: 1; }
.amount s { font-size: 1.6rem; color: var(--dim); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--dim); }
.small { font-size: 0.88rem; color: var(--dim); }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--space-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font: 600 1.05rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--glow); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 16px; color: var(--dim); }

/* ---- support + footer ---- */
.support { text-align: center; }
.support .wrap { display: grid; gap: 16px; justify-items: center; }
.mail { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font: 600 1.3rem var(--display); }
.mail code { font: inherit; user-select: all; }
footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--dim); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--dim); }

/* ---- Nebu, the guide that floats over the page ---- */
#nebu { position: fixed; left: 0; top: 0; width: 88px; height: 88px; z-index: 30; pointer-events: none; contain: layout style; transition: transform .7s cubic-bezier(.34, 1.36, .5, 1), opacity .4s; will-change: transform; }
#nebu img { width: 100%; height: 100%; animation: bob 3.8s ease-in-out infinite; }
#nebu .say { position: absolute; bottom: 92%; left: 50%; translate: -50% 0; white-space: nowrap; font: 600 0.9rem var(--display); color: #1b1030; background: #fff; padding: 6px 12px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .25s, transform .25s; }
#nebu .say::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
#nebu.talk .say { opacity: 1; transform: none; }
#nebu.rest { opacity: 0.9; }
@media (hover: none), (max-width: 760px) { #nebu { display: none; } }
@media (prefers-reduced-motion: reduce) { #nebu, #nebu img, .big-nebu { transition: none; animation: none; } }

/* ---- pictures, full size ---- */
.feat img { cursor: zoom-in; }
#zoom { width: min(1400px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--space-2); color: var(--ink); overflow: hidden; }
#zoom::backdrop { background: rgba(5, 4, 15, 0.86); }
#zoom img { width: 100%; max-height: calc(100vh - 100px); object-fit: contain; background: #000; }
#zoom .zoom-cap { padding: 12px 18px; font: 500 0.95rem var(--display); color: var(--dim); }
.zoom-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(11, 10, 31, 0.7); color: #fff; font: 400 1.5rem/1 var(--display); cursor: pointer; }
.zoom-x:hover { background: rgba(11, 10, 31, 0.95); }

/* ---- before checkout ---- */
#phone-dlg { width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(196, 181, 253, 0.4); border-radius: 18px; background: var(--space-2); color: var(--ink); overflow: auto; text-align: center; }
.phone-logo { width: 64px; height: 64px; margin: 4px auto 0; border-radius: 15px; }
#phone-dlg h2 { font-size: 1.5rem; }
.phone-acts { display: grid; gap: 10px; margin-top: 6px; }
.phone-acts .btn { justify-content: center; width: 100%; }
.phone-anyway { color: var(--dim); font-size: 0.92rem; padding: 6px; }
.phone-note { border: 1px solid rgba(255, 210, 122, 0.35); background: rgba(255, 210, 122, 0.07); border-radius: 12px; padding: 12px 14px; }
#buy-dlg { width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(255, 210, 122, 0.35); border-radius: 18px; background: var(--space-2); color: var(--ink); overflow: auto; }
#buy-dlg::backdrop, #phone-dlg::backdrop { background: rgba(5, 4, 15, 0.86); }
.buy-in { display: grid; gap: 14px; padding: 30px 28px 24px; }
.buy-in h2 { font-size: 1.7rem; }
.buy-in p { color: var(--dim); }
.buy-in p b { color: var(--ink); }
.buy-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.shot { margin: 4px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; cursor: zoom-in; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--dim); }
.steps b { color: var(--ink); }
.faq details p + p, .faq details p + ol, .faq details ol + p, .faq details figure + p { margin-top: -6px; }
.faq details ol, .faq details ul, .faq details figure { margin-bottom: 16px; }
.faq details p + ul { margin-top: -6px; }
.faq code { font-size: 0.86em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; color: var(--ink); }

/* ---- toast ---- */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 40; background: #fff; color: #1b1030; font: 600 0.95rem var(--display); padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: none; }

/* ---- legal pages ---- */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 760px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 22px; }
.doc p, .doc li { color: #d6d0f3; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .meta { color: var(--dim); font-size: 0.92rem; }
.doc .box { border: 1px solid var(--line); background: var(--space-2); border-radius: 12px; padding: 16px 20px; }
