/* ============================================================
   Explain The Card — compact landing page
   Monochrome iOS 26 "Liquid Glass" design system.
   Single-screen stage: focused hero (left) + an iOS-style
   feature sheet (right). The brand tint is ink-700 charcoal —
   the only accent in an otherwise grayscale UI. The ONLY other
   color is the five muted mana identities, reserved for pips.
   No gradients on chrome, no emoji.

   Dark mode follows the OS by default and can be flipped with
   the nav toggle: a manual choice forces .dark / .light on
   <html>, which wins over the prefers-color-scheme default.
   ============================================================ */

/* ---------------- Tokens : color ---------------- */
:root {
  /* ink scale (neutral, very slightly cool) */
  --ink-0:   #ffffff;
  --ink-50:  #f6f6f8;
  --ink-100: #ececef;
  --ink-150: #e3e3e7;
  --ink-200: #d6d6db;
  --ink-300: #c2c2c9;
  --ink-400: #a4a4ad;
  --ink-500: #8a8a92;
  --ink-600: #6a6a72;
  --ink-700: #48484e;
  --ink-800: #2c2c30;
  --ink-900: #1b1b1d;
  --ink-950: #111113;
  --ink-1000:#000000;

  --gray-rgb: 60, 60, 67;
  --fill-rgb: 120, 120, 128;

  /* labels */
  --label-primary:    rgba(0,0,0,1);
  --label-secondary:  rgba(var(--gray-rgb), 0.60);
  --label-tertiary:   rgba(var(--gray-rgb), 0.30);
  --label-quaternary: rgba(var(--gray-rgb), 0.18);
  --label-inverse:    #ffffff;

  /* fills */
  --fill-primary:    rgba(var(--fill-rgb), 0.20);
  --fill-secondary:  rgba(var(--fill-rgb), 0.16);
  --fill-tertiary:   rgba(var(--fill-rgb), 0.12);
  --fill-quaternary: rgba(var(--fill-rgb), 0.08);

  /* backgrounds */
  --bg-base:        #ffffff;
  --bg-secondary:   #f2f2f7;
  --bg-grouped:     #f2f2f7;
  --bg-grouped-cell:#ffffff;

  /* separators */
  --separator:        rgba(var(--gray-rgb), 0.29);
  --separator-opaque: #c6c6c8;

  /* iOS system materials (light) */
  --mat-bar:       rgba(255,255,255,0.80);
  --mat-hairline:  rgba(0,0,0,0.06);

  /* brand tint (interactive) = ink-700 charcoal */
  --tint:          var(--ink-700);
  --tint-pressed:  var(--ink-800);
  --tint-wash:     rgba(72, 72, 78, 0.12);
  --on-tint:       #ffffff;

  /* mana identities — muted, paper-leaning. Pips ONLY. */
  --mana-w: #f4efe1;  --mana-w-ink: #6b6450;
  --mana-u: #b7d3e3;  --mana-u-ink: #2b5b73;
  --mana-b: #c5bcc4;  --mana-b-ink: #3c3540;
  --mana-r: #e6b9a8;  --mana-r-ink: #8c3d29;
  --mana-g: #bcd0b6;  --mana-g-ink: #3f6537;
  --mana-c: #d9d6d2;  --mana-c-ink: #5a564f;

  /* ---------------- Tokens : type ---------------- */
  --font-text:    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700; --w-heavy: 800;

  --t-large-title: 34px; --lh-large-title: 41px;
  --t-title3: 20px; --lh-title3: 25px;
  --t-headline: 17px; --lh-headline: 22px;
  --t-body: 17px; --lh-body: 22px;
  --t-subhead: 15px; --lh-subhead: 20px;
  --t-footnote: 13px; --lh-footnote: 18px;

  --tr-large-title: 0.37px;
  --tr-headline: -0.43px;
  --tr-body: -0.41px;
  --tr-subhead: -0.24px;
  --tr-footnote: -0.08px;
  --tr-mono: 0.2px;

  /* ---------------- Tokens : spacing ---------------- */
  --s-1: 2px; --s-2: 4px; --s-3: 8px; --s-4: 12px; --s-5: 16px;
  --s-6: 20px; --s-7: 24px; --s-8: 32px; --s-9: 40px;
  --navbar-height: 56px;
  --content-max: 1180px;

  /* ---------------- Tokens : effects ---------------- */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --r-xl: 28px; --r-pill: 999px;

  --mat-blur-bar: saturate(200%) blur(40px);

  --shadow-sm:   0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-pip:  0 1px 1px rgba(0,0,0,0.18), inset 0 1px 1px rgba(255,255,255,0.45);

  --hairline: 0.5px solid var(--separator);

  --ease-ios:    cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast: 140ms; --dur-base: 240ms; --dur-slow: 380ms;
}

