/* GE Uncut — shared styling for the static legal/info pages.
   Mirrors the app's monochrome theme tokens (light default + dark). */
:root {
  color-scheme: light;
  --page: #fbfbfa;
  --surface: #ffffff;
  --surface-raised: #f6f6f5;
  --surface-hover: #efefee;
  --line: #e7e7e4;
  --line-strong: #d6d6d2;
  --ink: #14151a;
  --muted: #5c5f6b;
  --faint: #8a8d99;
  --accent: #16181d;
  --on-accent: #fbfbfa;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c0c0d;
  --surface: #141416;
  --surface-raised: #1a1a1d;
  --surface-hover: #222226;
  --line: #26262a;
  --line-strong: #36363c;
  --ink: #ededf0;
  --muted: #9a9aa4;
  --faint: #6c6c76;
  --accent: #ededf0;
  --on-accent: #141416;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

body {
  font-family: "Inter", system-ui, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar,
.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.content { box-shadow: var(--shadow); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 8px 12px 8px 16px;
  margin-bottom: 16px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
}

.brand-mark svg { width: 15px; height: 15px; }

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  justify-content: flex-end;
}

.topbar-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.topbar-nav a:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.topbar-nav .cta {
  background: var(--accent);
  color: var(--on-accent);
}

.topbar-nav .cta:hover {
  background: var(--accent);
  color: var(--on-accent);
  opacity: 0.9;
}

.content { padding: 34px; }
@media (max-width: 560px) { .content { padding: 24px 20px; } }

h1, h2, p { margin: 0; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; }
h2 {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

p { margin-top: 14px; }
h1 + p, h1 + .last-updated, h1 + .subtitle, h2 + p { margin-top: 8px; }
p, li { color: var(--muted); line-height: 1.7; }
ul { margin: 12px 0 0; padding-left: 22px; }
li { margin-top: 4px; }
strong { color: var(--ink); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
  font-weight: 600;
}
a:hover { text-decoration-color: var(--ink); }

.last-updated, .subtitle { color: var(--faint); font-size: 0.92rem; }
.subtitle { font-size: 0.95rem; }

.back-link { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.back-link a, .fineprint a { text-decoration-color: var(--line-strong); }

.value-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.value-item, .contact-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface-raised);
}

.value-item strong, .contact-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.value-item p, .contact-item p { margin-top: 6px; font-size: 0.9rem; }
.value-item p:first-of-type, .contact-item p:first-of-type { margin-top: 0; }

.response-note {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  font-size: 0.9rem;
  color: var(--muted);
}

.email-cta {
  margin-top: 16px;
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  font-size: 1.05rem;
  font-weight: 700;
}
.email-cta a { color: var(--ink); text-decoration: none; }

.fineprint { margin-top: 18px; color: var(--faint); font-size: 0.82rem; line-height: 1.6; }

@media (max-width: 640px) {
  .value-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* --- Guide / article extras --- */

/* Ordered step lists for walkthroughs */
ol { margin: 12px 0 0; padding-left: 22px; }
ol li { margin-top: 8px; color: var(--muted); line-height: 1.7; }

/* In-page contents / quick links */
.toc {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}
.toc strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); margin-bottom: 8px; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin-top: 4px; }

/* Highlighted callout for tips / key takeaways */
.callout {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface-raised);
}
.callout p { margin-top: 0; }
.callout strong { color: var(--ink); }

/* Worked-example / formula block */
.example {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  font-size: 0.92rem;
}
.example p { margin-top: 8px; }
.example p:first-child { margin-top: 0; }
.example .num { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Guide hub cards (reuses value-grid layout) */
.guide-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface-raised);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}
.guide-card:hover { border-color: var(--line-strong); transform: translateY(-1px); text-decoration: none; }
.guide-card strong { display: block; font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.guide-card span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.6; font-weight: 400; }

/* FAQ question/answer rhythm */
.faq-q { margin-top: 26px; font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.faq-q:first-of-type { margin-top: 8px; }

/* Read-next footer links */
.read-next { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.read-next strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); margin-bottom: 8px; }

/* --- Illustrations: hero band, concept diagrams, example item chips --- */
.hero {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  overflow: hidden;
}
.hero .hero-chart { display: block; width: 100%; height: auto; }
.hero-item {
  position: absolute;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}
@media (max-width: 560px) { .hero-item { width: 30px; height: 30px; } }

figure.diagram { margin: 18px 0 0; }
figure.diagram svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}
figure.diagram figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--faint); text-align: center; }

.items { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
}
.item-chip img { width: 28px; height: 28px; object-fit: contain; }
.item-chip b { color: var(--ink); font-size: 0.88rem; }
.item-chip span { color: var(--faint); font-size: 0.8rem; }
