/* ============================================================================
   Rolodex — shared site chrome + design tokens
   ----------------------------------------------------------------------------
   ONE source of truth for the public marketing site's nav, footer, buttons and
   scale. Every page links this file and renders its nav/footer from site.js, so
   a navigation or footer change is a one-file change instead of an eight-file
   sweep. Page-specific section styling stays inline in each page.

   Nav theme: pages with a dark hero get the default dark chrome; pages that
   open on a light background set <body data-nav="light">.
   ========================================================================== */

:root {
  /* ── Brand ── */
  --accent:        oklch(55% 0.18 220);
  --accent-hover:  oklch(48% 0.18 220);
  --accent-bright: oklch(63% 0.20 220);
  --accent-soft:   oklch(55% 0.18 220 / 0.08);

  /* Crystal blue — Rolo AI surfaces. Cool, luminous, never neon. */
  --crystal-1:     oklch(96% 0.022 225);
  --crystal-2:     oklch(91% 0.045 228);
  --crystal-3:     oklch(83% 0.072 232);
  --crystal-deep:  oklch(38% 0.098 242);
  --crystal-ink:   oklch(24% 0.055 240);

  /* Premium gold — cards. Champagne/greenish-gold, deliberately NOT orange. */
  --gold-1:        oklch(93% 0.052 96);
  --gold-2:        oklch(84% 0.088 92);
  --gold-3:        oklch(72% 0.098 88);
  --gold-4:        oklch(58% 0.078 86);
  --gold-ink:      oklch(30% 0.042 88);

  /* ── Neutrals ── */
  --ink:           oklch(14% 0.008 220);
  --ink-2:         oklch(28% 0.008 220);
  --mid:           oklch(48% 0.008 220);
  --subtle:        oklch(62% 0.006 220);
  --border:        oklch(88% 0.006 220);
  --border-soft:   oklch(93% 0.005 220);
  --surface:       oklch(96% 0.004 220);
  --paper:         oklch(99% 0.003 220);
  --white:         oklch(99.5% 0.002 220);
  --dark:          oklch(8%  0.012 220);
  --dark-2:        oklch(12% 0.012 220);
  --dark-3:        oklch(16% 0.010 220);

  --platinum:      oklch(68% 0.04 220);
  --success:       oklch(58% 0.18 142);
  --danger:        oklch(52% 0.22 25);

  /* ── Scale ── */
  --r-sm: 8px;  --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 100px;
  --shadow-sm: 0 1px 2px oklch(14% 0.008 220 / 0.05);
  --shadow-md: 0 4px 16px oklch(14% 0.008 220 / 0.07);
  --shadow-lg: 0 18px 48px oklch(14% 0.008 220 / 0.11);
  --shadow-xl: 0 32px 80px oklch(14% 0.008 220 / 0.16);
  --nav-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Liquid glass on a dark ground ── the public site keeps its dark identity;
     glass here is a lit, faintly frosted layer over it. Same material language as
     the app (luminous hairline, top specular, soft depth), tuned for dark. */
  --glass-fill:      oklch(99% 0.004 225 / 0.07);
  --glass-fill-hi:   oklch(99% 0.004 225 / 0.12);
  --glass-line:      oklch(99% 0.01 225 / 0.14);
  --glass-line-hi:   oklch(99% 0.01 225 / 0.26);
  --glass-specular:  inset 0 1px 0 oklch(100% 0 0 / 0.16);
  --glass-depth:     0 1px 2px oklch(0% 0 0 / 0.25), 0 12px 32px oklch(0% 0 0 / 0.28);
  --glass-blur:      saturate(170%) blur(18px);
}

