/* Pusat Info Production — site styles */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;     /* the site is always dark */
  --indigo: #1b2352;      /* brand field: header, hero, contact */
  --indigo-2: #252f68;    /* raised shapes inside figures */
  --turmeric: #e0ad45;    /* human steps, rules, primary button */
  --paper: #0f1328;       /* page */
  --surface: #151a36;     /* panels */
  --ink: #e6e9f3;         /* body text */
  --muted: #a3aac4;
  --rule: #283058;
  --link: #a9b8ff;        /* links, tool lines in figures */
  --on-indigo: #f1f3fb;
  --on-indigo-muted: #b0b8da;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--indigo); color: var(--on-indigo); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-indigo); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.site-nav a { color: var(--on-indigo-muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-indigo); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--turmeric); }

/* Hero */
.hero { background: var(--indigo); color: var(--on-indigo); padding: clamp(48px, 9vw, 112px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.028em;
  max-width: 14ch;
}
.hero-lede { margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-indigo-muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 3px;
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.3;
}
.btn-primary { background: var(--turmeric); color: #1a1406; }
.btn-primary:hover { background: #d9a12a; }
.btn-ghost { color: var(--on-indigo); box-shadow: inset 0 0 0 1px rgba(243, 244, 250, 0.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--on-indigo); }

.facts { margin: 0; border-top: 1px solid rgba(243, 244, 250, 0.22); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(243, 244, 250, 0.22); font-size: 15px; }
.facts dt { color: var(--on-indigo-muted); }
.facts dd { margin: 0; font-weight: 600; }

/* The memorable element: the baseline the hero sits on */
.hero-base { margin-top: clamp(48px, 8vw, 96px); height: 10px; background: var(--turmeric); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-base { animation: draw 900ms cubic-bezier(.2, .7, .2, 1) 150ms both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.section h2 { margin: 0; font-size: clamp(27px, 3.2vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.section-intro { margin: 0; font-size: 19px; color: var(--muted); max-width: 52ch; }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.columns article { border-top: 3px solid var(--indigo); padding-top: 20px; }
.columns h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.columns p { margin: 0; color: var(--muted); max-width: 38ch; }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 20px 0 0; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--indigo);
  box-shadow: inset 0 0 0 2px var(--indigo);
  font-weight: 700; font-size: 18px; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps li.human::before { background: var(--turmeric); color: #1a1406; box-shadow: none; }
.steps h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; font-size: 15.5px; color: var(--muted); }
.steps-note { margin: 28px 0 0; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.steps-note::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--turmeric); flex: none; }
.columns article { border-top-color: var(--rule); }
.steps li::before { color: var(--ink); box-shadow: inset 0 0 0 2px var(--link); }

/* Platform panel */
.platform { background: var(--surface); }
.platform-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.platform-grid p { max-width: 52ch; }
.platform-grid > div > p:first-of-type { margin-top: 20px; }
.ledger { margin: 0; border: 1px solid var(--rule); border-radius: 4px; }
.ledger h3 { margin: 0; padding: 16px 20px; font-size: 16px; font-weight: 700; background: var(--paper); border-bottom: 1px solid var(--rule); }
.ledger h3:not(:first-child) { border-top: 1px solid var(--rule); }
.ledger ul { margin: 0; padding: 4px 20px 8px; list-style: none; }
.ledger li { padding: 10px 0 10px 26px; position: relative; font-size: 16px; }
.ledger li + li { border-top: 1px solid var(--rule); }
.ledger .does li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 6px; border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg); }
.ledger .never li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 2px; background: var(--muted); }

/* Contact */
.contact { background: var(--indigo); color: var(--on-indigo); }
.contact .section-intro { color: var(--on-indigo-muted); }
.contact-mail { display: inline-block; margin-top: 20px; font-size: clamp(24px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--on-indigo); text-decoration-color: var(--turmeric); text-decoration-thickness: 3px; text-underline-offset: 0.2em; word-break: break-word; }
.contact-mail:hover { text-decoration-thickness: 4px; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 36px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer p { margin: 0; }

/* Legal pages */
.doc-head { background: var(--indigo); color: var(--on-indigo); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 6px solid var(--turmeric); }
.doc-head h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.doc-head p { margin: 14px 0 0; color: var(--on-indigo-muted); font-size: 15.5px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14.5px; }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; padding: 6px 0; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 8px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--turmeric); }
.prose { max-width: 68ch; overflow-wrap: anywhere; }
.prose > p:first-child { font-size: 19px; margin-top: 0; }
.prose h2 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 44px 0 10px; scroll-margin-top: 20px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--turmeric); }
.prose strong { font-weight: 650; }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .steps li::before { grid-row: 1 / span 2; }
  .steps li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .steps h3 { margin: 9px 0 4px; }
}
@media (max-width: 860px) {
  .hero-grid, .section-head, .platform-grid { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 16px; background: var(--surface); }
}
@media (max-width: 520px) {
  .site-nav { width: 100%; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; text-align: center; }
}
@media print {
  .site-header, .hero, .contact, .doc-head { background: none; color: #000; }
  .toc, .site-nav, .hero-actions { display: none; }
}

/* ---------- Figures ---------- */
figure { margin: 0; }
.fig svg { width: 100%; height: auto; }
.fig figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero .fig figcaption { color: var(--on-indigo-muted); }

/* Hero: text left, figure right, facts as a strip underneath */
.hero-grid { align-items: center; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hero-figure { max-width: 580px; justify-self: end; width: 100%; }
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(241, 243, 251, 0.18); }
.facts-strip div { display: block; padding: 18px 20px 0 0; border: 0; }
.facts-strip div + div { padding-left: 20px; border-left: 1px solid rgba(241, 243, 251, 0.18); }
.facts-strip dt { font-size: 14px; }
.facts-strip dd { font-size: 17px; margin-top: 4px; }

/* Column icons */
.col-icon { width: 56px; height: 56px; margin-bottom: 18px; }

/* Platform flow diagram */
.flow { margin-top: clamp(48px, 6vw, 72px); padding: clamp(20px, 3vw, 32px); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
.flow .flow-tall { display: none; max-width: 340px; margin: 0 auto; }
.flow svg text { font-family: "Schibsted Grotesk", system-ui, sans-serif; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; max-width: 460px; }
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .flow .flow-wide { display: none; }
  .flow .flow-tall { display: block; }
}
@media (max-width: 520px) {
  .facts-strip { grid-template-columns: 1fr; }
  .facts-strip div, .facts-strip div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(241, 243, 251, 0.18); }
}

