/* =========================================================
   Café English — Design System stylesheet
   ========================================================= */

:root {
  --primary: #432835;
  --primary-2: #2f1a25;
  --primary-3: #5a3a47;
  --cream: #FDF5EF;
  --cream-2: #F6E9DC;
  --coral: #ED6B7C;
  --coral-2: #D8566A;
  --taupe: #A17A74;
  --sand: #D9B8A2;
  --sand-2: #E8CEB9;
  --white: #FFFFFF;

  --ink: var(--primary);
  --ink-soft: #6A4D59;
  --hairline: rgba(67,40,53,.14);

  --r-sm: 2px; --r-md: 8px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --sp-2xs: 4px; --sp-xs: 8px; --sp-sm: 12px; --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px;
  --sp-4xl: 96px; --sp-5xl: 128px;

  --sh-sm: 0 1px 2px rgba(67,40,53,.08);
  --sh-md: 0 4px 12px rgba(67,40,53,.10);
  --sh-lg: 0 12px 28px rgba(67,40,53,.14);
  --sh-xl: 0 28px 60px rgba(67,40,53,.22);

  --mo-fast: 120ms cubic-bezier(.2,.8,.2,1);
  --mo-base: 200ms cubic-bezier(.2,.8,.2,1);
  --mo-slow: 360ms cubic-bezier(.2,.8,.2,1);

  --f-body: 'Cabin', system-ui, sans-serif;
  --f-display: 'Bebas Neue', 'Cabin', sans-serif;

  --density: 1;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary);
  color: var(--cream);
  border-bottom: 1px solid rgba(253,245,239,.1);
}
.topbar-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 32px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; background: var(--cream); border-radius: 50%; padding: 3px; }
.brand-name { font-family: var(--f-display); font-size: 22px; letter-spacing: .08em; line-height: 1; }
.brand-sub { font-family: var(--f-display); font-size: 11px; letter-spacing: .22em; opacity: .6; margin-top: 3px; }
.topnav { display: flex; gap: 22px; justify-content: center; }
.topnav a {
  color: var(--cream);
  font-size: 14px;
  text-decoration: none;
  opacity: .75;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: all var(--mo-fast);
}
.topnav a:hover { opacity: 1; border-color: var(--coral); }
.topbar-meta { text-align: right; }

/* =========================================================
   LAYOUT & SECTIONS
   ========================================================= */
main { overflow: hidden; }
.sec {
  max-width: 1360px;
  margin: 0 auto;
  padding: 112px 32px;
}
.sec-cream { background: var(--cream-2); max-width: none; padding-left: 0; padding-right: 0; }
.sec-cream > * { max-width: 1360px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }

.sec-head { margin-bottom: 56px; max-width: 720px; }
.sec-head h2 {
  font-family: var(--f-body); font-weight: 700;
  font-size: clamp(40px, 4vw, 56px); line-height: 1.05;
  margin: 6px 0 16px; letter-spacing: -.01em;
}
.sec-sub { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--primary);
  opacity: .7;
}
.topbar .eyebrow { color: var(--cream); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  max-width: 1360px; margin: 0 auto;
  padding: 88px 32px 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero h1.display {
  font-family: var(--f-body); font-weight: 700;
  font-size: clamp(56px, 6.2vw, 88px);
  line-height: 1; letter-spacing: -.02em;
  color: var(--primary);
  margin: 12px 0 24px;
  text-wrap: balance;
}
.hero h1.display em { font-style: italic; color: var(--coral); }
.hero .lede {
  font-size: 20px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.kbd {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  background: var(--primary);
  color: var(--cream);
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.hero-mark { display: flex; justify-content: center; }
.hero-mark-plate {
  background: var(--sand);
  padding: 48px;
  border-radius: 24px;
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 440px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-lg);
}
.hero-mark-plate::before {
  content: '';
  position: absolute; inset: 14px;
  border: 1.5px solid var(--primary);
  border-radius: 16px;
  opacity: .4;
}
.hero-mark-plate img { width: 72%; }
.hero-words {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-display);
  letter-spacing: .24em;
  font-size: 12px;
  color: var(--primary);
  opacity: .8;
}

/* =========================================================
   PRINCIPLES
   ========================================================= */
.principles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.principle {
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
}
.principle-num {
  font-family: var(--f-display);
  font-size: 28px; letter-spacing: .1em;
  color: var(--coral);
  margin-bottom: 16px;
}
.principle h3 {
  font-size: 22px; font-weight: 700;
  margin: 0 0 8px; color: var(--primary);
}
.principle p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0; }

