/* Brownie Points website — "Night Control", dark by default.
   Source designs: _bmad-output/planning-artifacts/ux-designs/fresh-look-2026-10-02/
   handback/design-files/Web-*.dc.html. Fonts are self-hosted (no Google Fonts call),
   so the site sets no cookies and sends nothing to third parties. */

@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #000000;
  --band: #0B0B0C;
  --line: #1C1C1E;
  --card: #1C1C1E;
  --track: #2A2A2D;
  --outline: #3A3A3D;
  --text: #FFFFFF;
  --text-strong: #C7C7CC;
  --text-secondary: #A1A1A8;
  --accent: #6C9BFF;
  --friends: #6C9BFF;
  --family: #FF8A65;
  --team: #3FD0C0;
  --classroom: #F5B83D;
  --plus: #F5B83D;
  --ht-blue: #00B4FF;
  --ht-blue-soft: #5CCBFF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--text); color: #000; padding: 10px 16px; border-radius: 22px; font-weight: 800; }
.skip-link:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 560px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; display: block; }
.brand span { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--text-strong); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 860px) { .nav-links .nav-anchor { display: none; } }
@media (max-width: 420px) { .brand span { font-size: 17px; } .brand img { width: 32px; height: 32px; } .nav-links { gap: 14px; } }

/* ---------- Pills / buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 28px; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.pill-small { min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15px; }
.pill-filled { background: var(--accent); color: #000; }
.pill-filled:hover { color: #000; background: #8DB2FF; }
.pill-outline { border: 1.5px solid var(--outline); color: var(--text); font-weight: 700; }
.pill-outline:hover { color: var(--text); border-color: var(--text-secondary); }
/* "Coming soon" is a label, not a button: solid, calm, clearly not tappable. */
.pill-soon { background: var(--card); color: var(--text); border: 1.5px solid var(--track); cursor: default; }
.pill-soon svg { flex-shrink: 0; }
@media (max-width: 420px) { .pill { padding: 0 20px; } .pill-small { padding: 0 14px; font-size: 14px; } }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { margin: 0; }
.h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.h1-page { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-strong); max-width: 540px; }
.sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-secondary); }
.muted { color: var(--text-secondary); }

