/* Risova marketing site — shared styles
   Leans further than the app: bigger type, more color, playful moments.
   Still anchored in the design system (indigo primary, tier triad, Jakarta). */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #111827;
  background: #FBFAF7; /* warm off-white — marketing diverges slightly from app's cool grey */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

:root {
  --indigo: #4F46E5;
  --indigo-hover: #4338CA;
  --indigo-tint: #EEF2FF;
  --violet: #7C3AED;
  --ink: #111827;
  --body: #374151;
  --muted: #6B7280;
  --subtle: #9CA3AF;
  --border: #E5E7EB;
  --soft: #F9FAFB;
  --paper: #FBFAF7;
  --cream: #F4EFE4;         /* playful warm accent */
  --mint: #ECFDF5;
  --mint-solid: #10B981;
  --amber: #FFFBEB;
  --amber-solid: #F59E0B;
  --red: #FEF2F2;
  --red-solid: #EF4444;
}

/* ---------- Layout ---------- */
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.wide { width: min(1360px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(17,24,39,0.06);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 14px 0;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.nav-brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 8px;
  transition: all 150ms;
}
.nav-links a:hover { color: var(--ink); background: rgba(17,24,39,0.04); }
.nav-links a.active { color: var(--ink); }
.nav-right { display: flex; gap: 10px; align-items: center; }

/* Hamburger toggle — shown on tablet/mobile only */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--ink); background: transparent;
  transition: background 150ms;
  margin-left: auto;
}
.nav-toggle:hover { background: rgba(17,24,39,0.05); }

/* Mobile slide-in panel */
.nav-mobile {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 82vw);
  background: var(--paper);
  z-index: 100;
  padding: 18px 24px 28px;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 40px rgba(17,24,39,0.12);
  overflow-y: auto;
  display: flex; flex-direction: column;
  visibility: hidden;
}
.nav-mobile.open { transform: translateX(0); visibility: visible; }
.nav-mobile-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.nav-mobile-close {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: transparent;
}
.nav-mobile-close:hover { background: rgba(17,24,39,0.05); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile-links a {
  padding: 14px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  transition: background 150ms;
}
.nav-mobile-links a:hover { background: rgba(17,24,39,0.04); }
.nav-mobile-links a.active { background: var(--indigo-tint); color: var(--indigo); }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 18px 0; }
.nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.nav-mobile-cta .btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }

