/* nebba.ai, 7 Nov 2026: one stylesheet for the home, support and contact pages (Tolan's site as the reference for
   structure and feel; Nebba's own look: Nunito as in the app, the relaxed Nebbas, the Keeper's halftone sphere). */
:root {
  --bg: #f5f0e6;
  --band: #ece5d8;
  --card: #faf7f1;
  --ink: #231e1a;
  --muted: #6b6259;
  --line: rgba(35, 30, 26, 0.12);
  --ember: #c0492b;
  --radius: 22px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 'Nunito', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── the creator-link offer bar (kept from the old page; the script fills it) ── */
#refbar { position: sticky; top: 0; z-index: 60; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; }
#refclaim { background: var(--bg); color: var(--ink); text-decoration: none; padding: 7px 16px; border-radius: 999px; white-space: nowrap; flex: none; }

/* ── top bar: the menu, the stores ── */
.top { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; max-width: 1400px; margin: 0 auto; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 6px 0; }
.top .logo { display: none; }
.top .stores { display: flex; gap: 8px; }

/* store buttons: white pills, the store's mark and its name */
.store { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 9px 16px 9px 13px; line-height: 1.1; transition: transform .15s ease, box-shadow .15s ease; }
.store:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(35, 30, 26, .08); }
.store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.store b { display: block; font-size: 17px; font-weight: 800; }
.top .store { padding: 7px 12px 7px 10px; }
.top .store small { font-size: 9.5px; }
.top .store b { font-size: 14px; }

/* the menu: a sheet over the page */
.menu { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: 18px 20px 40px; display: none; flex-direction: column; }
.menu.on { display: flex; }
.menu .close { align-self: flex-start; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); }
.menu nav { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 32px; }
.menu nav a { font-size: 34px; font-weight: 800; text-decoration: none; padding: 6px 4px; letter-spacing: -.01em; }
.menu .stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ── the hero: the wordmark, the Nebbas on it, the Keeper's sphere ── */
.hero { position: relative; overflow: hidden; padding: 30px 0 56px; text-align: center; }
.mark { position: relative; width: min(1060px, 92vw); margin: 18vh auto 0; aspect-ratio: 4160 / 960; }
.mark svg { position: relative; z-index: 2; width: 100%; height: 100%; color: var(--ink); }
.mark .nb { position: absolute; z-index: 3; height: 92%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(35, 30, 26, .14)); }
.mark .nb.behind { z-index: 1; }
/* the Keeper's sphere (the app's own: assets/keeper/sphere.png, rendered big), on the night as the app shows it */
.sphere { position: absolute; z-index: 0; left: -8vw; top: calc(18vh - 20px); width: min(290px, 21vw); aspect-ratio: 1; border-radius: 50%; background: #191411; overflow: hidden; pointer-events: none; box-shadow: 0 20px 50px rgba(35, 30, 26, .18); }
.sphere img { width: 150%; height: 150%; max-width: none; margin: -25%; }
.hero h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 40px auto 0; max-width: 680px; padding: 0 20px; letter-spacing: -.01em; line-height: 1.25; }
.hero .sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 10px auto 0; max-width: 560px; padding: 0 20px; }
.hero .stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0 20px; }
/* the onboarding's three clips under the store buttons (24 Nov 2026) */
.clips { display: flex; justify-content: center; gap: 18px; max-width: 900px; margin: 44px auto 0; padding: 0 20px; }
.clips figure { flex: 0 1 270px; margin: 0; }
.clips video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: var(--band); }
.clips figcaption { margin: 12px auto 0; max-width: 240px; color: var(--muted); font-size: 15.5px; line-height: 1.4; }

/* ── the band: three plain facts ── */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.band .fact { padding: 40px 24px; text-align: center; }
.band .fact + .fact { border-left: 1px solid var(--line); }
.band h3 { margin: 0; font-size: 22px; font-weight: 800; }
.band p { margin: 6px auto 0; color: var(--muted); font-size: 15.5px; max-width: 260px; }