/* ---------- Sections ---------- */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 560px) { .section { padding-top: 64px; padding-bottom: 64px; gap: 28px; } }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.grid { display: grid; gap: 16px; }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card { background: var(--card); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 560px) { .card { padding: 22px; } }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-secondary); }
.icon-circle { width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-circle.filled { background: var(--accent); }
.icon-circle.outlined { border: 2.5px solid var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-ring { position: absolute; right: -260px; top: -120px; width: 900px; height: 900px; max-width: none; pointer-events: none; }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy .eyebrow { align-self: flex-start; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
@media (max-width: 560px) { .hero-inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; } .hero-ring { right: -420px; top: -200px; } }

/* ---------- Phone mockup (a static copy of the Night Home screen) ---------- */
.phone { flex: 0 0 auto; margin: 0 auto; width: 336px; height: 708px; border-radius: 54px; border: 8px solid var(--line); background: #000; overflow: hidden; box-shadow: 0 30px 80px rgba(108,155,255,0.12); }
.phone-screen { width: 390px; height: 844px; transform: scale(0.82); transform-origin: top left; }
@media (max-width: 380px) { .phone { width: 296px; height: 624px; border-radius: 48px; } .phone-screen { transform: scale(0.718); } }
.nh { width: 390px; height: 844px; display: flex; flex-direction: column; background: #000; color: #fff; font-family: "Manrope", sans-serif; }
.nh-status { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; font-size: 15px; font-weight: 700; background: #161618; }
.nh-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 4px 16px 10px; background: #161618; border-bottom: 1px solid var(--track); }
.nh-top b { text-align: center; font-size: 17px; font-weight: 700; }
.nh-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; }
.nh-badge { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #000; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.nh-main { flex-grow: 1; display: flex; flex-direction: column; padding: 0 20px; }
.nh-profile { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 12px; }
.nh-ring { position: relative; width: 168px; height: 168px; }
.nh-ring svg { position: absolute; inset: 0; }
.nh-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nh-total { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.nh-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-top: 6px; }
.nh-name { display: flex; align-items: center; gap: 9px; font-size: 26px; font-weight: 700; line-height: 1.1; }
.nh-av { width: 30px; height: 30px; border-radius: 15px; background: var(--track); border: 2px solid var(--friends); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.nh-space { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 6px 0; padding: 0 10px 0 14px; border: 1.5px solid var(--friends); border-radius: 16px; color: var(--friends); font-size: 14px; font-weight: 800; }
.nh-id { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.nh-xp { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.nh-xp-row { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.nh-bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.nh-bar i { display: block; width: 82%; height: 100%; background: #E8E8ED; }
.nh-next { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-align: right; }
.nh-pad { border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; }
.nh-tile { background: var(--card); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; }
.nh-tile.small { min-height: 92px; padding: 14px 18px; }
.nh-tile.right { align-items: flex-end; text-align: right; }
.nh-tile b { font-size: 18px; font-weight: 800; display: block; }
.nh-tile.small b { font-size: 16px; font-weight: 700; }
.nh-tile small { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.nh-c { width: 54px; height: 54px; border-radius: 27px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.nh-c.o { width: 38px; height: 38px; border-radius: 19px; background: none; border: 2.5px solid #fff; }
.nh-more { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 0 12px; }
.nh-more span { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-strong); }
.nh-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--track); background: #161618; padding: 8px 0 30px; }
.nh-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.nh-tabs span.on { color: var(--accent); }

/* ---------- Pricing ---------- */
.price-card { border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.price-card.free { border: 1.5px solid var(--track); }
.price-card.monthly { background: var(--card); }
.price-card.annual { background: var(--card); border: 2px solid var(--accent); }
.price-card h3 { font-size: 20px; font-weight: 800; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 16px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-strong); }
.ticks li::before { content: "✓ "; }
.tag { display: inline-block; border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: #000; }
.tag-plus { background: var(--plus); }
.tag-accent { background: var(--accent); }
.title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- FAQ (details/summary) ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--track); }
.faq details { border-bottom: 1px solid var(--track); padding: 20px 0; }
.faq summary, .qa summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.faq summary::after, .qa summary::after { content: "+"; color: var(--text-secondary); font-weight: 600; font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after, .qa details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }
.qa details { border-top: 1px solid var(--track); padding-top: 12px; }
.qa summary { font-size: 15.5px; }
.qa p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.qa h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; font-size: 14px; color: var(--text-secondary); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 26px; height: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.foot-links a { color: var(--text-strong); }
.foot-company { flex-basis: 100%; font-size: 13px; }
.foot-company a { color: var(--text-strong); }

/* ---------- Legal pages ---------- */
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.legal-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--outline); color: var(--text-strong); text-decoration: none; font-size: 14px; font-weight: 700; }
.legal-tabs a[aria-current="page"] { background: var(--text); border-color: var(--text); color: #000; font-weight: 800; }
.legal-main { padding-top: 48px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.legal-toc { flex: 0 1 240px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; }
.legal-toc .toc-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.legal-toc a { color: var(--text-secondary); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 6px 0 6px 14px; border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 860px) { .legal-toc { display: none; } .legal-main { padding-top: 32px; } }
.legal-body { flex: 1 1 520px; max-width: 720px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.legal-body h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.legal-body h2 { font-size: 22px; font-weight: 800; margin-top: 18px; scroll-margin-top: 16px; }
.legal-body h3 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.7; color: var(--text-strong); }
.legal-body p { margin: 0; }
.legal-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--accent); }
.legal-updated { margin: 0; font-size: 15px; color: var(--text-secondary); }
.legal-summary { background: var(--card); border-radius: 20px; padding: 20px 22px; font-size: 15.5px; line-height: 1.6; color: var(--text-strong); }
.table-scroll { overflow-x: auto; border: 1px solid var(--track); border-radius: 16px; }
.legal-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--track); line-height: 1.55; color: var(--text-strong); }
.legal-body th { color: var(--text); font-weight: 800; background: var(--card); }
.legal-body tr:last-child td { border-bottom: 0; }

/* ---------- Not found ---------- */
.nf { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.nf img { width: 112px; height: 112px; }

/* On phones, each table row becomes a small stacked card (no sideways scrolling). */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; border-radius: 0; }
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; min-width: 0; width: 100%; }
  .legal-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-body tr { background: var(--card); border-radius: 16px; padding: 6px 4px; margin-bottom: 10px; }
  .legal-body td { border-bottom: 1px solid var(--track); padding: 10px 14px; }
  .legal-body tr td:last-child { border-bottom: 0; }
  .legal-body td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px; }
}