/* Backdrop */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(17,24,39,0.45);
  z-index: 99;
  opacity: 0; visibility: hidden;
  transition: opacity 280ms;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 180ms ease-out;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-indigo {
  background: var(--indigo); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 4px 14px rgba(79,70,229,0.25);
}
.btn-indigo:hover { background: var(--indigo-hover); transform: translateY(-1px); }
.btn-ghost { color: var(--body); padding: 10px 14px; }
.btn-ghost:hover { background: rgba(17,24,39,0.04); color: var(--ink); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--indigo);
  padding: 5px 12px; border-radius: 999px;
  background: var(--indigo-tint);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--indigo); animation: dot-pulse 1.6s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.display {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--body); line-height: 1.55; max-width: 620px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.loose { padding: 128px 0; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(17,24,39,0.03);
}
.card-lg { border-radius: 22px; padding: 32px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; }
.chip-ready { background: #D1FAE5; color: #065F46; }
.chip-ready .dot { background: var(--mint-solid); }
.chip-fair { background: #FEF3C7; color: #92400E; }
.chip-fair .dot { background: var(--amber-solid); }
.chip-critical { background: #FEE2E2; color: #991B1B; }
.chip-critical .dot { background: var(--red-solid); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: #D1D5DB;
  padding: 64px 0 40px;
  margin-top: 80px;
}
footer a { color: #D1D5DB; }
footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.footer-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bot { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; color: #9CA3AF; }

/* ---------- Utility ---------- */
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Responsive — tablet ---------- */
@media (max-width: 900px) {
  .container { width: min(1200px, calc(100% - 32px)); }
  .wide { width: min(1360px, calc(100% - 32px)); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: 16px; padding: 12px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 36px; }
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }
  section.loose { padding: 80px 0; }
}

/* ---------- Responsive — mobile ---------- */
@media (max-width: 640px) {
  .container { width: min(1200px, calc(100% - 24px)); }
  .wide { width: min(1360px, calc(100% - 24px)); }
  .nav-inner { gap: 10px; padding: 10px 0; }
  .nav-brand { font-size: 15px; }
  .nav-brand .mark { width: 26px; height: 26px; font-size: 13px; }
  .nav-right { gap: 6px; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
  .lede { font-size: 16px; }
  section { padding: 48px 0; }
  section.tight { padding: 36px 0; }
  section.loose { padding: 64px 0; }
  footer { padding: 48px 0 32px; margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-bot { flex-direction: column; gap: 8px; text-align: center; padding-top: 20px; }
  .card, .card-lg { padding: 20px; border-radius: 14px; }
}

/* ---------- Very narrow ---------- */
@media (max-width: 380px) {
  .btn-lg { padding: 11px 16px; font-size: 13px; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   Implied-consent pattern: non-blocking, dismissable.
   Markup is injected by cookies.js; choice persisted in localStorage.
   ============================================================ */
.cookie-root {
  position: fixed;
  z-index: 200;
  pointer-events: none;
}
.cookie-root[data-place="bottom-left"]  { left: 24px; bottom: 24px; }
.cookie-root[data-place="bottom-right"] { right: 24px; bottom: 24px; }
.cookie-root[data-place="bottom-bar"]   { left: 0; right: 0; bottom: 0; }
.cookie-root[data-place="top-bar"]      { left: 0; right: 0; top: 0; }

.cookie-card {
  pointer-events: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 60px rgba(17,24,39,0.14),
    0 4px 14px rgba(17,24,39,0.06);
  width: 380px;
  max-width: calc(100vw - 48px);
  overflow: hidden;
  position: relative;
  animation: cookie-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: 600ms;
}
@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-root[data-place="bottom-bar"] .cookie-card,
.cookie-root[data-place="top-bar"] .cookie-card {
  width: 100%;
  max-width: none;
  border-radius: 0;
  border-left: none; border-right: none;
}
.cookie-root[data-place="bottom-bar"] .cookie-card { border-bottom: none; }
.cookie-root[data-place="top-bar"] .cookie-card { border-top: none; }

.cookie-card[data-theme="dark"] {
  background: #111827;
  color: #F3F4F6;
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 24px 60px rgba(0,0,0,0.4);
}

.cookie-body {
  padding: 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cookie-root[data-place="bottom-bar"] .cookie-body,
.cookie-root[data-place="top-bar"] .cookie-body {
  align-items: center;
  padding: 14px 24px;
  max-width: 1280px; margin: 0 auto;
  width: 100%;
}

.cookie-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  display: flex; align-items: center; justify-content: center;
  color: #92400E;
  border: 1px solid #FDE68A;
  position: relative;
}
.cookie-card[data-theme="dark"] .cookie-icon {
  background: linear-gradient(135deg, #422006 0%, #2C1707 100%);
  border-color: #78350F;
  color: #FCD34D;
}
.cookie-card[data-with-icon="false"] .cookie-icon { display: none; }

.cookie-text { flex: 1; min-width: 0; }
.cookie-text .title {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.cookie-text .copy {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.cookie-card[data-theme="dark"] .cookie-text .copy { color: #9CA3AF; }
.cookie-text .copy a {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cookie-card[data-theme="dark"] .cookie-text .copy a { color: #A5B4FC; }
.cookie-text .copy a:hover { color: var(--indigo-hover); }

.cookie-close {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px;
  border-radius: 6px;
  color: var(--subtle);
  display: flex; align-items: center; justify-content: center;
  transition: all 150ms;
}
.cookie-close:hover { background: var(--soft); color: var(--ink); }
.cookie-card[data-theme="dark"] .cookie-close { color: #6B7280; }
.cookie-card[data-theme="dark"] .cookie-close:hover { background: rgba(255,255,255,0.06); color: #fff; }
.cookie-root[data-place="bottom-bar"] .cookie-close,
.cookie-root[data-place="top-bar"] .cookie-close { display: none; }

.cookie-actions {
  display: flex;
  gap: 8px;
  padding: 0 18px 16px;
  align-items: center;
}
.cookie-root[data-place="bottom-bar"] .cookie-actions,
.cookie-root[data-place="top-bar"] .cookie-actions {
  padding: 0;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition: all 160ms ease-out;
  white-space: nowrap;
  font-family: inherit;
}
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn.primary {
  background: var(--indigo); color: #fff;
  flex: 1;
}
.cookie-btn.primary:hover { background: var(--indigo-hover); }
.cookie-card[data-theme="dark"] .cookie-btn.primary { background: #fff; color: var(--ink); }
.cookie-card[data-theme="dark"] .cookie-btn.primary:hover { background: #E5E7EB; }
.cookie-btn.secondary {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--border);
}
.cookie-btn.secondary:hover { background: var(--soft); color: var(--ink); }
.cookie-card[data-theme="dark"] .cookie-btn.secondary {
  color: #D1D5DB;
  border-color: rgba(255,255,255,0.12);
  background: transparent;
}
.cookie-card[data-theme="dark"] .cookie-btn.secondary:hover {
  background: rgba(255,255,255,0.06); color: #fff;
}
.cookie-btn.text {
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-weight: 500;
}
.cookie-btn.text:hover { color: var(--ink); }
.cookie-card[data-theme="dark"] .cookie-btn.text { color: #9CA3AF; }
.cookie-card[data-theme="dark"] .cookie-btn.text:hover { color: #fff; }
.cookie-root[data-place="bottom-bar"] .cookie-btn.primary,
.cookie-root[data-place="top-bar"] .cookie-btn.primary { flex: 0 0 auto; }
.cookie-card[data-stack="true"] .cookie-actions { flex-direction: column-reverse; align-items: stretch; }
.cookie-card[data-stack="true"] .cookie-btn { width: 100%; }

.cookie-foot {
  padding: 10px 18px 12px;
  border-top: 1px solid var(--border);
  background: var(--soft);
  font-size: 11px;
  color: var(--subtle);
  display: flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.cookie-card[data-theme="dark"] .cookie-foot {
  background: rgba(255,255,255,0.03);
  border-top-color: rgba(255,255,255,0.06);
  color: #6B7280;
}
.cookie-card[data-foot="false"] .cookie-foot { display: none; }
.cookie-foot .dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--mint-solid);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}

.cookie-prefs {
  border-top: 1px solid var(--border);
  padding: 16px 18px;
  display: none;
}
.cookie-card[data-theme="dark"] .cookie-prefs { border-top-color: rgba(255,255,255,0.06); }
.cookie-card[data-prefs="true"] .cookie-prefs { display: block; animation: prefs-in 220ms ease-out; }
.cookie-card[data-prefs="true"] .cookie-actions { padding-top: 4px; }
@keyframes prefs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.pref-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
}
.pref-row + .pref-row { border-top: 1px dashed var(--border); }
.cookie-card[data-theme="dark"] .pref-row + .pref-row { border-top-color: rgba(255,255,255,0.08); }
.pref-row .meta { flex: 1; min-width: 0; }
.pref-row .meta .name {
  font-size: 13px; font-weight: 700; line-height: 1.3;
  display: flex; align-items: center; gap: 6px;
}
.pref-row .meta .name .lock {
  font-size: 9px;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cookie-card[data-theme="dark"] .pref-row .meta .name .lock {
  background: rgba(255,255,255,0.06); color: #9CA3AF;
}
.pref-row .meta .desc {
  font-size: 12px; color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.cookie-card[data-theme="dark"] .pref-row .meta .desc { color: #9CA3AF; }

.toggle {
  flex-shrink: 0;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 200ms;
  margin-top: 2px;
}
.toggle::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toggle[aria-checked="true"] { background: var(--indigo); }
.toggle[aria-checked="true"]::after { transform: translateX(14px); }
.toggle[aria-disabled="true"] {
  cursor: not-allowed;
  background: #D1FAE5;
}
.toggle[aria-disabled="true"]::after { transform: translateX(14px); }

.cookie-reopen {
  position: fixed; left: 24px; bottom: 24px;
  z-index: 180;
  pointer-events: auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--body);
  font-size: 12px; font-weight: 600;
  display: none;
  align-items: center; gap: 6px;
  box-shadow: 0 8px 20px rgba(17,24,39,0.08);
  transition: all 150ms;
  font-family: inherit;
}
.cookie-reopen:hover { color: var(--ink); border-color: #C7D2FE; background: var(--indigo-tint); }
.cookie-reopen.show { display: inline-flex; animation: cookie-rise 320ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  .cookie-card, .cookie-reopen { animation: none; }
}