/* ---------------- Dark mode ----------------
   Two paths to the same values:
   1) OS preference, unless the user forced light (html.light)
   2) Manual override (html.dark) — wins over the OS default   */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --label-primary:    rgba(255,255,255,1);
    --label-secondary:  rgba(235,235,245, 0.60);
    --label-tertiary:   rgba(235,235,245, 0.30);
    --label-quaternary: rgba(235,235,245, 0.18);
    --label-inverse:    #000000;
    --gray-rgb: 235, 235, 245;
    --fill-primary:    rgba(var(--fill-rgb), 0.36);
    --fill-secondary:  rgba(var(--fill-rgb), 0.32);
    --fill-tertiary:   rgba(var(--fill-rgb), 0.24);
    --fill-quaternary: rgba(var(--fill-rgb), 0.18);
    --bg-base:        #000000;
    --bg-secondary:   #1c1c1e;
    --bg-grouped:     #000000;
    --bg-grouped-cell:#1c1c1e;
    --separator:        rgba(var(--gray-rgb), 0.34);
    --separator-opaque: #38383a;
    --mat-bar:       rgba(20,20,22,0.80);
    --mat-hairline:  rgba(0,0,0,0.40);
    --tint:          var(--ink-150);
    --tint-pressed:  var(--ink-300);
    --tint-wash:     rgba(235, 235, 245, 0.14);
    --on-tint:       var(--ink-900);
    --mana-w: #e4ddca;  --mana-w-ink: #4a4636;
    --mana-u: #5a87a3;  --mana-u-ink: #d9ecf5;
    --mana-b: #4d4654;  --mana-b-ink: #d6cfdb;
    --mana-r: #a8543f;  --mana-r-ink: #f5ddd3;
    --mana-g: #4f7a47;  --mana-g-ink: #dcecd6;
    --mana-c: #6a665f;  --mana-c-ink: #e6e2dc;
    --shadow-md:   0 4px 12px rgba(0,0,0,0.40), 0 1px 3px rgba(0,0,0,0.30);
    --shadow-lg:   0 12px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.30);
  }
}
:root.dark {
  --label-primary:    rgba(255,255,255,1);
  --label-secondary:  rgba(235,235,245, 0.60);
  --label-tertiary:   rgba(235,235,245, 0.30);
  --label-quaternary: rgba(235,235,245, 0.18);
  --label-inverse:    #000000;
  --gray-rgb: 235, 235, 245;
  --fill-primary:    rgba(var(--fill-rgb), 0.36);
  --fill-secondary:  rgba(var(--fill-rgb), 0.32);
  --fill-tertiary:   rgba(var(--fill-rgb), 0.24);
  --fill-quaternary: rgba(var(--fill-rgb), 0.18);
  --bg-base:        #000000;
  --bg-secondary:   #1c1c1e;
  --bg-grouped:     #000000;
  --bg-grouped-cell:#1c1c1e;
  --separator:        rgba(var(--gray-rgb), 0.34);
  --separator-opaque: #38383a;
  --mat-bar:       rgba(20,20,22,0.80);
  --mat-hairline:  rgba(0,0,0,0.40);
  --tint:          var(--ink-150);
  --tint-pressed:  var(--ink-300);
  --tint-wash:     rgba(235, 235, 245, 0.14);
  --on-tint:       var(--ink-900);
  --mana-w: #e4ddca;  --mana-w-ink: #4a4636;
  --mana-u: #5a87a3;  --mana-u-ink: #d9ecf5;
  --mana-b: #4d4654;  --mana-b-ink: #d6cfdb;
  --mana-r: #a8543f;  --mana-r-ink: #f5ddd3;
  --mana-g: #4f7a47;  --mana-g-ink: #dcecd6;
  --mana-c: #6a665f;  --mana-c-ink: #e6e2dc;
  --shadow-md:   0 4px 12px rgba(0,0,0,0.40), 0 1px 3px rgba(0,0,0,0.30);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.30);
}