/* ── Accessibility baseline ─────────────────────────────────────────────── */
/* Keyboard users must always be able to see where they are. Pages previously
   suppressed the cursor globally; focus is never suppressed here. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: 12px 20px;
  font: 500 14px/1 'DM Sans', sans-serif; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

/* ── NAV ────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: oklch(8% 0.012 220 / 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: inset 0 -1px 0 oklch(99% 0 0 / 0.03);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
body[data-nav="light"] .site-nav {
  background: oklch(99.5% 0.002 220 / 0.86);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav.is-scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px); gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 26px; height: 26px; display: block; object-fit: contain; }
.nav-logo-text {
  font-family: 'Spectral', serif; font-size: 18px; font-weight: 600;
  color: var(--white); letter-spacing: -0.01em;
}
body[data-nav="light"] .nav-logo-text { color: var(--ink); }

.nav-links {
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  font: 400 14px/1 'DM Sans', sans-serif; white-space: nowrap;
  color: oklch(99% 0 0 / 0.58); text-decoration: none; transition: color 0.2s;
}
.nav-links a svg { width: 15px; height: 15px; opacity: 0.75; flex-shrink: 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { font-weight: 500; }
body[data-nav="light"] .nav-links a { color: var(--mid); }
body[data-nav="light"] .nav-links a:hover,
body[data-nav="light"] .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.btn-nav-login {
  font: 400 14px/1 'DM Sans', sans-serif; color: oklch(99% 0 0 / 0.62);
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.btn-nav-login:hover { color: var(--white); }
body[data-nav="light"] .btn-nav-login { color: var(--mid); }
body[data-nav="light"] .btn-nav-login:hover { color: var(--ink); }
.btn-nav-signup {
  font: 500 14px/1 'DM Sans', sans-serif; color: #fff;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 60%, var(--accent-hover) 100%);
  text-decoration: none; border-radius: var(--r-pill); padding: 11px 22px;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.28), 0 4px 14px oklch(55% 0.18 220 / 0.28);
  white-space: nowrap; transition: background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn-nav-signup:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 6px 18px oklch(55% 0.18 220 / 0.32);
}

/* Hamburger — hidden on desktop, the only nav affordance on small screens. */
.nav-hamburger {
  display: none; padding: 8px; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-fill); border: 1px solid var(--glass-line); box-shadow: var(--glass-specular);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px; border-radius: 2px;
  background: var(--white); transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
body[data-nav="light"] .nav-hamburger span { background: var(--ink); }
body[data-nav="light"] .nav-hamburger {
  background: oklch(100% 0 0 / 0.7); border-color: var(--border);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ────────────────────────────────────────────────────────── */
/* A dark sheet lit from above with a soft sky-blue bloom, holding elevated glass
   rows: icon tile · label · chevron. Every row is a 60px touch target. */
.nav-mobile-menu {
  /* ABOVE .site-nav (900). The bar is fixed, so a lower menu left the hamburger
     floating over the panel and swallowing clicks meant for the close button. The
     menu is full-screen and carries its own logo + close, so it owns the layer. */
  position: fixed; inset: 0; z-index: 950;
  background:
    radial-gradient(120% 60% at 85% -10%, oklch(62% 0.12 230 / 0.30), transparent 60%),
    radial-gradient(90% 50% at -10% 105%, oklch(58% 0.10 235 / 0.20), transparent 62%),
    var(--dark);
  color: var(--white);
  display: flex; flex-direction: column;
  padding: 0 clamp(16px, 5vw, 28px) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
}
.nav-mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.nav-mobile-top {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.nav-mobile-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mobile-logo img { width: 26px; height: 26px; object-fit: contain; }
.nav-mobile-logo span { font-family: 'Spectral', serif; font-size: 18px; font-weight: 600; color: var(--white); }
.nav-mobile-close {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-fill); border: 1px solid var(--glass-line); box-shadow: var(--glass-specular);
  color: oklch(99% 0 0 / 0.82); cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.16s var(--ease-out);
}
.nav-mobile-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-mobile-close:hover { background: var(--glass-fill-hi); color: var(--white); }
.nav-mobile-close:active { transform: scale(0.94); }

.nav-mobile-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nav-mobile-links a {
  display: flex; align-items: center; gap: 14px; min-height: 60px;
  padding: 9px 14px 9px 9px; border-radius: 18px; text-decoration: none;
  font: 500 17px/1.2 'DM Sans', sans-serif; letter-spacing: -0.005em; color: oklch(99% 0 0 / 0.92);
  background: linear-gradient(180deg, var(--glass-fill-hi) 0%, var(--glass-fill) 100%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-specular), var(--glass-depth);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  transition: background 0.2s var(--ease-out), border-color 0.2s, transform 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile-links a:hover { border-color: var(--glass-line-hi); background: linear-gradient(180deg, oklch(99% 0.004 225 / 0.16), var(--glass-fill-hi)); }
.nav-mobile-links a:active { transform: scale(0.98); }
.nav-mobile-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px;
  color: oklch(88% 0.06 225);
  background: linear-gradient(160deg, oklch(99% 0.01 225 / 0.20) 0%, oklch(62% 0.10 230 / 0.16) 100%);
  border: 1px solid oklch(99% 0.01 225 / 0.20);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.22), 0 4px 12px oklch(0% 0 0 / 0.22);
}
.nav-mobile-icon svg { width: 20px; height: 20px; }
.nav-mobile-label { flex: 1; min-width: 0; }
.nav-mobile-chev { display: grid; place-items: center; color: oklch(99% 0 0 / 0.42); transition: transform 0.2s var(--ease-out), color 0.2s; }
.nav-mobile-chev svg { width: 18px; height: 18px; }
.nav-mobile-links a:hover .nav-mobile-chev { color: oklch(99% 0 0 / 0.8); transform: translateX(2px); }
.nav-mobile-links a[aria-current="page"] { border-color: oklch(70% 0.12 225 / 0.45); }
.nav-mobile-links a[aria-current="page"] .nav-mobile-icon {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  border-color: oklch(80% 0.1 225 / 0.5);
}

