/* =============================================================
   YouTube Notes — Core Design System
   Aesthetic: Linear · Stripe · Raycast · Apple
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --accent: #7c3aed;
  --accent-600: #6d28d9;

  /* Light theme surfaces */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(17, 24, 39, 0.08);
  --border-strong: rgba(17, 24, 39, 0.14);

  /* Text */
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;

  /* Accents / gradients */
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-text: linear-gradient(120deg, #2563eb 0%, #7c3aed 60%, #db2777 100%);
  --glow: rgba(37, 99, 235, 0.28);
  --glow-accent: rgba(124, 58, 237, 0.24);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08), 0 2px 4px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(17, 24, 39, 0.18), 0 8px 16px -8px rgba(17, 24, 39, 0.1);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.1), 0 12px 40px -12px var(--glow);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Layout */
  --container: 1160px;
  --nav-h: 68px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.4s;
}

/* ---------- Dark Theme ---------- */
:root[data-theme='dark'] {
  --bg: #09090b;
  --bg-subtle: #0c0c0f;
  --bg-elevated: #131317;
  --surface: #131317;
  --surface-2: #1a1a1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #09090b;

  --glow: rgba(37, 99, 235, 0.4);
  --glow-accent: rgba(124, 58, 237, 0.35);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 50px -12px var(--glow);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

html[lang='ar'] body {
  font-family: var(--font-ar);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Layout Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 37px;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r-md);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: var(--r-lg);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.lang-toggle {
  font-size: 13px;
  font-weight: 600;
  padding-inline: 14px;
  width: auto;
  gap: 6px;
}

/* theme icon swap */
.theme-toggle .moon {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .sun {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .moon {
  display: block;
}

.nav-burger {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset-block-start: -10%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
      var(--glow) 0%,
      var(--glow-accent) 35%,
      transparent 70%);
  filter: blur(40px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.badge-pill {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  max-width: 15ch;
  margin-inline: auto;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

.hero-visual {
  margin-top: 64px;
  position: relative;
  perspective: 1600px;
}

.hero-frame {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
}

.hero-frame img,
.hero-frame svg {
  width: 100%;
  height: auto;
}

/* ---------- Trusted By ---------- */
.trusted {
  padding-block: 48px;
  border-block: 1px solid var(--border);
}

.trusted p {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 64px);
  flex-wrap: wrap;
  opacity: 0.7;
}

.trusted-logos span {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

html[dir='rtl'] .feature-card::before {
  transform-origin: right;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px -6px var(--glow);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.shot {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.shot img,
.shot svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Why Google Sign-In ---------- */
.google-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.trust-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.trust-col {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.trust-col h4 {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.trust-col.do h4 {
  color: #16a34a;
}

.trust-col.dont h4 {
  color: #dc2626;
}

.trust-col li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-col li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.trust-col.do li svg {
  color: #16a34a;
}

.trust-col.dont li svg {
  color: #dc2626;
}

.google-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #111827;
  border: 1px solid #dadce0;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}

.google-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 18px;
}

.lock-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.lock-badge svg {
  width: 30px;
  height: 30px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: start;
}

.faq-q .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-a p {
  padding: 0 22px 22px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.road-col {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 24px;
}

.road-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
}

.road-tag.shipped {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #16a34a;
}

.road-tag.progress {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

.road-tag.planned {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.road-col li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.road-col li:first-of-type {
  border-top: none;
}

.road-col li .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.road-col.shipped li .dot {
  background: #16a34a;
}

/* ---------- Changelog ---------- */
.changelog {
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}

.change-entry {
  position: relative;
  padding-inline-start: 40px;
  padding-bottom: 40px;
  border-inline-start: 2px solid var(--border);
}

.change-entry:last-child {
  padding-bottom: 0;
  border-inline-start-color: transparent;
}

.change-entry::before {
  content: '';
  position: absolute;
  inset-block-start: 4px;
  inset-inline-start: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px var(--bg);
}

.change-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.change-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

.change-tag.improved {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.change-tag.launch {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #16a34a;
}

.change-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.change-entry ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.change-entry li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.change-entry li svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex-shrink: 0;
  color: var(--primary);
}

/* ---------- Get involved (Waitlist + Feature Request) ---------- */
.involved {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.involved-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.involved-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.involved-card>p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.field-row {
  display: flex;
  gap: 10px;
}

.field {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

textarea.field {
  resize: vertical;
  min-height: 96px;
  margin-bottom: 14px;
}

.form-msg {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.2em;
}

.form-msg.ok {
  color: #16a34a;
}

.form-msg.err {
  color: #dc2626;
}

.involved-card .btn {
  align-self: flex-start;
}

.feat-link {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

.feat-link:hover {
  text-decoration: underline;
}

.feat-link svg {
  width: 15px;
  height: 15px;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-xl);
  padding: 60px 40px;
  text-align: center;
  background: var(--gradient-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 50%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 14px;
  position: relative;
}

.cta-band p {
  opacity: 0.92;
  margin-bottom: 28px;
  font-size: 1.1rem;
  position: relative;
}

.cta-band .btn {
  background: #fff;
  color: var(--primary-700);
  position: relative;
}

.cta-band .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 60px 40px;
  background: var(--bg-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 34ch;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.social {
  display: flex;
  gap: 8px;
}

/* ---------- Legal / content pages ---------- */
.legal {
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 90px;
}

.legal .container {
  max-width: 800px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 1rem;
}

.legal ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin-bottom: 16px;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--surface);
  margin-block: 28px;
}

.callout.warn {
  border-color: color-mix(in srgb, #dc2626 40%, var(--border));
  background: color-mix(in srgb, #dc2626 6%, var(--surface));
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  padding-top: calc(var(--nav-h) + 40px);
}

.notfound .code {
  font-size: clamp(5rem, 20vw, 11rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.notfound h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.notfound p {
  color: var(--text-secondary);
  max-width: 44ch;
  margin-bottom: 28px;
}

/* ---------- Utilities ---------- */
.center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

[hidden] {
  display: none !important;
}

/* skip link for a11y */
.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
}

.skip:focus {
  inset-inline-start: 12px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}