/* NicerBook website — one stylesheet for every page.
   Mobile first: everything is a single column until there is room for more. */

:root {
  --bg: #000;
  --surface: #0b0b0f;
  --surface-2: #121218;
  --card: rgba(22, 22, 28, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #a1a1a8;
  --text-3: #6e6e76;
  --pink: #fb1845;
  --pink-soft: rgba(251, 24, 69, 0.12);
  --blue: #2997ff;
  --radius: 20px;
  --max: 1160px;
  --gutter: 20px;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── water background (hero pages) ─── */
#water { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: .85; }
.page { position: relative; z-index: 1; }

/* ─── header ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, .62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 1.8px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgba(0, 0, 0, .96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 12px var(--gutter) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-menu a { font-size: 22px; font-weight: 600; letter-spacing: -.4px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 28px; justify-content: center; font-size: 16px; border-bottom: 0; }

/* ─── buttons (solid, no gradients) ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.1px; white-space: nowrap;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-secondary { background: rgba(255, 255, 255, .08); border: 1px solid var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, .14); }
.btn-brand { background: var(--pink); color: #fff; }
.btn-brand:hover { background: #e3143d; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link-arrow { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; }

/* ─── type ─── */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--pink); margin-bottom: 12px; }
.h-display { font-size: clamp(40px, 8.4vw, 80px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.h-1 { font-size: clamp(32px, 5.6vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.h-2 { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.h-3 { font-size: 20px; line-height: 1.3; letter-spacing: -.3px; font-weight: 650; }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); line-height: 1.55; }
.muted { color: var(--text-2); }

/* ─── hero ─── */
.hero { padding: 64px 0 72px; text-align: center; }
.hero .lead { max-width: 640px; margin: 22px auto 34px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; margin: 0 auto; }
.hero-actions .btn { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ─── sections ─── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.card .h-3 { margin: 14px 0 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  color: var(--text);
}
.icon svg { width: 22px; height: 22px; }
.icon.brand { background: var(--pink-soft); border-color: rgba(251, 24, 69, .25); color: var(--pink); }

/* Feature row: text + visual, stacks on phones. */
.feature { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.feature li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb1845' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.visual {
  aspect-ratio: 1 / 1; max-height: 460px; width: 100%; border-radius: 28px; border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden; position: relative;
}

/* A drawn phone for feature visuals — no stock images needed. */
.phone {
  height: 88%; width: auto; aspect-ratio: 9 / 19; border-radius: 34px;
  background: #050507; border: 6px solid #1c1c22; box-shadow: 0 30px 60px rgba(0,0,0,.55);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.phone .bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); }
.phone .bar.short { width: 55%; }
.phone .tile { flex: 1; border-radius: 16px; background: linear-gradient(180deg, #1d1d26, #121218); border: 1px solid var(--line); }
.phone .row { display: flex; gap: 8px; align-items: center; }
.phone .dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); flex-shrink: 0; }
.phone .bubble { height: 26px; border-radius: 14px; background: rgba(255,255,255,.1); flex: 1; }
.phone .bubble.me { background: var(--pink); flex: 0 0 60%; margin-left: auto; }
.phone .accent { background: var(--pink); }

/* Stat / trust strip — values are statements, not invented numbers. */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
.pillars > div { background: var(--surface); padding: 22px; }
.pillars b { display: block; font-size: 17px; margin-bottom: 4px; }
.pillars span { color: var(--text-2); font-size: 14px; }

/* Closing call to action */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band .hero-actions { margin-top: 30px; }

/* ─── document pages (policies, help) ─── */
.doc-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.doc-hero .lead { margin-top: 14px; max-width: 760px; }
.doc-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--text-3); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 80px; }
.toc { display: none; }
.toc-mobile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.toc-mobile summary { list-style: none; padding: 14px 18px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; cursor: pointer; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; color: var(--text-2); font-size: 20px; line-height: 1; }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol, .toc ol { list-style: none; }
.toc-mobile ol { padding: 0 18px 12px; }
.toc-mobile a, .toc a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--text-2); }
.toc a { padding: 6px 12px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--pink); }

.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; line-height: 1.25; margin: 48px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -.2px; }
.prose p, .prose li { color: #c7c7cc; font-size: 16px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; display: grid; gap: 8px; }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.callout { margin: 22px 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.callout b { display: block; color: var(--text); margin-bottom: 4px; }
.callout p { margin: 0; font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c7c7cc; }
.prose th { color: var(--text); background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* Help center cards */
.help-search { margin-top: 26px; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.help-search input { flex: 1; background: none; border: 0; color: var(--text); font-size: 16px; outline: none; min-width: 0; }
.help-search svg { width: 18px; height: 18px; color: var(--text-3); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-2); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--text-2); }
.faq details[hidden] { display: none; }

/* ─── footer ─── */
.site-footer { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer-top { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-brand p { color: var(--text-2); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.footer-cols h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 14px; color: var(--text-2); padding: 5px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.from-nicle { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; letter-spacing: .3px; }
.from-nicle img { height: 26px; width: auto; opacity: .92; }
.legal-line { font-size: 12.5px; color: var(--text-3); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12.5px; color: var(--text-3); }
.legal-links a:hover { color: var(--text); }

/* ─── reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  #water { display: none; }
}

/* ─── larger screens ─── */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 30px 28px; }
}
@media (min-width: 960px) {
  :root { --header-h: 68px; }
  .nav { display: flex; }
  .menu-btn, .mobile-menu { display: none; }
  .hero { padding: 110px 0 120px; }
  .section { padding: 110px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; padding: 64px 0; }
  .feature.flip .visual { order: -1; }
  .footer-top { grid-template-columns: 1.1fr 2fr; }
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
  .toc h4 { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px 12px; }
  .toc-mobile { display: none; }
}
