/* =========================================================
   Lume — Amber Weaver Design System
   Editorial-first. Inbox-native. Woven, not gridded.
   ========================================================= */

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

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

:root {
  /* Primary — Amber (Lume / "the light") */
  --primary:              #904D00;
  --primary-hover:        #6E3A00;
  --primary-soft:         #B8682E;
  --primary-container:    #FFE0BF;
  --on-primary:           #FFFFFF;
  --on-primary-container: #2E1700;

  /* Secondary — Indigo (Loom / "the structure") */
  --secondary:              #3F3D7A;
  --secondary-container:    #E0DFFC;
  --on-secondary:           #FFFFFF;
  --on-secondary-container: #14133A;

  /* Surface hierarchy — depth via stacking, not borders */
  --surface-lowest:        #FFFFFF;
  --surface-low:           #FBF8F3;
  --surface:               #F5EFE5;
  --surface-container:     #F0E7D6;
  --surface-container-high:#EADBC4;

  /* Text */
  --on-surface:           #1F1B16;
  --on-surface-variant:   #6B6358;
  --on-surface-faint:     #948B7E;

  /* Lines — sparingly, only on small components */
  --outline:          rgba(31, 27, 22, 0.12);
  --outline-variant:  rgba(31, 27, 22, 0.06);

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --gutter: 1.25rem;

  /* Radii — no sharp 90° corners anywhere */
  --radius-sm:   0.75rem;
  --radius-md:   1.25rem;
  --radius-lg:   2rem;
  --radius-xl:   2.5rem;
  --radius-pill: 999px;

  /* Shadows — ambient, never harsh */
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.04);
  --shadow-md: 0 6px 20px -8px rgba(31, 27, 22, 0.08);
  --shadow-lg: 0 20px 40px -16px rgba(31, 27, 22, 0.14);
  --shadow-xl: 0 32px 64px -24px rgba(31, 27, 22, 0.18);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface-low);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* =========================================================
   Navigation — glass, sticky, mobile hamburger via CSS-only
   ========================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo::after { content: '.'; color: var(--on-surface); }

.nav-links {
  display: none;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--on-surface-variant);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.18s ease;
  position: relative;
}
.nav-links a:hover { color: var(--on-surface); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Buttons inside the nav need their own colors to win over .nav-links a */
.nav-links a.btn { color: inherit; }
.nav-links a.btn-primary { color: var(--on-primary); padding: 0.65rem 1.25rem; font-size: 0.9rem; }
.nav-links a.btn-primary:hover { color: var(--on-primary); }
.nav-links a.btn-primary.active::after { display: none; }

/* CSS-only mobile menu (checkbox hack — zero JavaScript) */
#nav-toggle-cb { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--surface-container);
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease;
}
.nav-toggle:hover { background: var(--surface-container-high); }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#nav-toggle-cb:checked ~ nav .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle-cb:checked ~ nav .nav-toggle span:nth-child(2) { opacity: 0; }
#nav-toggle-cb:checked ~ nav .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links  { display: flex; }
}

@media (max-width: 767.98px) {
  #nav-toggle-cb:checked ~ nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--surface-low);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.25rem;
    box-shadow: 0 16px 32px -16px rgba(31, 27, 22, 0.14);
  }
  #nav-toggle-cb:checked ~ nav .nav-links a { font-size: 1.125rem; }
  #nav-toggle-cb:checked ~ nav .nav-links a.active::after { display: none; }
  #nav-toggle-cb:checked ~ nav .nav-links a.btn { align-self: flex-start; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: var(--on-primary);
  box-shadow: 0 8px 22px -10px rgba(144, 77, 0, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(144, 77, 0, 0.65); }

.btn-secondary {
  background: var(--surface-lowest);
  color: var(--on-surface);
  border-color: var(--outline);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--on-surface-variant);
}

.btn-ghost { background: transparent; color: var(--on-surface); }
.btn-ghost:hover { background: var(--surface-container); }

.btn-arrow::after {
  content: '→';
  font-size: 1.05rem;
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: flex-start;
}
.btn-row.center { justify-content: center; }

