/* Nowbell website. Same ink ramp as the app: pure neutral greys, one lit thing. */
:root {
  --ink-0: #000000; --ink-1: #0E0E0E; --ink-2: #1A1A1A; --ink-3: #2A2A2A; --ink-4: #3D3D3D;
  --ink-5: #5C5C5C; --ink-6: #858585; --ink-7: #A8A8A8; --ink-8: #C9C9C9; --ink-9: #E8E8E8; --ink-10: #FFFFFF;

  --bg: var(--ink-0);
  --surface: var(--ink-1);
  --raised: var(--ink-2);
  --text: var(--ink-10);
  --text-2: var(--ink-7);
  --text-3: var(--ink-6);
  --hair: rgba(255, 255, 255, 0.10);
  --hair-strong: rgba(255, 255, 255, 0.16);
  --lit: var(--ink-10);
  --on-lit: var(--ink-0);
  --glass: rgba(255, 255, 255, 0.07);
  --disc: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #F2F2F2 58%, #D6D6D6 100%);
  --disc-shadow: 0 0 26px rgba(255, 255, 255, 0.30);
  --lit-shadow: 0 0 34px rgba(255, 255, 255, 0.18);
  --grain: 0.07;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Nunito", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F4F4;
    --surface: #FFFFFF;
    --raised: #FFFFFF;
    --text: var(--ink-0);
    --text-2: var(--ink-5);
    --text-3: var(--ink-5);
    --hair: rgba(0, 0, 0, 0.10);
    --hair-strong: rgba(0, 0, 0, 0.16);
    --lit: var(--ink-0);
    --on-lit: var(--ink-10);
    --glass: rgba(0, 0, 0, 0.05);
    --disc: radial-gradient(circle at 50% 40%, #2A2A2A 0%, #111111 58%, #000000 100%);
    --disc-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    --lit-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    --grain: 0.05;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--text-2); }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 6px; }

/* Film grain, static. */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50; opacity: var(--grain);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.top .wrap { height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--disc); box-shadow: var(--disc-shadow); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; padding: 12px 0; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav a.hide-s { display: none; } }

/* Labels and type */
.label { font-size: 13px; letter-spacing: 0.14em; color: var(--text-3); margin: 0 0 14px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(44px, 8.4vw, 84px); line-height: 1.0; }
h2 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.05; }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.45; color: var(--text-2); max-width: 34em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 28px;
  font: 600 17px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.btn.lit { background: var(--lit); color: var(--on-lit); box-shadow: var(--lit-shadow); }
.btn.glass { background: var(--glass); border: 1px solid var(--hair-strong); color: var(--text); }
a.btn.glass:hover { color: var(--text); border-color: var(--text-3); }
.btn[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { order: -1; }
}

/* The time disc */
.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.orbit {
  position: relative; width: min(74vw, 340px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
}
.orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hair-strong); }
.breathe { position: absolute; inset: 0; display: grid; place-items: center; animation: breathe 4s ease-in-out infinite alternate; }
.disc {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--disc); box-shadow: var(--disc-shadow);
  transform: scale(var(--s, 0.577)); transition: transform 1s linear;
}
.digits {
  position: relative; z-index: 2;
  font: 600 clamp(64px, 19vw, 88px)/1 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  color: #fff; mix-blend-mode: difference;
}
.stage-caption { font-size: 15px; color: var(--text-2); text-align: center; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.015); } }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.trust { font-size: 14px; color: var(--text-3); }