/* =========================================================
   COLOR
   ========================================================= */
.swatch-group { margin-bottom: 64px; }
.swatch-group-title {
  font-family: var(--f-display);
  font-size: 14px; letter-spacing: .24em;
  color: var(--primary); opacity: .7;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.swatch {
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--r-lg);
  padding: 24px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-sm);
}
.swatch-chip {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid currentColor;
  opacity: .7;
}
.swatch-chip.bordered { background: transparent; }
.swatch-meta { margin-top: auto; }
.swatch-name { font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; }
.swatch-hex { font-family: ui-monospace, monospace; font-size: 14px; margin-top: 4px; opacity: .9; }
.swatch-cmyk { font-family: ui-monospace, monospace; font-size: 11px; margin-top: 2px; opacity: .65; }
.swatch-role { font-size: 12px; margin-top: 10px; opacity: .8; }

.scale-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin-bottom: 18px;
  align-items: center;
}
.scale-label {
  font-family: var(--f-display); letter-spacing: .2em;
  font-size: 13px; color: var(--primary);
}
.scale {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  height: 48px;
}
.scale span { border-radius: 6px; }
.scale-ticks {
  grid-column: 2;
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-family: ui-monospace, monospace;
  font-size: 10px; opacity: .55; margin-top: 4px;
  gap: 4px;
}
.scale-ticks span { text-align: center; }

.pairings { margin-top: 48px; }
.pairing-title {
  font-family: var(--f-display);
  font-size: 14px; letter-spacing: .24em;
  color: var(--primary); opacity: .7;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}
.pairing-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.pair {
  aspect-ratio: 1/1;
  border-radius: var(--r-md);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  font-family: var(--f-body); font-weight: 700;
}
.pair div { font-family: var(--f-body); font-size: 40px; font-weight: 700; }
.pair small { font-size: 11px; font-weight: 400; opacity: .85; }
.pair.dont { position: relative; }
.pair.dont::after {
  content: '✕ KERÜLD';
  position: absolute; top: 10px; right: 12px;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .15em;
  color: #FDF5EF; background: #432835; padding: 2px 6px; border-radius: 3px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.type-specimen { display: flex; flex-direction: column; gap: 64px; }
.type-family {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}
.family-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 24px; flex-wrap: wrap; }
.family-name { color: var(--primary); }
.family-role { font-family: var(--f-display); letter-spacing: .22em; font-size: 12px; color: var(--ink-soft); }
.family-sample { padding: 12px 0; }
.family-weights {
  margin-top: 24px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--f-body); color: var(--primary);
  font-size: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline);
}

.type-scale-title {
  font-family: var(--f-display); font-size: 14px; letter-spacing: .24em;
  opacity: .7; margin: 16px 0 16px;
}
.scale-table {
  width: 100%; border-collapse: collapse;
  background: var(--cream-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 14px;
}
.scale-table th {
  text-align: left; padding: 14px 16px;
  font-family: var(--f-display); letter-spacing: .2em; font-size: 11px;
  color: var(--primary); opacity: .8;
  background: rgba(67,40,53,.06);
  border-bottom: 1px solid var(--hairline);
}
.scale-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.scale-table tr:last-child td { border-bottom: none; }
.scale-table .col-preview { width: 30%; }
.scale-table tbody td:first-child { color: var(--primary); font-weight: 600; }

/* =========================================================
   SPACING TOKENS
   ========================================================= */
.token-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}
.token-block {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
}
.token-block h3 {
  font-size: 20px; margin: 0 0 20px; color: var(--primary);
}
.spacing-list, .elev-list, .motion-list { display: flex; flex-direction: column; gap: 10px; }
.spacing-row {
  display: grid; grid-template-columns: 60px 70px 1fr;
  align-items: center; gap: 12px;
  font-size: 13px;
}
.tok { font-family: var(--f-display); letter-spacing: .2em; font-size: 12px; color: var(--primary); }
.tok-val { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-soft); }
.spacing-bar { height: 18px; background: var(--coral); border-radius: 3px; }

.radius-list { display: flex; flex-direction: column; gap: 14px; }
.radius-item { display: flex; align-items: center; gap: 14px; }
.radius-box { width: 44px; height: 44px; background: var(--sand); border: 1px solid var(--primary); }

.elev { background: var(--cream); border-radius: var(--r-md); padding: 12px 14px; font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; border: 1px solid var(--hairline); }
.motion-row { display: grid; grid-template-columns: 60px 1fr 100px; gap: 10px; font-size: 12px; color: var(--ink-soft); align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--hairline); }
.motion-row:last-child { border: none; }