/* =========================================================
   Typography helpers
   ========================================================= */
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--on-surface);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.headline-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--secondary);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(255, 224, 191, 0.55) 0%, rgba(255, 224, 191, 0) 60%),
    radial-gradient(50% 70% at 5% 90%, rgba(224, 223, 252, 0.45) 0%, rgba(224, 223, 252, 0) 60%),
    var(--surface-low);
}

@media (min-width: 768px) {
  .hero { padding: 5.5rem 0 6.5rem; }
}

/* Decorative woven SVG path */
.hero-weave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-text h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 1.25rem 0 1.5rem;
}

.hero-text p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--on-surface-variant);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}

/* =========================================================
   Hero email mockup — the signature visual
   ========================================================= */
.email-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.05;
}

.email-card {
  background: var(--surface-lowest);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-md);
  position: absolute;
  width: 78%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-card .from {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.email-card .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--on-surface-variant);
  flex-shrink: 0;
}

.email-card .subject {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--on-surface);
}

.email-card .preview {
  font-size: 0.78rem;
  color: var(--on-surface-variant);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.email-1 { top: 4%;  left: 0;     transform: rotate(-3.5deg); z-index: 1; }
.email-2 { top: 22%; right: 0;    transform: rotate(2.5deg);  z-index: 2; }
.email-3 { top: 40%; left: 6%;    transform: rotate(-1.5deg); z-index: 3; }

/* The Lume summary — the "woven" outcome */
.email-summary {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-xl);
  z-index: 4;
}

.email-summary .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.email-summary .lume-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.email-summary .lume-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(144, 77, 0, 0.18);
}

.email-summary .timestamp {
  font-size: 0.72rem;
  color: var(--on-surface-faint);
}

