/* Lista — shared shell for sub-pages (about / privacy / terms).
   Tokens, nav, footer and modal are copied verbatim from index.html so the
   sub-pages always read as the same site. Page-specific pieces live at the
   bottom under "Sub-page components". */

/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  --ink: #1A2634;
  --ink-2: #5F7080;
  --ink-3: #94A3B3;
  --paper: #F4F6F8;
  --paper-2: #EEF1F4;
  --surface: #FFFFFF;
  --line: #E2E8ED;
  --line-2: #EDF0F4;
  --teal: #314855;
  --teal-2: #243640;
  --teal-3: #4A6B7C;
  --sky: #5CC3E8;
  --sky-2: #3AAFDB;
  --sky-deep: #1B6E92;
  --sky-ghost: #E5F5FC;
  --green: #00B894;
  --green-ghost: #E6FAF5;
  --coral: #E95F5C;
  --coral-ghost: #FDE8E7;
  --amber: #F5B94E;
  --disp: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --num: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --rad: 18px;
  --rad-lg: 24px;
  --rad-xl: 28px;
  --shadow-card: 0 2px 12px rgba(49, 72, 85, 0.05);
  --shadow-md: 0 4px 16px rgba(49, 72, 85, 0.08);
  --shadow-pop: 0 12px 32px -8px rgba(36, 54, 64, 0.18);
  --hero-grad: linear-gradient(145deg, #3A5A6A 0%, #314855 45%, #243640 100%);
}

/* ─────────────────────────── Base ─────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--sky-ghost); color: var(--teal-2); }
:focus-visible { outline: 2.5px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }
.hi-card .btn:focus-visible { outline-color: #fff; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Scroll reveal — only hidden when JS is present */
html.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: var(--d, 0s); }
html.js .rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────── Type ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-2); flex: none; }
.eyebrow.g::before { background: var(--green); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 600px; }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 13px 27px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background 0.2s, border-color 0.2s;
}
.btn-ink { background: linear-gradient(160deg, #35525F 0%, #243640 100%); color: #fff; box-shadow: var(--shadow-md); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -6px rgba(36, 54, 64, 0.35); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-card); }
.btn-ghost:hover { border-color: var(--sky-2); background: var(--sky-ghost); transform: translateY(-2px); }

/* ─────────────────────────── Nav ─────────────────────────── */
.nav-fix { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 14px 20px 0; }
.nav-pill {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 10px 9px 18px;
  transition: box-shadow 0.4s var(--ease);
}
.nav-pill.raised { box-shadow: var(--shadow-pop); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-brand strong { font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 9px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.btn-nav { min-height: 40px; padding: 9px 19px; font-size: 14px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; }
/* Without JS the burger can't open the menu — don't show a dead control */
html:not(.js) .nav-burger { display: none !important; }
.nav-burger svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav-menu {
  display: none; max-width: 1140px; margin: 8px auto 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-pop);
  padding: 10px; flex-direction: column;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 13px 16px; border-radius: 12px; min-height: 48px; display: flex; align-items: center;
}
.nav-menu a:active, .nav-menu a:hover { background: var(--paper-2); }
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ─────────────────────────── Footer ─────────────────────────── */
footer { padding: 64px 0 44px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.foot-brand { max-width: 260px; }
.foot-brand .nav-brand { margin-bottom: 12px; }
.foot-brand p { font-size: 14px; color: var(--ink-2); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h3 { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-base { border-top: 1px solid var(--line-2); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }

/* ─────────────────────────── Login modal ─────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-back { position: absolute; inset: 0; background: rgba(26, 38, 52, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card {
  position: relative; width: 100%; max-width: 400px;
  background: var(--surface); border-radius: var(--rad-lg); box-shadow: 0 30px 80px -20px rgba(16,27,34,0.5);
  padding: 36px 30px 30px; text-align: center;
  animation: modalIn 0.4s var(--spring) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-card > img { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px; }
.modal-card h3 { font-family: var(--disp); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.modal-card > p { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.modal-close:hover { background: var(--paper-2); color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
.auth-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.auth-btn.google { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
.auth-btn.apple { background: #101B22; color: #fff; }
.auth-btn svg { width: 19px; height: 19px; flex: none; }
.modal-legal { font-size: 12px; color: var(--ink-2); }
.modal-legal a { color: var(--ink); font-weight: 600; }

/* ─────────────────────────── Sub-page components ─────────────────────────── */

/* Compact page header — clears the fixed nav pill */
.page-hero { padding: 158px 0 26px; }
.page-hero h1 {
  font-family: var(--disp);
  font-size: clamp(37px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 16px 0 16px;
  max-width: 720px;
}
.page-hero .lede { max-width: 620px; }
.page-hero .dated { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); font-family: var(--num); }

.page-body { padding: 26px 0 96px; }
@media (max-width: 640px) {
  .page-hero { padding-top: 128px; }
  .page-body { padding-bottom: 68px; }
}

/* Reading column */
.prose { max-width: 720px; }
.prose h2 {
  font-family: var(--disp);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 44px 0 12px;
}
.prose > h2:first-child { margin-top: 8px; }
.prose p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
.prose p b, .prose p strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--sky-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--teal-2); }
.prose ul { list-style: none; margin: 2px 0 16px; display: flex; flex-direction: column; gap: 9px; }
.prose ul li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-2); }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-2); }
.prose ul li b, .prose ul li strong { color: var(--ink); font-weight: 700; }