/* =========================================================
   COMPONENTS
   ========================================================= */
.comp-block {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}
.comp-block:first-of-type { border-top: none; padding-top: 0; }
.comp-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.comp-head h3 { font-size: 28px; margin: 0; color: var(--primary); font-weight: 700; }
.comp-caption { color: var(--ink-soft); font-size: 14px; max-width: 48ch; }
.comp-stage {
  background: var(--cream-2);
  border-radius: var(--r-lg);
  padding: 40px;
  border: 1px solid var(--hairline);
}
.comp-legend {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 16px;
  font-family: ui-monospace, monospace;
  font-size: 12px; color: var(--ink-soft);
}
.comp-legend b { color: var(--primary); font-family: var(--f-display); letter-spacing: .15em; font-weight: 400; }

/* Buttons */
.btn {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--mo-fast);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: .01em;
  line-height: 1.2;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { font-size: 13px; padding: 8px 14px; }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-primary { background: var(--coral); color: var(--cream); box-shadow: 0 2px 0 var(--coral-2); }
.btn-primary:hover:not(:disabled) { background: var(--coral-2); transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0,0,0,.1); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn-secondary { background: var(--primary); color: var(--cream); box-shadow: 0 2px 0 var(--primary-2); }
.btn-secondary:hover:not(:disabled) { background: var(--primary-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--taupe); }
.btn-ghost:hover:not(:disabled) { background: var(--sand); }
.btn-link { background: transparent; color: var(--coral); padding-left: 0; padding-right: 0; border-radius: 0; border: none; border-bottom: 1.5px solid var(--coral); }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; background: var(--primary); color: var(--cream); border-radius: 50%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.btn-row:last-child { margin-bottom: 0; }

/* Badges */
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.badge-row:last-child { margin-bottom: 0; }
.badge.level {
  font-family: var(--f-display);
  font-size: 15px; letter-spacing: .12em;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--cream);
  display: inline-flex; align-items: center;
  min-width: 42px; justify-content: center;
}
.badge.level.a1 { background: oklch(0.65 0.14 55); }
.badge.level.a2 { background: oklch(0.60 0.14 40); }
.badge.level.b1 { background: oklch(0.58 0.16 20); }
.badge.level.b2 { background: var(--coral); }
.badge.level.c1 { background: oklch(0.48 0.10 10); }
.badge.level.c2 { background: var(--primary); }

.tag {
  font-family: var(--f-body); font-weight: 500;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--taupe);
  border-radius: var(--r-full);
  color: var(--primary);
  background: transparent;
}
.tag-accent { background: var(--coral); color: var(--cream); border-color: var(--coral); font-weight: 600; }

.pill {
  font-size: 12px; padding: 4px 12px;
  border-radius: var(--r-full);
  font-weight: 500;
}
.pill-success { background: rgba(67,40,53,.06); color: oklch(0.5 0.1 150); }
.pill-warn { background: rgba(237,107,124,.14); color: var(--coral-2); }
.pill-mute { background: rgba(67,40,53,.08); color: var(--ink-soft); }

/* Forms */
.comp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}
.comp-form .field { display: flex; flex-direction: column; gap: 6px; }
.comp-form .field:nth-child(3), .comp-form .field:nth-child(4) { grid-column: 1 / -1; }
.field-label {
  font-family: var(--f-display); letter-spacing: .18em;
  font-size: 11px; color: var(--primary); opacity: .75;
}
.input {
  font-family: var(--f-body); font-size: 15px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--r-md);
  color: var(--primary);
  transition: border var(--mo-fast), box-shadow var(--mo-fast);
  width: 100%;
  resize: vertical;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(237,107,124,.2); }

.field-row { grid-column: 1 / -1; display: flex; gap: 20px; flex-wrap: wrap; }
.check, .radio {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--primary);
  cursor: pointer;
}
.check input, .radio input { position: absolute; opacity: 0; }
.check span, .radio span {
  width: 20px; height: 20px;
  border: 1.5px solid var(--taupe);
  background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--mo-fast);
}
.check span { border-radius: 4px; }
.radio span { border-radius: 50%; }
.check input:checked + span { background: var(--coral); border-color: var(--coral); }
.check input:checked + span::after { content: '✓'; color: var(--cream); font-size: 13px; }
.radio input:checked + span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.radio input:checked + span { border-color: var(--coral); }

