/* The home page and the waitlist pages. Jamun Zari in the dark, with one ivory "paper" section for the product
   itself. Marcellus for headlines, Figtree for everything else (site.css loads both). The layout is fluid: no fixed
   widths wider than the screen, every grid collapses on a phone, and nothing decorative sits outside its section.
   The interactive demo's styles are at the end and unchanged from the first version. */

body.landing {
  --bg: #17091b;
  --bg-2: #1f1024;
  --fg: #f7eef5;
  --muted: #c1abc3;
  --line: rgba(255, 247, 234, 0.14);
  --link: #e7b3df;
  --surface: rgba(255, 247, 234, 0.05);
  --jamun: #5e1a63;
  --jamun-2: #8a3a92;
  --ivory: #fff7ea;
  --paper: #f8f1e6;
  --ink: #26112c;
  --ink-muted: #6b5470;
  --ink-line: rgba(38, 17, 44, 0.14);
  --gold: #d9a441;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html, body.landing { overflow-x: clip; }
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.landing main { max-width: none; padding: 0; }
body.landing a { color: var(--link); text-underline-offset: 3px; }
body.landing img, body.landing video { max-width: 100%; height: auto; }
:where(body.landing) h1, :where(body.landing) h2, :where(body.landing) h3, :where(body.landing) .num {
  font-family: "Marcellus", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; text-wrap: balance;
}
:where(body.landing) h1 { font-size: clamp(2.5rem, 1.3rem + 5.2vw, 5.1rem); line-height: 1.02; margin: 0 0 22px; }
:where(body.landing) h2 { font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3.1rem); line-height: 1.1; margin: 0 0 18px; max-width: 18em; }
:where(body.landing) h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 8px; }
:where(body.landing) p { margin: 0 0 1em; }
:where(body.landing) p:last-child { margin-bottom: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.paper { background: var(--paper); color: var(--ink); border: 0; }
.section.paper + .section { border: 0; }
.paper .muted, .paper .intro { color: var(--ink-muted); }
.paper a { color: var(--jamun); }

.label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 700 0.78rem/1 "Figtree", system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.intro { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); color: var(--muted); max-width: 36em; margin-bottom: 2.2em; }
.lede { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 32em; margin: 0 0 30px; }
.center { text-align: center; }
.center .label { justify-content: center; }
.center .label::before { display: none; }
.center h2, .center .intro { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; z-index: 20; }
.skip:focus { left: 16px; top: 16px; background: var(--ivory); color: var(--ink); padding: 10px 16px; border-radius: 10px; }