/* Explainer */
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.explain .body { display: flex; flex-direction: column; gap: 16px; color: var(--text-2); font-size: 18px; }
.explain .pull { color: var(--text); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
@media (max-width: 860px) { .explain { grid-template-columns: 1fr; } }

/* The idea: a drawn desktop, not a screenshot */
.desk {
  margin-top: 44px; border-radius: 28px; overflow: hidden; border: 1px solid var(--hair);
  background: linear-gradient(180deg, #232323 0%, #121212 100%); color: #fff;
  position: relative; aspect-ratio: 16 / 8.2; min-height: 380px;
}
.desk .bar { height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 13px; background: rgba(0, 0, 0, 0.35); color: #C9C9C9; }
.desk .bar b { color: #fff; font-weight: 600; }
.desk .bar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.desk .bar .mini { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 3px 9px; color: #fff; font: 600 13px/1 var(--round); }
.desk .bar .mini i { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: block; }
.desk .doc-win { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); width: min(62%, 620px); height: 80%; border-radius: 14px; background: #1C1C1C; padding: 7% 5% 0; display: flex; flex-direction: column; gap: 14px; }
.desk .doc-win .t { font-weight: 600; font-size: clamp(18px, 2.6vw, 28px); color: #858585; margin-bottom: 6px; }
.desk .doc-win span { height: 9px; border-radius: 5px; background: #2E2E2E; display: block; }
.nudge-panel {
  position: absolute; left: 50%; top: 46px; width: min(88%, 560px);
  transform: translate(-50%, -140%); opacity: 0;
  background: rgba(14, 14, 14, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 60px 120px rgba(255, 255, 255, 0.05);
  padding: 16px 18px 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
}
.in .nudge-panel, .no-js .nudge-panel { animation: drop 0.9s cubic-bezier(0.2, 1.25, 0.35, 1) 0.5s forwards; }
@keyframes drop { to { transform: translate(-50%, 0); opacity: 1; } }
.nudge-panel .d { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, #D6D6D6); box-shadow: 0 0 18px rgba(255, 255, 255, 0.3); display: grid; place-items: center; color: #000; font: 600 19px/1 var(--round); }
.nudge-panel .k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #A8A8A8; }
.nudge-panel .n { font-weight: 600; font-size: 16px; margin-top: 3px; }
.nudge-panel .s { font-size: 13px; color: #C9C9C9; margin-top: 2px; }
.nudge-panel .acts { display: flex; flex-direction: column; gap: 6px; }
.nudge-panel .acts span { border-radius: 16px; padding: 8px 18px; font: 600 13px/1 var(--sans); text-align: center; background: rgba(255, 255, 255, 0.1); }
.nudge-panel .acts span.w { background: #fff; color: #000; }
.nudge-panel .foot { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 9px; font-size: 12px; color: #A8A8A8; }
@media (max-width: 560px) {
  .desk { aspect-ratio: auto; height: 400px; }
  .nudge-panel { grid-template-columns: auto 1fr; }
  .nudge-panel .acts { grid-column: 1 / -1; flex-direction: row; }
  .nudge-panel .acts span { flex: 1; }
}

/* Feature blocks: a label, a line, a small drawing */
.blocks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.block { grid-column: span 2; background: var(--surface); border: 1px solid var(--hair); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.block.wide { grid-column: 1 / -1; }
.block .vis { min-height: 190px; padding: 26px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--hair); }
.block .txt { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.block .txt .label { margin: 0 0 2px; font-size: 12px; }
.block .txt p { color: var(--text-2); font-size: 16px; }
@media (max-width: 960px) { .block { grid-column: span 3; } }
@media (max-width: 640px) { .block { grid-column: 1 / -1; } }

/* drawings */
.phases { display: flex; gap: clamp(14px, 4vw, 56px); align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.phase { display: flex; flex-direction: column; align-items: center; gap: 12px; font: 500 14px/1 var(--round); color: var(--text-2); }
.phase .o { width: clamp(72px, 13vw, 132px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--hair-strong); display: grid; place-items: center; }
.phase .o i { display: block; border-radius: 50%; background: var(--disc); box-shadow: var(--disc-shadow); aspect-ratio: 1; }
.phase .o i.ring { background: none; border: 2.5px solid var(--lit); box-shadow: var(--disc-shadow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { border: 1px solid var(--hair-strong); border-radius: 999px; padding: 8px 14px; font: 600 14px/1 var(--round); color: var(--text-2); }
.chip.on { background: var(--lit); color: var(--on-lit); border-color: transparent; }
.vstack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }
.row { display: flex; align-items: center; gap: 10px; background: var(--raised); border: 1px solid var(--hair); border-radius: 16px; padding: 10px 14px; font-size: 14px; }
.row.dim { opacity: 0.45; }
.row .c { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.row .c.on { background: var(--lit); border-color: var(--lit); box-shadow: var(--disc-shadow); }
.row .r { margin-left: auto; font: 600 12px/1 var(--round); color: var(--text-2); }
.row .r.on { background: var(--lit); color: var(--on-lit); border-radius: 999px; padding: 5px 9px; }
.typed { font: 500 15px/1.5 var(--round); color: var(--text); text-align: center; }
.typed u { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.keys { display: grid; grid-template-columns: auto auto; gap: 10px 14px; align-items: center; font-size: 14px; color: var(--text-2); }
.keys kbd { justify-self: end; }
kbd { font: 600 13px/1 var(--round); border: 1px solid var(--hair-strong); border-bottom-width: 2px; border-radius: 8px; padding: 6px 9px; color: var(--text); white-space: nowrap; background: var(--raised); }
.lock { width: 100%; max-width: 280px; border-radius: 22px; background: var(--raised); border: 1px solid var(--hair); padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.lock .d { width: 46px; height: 46px; border-radius: 50%; background: var(--disc); box-shadow: var(--disc-shadow); }
.lock .t { font: 600 26px/1 var(--round); font-variant-numeric: tabular-nums; }
.lock .s { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.lock .b { grid-column: 1 / -1; display: flex; gap: 8px; }
.lock .b span { flex: 1; text-align: center; border-radius: 14px; padding: 9px; font: 600 13px/1 var(--sans); background: var(--glass); border: 1px solid var(--hair); }
.lock .b span.w { background: var(--lit); color: var(--on-lit); border-color: transparent; }
.picks { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.picks .dots { display: flex; gap: 10px; }
.picks .dots i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--text-3); display: block; }
.picks .dots i.on { background: var(--lit); border: 0; box-shadow: var(--disc-shadow); }
.picks p { font: 600 17px/1.2 var(--sans); }

/* Lit card: the one bright thing */
.lit-card {
  background: var(--lit); color: var(--on-lit); border-radius: 36px;
  padding: clamp(32px, 5vw, 56px); box-shadow: var(--lit-shadow);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.lit-card .label { color: inherit; opacity: 0.62; }
.lit-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.lit-card li { display: flex; gap: 12px; align-items: baseline; }
.lit-card li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-2px); }
@media (max-width: 860px) { .lit-card { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing: one card */
.price-card { max-width: 560px; margin: 40px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 32px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.price-card .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price-card .plan { border: 1px solid var(--hair-strong); border-radius: 18px; padding: 14px; }
.price-card .plan.on { background: var(--lit); color: var(--on-lit); border-color: transparent; }
.price-card .plan strong { display: block; font-size: 16px; }
.price-card .plan span { font-size: 13px; opacity: 0.7; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; color: var(--text-2); }
.price-card li { display: flex; gap: 12px; align-items: baseline; }
.price-card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lit); flex: none; transform: translateY(-2px); }
.price-card .btn { width: 100%; }
@media (max-width: 480px) { .price-card .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--text-2); padding: 0 36px 22px 0; }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 40px 0 56px; color: var(--text-2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
footer .about { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
footer .links a { padding: 10px 0; }
footer .fine { flex-basis: 100%; color: var(--text-3); font-size: 14px; }
@media (max-width: 640px) { footer .links { margin-left: 0; } }

/* Text pages (privacy, support) */
.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 112px); }
.doc h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin-bottom: 10px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 20px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.doc .card { background: var(--surface); border: 1px solid var(--hair); border-radius: 24px; padding: 20px 24px; margin: 24px 0 0; color: var(--text-2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .disc { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Drawn menu bar: keep it on one line on small screens */
.desk .bar span { white-space: nowrap; }
@media (max-width: 560px) { .desk .bar > span:not(.right), .desk .bar .right > span:last-child { display: none; } }