/* Cards */
.card-stage {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
  padding: 32px;
}
.card {
  background: var(--cream);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform var(--mo-base), box-shadow var(--mo-base);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.card-image {
  aspect-ratio: 4/3;
  background: var(--sand);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.placeholder-stripe {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, var(--sand) 0 12px, var(--sand-2) 12px 24px);
  opacity: .8;
}
.placeholder-tag {
  position: relative;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: rgba(67,40,53,.82);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: .08em;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 22px; margin: 0; color: var(--primary); font-weight: 700; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.card-meta { display: flex; gap: 8px; align-items: center; }
.bullets { margin: 4px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; }
.bullets li { margin-bottom: 4px; }
.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
}
.price-amt { font-family: var(--f-display); font-size: 28px; color: var(--primary); letter-spacing: .02em; }
.price-cur { font-size: 13px; color: var(--ink-soft); margin-left: 4px; }

.card-course-accent { background: var(--coral); color: var(--cream); border: none; }
.card-course-accent .card-body h3, .card-course-accent .price-amt { color: var(--cream); }
.card-course-accent .card-body p, .card-course-accent .price-cur, .card-course-accent .card-meta { color: rgba(253,245,239,.82); }
.card-course-accent .tag { border-color: rgba(253,245,239,.45); color: var(--cream); }
.card-course-accent .card-foot { border-color: rgba(253,245,239,.25); }
.card-course-accent .btn-primary { background: var(--primary); box-shadow: 0 2px 0 var(--primary-2); }

.teacher-portrait {
  aspect-ratio: 1/1;
  background: var(--sand);
  margin: 22px 22px 0;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.card-teacher .card-body { padding-top: 14px; }

.card-quote { padding: 28px; background: var(--primary); color: var(--cream); border: none; }
.card-quote .quote-mark { font-family: Georgia, serif; font-size: 80px; line-height: .6; color: var(--coral); margin-bottom: 8px; }
.card-quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.card-quote em { color: var(--coral); font-style: italic; }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(253,245,239,.2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); }
.quote-name { font-weight: 700; font-size: 14px; }
.quote-role { font-size: 12px; opacity: .7; }

.teacher-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-soft);
  font-family: ui-monospace, monospace;
  margin-top: 4px;
}

/* Callouts */
.callout-stage { display: flex; flex-direction: column; gap: 12px; }
.callout {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border-left: 4px solid;
  font-size: 15px;
}
.callout-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--f-display); font-size: 16px;
  flex-shrink: 0;
}
.callout-info { background: rgba(67,40,53,.06); border-color: var(--primary); color: var(--primary); }
.callout-info .callout-icon { background: var(--primary); color: var(--cream); }
.callout-success { background: rgba(217,184,162,.35); border-color: oklch(0.5 0.1 150); color: var(--primary); }
.callout-success .callout-icon { background: oklch(0.5 0.1 150); color: var(--cream); }
.callout-warn { background: rgba(237,107,124,.14); border-color: var(--coral); color: var(--primary); }
.callout-warn .callout-icon { background: var(--coral); color: var(--cream); }

/* Navigation demo */
.demo-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--primary);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: var(--r-lg);
}
.demo-nav-left { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.demo-logo { width: 44px; height: 44px; background: var(--cream); border-radius: 50%; padding: 3px; }
.demo-nav-links { display: flex; gap: 20px; justify-content: center; }
.demo-nav-links a {
  color: var(--cream); font-size: 14px; opacity: .75;
  padding: 6px 0; border-bottom: 2px solid transparent;
  cursor: pointer; transition: all var(--mo-fast);
}
.demo-nav-links a:hover { opacity: 1; }
.demo-nav-links a.active { opacity: 1; border-color: var(--coral); }
.demo-nav-right { display: flex; gap: 10px; }

/* Stamps */
.stamp-stage { display: flex; gap: 40px; align-items: center; justify-content: center; padding: 40px; }
.stamp-seal .stamp-outer {
  --s: var(--primary);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--s);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px var(--s);
}
.stamp-seal .stamp-inner {
  text-align: center;
}
.stamp-num { font-family: var(--f-display); font-size: 56px; line-height: 1; letter-spacing: .02em; }
.stamp-label { font-family: var(--f-display); font-size: 14px; letter-spacing: .28em; margin-top: 6px; }

.stamp-ring { position: relative; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; }
.ring-text svg { position: absolute; inset: 0; animation: ring-spin 18s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.ring-core {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--coral); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 40px; letter-spacing: .08em;
}

/* =========================================================
   EXAMPLE PAGE MOCKUP
   ========================================================= */