/* Buttons. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 700 1rem/1.2 "Figtree", system-ui, sans-serif; transition: transform 0.3s var(--spring), background 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
/* `body.landing a` colours links; these win over it, so a button's text is never the link colour. */
body.landing .btn-primary { background: var(--ivory); color: var(--ink); }
body.landing .btn-primary:hover { background: #ffffff; }
body.landing .btn-ghost { background: transparent; color: var(--fg); border-color: rgba(255, 247, 234, 0.35); }
body.landing .btn-ghost:hover { border-color: var(--ivory); }
body.landing .btn-jamun { background: var(--jamun); color: var(--ivory); }
body.landing .btn-jamun:hover { background: var(--jamun-2); }
.btn-big { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
body.landing .paper .btn-ghost { color: var(--ink); border-color: var(--ink-line); }

/* The top bar. */

.topbar { position: fixed; inset: 0 0 auto; z-index: 10; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.topbar.scrolled, .topbar.open { background: rgba(23, 9, 27, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ivory); text-decoration: none; font: 400 1.4rem "Marcellus", Georgia, serif; }
.topbar .brand img { width: 36px; height: 36px; border-radius: 11px; }
.topbar nav { margin-left: auto; display: flex; gap: 2px; }
.topbar nav a { padding: 8px 12px; border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.topbar nav a:hover { background: var(--surface); }
.topbar .cta { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--fg); cursor: pointer; border-radius: 12px; }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 0 auto; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.menu-btn span + span { margin-top: 5px; }
.topbar.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.open .menu-btn span:nth-child(2) { opacity: 0; }
.topbar.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .topbar .wrap { flex-wrap: wrap; min-height: 64px; }
  .menu-btn { display: block; }
  .topbar .cta { display: none; }
  .topbar nav { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding: 6px 0 16px; margin: 0; }
  .topbar nav a { font-size: 1.1rem; padding: 12px 10px; }
  .topbar.open nav { display: flex; }
  .topbar.open .cta { display: inline-flex; margin: 0 10px 18px; }
}

/* The hero. */

.hero { position: relative; text-align: left; padding: calc(68px + clamp(40px, 8vw, 96px)) 0 clamp(48px, 7vw, 88px); background: radial-gradient(60% 50% at 80% 30%, rgba(94, 26, 99, 0.45), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .label { margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.stage { display: grid; justify-items: center; gap: 16px; }
.device {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.4; border-radius: 40px; padding: 10px; background: #0d070f;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px rgba(255, 247, 234, 0.12);
}
.device video { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 32px; background: #1d1021; }
.device::after { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 7px; border-radius: 7px; background: #0a060b; transform: translateX(-50%); }
.stage figcaption { color: var(--muted); font-size: 0.92rem; text-align: center; max-width: 30ch; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .label { margin-bottom: 18px; }
  .stage { padding-top: 12px; }
}

/* The apps line. */

.apps { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 0.98rem; }
.apps p { margin: 0; line-height: 1.8; }
.apps b { color: var(--fg); font-weight: 600; }

/* 01: the figures. */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat .num { display: block; font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1.05; color: var(--ivory); margin: 0 0 10px; }
.stat p { color: var(--muted); font-size: 0.98rem; }
.stat .src { font-size: 0.82rem; color: var(--muted); opacity: 0.85; margin-top: 10px; }
.also { margin-top: 32px; color: var(--muted); font-size: 0.95rem; max-width: 60em; }

@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* 02: the demo's frame. The phone itself is styled at the end of this file. */

.demo { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.demo-copy .intro { margin-bottom: 24px; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.demo-tabs button {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 247, 234, 0.3); background: transparent; color: var(--fg);
  font: 600 0.95rem "Figtree", system-ui, sans-serif; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.demo-tabs button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.demo-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.demo-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; color: var(--muted); border-top: 1px solid var(--line); transition: color 0.3s; }
.demo-steps li .n { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 400 0.95rem "Marcellus", Georgia, serif; }
.demo-steps li.active { color: var(--fg); }
.demo-steps li.active .n { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.demo-steps li.done { color: var(--fg); }
.demo-steps li.done .n { background: var(--jamun); color: var(--ivory); border-color: var(--jamun); }

@media (max-width: 960px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .mock-wrap { order: 1; }
  .demo-steps { display: none; }
}

/* 03: the product, on paper. */

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(236px, 64vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 14px; margin: 0 0 clamp(36px, 5vw, 64px); scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--ink-line); box-shadow: 0 16px 40px rgba(38, 17, 44, 0.16); }
.shots figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.4; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; list-style: none; margin: 0; padding: 0; }
.spec li { padding: 24px 0; border-top: 1px solid var(--ink-line); }
.spec h3 { display: grid; grid-template-columns: 2.4em 1fr; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.spec h3 i { font: 700 0.78rem "Figtree", system-ui, sans-serif; letter-spacing: 0.12em; color: var(--gold); font-style: normal; }
.spec p { color: var(--ink-muted); padding-left: calc(2.4em + 10px); }
.spec ul { margin: 10px 0 0; padding-left: calc(2.4em + 10px); list-style: none; color: var(--ink); }
.spec ul li { padding: 4px 0 4px 16px; border: 0; position: relative; font-size: 0.98rem; }
.spec ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

@media (max-width: 760px) {
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec h3 { grid-template-columns: 2em 1fr; }
  .spec p, .spec ul { padding-left: 0; }
}

/* 04: three steps. */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 400 2rem/1 "Marcellus", Georgia, serif; color: var(--gold); margin: 0 0 14px; }
.steps p { color: var(--muted); }

@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* 05: for someone you love. */

.family { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.quote { font: 400 clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem)/1.35 "Marcellus", Georgia, serif; color: var(--ivory); margin: 0 0 18px; }
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.asks li { justify-self: start; max-width: 90%; padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line); font-size: 1.05rem; }
.asks li:nth-child(2) { justify-self: end; border-radius: 20px 20px 6px 20px; background: rgba(94, 26, 99, 0.45); }
.asks li.answer-line { justify-self: start; background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.asks li.answer-line b { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jamun); margin-bottom: 4px; }

@media (max-width: 900px) { .family { grid-template-columns: minmax(0, 1fr); } }

/* 06: privacy. */

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; list-style: none; margin: 0; padding: 0; }
.promises li { border-top: 1px solid var(--line); padding: 22px 0; }
.promises p { color: var(--muted); }

@media (max-width: 760px) { .promises { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* 07: prices. */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan h3 { font-size: 1.6rem; margin: 0; }
.plan .price { color: var(--muted); margin: 0 0 8px; }
.plan .ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.plan .ticks li { display: flex; gap: 10px; align-items: flex-start; }
.plan .ticks li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 0.6em; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-premium { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.plan-premium .price { color: var(--ink-muted); }
.plan-premium .badge-top { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--jamun); color: var(--ivory); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
body.landing .plan-premium .btn-ghost { color: var(--ink); border-color: var(--ink-line); }
.testing-note { color: var(--muted); }

@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Join. */

.join { background: var(--bg-2); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.points li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 0.6em; }
.join-form { color-scheme: light; background: var(--ivory); color: var(--ink); border-radius: 28px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.join-form label, .join-form legend { font-weight: 600; }
.field-row { display: grid; gap: 8px; }
.join-form input[type="email"], .join-form select {
  box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--ink-line); background: #ffffff; color: var(--ink);
  font: 400 1.0625rem "Figtree", system-ui, sans-serif;
}
.join-form input[type="email"]:focus, .join-form select:focus { outline: 2px solid var(--jamun); outline-offset: 1px; border-color: var(--jamun); }
.join-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink-line); background: #ffffff; cursor: pointer; }
.choice input:checked + label { background: var(--jamun); color: var(--ivory); border-color: var(--jamun); }
.choice input:focus-visible + label { outline: 2px solid var(--jamun); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--jamun); flex: none; }
.consent label { font-weight: 400; color: var(--ink-muted); }
body.landing .join-form .btn-primary { background: var(--jamun); color: var(--ivory); }
body.landing .join-form .btn-primary:hover { background: var(--jamun-2); }
.join-form .note { color: var(--ink-muted); font-size: 0.88rem; margin: 0; }
.join-form .note a { color: var(--jamun); }

@media (max-width: 900px) { .join-grid { grid-template-columns: minmax(0, 1fr); } }

/* Questions. */

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font: inherit; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border: 0; background: transparent;
  color: var(--fg); text-align: left; cursor: pointer; font: 600 1.1rem/1.35 "Figtree", system-ui, sans-serif;
}
.faq-q .plus { position: relative; flex: none; width: 22px; height: 22px; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 14px; height: 2px; background: var(--gold); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 0 20px; margin: 0; max-width: 60ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* The last word, and the footer. */

.closing { text-align: center; }
.closing h2 { margin-inline: auto; }
.closing .halo img { width: 96px; height: 96px; border-radius: 28px; margin: 0 auto 26px; display: block; box-shadow: 0 20px 50px rgba(94, 26, 99, 0.5); }
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.92rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font: 400 1.2rem "Marcellus", Georgia, serif; }
.footer .brand img { width: 30px; height: 30px; border-radius: 9px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer nav a { color: var(--muted); }
.footer p { margin: 0; margin-left: auto; }

@media (max-width: 760px) { .footer p { margin-left: 0; } }

/* The waitlist's result pages. */

.result { min-height: 100vh; display: grid; place-items: center; padding: 90px 0 60px; }
.result .box { width: min(560px, 100% - 32px); text-align: center; }
.result .halo img { width: 96px; height: 96px; border-radius: 28px; margin: 0 auto 22px; display: block; box-shadow: 0 20px 50px rgba(94, 26, 99, 0.5); }
.result h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); margin-bottom: 10px; }
.result .meta { color: var(--muted); font-size: 1.1rem; }
.result .card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 26px 0; }
.result .card h2 { font-size: 1.3rem; margin: 0 0 8px; }
.result .card h2 + p + h2, .result .card ul + h2 { margin-top: 18px; }
.result .card ul { margin: 0; padding-left: 1.3em; }
.result .card li { margin: 0 0 8px; }
.result .note { color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; }

/* Reveals, as things scroll into view; everything stays visible without script or with motion off. */

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* The demo phone: a mock you can tap. Unchanged from the first version of this page. */

.mock-wrap { position: relative; display: grid; place-items: center; }
.mock {
  position: relative; width: min(340px, 100%); aspect-ratio: 1 / 2; border-radius: 46px; padding: 10px; background: #120a14;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 247, 234, 0.1);
}
.mock-screen { position: absolute; inset: 10px; border-radius: 36px; overflow: hidden; background: #f2f2f2; }
.mock-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.mock-screen img.show { opacity: 1; }
.mock .notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 8px; border-radius: 8px; background: #0a060b; transform: translateX(-50%); z-index: 3; }

@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }

.ripple { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gold); transform: translate(-50%, -50%) scale(0.5); opacity: 0; pointer-events: none; z-index: 5; }
.ripple.go { animation: ripple 0.7s var(--ease) forwards; }

@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }

.panel {
  position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 6; border-radius: 22px; background: #ffffff; color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); padding: 16px 16px 14px; font-size: 0.86rem; line-height: 1.45;
  transform: translateY(115%); transition: transform 0.6s var(--spring);
  font-family: "Figtree", system-ui, sans-serif;
}
.panel.up { transform: none; }
.panel-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.panel-head img { width: 28px; height: 28px; border-radius: 8px; }
.panel-head b { font: 400 1.1rem "Marcellus", Georgia, serif; }
.panel-head .x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.panel-view { display: none; }
.panel-view.show { display: block; }
.scan { display: flex; align-items: center; gap: 8px; color: #6b5470; margin: 6px 0; }
.scan .dots i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); animation: dot 1s infinite; }
.scan .dots i:nth-child(2) { animation-delay: 0.2s; }
.scan .dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.answer > * { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 140ms); }
.answer.in > * { opacity: 1; transform: none; }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #b3261e; color: #fff; font-weight: 700; margin: 0 0 10px; }
.verdict svg { width: 16px; height: 16px; }
.panel p { margin: 0 0 8px; }
.panel .muted { color: #6b5470; font-size: 0.8rem; }
.reply { display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid #e3d3e1; background: #f5ecf2; color: var(--ink); cursor: pointer; font: inherit; transition: background 0.3s, transform 0.3s; }
.reply:hover { background: #ebd3ea; transform: translateX(3px); }
.reply b { display: block; font-size: 0.78rem; color: var(--jamun); margin-bottom: 2px; }
.reply.copied { background: var(--jamun); color: var(--ivory); border-color: var(--jamun); }
.reply.copied b { color: #ead1e8; }
.field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 2px solid var(--jamun); border-radius: 12px; margin: 0 0 10px; font-weight: 600; }
.field .caret { width: 2px; height: 18px; background: var(--jamun); animation: caret 0.9s steps(2) infinite; }

@keyframes caret { 50% { opacity: 0; } }

.step-tag { display: inline-block; margin: 0 0 6px; color: #8a6a2b; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.panel-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #6b5470; font-size: 0.78rem; }
.toast {
  position: absolute; left: 50%; bottom: 16px; z-index: 7; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 999px;
  background: var(--ivory); color: var(--ink); font-weight: 700; font-size: 0.85rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s, transform 0.4s var(--spring); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-hint { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* The demo's screens, drawn in HTML so the demo speaks English: a chat, a text message, a settings list and its
   Display page. They look like other apps (system face, flat greys), not like Wazirly. */

.scr { position: absolute; inset: 0; background: #f2f2f2; color: #1b1b1b; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.45s var(--ease), visibility 0s 0.45s, background 0.5s, color 0.5s; }
.scr.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s var(--ease), visibility 0s 0s, background 0.5s, color 0.5s; }
.sb { display: flex; justify-content: space-between; padding: 10px 18px 0; font-size: 11px; color: #333; }
.sb i { display: inline-block; width: 34px; height: 8px; border-radius: 2px; background: #333; opacity: 0.8; margin-top: 3px; }
.tb { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-top: 6px; background: #e9e9e9; font-weight: 600; }
.tb .back { width: 16px; height: 16px; border-left: 2px solid #333; border-bottom: 2px solid #333; transform: rotate(45deg); margin: 0 4px 0 2px; }
.tb .avatar { width: 30px; height: 30px; border-radius: 50%; background: #cfcfcf; }
.tb small { display: block; font-weight: 400; color: #666; font-size: 10.5px; }
.msgs { padding: 14px 12px; display: grid; gap: 8px; }
.day { justify-self: center; font-size: 10px; color: #777; background: #e2e2e2; padding: 2px 8px; border-radius: 8px; }
.msg { max-width: 80%; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); font-size: 12.5px; }
.msg.out { justify-self: end; background: #fff8e1; }
.msg time { display: block; text-align: right; font-size: 9.5px; color: #888; margin-top: 2px; }
.inbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 12px 16px; background: #f2f2f2; }
.inbar span { flex: 1; height: 34px; border-radius: 17px; background: #fff; border: 1px solid #ddd; padding: 0 12px; line-height: 34px; color: #999; font-size: 12px; }
.inbar i { width: 34px; height: 34px; border-radius: 50%; background: #e2e2e2; }
.tag { position: absolute; right: 22%; top: 53.6%; transform: translateY(-50%); max-width: 46%; padding: 8px 10px; border-radius: 10px; background: #fff8e1; border: 1px solid #efdfa6; font-size: 11.5px; font-weight: 600; color: #333; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); transition: opacity 0.3s; }
.tag.hide { opacity: 0; }
.list { background: #fff; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #ececec; background: transparent; color: inherit; font: inherit; text-align: left; position: relative; }
.row b { display: block; font-size: 13px; font-weight: 600; }
.row small { display: block; color: #777; font-size: 11px; }
button.row { cursor: pointer; }
button.row:disabled { cursor: default; }
.row.hl::before { content: ""; position: absolute; inset: 4px 8px; border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.25), 0 0 22px rgba(217, 164, 65, 0.55); animation: pop 0.6s var(--spring) both, glowpulse 1.8s ease-in-out 0.6s infinite; pointer-events: none; }
.sw { width: 36px; height: 20px; flex: none; border-radius: 10px; background: #c2c2c2; position: relative; transition: background 0.3s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--spring); }
.scr.dark { background: #121212; color: #f1f1f1; }
.scr.dark .sb { color: #eee; }
.scr.dark .sb i { background: #eee; }
.scr.dark .tb { background: #1e1e1e; }
.scr.dark .tb .back { border-color: #eee; }
.scr.dark .list { background: #181818; }
.scr.dark .row { border-color: #2a2a2a; }
.scr.dark .row small { color: #aaa; }
.scr.dark .sw { background: var(--jamun-2); }
.scr.dark .sw::after { transform: translateX(16px); }

@keyframes pop { from { transform: scale(1.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.25), 0 0 22px rgba(217, 164, 65, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(217, 164, 65, 0.12), 0 0 34px rgba(217, 164, 65, 0.85); } }

.bubble-btn { position: absolute; left: 90.3%; top: 53.6%; width: 13.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; padding: 2px; border: 0; background: var(--gold); cursor: pointer; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); z-index: 4; transition: transform 0.3s var(--spring), opacity 0.3s; }
.bubble-btn img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.bubble-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.bubble-btn:focus-visible { outline: 3px solid var(--jamun); outline-offset: 3px; }
.bubble-btn .pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: pulse 2s ease-out infinite; pointer-events: none; }
.bubble-btn .pulse + .pulse { animation-delay: 1s; }
.bubble-btn.quiet .pulse { animation: none; }
.bubble-btn.busy { opacity: 0.35; pointer-events: none; }
.panel .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 2px; }
.panel .actions span { padding: 8px 10px; border-radius: 10px; background: #f5ecf2; font-weight: 600; font-size: 0.78rem; color: var(--jamun); transition: background 0.3s, color 0.3s; }
.panel .actions span.on { background: var(--jamun); color: var(--ivory); }
.panel .lead { grid-column: 1 / -1; text-align: center; background: var(--jamun); color: var(--ivory); }
.go { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--jamun); color: var(--ivory); font: 700 0.85rem "Figtree", system-ui, sans-serif; cursor: pointer; }
.go:disabled { opacity: 0.5; cursor: default; }