/* What we make: formats drawn at their real aspect ratios */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.formats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.formats article { border-top: 0; padding-top: 0; }
.fmt-frame { height: 120px; display: flex; align-items: flex-end; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); box-sizing: content-box; }
.fmt-fig { height: 120px; width: auto; max-width: 100%; }
.formats .fmt-where { margin-top: 12px; font-size: 14.5px; color: var(--ink); }

.matrix { margin-top: clamp(48px, 6vw, 72px); }
.matrix-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.matrix table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15.5px; }
.matrix th, .matrix td { padding: 16px 20px; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix thead th { font-weight: 600; color: var(--muted); font-size: 14.5px; background: var(--paper); }
.matrix th[scope="row"], .matrix thead th:first-child { text-align: left; }
.matrix th[scope="row"] { font-weight: 700; font-size: 17px; }
.matrix th[scope="row"] span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.matrix .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--link); }
.matrix .nil { display: inline-block; width: 14px; height: 2px; background: var(--rule); vertical-align: middle; }

@media (max-width: 960px) {
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 520px) {
  .formats { grid-template-columns: 1fr; }
}
.matrix-scroll { position: relative; } .matrix td { position: relative; }
.matrix .nil { background: #4a5380; }

/* Homepage link to the tool page */
.tool-link { margin: 24px 0 0; }
.btn-outline { color: var(--ink); box-shadow: inset 0 0 0 1px var(--link); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--link); }

/* Production tool page */
.hero-tool { padding-top: clamp(48px, 7vw, 88px); }
.hero-tool h1 { max-width: none; }
.tool-sub { margin: 14px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.01em; color: var(--on-indigo); max-width: 40ch; line-height: 1.3; }
.hero-tool .hero-lede { max-width: 64ch; }
.hero-tool .hero-base { margin-top: clamp(40px, 6vw, 72px); }
.flow-solo { margin-top: clamp(32px, 4vw, 48px); }
.data-table { margin-top: clamp(32px, 4vw, 48px); }
.data-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table th, .data-table td { padding: 16px 20px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table thead th { font-weight: 600; color: var(--muted); font-size: 14.5px; background: var(--paper); }
.data-table th[scope="row"] { font-weight: 600; width: 46%; }
.data-table td { color: var(--muted); }
ul.plain { margin: 16px 0 0; padding-left: 20px; }
ul.plain li { margin: 10px 0; }
ul.plain li::marker { color: var(--turmeric); }
.h2-small { margin: 0; font-size: 22px; font-weight: 700; }
.platform-grid h2 + p { margin-top: 20px; }
@media (max-width: 600px) {
  .data-table table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: auto; }
  .data-table thead { display: none; }
  .data-table th[scope="row"] { width: auto; border-bottom: 0; padding-bottom: 4px; }
  .data-table td { padding-top: 0; }
}
ul.plain, .platform-grid > div { overflow-wrap: anywhere; min-width: 0; }