.example-frame {
  background: var(--cream);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.ex-nav {
  background: var(--primary);
  color: var(--cream);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 28px;
}
.ex-brand { display: flex; align-items: center; gap: 12px; }
.ex-brand img { width: 42px; height: 42px; background: var(--cream); border-radius: 50%; padding: 2px; }
.ex-brand-name { font-family: var(--f-display); font-size: 20px; letter-spacing: .08em; line-height: 1; }
.ex-brand-sub { font-family: var(--f-display); font-size: 10px; letter-spacing: .22em; opacity: .6; margin-top: 2px; }
.ex-nav nav { display: flex; gap: 22px; justify-content: center; }
.ex-nav nav a {
  color: var(--cream); font-size: 14px; opacity: .75;
  padding: 4px 0; cursor: pointer;
  border-bottom: 1.5px solid transparent;
}
.ex-nav nav a.active { opacity: 1; border-color: var(--coral); }

.ex-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 72px 56px;
  align-items: center;
}
.ex-hero h1 em { font-style: italic; }
.ex-hero .lede { font-size: 18px; color: var(--ink-soft); margin-top: 12px; }
.ex-hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.ex-hero-proof {
  margin-top: 40px;
  display: flex; gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.ex-hero-proof > div { display: flex; flex-direction: column; }
.ex-hero-proof b { font-family: var(--f-display); font-size: 32px; color: var(--primary); letter-spacing: .02em; line-height: 1; }
.ex-hero-proof span { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.ex-hero-art { position: relative; }
.hero-photo {
  aspect-ratio: 4/5;
  background: var(--sand);
  border-radius: var(--r-lg);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-sticker {
  position: absolute; top: -16px; right: -16px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--f-display);
  font-size: 16px; letter-spacing: .14em;
  transform: rotate(-12deg);
  box-shadow: var(--sh-md);
  border: 3px solid var(--cream);
}

.ex-courses { padding: 56px; border-top: 1px solid var(--hairline); background: var(--cream-2); }
.ex-courses-head { margin-bottom: 32px; text-align: center; }
.ex-courses-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--primary); color: var(--cream); margin-top: 80px; }
.foot-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 40px 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 42px; height: 42px; background: var(--cream); border-radius: 50%; padding: 2px; }
.foot-meta { font-size: 13px; opacity: .75; text-align: right; }
.foot-meta div { margin-bottom: 4px; }

/* =========================================================
   TWEAKS
   ========================================================= */
.tweaks {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 280px;
  background: var(--primary);
  color: var(--cream);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  z-index: 100;
  overflow: hidden;
  font-family: var(--f-body);
}
.tweaks.hidden { display: none; }
.tweaks-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(253,245,239,.15); font-family: var(--f-display); letter-spacing: .2em; font-size: 14px; }
.tweaks-head button { background: transparent; color: var(--cream); border: none; font-size: 22px; cursor: pointer; line-height: 1; }
.tweaks-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.tweaks-body label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tweaks-body input[type=color] { width: 42px; height: 28px; border: none; background: none; padding: 0; cursor: pointer; }
.tweaks-body select { background: var(--cream); color: var(--primary); border: none; padding: 4px 8px; border-radius: 4px; font-family: inherit; }
.switch input { width: 36px; height: 20px; appearance: none; background: rgba(253,245,239,.2); border-radius: 999px; position: relative; cursor: pointer; transition: background var(--mo-fast); }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--cream); border-radius: 50%; transition: transform var(--mo-fast); }
.switch input:checked { background: var(--coral); }
.switch input:checked::after { transform: translateX(16px); }

/* Grid overlay */
#grid-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(237,107,124,.12) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(237,107,124,.12) 0 1px, transparent 1px 8px);
  z-index: 99;
  display: none;
}
body.grid-on #grid-overlay { display: block; }

/* Density variants */
body[data-density="compact"] { --density: .8; }
body[data-density="compact"] .sec { padding-top: 72px; padding-bottom: 72px; }
body[data-density="compact"] .comp-stage { padding: 24px; }
body[data-density="roomy"] { --density: 1.2; }
body[data-density="roomy"] .sec { padding-top: 144px; padding-bottom: 144px; }

@media (max-width: 1100px) {
  .hero-grid, .ex-hero { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .token-grid { grid-template-columns: repeat(2, 1fr); }
  .card-stage, .ex-courses-grid { grid-template-columns: 1fr; }
  .pairing-grid { grid-template-columns: repeat(3, 1fr); }
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
}