.nav-mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 0; }
.nav-mobile-login, .nav-mobile-signup {
  display: flex; align-items: center; justify-content: center; min-height: 54px; text-decoration: none;
  font: 600 16px/1 'DM Sans', sans-serif; padding: 0 18px; border-radius: var(--r-pill);
  transition: transform 0.16s var(--ease-out), background 0.2s, box-shadow 0.2s;
}
.nav-mobile-login {
  color: var(--white); background: var(--glass-fill); border: 1px solid var(--glass-line-hi);
  box-shadow: var(--glass-specular);
}
.nav-mobile-login:hover { background: var(--glass-fill-hi); }
.nav-mobile-signup {
  color: #fff; border: 1px solid oklch(75% 0.12 222 / 0.5);
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 58%, var(--accent-hover) 100%);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.32), 0 10px 28px oklch(55% 0.18 220 / 0.38);
}
.nav-mobile-signup:hover { box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.32), 0 12px 34px oklch(55% 0.18 220 / 0.48); }
.nav-mobile-login:active, .nav-mobile-signup:active { transform: scale(0.98); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav { background: oklch(8% 0.012 220 / 0.96); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-nav-login, .btn-nav-signup { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 500 15px/1 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r-pill); padding: 15px 30px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: 0 10px 28px oklch(55% 0.18 220 / 0.3);
}
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-on-dark { background: var(--white); color: var(--ink); }
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 28px oklch(0% 0 0 / 0.3); }
.btn-ghost-on-dark { background: transparent; color: var(--white); border-color: oklch(99% 0 0 / 0.28); }
.btn-ghost-on-dark:hover { border-color: var(--white); background: oklch(99% 0 0 / 0.06); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: oklch(99% 0 0 / 0.6); padding: 72px 0 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding-bottom: 44px;
  border-bottom: 1px solid oklch(99% 0 0 / 0.09);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo-text { font-family: 'Spectral', serif; font-size: 19px; font-weight: 600; color: var(--white); }
.footer-tag {
  font: 400 14px/1.6 'DM Sans', sans-serif; color: oklch(99% 0 0 / 0.55);
  margin-top: 12px; max-width: 46ch;
}

/* Social: real platform marks. Any platform whose live URL we do not have yet is
   rendered as a non-interactive <span> — never a link to an invented handle. */
.social-row { display: flex; align-items: center; gap: 10px; }
.social-ico {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid oklch(99% 0 0 / 0.16); color: oklch(99% 0 0 / 0.65);
  text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}
.social-ico svg { width: 17px; height: 17px; fill: currentColor; }
a.social-ico:hover {
  color: var(--white); border-color: oklch(99% 0 0 / 0.4);
  background: oklch(99% 0 0 / 0.06); transform: translateY(-2px);
}
span.social-ico { opacity: 0.32; cursor: default; }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 44px 0;
}
.footer-col-hdr {
  font: 600 11px/1 'DM Sans', sans-serif; letter-spacing: 0.11em; text-transform: uppercase;
  color: oklch(99% 0 0 / 0.42); margin-bottom: 18px;
}
.footer-lnk {
  display: block; font: 400 14px/1 'DM Sans', sans-serif;
  color: oklch(99% 0 0 / 0.62); text-decoration: none;
  padding: 7px 0; transition: color 0.2s;
}
.footer-lnk:hover { color: var(--white); }
.footer-privacy {
  font: 400 12px/1.7 'DM Sans', sans-serif; color: oklch(99% 0 0 / 0.38);
  padding: 28px 0; border-top: 1px solid oklch(99% 0 0 / 0.09); max-width: 92ch;
}
.footer-bottom {
  font: 400 13px/1 'DM Sans', sans-serif; color: oklch(99% 0 0 / 0.42);
  padding-top: 20px; border-top: 1px solid oklch(99% 0 0 / 0.09);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; } }
@media (max-width: 460px) {
  .site-footer { padding: 52px 0 32px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── SHARED UTILITIES ───────────────────────────────────────────────────── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.eyebrow {
  font: 600 11px/1 'DM Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.reveal-init { opacity: 0; transform: translateY(28px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* Nothing on the public site may scroll sideways at any width. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
