/* Shared dark editorial shell for specialty SEO and draft legal pages. */
:root {
  color-scheme: dark;
  --ink: #0b0f0c;
  --panel: #111712;
  --panel-2: #131a16;
  --paper: #f5f2eb;
  --muted: rgba(245, 242, 235, 0.66);
  --faint: rgba(245, 242, 235, 0.42);
  --line: rgba(245, 242, 235, 0.13);
  --mint: #2fe38b;
  --mint-soft: #7ecda4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(70rem 42rem at 50% -20rem, rgba(47, 227, 139, 0.1), transparent 70%),
    var(--ink);
  color: var(--paper);
  font: 17px/1.65 "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

a { color: var(--mint-soft); }
a:hover { color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 12, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--paper);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img { width: 34px; height: auto; }
.brand-dot { color: var(--mint); }

.top-nav { display: flex; align-items: center; gap: 28px; }
.top-nav a {
  color: rgba(245, 242, 235, 0.72);
  font: 12px/1 "Fragment Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--paper); }
.top-nav .nav-cta {
  padding: 12px 18px;
  border: 1px solid rgba(47, 227, 139, 0.5);
  border-radius: 999px;
  color: var(--mint);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 11vw, 150px) 0 clamp(76px, 9vw, 120px);
}

.hero::after {
  position: absolute;
  right: -12rem;
  bottom: -18rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(47, 227, 139, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(47, 227, 139, 0.025), 0 0 0 140px rgba(47, 227, 139, 0.018);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.eyebrow,
.section-label,
.card-label,
.draft-label {
  margin: 0 0 18px;
  color: var(--mint);
  font: 12px/1.5 "Fragment Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font: 500 clamp(3.3rem, 7vw, 6.4rem)/0.98 "Newsreader", Georgia, serif;
  letter-spacing: -0.025em;
}

h1 em, h2 em { color: rgba(245, 242, 235, 0.5); font-style: italic; }

.hero-copy {
  max-width: 59ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(245, 242, 235, 0.25);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
}
.button-primary { border-color: var(--mint); background: var(--mint); color: var(--ink); }
.button-primary:hover { background: #55eda2; color: var(--ink); }

.live-demo-card {
  display: inline-grid;
  gap: 7px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(47, 227, 139, 0.3);
  border-radius: 16px;
  background: rgba(47, 227, 139, 0.055);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.live-demo-card:hover {
  border-color: rgba(47, 227, 139, 0.68);
  background: rgba(47, 227, 139, 0.09);
  color: var(--paper);
  transform: translateY(-1px);
}

.live-demo-status,
.footer-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font: 11px/1.4 "Fragment Mono", ui-monospace, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.live-demo-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(47, 227, 139, 0.1);
}

.live-demo-card strong {
  font: 400 clamp(1.35rem, 2.7vw, 1.75rem)/1.15 "Fragment Mono", ui-monospace, monospace;
  letter-spacing: -0.035em;
}

.live-demo-card small { color: var(--muted); font-size: 13px; }

.call-path {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(47, 227, 139, 0.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(47, 227, 139, 0.08), rgba(245, 242, 235, 0.025));
  box-shadow: 0 32px 80px -44px rgba(0, 0, 0, 0.9);
}

.path-list { list-style: none; margin: 22px 0 0; padding: 0; }
.path-list li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.path-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(47, 227, 139, 0.45);
  border-radius: 50%;
  color: var(--mint);
  font: 11px/1 "Fragment Mono", ui-monospace, monospace;
}

.content-section { padding: clamp(72px, 9vw, 118px) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: clamp(38px, 5vw, 60px); }
h2 {
  max-width: 18ch;
  margin: 0;
  font: 500 clamp(2.5rem, 5vw, 4.4rem)/1.03 "Newsreader", Georgia, serif;
  letter-spacing: -0.02em;
}
.section-intro { max-width: 60ch; margin: 20px 0 0; color: var(--muted); font-size: 18px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(245, 242, 235, 0.028);
}
.card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card-label { margin-bottom: 42px; }

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 8vw, 100px); align-items: start; }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 5px; }
.feature-list p { margin: 0; color: var(--muted); }

.boundary {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(47, 227, 139, 0.25);
  border-radius: 24px;
  background: var(--panel);
}
.boundary h2 { max-width: 21ch; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 36px; }
.boundary h3 { margin: 0 0 10px; font-size: 18px; }
.boundary ul { margin: 0; padding-left: 20px; color: var(--muted); }

.faq { max-width: 860px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  position: relative;
  padding: 23px 46px 23px 0;
  cursor: pointer;
  color: var(--paper);
  font-weight: 650;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: 8px; content: "+"; color: var(--mint); font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 65ch; margin: -5px 0 24px; color: var(--muted); }

.closing { padding: clamp(84px, 11vw, 140px) 0; text-align: center; }
.closing h2 { margin-inline: auto; }
.closing p { max-width: 54ch; margin: 20px auto 0; color: var(--muted); }
.closing .actions { justify-content: center; }

.page-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-copy { max-width: 36ch; margin: 12px 0 0; color: var(--faint); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }

.footer-live-line {
  display: grid;
  gap: 7px;
  min-width: max-content;
}

.footer-live-line > a {
  color: var(--paper);
  font: 400 15px/1.4 "Fragment Mono", ui-monospace, monospace;
  text-decoration: none;
}

.footer-live-line > a:hover { color: var(--mint); }

.draft-banner {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 207, 112, 0.4);
  background: #2a2110;
  color: #ffe0a0;
  text-align: center;
  font: 700 13px/1.5 "Fragment Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.legal-hero { padding: clamp(64px, 8vw, 100px) 0 60px; }
.legal-hero h1 { max-width: 16ch; font-size: clamp(3rem, 6vw, 5.2rem); }
.legal-meta { color: var(--faint); font: 12px/1.6 "Fragment Mono", ui-monospace, monospace; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(40px, 8vw, 100px); padding-bottom: 100px; }
.legal-toc { position: sticky; top: 110px; align-self: start; }
.legal-toc a { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.legal-copy section { padding: 0 0 36px; scroll-margin-top: 110px; }
.legal-copy h2 { max-width: none; font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -0.01em; }
.legal-copy h3 { margin: 24px 0 8px; font-size: 18px; }
.legal-copy p, .legal-copy li { color: var(--muted); }
.legal-copy ul { padding-left: 22px; }
.legal-note { padding: 20px; border-left: 3px solid var(--mint); background: rgba(47, 227, 139, 0.06); }
.placeholder { color: #ffe0a0; font-family: "Fragment Mono", ui-monospace, monospace; }

@media (max-width: 850px) {
  .top-nav a:not(.nav-cta) { display: none; }
  .hero-grid, .split, .legal-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-label { margin-bottom: 28px; }
  .legal-toc { position: static; columns: 2; }
  .footer-grid { flex-wrap: wrap; }
  .footer-links { flex-basis: 100%; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .header-inner, .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .top-nav { gap: 10px; }
  .top-nav .nav-cta { padding: 10px 12px; font-size: 10.5px; }
  .hero { padding-top: 68px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .boundary-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .legal-toc { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