/* ---------------- Reset + base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  color: var(--label-primary);
  background: var(--bg-grouped);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-base) var(--ease-out);
}
a { color: var(--tint); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--tint-wash); }

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--s-6);
}

/* ============================================================
   Page stage
   ============================================================ */
.etc-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* soft specular bloom behind the hero (a light source, not a bg gradient) */
.etc-bloom {
  position: fixed;
  top: 40%; left: 38%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
      rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 58%);
  pointer-events: none;
  z-index: 0;
}
:root.dark .etc-bloom,
.etc-bloom.is-dark {
  background: radial-gradient(circle at center,
      rgba(120,120,135,0.18) 0%, rgba(120,120,135,0) 60%);
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) .etc-bloom {
    background: radial-gradient(circle at center,
        rgba(120,120,135,0.18) 0%, rgba(120,120,135,0) 60%);
  }
}

/* ============================================================
   Nav bar (Bar material)
   ============================================================ */
.etc-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--navbar-height);
  padding: 0 max(16px, calc((100vw - var(--content-max)) / 2 + 20px));
  background: var(--mat-bar);
  -webkit-backdrop-filter: var(--mat-blur-bar);
  backdrop-filter: var(--mat-blur-bar);
  border-bottom: 0.5px solid var(--mat-hairline);
}
.etc-nav-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.etc-nav-icon {
  width: 30px; height: 30px;
  border-radius: 7.5px;
  box-shadow: var(--shadow-sm), 0 0 0 0.5px var(--separator);
  flex: none;
}
.etc-nav-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: var(--w-semibold);
  letter-spacing: -0.3px;
  color: var(--label-primary);
  white-space: nowrap;
}
.etc-nav-links { display: flex; align-items: center; gap: 6px; }
.etc-nav-link {
  font-size: 15px; font-weight: var(--w-medium);
  letter-spacing: -0.2px;
  color: var(--label-secondary);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.etc-nav-link:hover { background: var(--fill-quaternary); color: var(--label-primary); }
.etc-nav-link.is-active { color: var(--label-primary); }

.etc-theme {
  width: 34px; height: 34px; margin-left: 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--fill-tertiary);
  color: var(--label-secondary);
  border: none; cursor: pointer; flex: none;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.etc-theme:hover { background: var(--fill-secondary); color: var(--label-primary); }
.etc-theme:active { transform: scale(0.9); }

/* ============================================================
   Stage layout
   ============================================================ */
.etc-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 3vw, 64px);
  align-items: center;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 44px) 20px clamp(28px, 5vh, 48px);
}

/* ============================================================
   Hero (left column)
   ============================================================ */
.etc-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 480px;
}
.etc-hero-mark { display: flex; align-items: center; gap: 14px; }
.etc-hero-icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  box-shadow: var(--shadow-md), 0 0 0 0.5px var(--separator);
  flex: none;
}
.etc-hero-id { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.etc-hero-tagline {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.01em;
  color: var(--label-secondary);
}
.etc-title {
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  font-size: clamp(40px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--label-primary);
  text-wrap: balance;
}
.etc-sub {
  font-size: 19px; line-height: 1.45;
  color: var(--label-secondary);
  margin: 0; max-width: 30em;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* value-prop chips */
.etc-learn { display: flex; flex-wrap: wrap; gap: 9px; }
.etc-learn-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: var(--w-medium);
  letter-spacing: -0.01em;
  color: var(--label-primary);
  background: var(--fill-tertiary);
  border-radius: var(--r-pill);
  padding: 6px 15px 6px 6px;
}
.etc-learn-ic {
  width: 27px; height: 27px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-grouped-cell);
  color: var(--label-secondary);
  box-shadow: var(--shadow-sm), 0 0 0 0.5px var(--separator);
  flex: none;
}