/* ── the big picture: Nebbas on the island ── */
.film { padding: 56px 0 0; }
.film .frame { border-radius: 26px; overflow: hidden; background: #8fb8d0; }
.film picture, .film img { width: 100%; }

/* ── a centred heading and line ── */
.lead { text-align: center; padding: 64px 20px 56px; }
.lead h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.lead p { color: var(--muted); max-width: 620px; margin: 16px auto 0; font-size: 18px; }

/* the Keeper's line under it */
.keeper { display: flex; align-items: center; gap: 18px; max-width: 620px; margin: 30px auto 0; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 16px; }
.keeper .orb { position: relative; width: 74px; height: 74px; flex: none; border-radius: 50%; background: #191411; overflow: hidden; }
.keeper .orb img { position: absolute; left: 50%; top: 50%; width: 111px; height: 111px; max-width: none; transform: translate(-50%, -50%); }
.keeper p { margin: 0; color: var(--ink); font-size: 16px; }
.keeper b { font-weight: 800; }

/* ── the four sides: a 2 x 2 grid with hairlines, each with its screens ── */
.sides { border-top: 1px solid var(--line); }
.sides .grid { display: grid; grid-template-columns: 1fr 1fr; }
.side { padding: 52px 28px 44px; text-align: center; border-bottom: 1px solid var(--line); background: var(--card); }
.side:nth-child(odd) { border-right: 1px solid var(--line); }
.side h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 0; letter-spacing: -.015em; line-height: 1.1; }
.side > p { color: var(--muted); max-width: 400px; margin: 14px auto 0; font-size: 16.5px; }
.car { position: relative; margin: 30px auto 0; max-width: 360px; }
.car .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.car .track::-webkit-scrollbar { display: none; }
.car figure { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; }
.car figure img { width: 190px; height: auto; filter: drop-shadow(0 14px 22px rgba(35, 30, 26, .18)); }
.car figure.wide img { width: 100%; max-width: 330px; border-radius: 18px; }
.car figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.car button { position: absolute; top: 42%; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.car button[disabled] { opacity: .3; cursor: default; }
.car .prev { left: -6px; }
.car .next { right: -6px; }

/* ── plans ── */
.plans { padding: 70px 0 20px; }
.plans .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; }
.plan.pro { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan h3 { margin: 0; font-size: 26px; font-weight: 900; }
.plan .tag { margin: 4px 0 18px; color: var(--muted); font-size: 15px; font-weight: 700; }
.plan.pro .tag { color: rgba(245, 240, 230, .66); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; font-size: 16px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px rgba(192, 73, 43, .16); }
.plans .note { text-align: center; color: var(--muted); font-size: 14px; margin: 22px auto 0; max-width: 560px; }

/* ── the last card: get it ── */
.get { padding: 56px 0 30px; }
.get .card { background: var(--band); border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 30px 34px; overflow: hidden; position: relative; }
.get h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.015em; }
.get p { margin: 6px 0 18px; color: var(--muted); }
.get .stores { display: flex; flex-wrap: wrap; gap: 10px; }
.get .pair { display: flex; align-items: flex-end; height: 150px; }
.get .pair img { height: 150px; width: auto; margin-left: -18px; }

/* ── footer ── */
footer { padding: 40px 0 46px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; font-weight: 700; color: var(--ink); }
footer a:hover { color: var(--ember); }
footer .small { flex-basis: 100%; font-size: 13px; }

/* ── text pages: support, contact ── */
.page { padding: 20px 0 30px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 900; letter-spacing: -.025em; margin: 30px 0 8px; line-height: 1.05; }
.page .intro { font-size: 19px; color: var(--muted); margin: 0 0 30px; }
.page .intro a, .page .qa a { color: var(--ember); font-weight: 700; }
.page .head { display: flex; align-items: flex-end; gap: 4px; margin-top: 24px; }
.page .head img { height: 120px; width: auto; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.qa summary { cursor: pointer; list-style: none; font-size: 19px; font-weight: 800; padding: 18px 36px 18px 0; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 600; color: var(--muted); }
.qa details[open] summary::after { content: '–'; }
.qa details p { margin: 0 0 16px; color: #3b342e; }
.page h2 { font-size: 26px; font-weight: 900; margin: 46px 0 10px; letter-spacing: -.01em; }
.page .fine { color: var(--muted); font-size: 15px; }
.form { display: grid; gap: 14px; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form label { font-size: 14px; font-weight: 800; display: grid; gap: 6px; }
.form input, .form textarea { font: 500 17px 'Nunito', system-ui, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form button { justify-self: start; font: 800 16px 'Nunito', system-ui, sans-serif; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer; }
.form button[disabled] { opacity: .5; }
#cf-note { font-size: 15px; color: var(--ember); min-height: 1em; margin: 0; }

/* ── phones ── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .stores { display: none; }
  .top .logo { display: block; height: 22px; color: var(--ink); }
  .top .logo svg { height: 22px; width: auto; }
  .mark { width: 94vw; margin-top: 70px; }
  .sphere { left: -25vw; width: 27vw; top: 52px; }
  .hero { padding-bottom: 44px; }
  .hero h1 { margin-top: 30px; }
  .clips { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-top: 34px; padding: 0 16px 4px; scrollbar-width: none; }
  .clips::-webkit-scrollbar { display: none; }
  .clips figure { flex: 0 0 62vw; scroll-snap-align: center; }
  .band .wrap { grid-template-columns: 1fr; padding: 0; }
  .band .fact { padding: 28px 24px; }
  .band .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .film { padding-top: 40px; }
  .film .frame { border-radius: 20px; }
  .lead { padding: 52px 20px 44px; }
  .lead p { font-size: 16.5px; }
  .sides .grid { grid-template-columns: 1fr; }
  .side:nth-child(odd) { border-right: 0; }
  .side { padding: 44px 20px 38px; }
  .plans .cards { grid-template-columns: 1fr; }
  .get .card { grid-template-columns: 1fr; padding: 26px 22px 0; text-align: left; }
  .get .pair { justify-content: center; height: 130px; }
  .get .pair img { height: 130px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