.email-summary h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.email-summary .summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-low);
  border-radius: var(--radius-sm);
}
.summary-row .vendor { color: var(--on-surface-variant); font-weight: 500; }
.summary-row .price  { color: var(--on-surface); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-row.best {
  background: var(--primary-container);
}
.summary-row.best .vendor { color: var(--on-primary-container); font-weight: 600; }
.summary-row.best .price  { color: var(--on-primary-container); }

.summary-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-mini {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-mini.approve {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-mini.review {
  background: var(--surface);
  color: var(--on-surface);
}

/* Hide background email cards on very small screens; just show the summary */
@media (max-width: 480px) {
  .email-stack { aspect-ratio: 1 / 0.85; max-width: 360px; }
  .email-1, .email-2, .email-3 { display: none; }
  .email-summary { position: relative; transform: none; left: auto; bottom: auto; width: 100%; }
}

/* =========================================================
   Features — Bento grid (asymmetric)
   ========================================================= */
.features {
  padding: 5rem 0 6rem;
  background: var(--surface);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  margin: 0.85rem 0 0.85rem;
}
.section-head p {
  color: var(--on-surface-variant);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
  .bento-item-lg  { grid-column: span 4; }
  .bento-item-md  { grid-column: span 3; }
  .bento-item-sm  { grid-column: span 2; }
  .bento-item-wide{ grid-column: span 6; }
}

.bento-item {
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-item.indigo {
  background: var(--secondary);
  color: var(--on-secondary);
}
.bento-item.indigo h3 { color: var(--on-secondary); }
.bento-item.indigo p  { color: rgba(255, 255, 255, 0.78); }

.bento-item.amber {
  background: linear-gradient(135deg, var(--primary-container) 0%, #FFD0A0 100%);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-container);
  color: var(--primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.bento-item.indigo .bento-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-secondary);
}
.bento-item.amber .bento-icon {
  background: var(--surface-lowest);
  color: var(--primary);
}

.bento-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}
.bento-item p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Inline mini email demo inside a feature card */
.mini-email {
  margin-top: auto;
  background: var(--surface-low);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  font-size: 0.85rem;
}
.bento-item.indigo .mini-email { background: rgba(255, 255, 255, 0.08); }
.mini-email .row { display: flex; justify-content: space-between; gap: 0.5rem; }
.mini-email .row + .row { margin-top: 0.35rem; }
.mini-email .label { color: var(--on-surface-faint); font-weight: 500; }
.bento-item.indigo .mini-email .label { color: rgba(255, 255, 255, 0.55); }
.mini-email .value { color: var(--on-surface); font-weight: 600; }
.bento-item.indigo .mini-email .value { color: var(--on-secondary); }
.mini-email .cc { color: var(--primary); font-weight: 700; }
.bento-item.indigo .mini-email .cc { color: var(--primary-container); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  padding: 5rem 0 5.5rem;
  background: var(--surface-low);
}

.cta-card {
  background: linear-gradient(135deg, #2E1700 0%, var(--primary) 60%, var(--primary-soft) 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cta-card { padding: 4.5rem 3rem; }
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--on-primary);
  position: relative;
  z-index: 1;
}
.cta-card p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
.cta-card .btn-row { position: relative; z-index: 1; }
.cta-card .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--on-surface);
  border-color: transparent;
}
.cta-card .btn-secondary:hover { background: var(--surface-lowest); }
.cta-card .btn-ghost {
  color: var(--on-primary);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* =========================================================
   Inner-page header
   ========================================================= */
.page-header {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(50% 80% at 80% 20%, rgba(255, 224, 191, 0.5) 0%, rgba(255, 224, 191, 0) 60%),
    var(--surface-low);
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 1rem 0 1rem;
}
.page-header p {
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* =========================================================
   About — story + asymmetric stats + values
   ========================================================= */
.story {
  padding: 4.5rem 0 5rem;
  background: var(--surface-low);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.prose h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.prose p {
  color: var(--on-surface-variant);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}
.prose p strong { color: var(--on-surface); font-weight: 600; }

/* Asymmetric stat block */
.stat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.stat {
  background: var(--surface-lowest);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.stat:nth-child(1) {
  grid-row: span 2;
  background: var(--secondary);
  color: var(--on-secondary);
}
.stat:nth-child(1) .stat-label { color: rgba(255, 255, 255, 0.7); }
.stat:nth-child(1) .stat-number { color: var(--on-secondary); }

.stat:nth-child(4) {
  background: var(--primary-container);
}
.stat:nth-child(4) .stat-number { color: var(--on-primary-container); }
.stat:nth-child(4) .stat-label { color: var(--on-primary-container); opacity: 0.7; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  font-weight: 500;
  line-height: 1.4;
}

/* Values */
.values {
  padding: 4rem 0 5rem;
  background: var(--surface);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.value-card {
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.value-card .bento-icon { background: var(--secondary-container); color: var(--secondary); }
.value-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-card p  { color: var(--on-surface-variant); font-size: 0.95rem; line-height: 1.55; }

/* =========================================================
   Contact
   ========================================================= */
.contact-section {
  padding: 4.5rem 0 5.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
}
@media (min-width: 768px) {
  .contact-card { padding: 3rem 3rem; }
}

.contact-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.contact-card > p {
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface-low);
  border-radius: var(--radius-md);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.78rem;
  color: var(--on-surface-variant);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.contact-item-text span,
.contact-item-text a {
  color: var(--on-surface);
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}
.contact-item-text a:hover { color: var(--primary); }

/* =========================================================
   Legal
   ========================================================= */
.legal-section {
  padding: 3.5rem 0 5rem;
}

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}
.updated-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-toc {
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}
.legal-toc h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-surface-variant);
  margin-bottom: 1rem;
}
.legal-toc ol {
  padding-left: 1.25rem;
  columns: 1;
}
@media (min-width: 600px) {
  .legal-toc ol { columns: 2; column-gap: 2rem; }
}
.legal-toc li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--on-surface);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}
.legal-toc a:hover { color: var(--primary); }

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 3rem 0 0.85rem;
  scroll-margin-top: 90px;
  color: var(--on-surface);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body ul {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-body ul { padding-left: 1.5rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a  { color: var(--primary); }

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: #1F1B16;
  color: rgba(255, 255, 255, 0.62);
  padding: 3.5rem 0 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
  }
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFE0BF;
  margin-bottom: 0.85rem;
  display: inline-block;
}
.footer-brand .logo::after { content: '.'; color: rgba(255,255,255,0.5); }
.footer-brand p {
  font-size: 0.9rem;
  max-width: 360px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: #FFE0BF; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding: 1.75rem var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* =========================================================
   Reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