/* "The short version" summary tile (legal pages) */
.tldr {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--rad-lg);
  box-shadow: var(--shadow-card); padding: 28px 30px 24px; max-width: 720px; margin-bottom: 40px;
}
.tldr .b-label { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.tldr .b-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tldr ul { list-style: none; margin: 14px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.tldr li { display: flex; gap: 11px; font-size: 15px; font-weight: 600; color: var(--ink); }
.tldr li svg { width: 17px; height: 17px; stroke: var(--green); flex: none; margin-top: 3px; }
.tldr .tldr-note { font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 14px; }

/* About: photo figure */
.about-fig { position: relative; border-radius: var(--rad-xl); overflow: hidden; margin: 44px 0 10px; }
.about-fig img { width: 100%; height: clamp(280px, 38vw, 420px); object-fit: cover; object-position: center 40%; }
.about-fig::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 31, 38, 0.55) 0%, rgba(20, 31, 38, 0) 42%);
}
.about-fig figcaption { position: absolute; left: 30px; right: 30px; bottom: 22px; z-index: 1; color: rgba(255,255,255,0.92); font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) {
  .about-fig { border-radius: var(--rad-lg); }
  .about-fig img { height: 300px; }
  .about-fig figcaption { left: 18px; right: 18px; bottom: 16px; }
}

/* About: fact tiles */
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 40px; }
.fact {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--rad);
  box-shadow: var(--shadow-card); padding: 22px 22px 20px;
}
.fact b { display: block; font-family: var(--disp); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 5px; }
.fact span { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 700px) { .fact-grid { grid-template-columns: 1fr; } }

/* About: sign-off */
.signoff { font-family: var(--disp); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-top: 26px; }

/* Say-hi card */
.hi-card {
  background: var(--hero-grad); border-radius: var(--rad-xl); color: #fff;
  padding: 44px 40px; margin-top: 56px; max-width: 720px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hi-card h2 { font-family: var(--disp); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.hi-card p { font-size: 14.5px; color: rgba(255,255,255,0.78); max-width: 340px; }
.btn-paper { background: #fff; color: var(--teal-2); box-shadow: 0 8px 24px -6px rgba(0,0,0,0.3); }
.btn-paper:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgba(0,0,0,0.35); }
@media (max-width: 640px) { .hi-card { padding: 34px 26px; } }

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