/* mana pips — letters on muted identity colors (the only color anywhere) */
.etc-pips { display: inline-flex; align-items: center; }
.etc-pip {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: var(--w-heavy);
  line-height: 1;
  box-shadow: var(--shadow-pip);
  flex: none;
}
.etc-pip-w { background: var(--mana-w); color: var(--mana-w-ink); }
.etc-pip-u { background: var(--mana-u); color: var(--mana-u-ink); }
.etc-pip-b { background: var(--mana-b); color: var(--mana-b-ink); }
.etc-pip-r { background: var(--mana-r); color: var(--mana-r-ink); }
.etc-pip-g { background: var(--mana-g); color: var(--mana-g-ink); }
.etc-pip-c { background: var(--mana-c); color: var(--mana-c-ink); }

/* composer (the centerpiece) */
.etc-composer {
  width: 100%; max-width: 460px; min-height: 58px;
  background: var(--bg-grouped-cell);
  border-radius: var(--r-md);
  border: 0.5px solid var(--separator);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center;
  padding: 8px 8px 8px 16px;
  gap: 10px;
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.etc-composer.is-focus { border-color: var(--label-tertiary); box-shadow: var(--shadow-lg); }
.etc-composer .spark { color: var(--label-tertiary); flex: none; display: flex; }
.etc-composer-input-wrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.etc-composer input {
  width: 100%;
  border: none; outline: none; background: transparent;
  font-family: var(--font-text);
  font-size: 17px; letter-spacing: -0.01em;
  color: var(--label-primary);
  position: relative; z-index: 1;
}
.etc-ph {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 17px; letter-spacing: -0.01em;
  color: var(--label-tertiary);
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.etc-ph.anim { animation: phIn 0.5s var(--ease-out); }
@keyframes phIn {
  from { opacity: 0; transform: translateY(calc(-50% + 6px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
.etc-scan {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--label-secondary);
  background: var(--fill-tertiary);
  border: none; cursor: pointer; flex: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.etc-scan:hover { background: var(--fill-secondary); }
.etc-scan:active { transform: scale(0.9); }

/* App Store badge + footnote */
.etc-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.etc-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 18px 0 15px;
  border-radius: var(--r-md);
  background: #000; color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
:root.dark .etc-appstore { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .etc-appstore { background: #fff; color: #000; }
}
.etc-appstore:hover { opacity: 0.9; }
.etc-appstore:active { transform: scale(0.97); }

/* Coming-soon: greyed out, non-interactive (neutral fill in both themes) */
.etc-appstore.is-soon,
:root.dark .etc-appstore.is-soon {
  background: var(--fill-secondary);
  color: var(--label-secondary);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) .etc-appstore.is-soon {
    background: var(--fill-secondary);
    color: var(--label-secondary);
  }
}

.etc-soon-pill {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--fill-tertiary);
  color: var(--label-secondary);
  font-size: 12px; font-weight: var(--w-semibold);
  letter-spacing: 0.01em;
  border: var(--hairline);
}
.etc-as-logo { width: 26px; height: 26px; flex: none; }
.etc-as-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.etc-as-text small { font-size: 11px; font-weight: var(--w-medium); letter-spacing: 0.01em; opacity: 0.92; margin-bottom: 2px; }
.etc-as-text strong { font-family: var(--font-display); font-size: 19px; font-weight: var(--w-semibold); letter-spacing: -0.02em; }

.etc-footnote { font-size: 13px; color: var(--label-tertiary); letter-spacing: -0.01em; }

/* ============================================================
   Feature sheet (right column)
   ============================================================ */
.etc-sheet-col { display: flex; justify-content: center; align-items: center; min-width: 0; }
.etc-sheet {
  width: 100%; max-width: 412px;
  height: min(80vh, 720px);
  background: var(--bg-grouped);
  border-radius: 28px;
  border: 0.5px solid var(--separator);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.etc-grabber {
  width: 36px; height: 5px;
  border-radius: 3px;
  background: var(--label-quaternary);
  margin: 8px auto 0; flex: none;
}
.etc-sheet-scroll {
  flex: 1; overflow-y: auto;
  padding: 16px 20px 22px;
  -webkit-overflow-scrolling: touch;
}
.etc-sheet-scroll::-webkit-scrollbar { width: 0; }

/* scroll hint — 'more below' fade + bobbing chevron */
.etc-scroll-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 68px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 12px;
  pointer-events: none;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(to top, var(--bg-grouped) 26%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.etc-scroll-hint.is-on { opacity: 1; }
.etc-scroll-chev {
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  color: var(--label-secondary);
  background: var(--bg-grouped-cell);
  box-shadow: var(--shadow-sm), 0 0 0 0.5px var(--separator);
  animation: etc-hintbob 1.7s var(--ease-out) infinite;
}
@keyframes etc-hintbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* segmented control */
.etc-seg {
  display: flex; gap: 2px; padding: 2px;
  background: var(--fill-tertiary);
  border-radius: var(--r-sm);
  margin-bottom: 18px;
}
.etc-seg button {
  flex: 1; text-align: center;
  padding: 6px 8px;
  font-family: var(--font-text);
  font-size: var(--t-subhead);
  font-weight: var(--w-medium);
  letter-spacing: var(--tr-subhead);
  color: var(--label-secondary);
  background: transparent; border: none; cursor: pointer;
  border-radius: calc(var(--r-sm) - 3px);
  transition: color var(--dur-fast) var(--ease-out);
}
.etc-seg button.is-active {
  background: var(--bg-grouped-cell);
  color: var(--label-primary);
  font-weight: var(--w-semibold);
  box-shadow: var(--shadow-sm);
}

/* panels */
.etc-panel { display: none; }
.etc-panel.is-active { display: block; }

.etc-section-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: var(--w-semibold);
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--label-secondary);
  margin: 4px 2px 11px;
}
.etc-section-label.mt { margin-top: 18px; }

.etc-explain { font-size: 16px; line-height: 1.5; color: var(--label-primary); }
.etc-explain p { margin: 0 0 11px; }
.etc-explain strong { font-weight: var(--w-semibold); }
.etc-explain .pitch { color: var(--label-secondary); }
.etc-worth-label { font-weight: var(--w-semibold); margin-top: 2px; }

/* divider before the live example */
.etc-ex-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; }
.etc-ex-divider::before, .etc-ex-divider::after { content: ""; height: 0.5px; background: var(--separator); flex: 1; }
.etc-ex-divider span {
  font-size: 11px; font-weight: var(--w-semibold);
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--label-tertiary); white-space: nowrap;
}

/* live example header + faux card thumbnail */
.etc-ex-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.etc-thumb {
  width: 86px; height: 120px;
  border-radius: 7px; flex: none; overflow: hidden; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  background: #18120e; border: 2px solid #0d0a07;
}
.etc-thumb .art {
  position: absolute; top: 5px; left: 5px; right: 5px; height: 58px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 32%, #c14a30 0%, transparent 44%),
    radial-gradient(circle at 30% 74%, #5e1410 0%, transparent 56%),
    linear-gradient(160deg, #2a0b0b 0%, #0b0507 100%);
}
.etc-thumb .plate {
  position: absolute; top: 65px; left: 5px; right: 5px; height: 11px;
  border-radius: 2px; background: linear-gradient(#e9dcc3, #cdbf9f);
  display: flex; align-items: center; padding: 0 3px;
  font-size: 4.5px; font-weight: 700; color: #2a2118; letter-spacing: 0.2px;
  overflow: hidden; white-space: nowrap;
}
.etc-thumb .tbox {
  position: absolute; top: 80px; left: 5px; right: 5px; bottom: 5px;
  border-radius: 2px; background: linear-gradient(#e9dcc3, #d8c9aa); padding: 4px;
}
.etc-thumb .tbox .ln { height: 2px; border-radius: 1px; background: rgba(42,33,24,0.35); margin-bottom: 3px; }
.etc-thumb .tbox .ln.s { width: 58%; }
.etc-ex-meta { display: flex; flex-direction: column; gap: 7px; padding-top: 2px; min-width: 0; }
.etc-ex-name { font-family: var(--font-display); font-size: 19px; font-weight: var(--w-bold); letter-spacing: -0.02em; line-height: 1.12; }
.etc-ex-type { font-family: var(--font-mono); font-size: 13px; color: var(--label-secondary); line-height: 1.25; }
.etc-ex-set { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.01em; color: var(--label-tertiary); }

.etc-bullet { display: flex; gap: 9px; margin-bottom: 7px; align-items: flex-start; }
.etc-bullet .d { color: var(--label-tertiary); line-height: 1.5; }

.etc-oracle {
  font-family: var(--font-mono);
  font-size: 13.5px; line-height: 1.5;
  color: var(--label-primary);
  background: var(--bg-grouped-cell);
  border: 0.5px solid var(--separator);
  border-radius: var(--r-md);
  padding: 14px; margin-top: 14px;
  white-space: pre-line;
}

/* share / copy chips */
.etc-share-row { display: flex; gap: 8px; margin-top: 16px; }
.etc-share-chip {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: var(--w-medium);
  color: var(--label-primary);
  background: var(--fill-tertiary);
  border: none; border-radius: var(--r-sm);
  padding: 8px 14px; cursor: pointer;
  font-family: var(--font-text);
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.etc-share-chip:hover { background: var(--fill-secondary); }
.etc-share-chip:active { transform: scale(0.96); }

/* ask tab */
.etc-asked {
  font-size: 13px; color: var(--label-secondary);
  background: var(--tint-wash);
  border-radius: var(--r-sm);
  padding: 9px 12px; margin-bottom: 14px;
  line-height: 1.4; letter-spacing: -0.01em;
}
.etc-asked b { color: var(--label-primary); font-weight: var(--w-semibold); }
.etc-ask {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px;
  background: var(--fill-tertiary);
  border-radius: var(--r-md);
  padding: 0 6px 0 14px; margin-top: 11px;
  cursor: pointer; border: none; width: 100%;
  font-family: var(--font-text);
}
.etc-ask .ph { flex: 1; text-align: left; font-size: 15px; color: var(--label-tertiary); letter-spacing: -0.01em; }
.etc-ask .send {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--tint); color: var(--on-tint);
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* plans tab */
.etc-plans { display: flex; flex-direction: column; gap: 10px; }
.etc-plan {
  display: flex; align-items: baseline; gap: 12px;
  background: var(--bg-grouped-cell);
  border: 0.5px solid var(--separator);
  border-radius: var(--r-md);
  padding: 14px 15px;
}
.etc-plan.is-feature { box-shadow: 0 0 0 1px var(--label-primary) inset; border-color: transparent; }
.etc-plan-main { flex: 1; min-width: 0; }
.etc-plan-name {
  font-size: 16px; font-weight: var(--w-semibold); letter-spacing: -0.01em;
  color: var(--label-primary); display: flex; align-items: center; gap: 8px;
}
.etc-plan-desc { font-size: 13.5px; line-height: 1.4; color: var(--label-secondary); margin-top: 3px; }
.etc-plan-price {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: var(--w-semibold); letter-spacing: 0.01em;
  color: var(--label-primary); white-space: nowrap; flex: none;
}
.etc-plan-price .per { color: var(--label-tertiary); font-weight: var(--w-medium); }
.etc-price-note { font-size: 12px; color: var(--label-tertiary); margin: 12px 4px 0; line-height: 1.45; }

/* attribution (all tabs) */
.etc-attribution {
  margin-top: 22px; padding-top: 16px;
  border-top: 0.5px solid var(--separator);
  font-size: 11px; line-height: 1.45;
  color: var(--label-tertiary);
}
.etc-attribution a { color: var(--label-secondary); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Slim footer + RosaLabs studio ribbon
   ============================================================ */
footer.bottom {
  position: relative; z-index: 1;
  border-top: var(--hairline);
  padding-block: var(--s-5);
}
footer.bottom .wrap {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--s-4) var(--s-6);
}
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-6); font-size: var(--t-subhead); }
.foot-links a { color: var(--label-secondary); }
.foot-links a:hover { color: var(--label-primary); }
.copyright { color: var(--label-tertiary); font-size: var(--t-footnote); margin: 0; }

footer .studio-ribbon {
  display: inline-flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 16px 0 6px;
  background: var(--fill-tertiary);
  color: var(--label-secondary);
  text-decoration: none;
  font-size: 12.5px; line-height: 1;
  white-space: nowrap; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
footer .studio-ribbon img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
footer .studio-ribbon strong { color: var(--label-primary); font-weight: 700; letter-spacing: -0.01em; margin-left: 3px; }
footer .studio-ribbon:hover { color: var(--label-primary); background: var(--tint-wash); }

/* ============================================================
   Shared chrome for legal / privacy pages
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--navbar-height);
  background: var(--mat-bar);
  -webkit-backdrop-filter: var(--mat-blur-bar);
  backdrop-filter: var(--mat-blur-bar);
  border-bottom: 0.5px solid var(--mat-hairline);
}
.navbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.navbar .wordmark { height: 30px; width: auto; }
.navbar .wordmark.dark { display: none; }
:root.dark .navbar .wordmark.light { display: none; }
:root.dark .navbar .wordmark.dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .navbar .wordmark.light { display: none; }
  :root:not(.light) .navbar .wordmark.dark { display: block; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-6);
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: var(--t-headline); font-weight: var(--w-semibold);
  letter-spacing: var(--tr-headline);
  cursor: pointer; border: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--tint); color: var(--on-tint); }
.btn-primary:active { background: var(--tint-pressed); }
.btn-secondary { background: var(--fill-tertiary); color: var(--label-primary); }
.btn-secondary:active { background: var(--fill-secondary); }
.btn-nav { min-height: 36px; padding: 0 var(--s-5); font-size: var(--t-subhead); }

.doc { max-width: 720px; margin: 0 auto; padding-block: var(--s-9); padding-inline: var(--s-6); }
.doc h1 {
  font-family: var(--font-display);
  font-size: var(--t-large-title); line-height: var(--lh-large-title);
  font-weight: var(--w-bold); letter-spacing: var(--tr-large-title);
  margin: 0 0 var(--s-4);
}
.doc .updated { color: var(--label-tertiary); font-size: var(--t-footnote); margin: 0 0 var(--s-9); }
.doc h2 { font-size: var(--t-title3); font-weight: var(--w-semibold); margin: var(--s-9) 0 var(--s-3); }
.doc p { color: var(--label-secondary); line-height: 1.55; }
.doc .note {
  background: var(--fill-quaternary);
  border: var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  color: var(--label-secondary);
  font-size: var(--t-subhead); line-height: 1.5;
}
.doc .back { display: inline-block; margin-bottom: var(--s-7); font-size: var(--t-subhead); }
.doc h3 { font-size: var(--t-headline); font-weight: var(--w-semibold); margin: var(--s-7) 0 var(--s-3); }
.doc p { margin: 0 0 var(--s-4); }
.doc a { color: var(--tint); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--label-primary); font-weight: var(--w-semibold); }
.doc ul { margin: 0 0 var(--s-4); padding-left: var(--s-6); }
.doc li { color: var(--label-secondary); line-height: 1.55; margin-bottom: var(--s-2); }
.doc hr {
  border: 0;
  border-top: var(--hairline);
  margin: var(--s-8) 0;
}
.doc .table-wrap { overflow-x: auto; margin: 0 0 var(--s-5); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-subhead);
  line-height: 1.5;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--hairline);
  color: var(--label-secondary);
}
.doc th {
  color: var(--label-primary);
  font-weight: var(--w-semibold);
  border-bottom: 1px solid var(--separator-opaque);
}
.doc blockquote {
  margin: 0 0 var(--s-4);
  padding: var(--s-4) var(--s-6);
  border-left: 3px solid var(--separator-opaque);
  background: var(--fill-quaternary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--label-secondary);
  font-size: var(--t-subhead); line-height: 1.55;
}
.doc blockquote p:last-child { margin-bottom: 0; }
.doc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--fill-tertiary);
  border-radius: var(--r-xs);
  padding: 0.1em 0.4em;
}

/* ============================================================
   Responsive — stack, sheet flows inline
   ============================================================ */
@media (max-width: 900px) {
  .etc-stage {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    text-align: center;
    row-gap: 32px;
    padding-top: clamp(28px, 7vh, 64px);
  }
  .etc-hero { align-items: center; max-width: 540px; }
  .etc-sub { text-align: center; }
  .etc-learn, .etc-actions { justify-content: center; }
  .etc-composer { margin: 0 auto; }
  .etc-nav-link.legal, .etc-nav-link.privacy { display: none; }
  .etc-sheet-col { width: 100%; }
  .etc-sheet { max-width: 480px; margin: 0 auto; height: auto; }
  .etc-sheet-scroll { overflow: visible; }
  .etc-scroll-hint { display: none; }
}
@media (max-width: 420px) {
  .etc-title { font-size: 38px; }
  .etc-sub { font-size: 17px; }
  .etc-ex-name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .btn:active, .etc-scan:active, .etc-theme:active, .etc-share-chip:active, .etc-appstore:active { transform: none; }
}
