/* Kolabaja — "framed canvas" layout: every section is a rounded panel
   floating on a backdrop, chips with hairline borders, one highlighted word
   per headline. Light (paper) by default since 2026-10-18: many visitors are
   older and read better on a light page. Piksel red is the only accent. */
:root {
  --bg: #ece6da;
  --panel: #fbf8f2;
  --panel-2: #f3eee4;
  --chip: rgba(18, 17, 14, 0.035);
  --line: rgba(18, 17, 14, 0.1);
  --line-2: rgba(18, 17, 14, 0.18);
  --text: #12110e;
  --muted: #5f594f;
  --dim: #6d665b;
  --red: #b52a2a;
  --red-hover: #c9332f;
  --red-press: #96211f;
  --red-hot: #b52a2a;
  --on-red: #fff4e1;
  --paper: #f6f2ea;
  --paper-2: #ece6da;
  --paper-line: #ddd5c6;
  --ink: #12110e;
  --ink-muted: #6d665b;
  --ok: #1a7f4b;
  --warn: #a36500;
  --bad: #b52a2a;
  --font: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 28px;
  --gutter: clamp(16px, 3vw, 28px);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* star field from the dark theme, off on paper */
body::before {
  display: none;
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 240, 210, 0.35), transparent 60%),
    radial-gradient(1px 1px at 78% 14%, rgba(255, 240, 210, 0.25), transparent 60%),
    radial-gradient(1px 1px at 33% 71%, rgba(255, 240, 210, 0.2), transparent 60%),
    radial-gradient(1px 1px at 91% 63%, rgba(255, 240, 210, 0.3), transparent 60%),
    radial-gradient(1px 1px at 55% 41%, rgba(255, 240, 210, 0.18), transparent 60%),
    radial-gradient(1px 1px at 6% 88%, rgba(255, 240, 210, 0.25), transparent 60%);
  z-index: -1;
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(32px, 4.6vw, 54px);
}

h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0 0 1em;
}

/* anchors land below the sticky nav */
section[id],
form[id] {
  scroll-margin-top: 96px;
}

/* numbers line up in columns */
.stats b,
.facts b,
.ring b,
.pillar b,
.mock-row b,
.chart .peak b {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 2px;
}

.light :focus-visible {
  outline-color: var(--red);
}

/* visually hidden, still read by screen readers */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

/* one highlight everywhere: a solid red, no gradient split across words */
.hl {
  color: var(--red-hot);
}

.light .hl {
  color: var(--red);
}

.dim {
  color: #857e72;
}

.light .dim {
  color: #756e62;
}

.fine {
  font-size: 15px;
  color: var(--muted);
}

.light .fine {
  color: var(--ink-muted);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--red);
  color: var(--on-red);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ------------------------------------------------------------------ */
/* Panels: the framed-canvas look                                      */
/* ------------------------------------------------------------------ */

.panel {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto 20px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.panel.light {
  background: var(--paper);
  color: var(--ink);
  border-color: transparent;
}

.panel-in {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
}

.panel-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  opacity: 0.45;
}

.light.panel-grid::before {
  background-image:
    linear-gradient(rgba(18, 17, 14, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 14, 0.05) 1px, transparent 1px);
}

.center {
  text-align: center;
}

.center h2,
.center .lede {
  margin-left: auto;
  margin-right: auto;
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 60ch;
}

.light .lede {
  color: var(--ink-muted);
}

.r-partial {
  max-width: 60ch;
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--red) 10%, transparent);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.r-partial[hidden] {
  display: none;
}

/* chip / pill label: "[icon] Results" */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--chip);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 22px;
}

.light .pill {
  border-color: var(--paper-line);
  background: #fff;
  color: var(--ink);
}

.pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.pill-accent svg {
  stroke: var(--red-hot);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 6px 6px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(18, 17, 14, 0.08), rgba(18, 17, 14, 0.02));
  color: var(--text);
  font: 500 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.2s;
}

.btn:hover {
  border-color: var(--red-hot);
}

.btn:active {
  transform: translateY(1px);
}

.btn .arr {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--red);
  color: var(--on-red);
}

.btn .arr svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn-plain {
  padding: 6px 18px;
}

.btn-solid {
  padding: 6px 20px;
  background: var(--red);
  color: var(--on-red);
  border-color: transparent;
}

.btn-solid:hover {
  border-color: transparent;
  background: var(--red-hover);
}

.light .btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 12px auto 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--red-hot);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.on {
  color: var(--text);
}

.nav-links a.on::after {
  transform: scaleX(1);
}

.nav-links .only-sm,
.nav-toggle {
  display: none;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-actions .lnk {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}

.nav-actions .lnk:hover {
  color: var(--text);
}

/* "Ajukan pilot" is the only filled button in the nav */
.nav .btn {
  min-height: 40px;
  font-size: 16px;
  background: var(--red);
  color: var(--on-red);
  border-color: transparent;
}

.nav .btn:hover {
  background: var(--red-hover);
}

.nav .btn .arr {
  width: 30px;
  height: 30px;
  background: rgba(26, 18, 6, 0.14);
  box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  min-height: min(860px, calc(100svh - 90px));
  display: flex;
  flex-direction: column;
}

.hero .panel-in {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: 40px;
}

/* the big arc from below */
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 22%;
  width: 150%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(18, 17, 14, 0.08);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -220px;
  width: 900px;
  height: 420px;
  transform: translateX(-50%);
  display: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 26px;
}

.kicker .pill {
  margin: 0;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  max-width: 22ch;
}

.hero h1 .line {
  display: block;
}

/* The typed line sits in a grid cell sized by an invisible copy of the longest
   phrase (data-sizer), so typing never reflows the page. */
.hero h1 .line.type-line,
.type-line {
  display: grid;
  justify-content: center;
}

.type-line::before {
  content: attr(data-sizer);
  grid-area: 1 / 1;
  visibility: hidden;
}

.type-line .typed {
  grid-area: 1 / 1;
  text-align: center;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--text);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero .lede {
  margin: 22px auto 32px;
  max-width: 56ch;
  text-align: center;
}

/* one joined control: field and solid button share a single rounded border */
.scan-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scan-form:focus-within {
  border-color: var(--red-hot);
  box-shadow: 0 0 0 2px rgba(181, 42, 42, 0.25);
}

.scan-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 500 18px var(--font);
}

.scan-form input:focus {
  outline: none;
}

.scan-form input::placeholder {
  color: #6d665b;
  font-weight: 400;
  opacity: 1;
}

/* the brightest element in the hero */
.btn-cta {
  background: var(--red);
  color: var(--on-red);
  border-color: transparent;
  font-weight: 600;
}

.btn-cta:hover {
  background: var(--red-hover);
  border-color: transparent;
}

.btn-cta .arr {
  background: rgba(26, 18, 6, 0.14);
  box-shadow: none;
}

.scan-form .btn {
  min-height: 52px;
  border-radius: 11px;
}

.scan-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
  min-height: 1.6em;
}

.scan-note[data-state='error'] {
  color: var(--bad);
}

/* floating icon tiles */
.floaters {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* decorative tiles live in the outer gutters only; hidden where there is no gutter */
.tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 17, 14, 0.05), rgba(18, 17, 14, 0.01));
  opacity: 0.55;
  animation: float 7s ease-in-out infinite;
}

.tile svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  stroke-width: 1.6;
  fill: none;
}

.tile:nth-child(1) { left: 3%; top: 16%; animation-delay: -1s; }
.tile:nth-child(2) { left: 6%; top: 32%; animation-delay: -3s; }
.tile:nth-child(3) { left: 3%; top: 48%; animation-delay: -5s; }
.tile:nth-child(4) { right: 3%; top: 16%; animation-delay: -2s; }
.tile:nth-child(5) { right: 6%; top: 32%; animation-delay: -4s; }
.tile:nth-child(6) { right: 3%; top: 48%; animation-delay: -6s; }

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

/* flow chips: equal-height single-line nodes joined by one dashed connector,
   tags centred on the connector */
.flow {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: clamp(40px, 6vw, 72px);
}

.flow .node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 10px 0 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.85);
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

.flow .node b {
  color: var(--text);
  font-weight: 500;
}

.flow .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
}

.flow .ico svg {
  width: 14px;
  height: 14px;
  stroke: var(--text);
  stroke-width: 1.6;
  fill: none;
}

.flow .wire {
  flex: none;
  position: relative;
  width: 84px;
  height: 46px;
}

.flow .wire::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed var(--line-2);
}

.flow .tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.flow .tag.alt {
  background: var(--red-hot);
  border-color: transparent;
  color: var(--on-red);
}

.hero-note {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Scan result                                                         */
/* ------------------------------------------------------------------ */

.result[hidden] {
  display: none;
}

.result-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

@property --v {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.ring {
  --v: 0;
  transition: --v 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--red-hot) calc(var(--v) * 1%), rgba(18, 17, 14, 0.07) 0);
  display: grid;
  place-items: center;
}

.ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--panel);
}

.ring span {
  position: relative;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.ring b {
  display: block;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.result h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 10px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.pillar {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--chip);
}

.pillar span {
  font-size: 15px;
  color: var(--muted);
}

.pillar b {
  display: block;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(18, 17, 14, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red-hot);
  transition: width 0.8s ease;
}

.issues {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.issues li {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 16px;
  color: var(--muted);
}

.issues li b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

.issues li b::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
}

.issues li.warn b::before {
  background: var(--warn);
}

.issues li i {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}

.result-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.result-cta p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Results: statement + chart + stats                                  */
/* ------------------------------------------------------------------ */

.statement {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 42ch;
  margin: 0 auto;
}

.chart-card {
  max-width: 820px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  text-align: left;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.chart-head h3 {
  font-size: 17px;
}

.chart-head .tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--muted);
  vertical-align: middle;
  font-weight: 500;
  letter-spacing: 0;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--chip);
}

.seg button {
  min-height: 44px;
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 500 15px var(--font);
  cursor: pointer;
}

.seg button[aria-selected='true'] {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(18, 17, 14, 0.06);
}

.chart {
  position: relative;
  padding-top: 52px;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart .peak {
  position: absolute;
  right: 0;
  top: 0;
  text-align: right;
  font-size: 15px;
  line-height: 1.3;
}

.chart-x {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  padding-left: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  text-align: left;
}

.stats b {
  display: block;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 10px;
}

.stats span {
  font-size: 16px;
  color: var(--muted);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 0%, transparent);
  }
}

/* ------------------------------------------------------------------ */
/* Features (light): list on the left, mock on the right               */
/* ------------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.features h2 {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.feat-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--paper-line);
}

.feat {
  position: relative;
  padding: 14px 0 14px 18px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.25s;
}

.feat[aria-selected='true'],
.feat:hover {
  opacity: 1;
}

.feat[aria-selected='true']::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--red-hot);
}

.feat small {
  display: block;
  font: 500 14px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #756e62;
  margin-bottom: 6px;
}

.feat h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  margin-bottom: 6px;
}

.feat p {
  margin: 0 0 0 38px;
  font-size: 15px;
  color: var(--ink-muted);
}

.feat .fi {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--paper-line);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feat .fi svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink);
  stroke-width: 1.7;
  fill: none;
}

.mock {
  position: relative;
  min-height: 380px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--paper-line);
  background: linear-gradient(135deg, #faf7f1, #f3efe6 60%, #f6f2ea);
  box-shadow: 0 30px 60px -30px rgba(18, 17, 14, 0.18);
}

.mock-view[hidden] {
  display: none;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--paper-line);
  background: var(--paper-2);
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.mock-chip b {
  color: var(--ink);
  font-weight: 500;
}

.mock-chip .fi {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #e3d29d;
  display: grid;
  place-items: center;
  background: #fff;
}

.mock-chip svg {
  width: 13px;
  height: 13px;
  stroke: var(--ink);
  stroke-width: 1.7;
  fill: none;
}

.mock-card {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--paper-line);
  padding: 16px;
  font-size: 15px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0ebe1;
}

.mock-row:last-child {
  border-bottom: 0;
}

.mock-row span {
  color: var(--ink-muted);
}

.mock-row b {
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #3fb75d;
}

.dot.w {
  background: #e5a91e;
}

.dot.b {
  background: #e0533f;
}

.mock-bar {
  height: 6px;
  border-radius: 6px;
  background: #f0ebe1;
  overflow: hidden;
  width: 90px;
}

.mock-bar i {
  display: block;
  height: 100%;
  background: var(--red);
}

/* ------------------------------------------------------------------ */
/* Network hub                                                         */
/* ------------------------------------------------------------------ */

.hub {
  position: relative;
  max-width: 860px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  aspect-ratio: 16 / 9;
}

.hub svg.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub svg.wires path {
  fill: none;
  stroke: rgba(18, 17, 14, 0.12);
  stroke-width: 1;
}

.hub svg.wires path.pulse {
  stroke: url(#wire-glow);
  stroke-width: 1.5;
  stroke-dasharray: 40 400;
  animation: run 4s linear infinite;
}

@keyframes run {
  to {
    stroke-dashoffset: -440;
  }
}

.hub-core,
.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.hub-core {
  left: 50%;
  top: 50%;
}

.hub-core .box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--red-hot);
  background: linear-gradient(180deg, #fffdf9, #f3eee4);
  box-shadow: inset 0 0 0 1px rgba(18, 17, 14, 0.06);
}

.hub-node .box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(18, 17, 14, 0.06), rgba(18, 17, 14, 0.01));
}

.hub .box {
  display: grid;
  place-items: center;
}

.hub .box svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  stroke-width: 1.6;
  fill: none;
}

.hub-core .box {
  display: grid;
  place-items: center;
}

.hub-core .box img {
  width: 44px;
  height: 44px;
}

.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: clamp(32px, 5vw, 56px);
  text-align: left;
}

.program {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--chip);
  text-decoration: none;
  transition: border-color 0.2s;
}

.program:hover {
  border-color: rgba(229, 82, 74, 0.5);
}

.program b {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.program span {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 10px;
}

.program i {
  margin-top: auto;
  font-style: normal;
  font-size: 15px;
  color: var(--red-hot);
}

/* ------------------------------------------------------------------ */
/* Model (YC-style manifesto)                                          */
/* ------------------------------------------------------------------ */

.manifesto h2 {
  font-size: clamp(36px, 5.6vw, 68px);
  max-width: 16ch;
}

.manifesto .cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 56px);
  font-size: 18px;
}

.manifesto blockquote {
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--red-hot);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.manifesto blockquote footer {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
}

.facts li {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--paper-line);
}

.facts b {
  display: block;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.facts span {
  font-size: 16px;
  color: var(--ink-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--paper-line);
}

.steps li::before {
  content: '0' counter(s);
  display: block;
  font: 500 14px var(--mono);
  letter-spacing: 0.1em;
  color: #756e62;
  margin-bottom: 14px;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------ */
/* Pricing                                                             */
/* ------------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
  text-align: left;
}

.card {
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--chip);
  display: flex;
  flex-direction: column;
}

.card.hot {
  border-color: var(--red-hot);
  background: linear-gradient(180deg, rgba(229, 82, 74, 0.08), rgba(229, 82, 74, 0.02));
}

.card-k {
  font: 500 14px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.card li {
  display: flex;
  gap: 8px;
}

.card li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-hot) 35%, transparent 40%);
  border: 1px solid rgba(229, 82, 74, 0.5);
}

/* compare table */
.table-scroll {
  overflow-x: auto;
  margin-top: clamp(28px, 4vw, 44px);
  border-radius: 18px;
  border: 1px solid var(--paper-line);
  background: #fff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0ebe1;
  vertical-align: top;
}

thead th {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-muted);
}

tbody th {
  font-weight: 500;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

.us {
  background: var(--paper-2);
  font-weight: 500;
}

thead .us {
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.faq-list {
  max-width: 820px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  text-align: left;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--red-hot);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  font-size: 16px;
  color: var(--muted);
  max-width: 68ch;
}

/* ------------------------------------------------------------------ */
/* Pilot form                                                          */
/* ------------------------------------------------------------------ */

.pilot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.pilot h2 {
  margin-bottom: 18px;
}

.pilot-alt {
  margin-top: 20px;
}

.pilot-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.field label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field small {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  font: 400 15px var(--font);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d665b;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-hot);
  box-shadow: 0 0 0 2px rgba(181, 42, 42, 0.25);
}

.field.invalid input {
  border-color: var(--bad);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.form-note.error {
  color: var(--bad);
}

.pilot-form .btn {
  justify-self: start;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.foot {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--muted);
}

.foot a {
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Reveal on scroll                                                    */
/* ------------------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .floaters {
    display: none;
  }

  /* vertical stepper */
  .flow {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .flow .node {
    flex: none;
  }

  .flow .wire {
    width: 100%;
    height: 34px;
  }

  .flow .wire::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    border-top: 0;
    border-left: 1px dashed var(--line-2);
  }
}

@media (max-width: 1000px) {
  /* links collapse into a dropdown opened by the menu button */
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: rgba(251, 248, 242, 0.98);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav-links a::after {
    left: 14px;
    right: auto;
    width: 24px;
    bottom: 6px;
  }

  .nav-links .only-sm {
    display: block;
  }

  .nav-actions .lnk.hide-sm {
    display: none;
  }

  .features,
  .pilot,
  .manifesto .cols {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    margin: 8px 8px;
    top: 8px;
  }

  .nav-actions .btn .arr {
    display: none;
  }

  .nav .btn {
    min-height: 44px;
    padding: 6px 14px;
  }

  .panel {
    margin: 0 8px 12px;
    border-radius: 22px;
  }

  /* field and button stack full width, still one framed control */
  .scan-form {
    flex-direction: column;
    align-items: stretch;
  }

  .scan-form input {
    flex: none;
    text-align: center;
  }

  .scan-form .btn {
    width: 100%;
  }

  .result-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .pillars,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .issues,
  .cards,
  .programs,
  .facts,
  .steps {
    grid-template-columns: 1fr;
  }

  /* hub: wires cannot follow the nodes on a narrow screen, so show a plain grid */
  .hub {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px;
  }

  .hub svg.wires {
    display: none;
  }

  .hub-core,
  .hub-node {
    position: static;
    transform: none;
    left: auto !important;
    top: auto !important;
    white-space: normal;
  }

  .hub-core {
    grid-column: 1 / -1;
    order: -1;
  }

  .chart-x {
    padding-left: 30px;
  }

  .foot {
    padding: 24px 24px 40px;
  }
}

/* ------------------------------------------------------------------ */
/* Example report, scan skeleton, sticky mobile CTA                    */
/* ------------------------------------------------------------------ */

.sample .panel-in {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.sample .ring {
  width: 150px;
  height: 150px;
}

.sample .ring b {
  font-size: 44px;
}

.sample .bar i {
  transition: none;
}

.sample-note {
  margin: 22px 0 0;
}

.sample-note a {
  color: var(--red-hot);
  white-space: nowrap;
}

.sticky-cta {
  display: none;
}

@media (max-width: 760px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(236, 230, 218, 0), rgba(236, 230, 218, 0.95) 40%);
    visibility: hidden;
    transform: translateY(110%);
    transition: transform 0.3s, visibility 0.3s;
  }

  .sticky-cta.show {
    visibility: visible;
    transform: none;
  }

  .sticky-cta .btn {
    width: 100%;
  }

  .foot {
    padding-bottom: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    display: none;
  }
}

/* Piksel poses: one mascot per screen */
.pose {
  display: block;
  height: auto;
}

.pose-sample {
  margin: 20px 0 0 auto;
  width: 160px;
}

@media (max-width: 720px) {
  .pose-sample {
    margin-inline: auto;
    width: 128px;
  }
}

/* ------------------------------------------------------------------ */
/* Streamed scan report: cards                                         */
/* ------------------------------------------------------------------ */

#r-share[hidden] {
  display: none;
}

.rcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.rcards:empty {
  display: none;
}

.rcard {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  animation: rcard-in 0.5s ease both;
}

.rcard-speed,
.rcard-ai,
.rcard-fixes {
  grid-column: 1 / -1;
}

@keyframes rcard-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.rcard h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.rcard h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rcard p {
  margin: 0 0 8px;
}

.rmuted {
  font-size: 16px;
  color: var(--muted);
}

.chipgroup:first-of-type h4 {
  margin-top: 0;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--chip);
  font-size: 16px;
}

.tscroll {
  overflow-x: auto;
}

.rtable {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 16px;
}

.rtable th,
.rtable td {
  padding: 8px 10px 8px 0;
  text-align: left;
  font-weight: 400;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.rtable thead th {
  border-top: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rtable tbody th {
  font-weight: 500;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.st svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st.ok {
  color: var(--ok);
}

.st.bad {
  color: var(--bad);
}

.speedrow {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.phone {
  flex: none;
  width: 132px;
  padding: 6px;
  border: 2px solid var(--line-2);
  border-radius: 22px;
  background: var(--bg);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.speedinfo {
  flex: 1 1 240px;
  min-width: 0;
}

.speedscore {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}

.speedscore b {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.speedscore span {
  font-size: 16px;
  color: var(--muted);
}

.speedscore.ok b {
  color: var(--ok);
}

.speedscore.bad b {
  color: var(--bad);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0;
}

.metrics div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chip);
}

.metrics dt {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metrics dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.fieldbadge {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.fieldbadge b {
  display: inline-block;
  padding: 3px 10px;
  margin-right: 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
}

.aisum {
  margin: 0 0 14px;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--red-hot);
  font-size: 17px;
  line-height: 1.5;
}

.rlist {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.rlist li {
  margin-bottom: 6px;
}

.fix + .fix {
  margin-top: 6px;
}

.fixhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fixhead h4 {
  margin: 12px 0 8px;
}

.copybtn {
  flex: none;
  padding: 5px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.copybtn:hover {
  border-color: var(--red-hot);
}

.rcard pre {
  margin: 0;
  max-width: 100%;
  max-height: 260px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre;
}

@media (max-width: 760px) {
  .rcards {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcard {
    animation: none;
  }

  .bar i {
    transition: none;
  }
}

/* Shared report page (/r/<id>) */
.shared-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(16px, 4vw, 40px);
}

.shared-top img {
  height: 30px;
  width: auto;
}

/* Bot table on phones: drop the owner column so the status stays visible */
@media (max-width: 520px) {
  .rtable tr > :nth-child(2) {
    display: none;
  }
  .rtable th,
  .rtable td {
    padding-right: 6px;
  }
}

/* Ready-to-paste fixes: wrap long lines instead of hiding them behind a scroll */
.rcard-fixes pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Legal pages (/privasi, /syarat, /en/privacy, /en/terms) and hints    */
/* ------------------------------------------------------------------ */

.legal-hint {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.legal-hint a,
.legal a {
  color: var(--red);
  text-underline-offset: 2px;
}

.legal {
  max-width: 820px;
  margin: 0 auto 24px;
}

.legal .panel-in {
  padding: clamp(24px, 5vw, 56px);
}

.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.legal-meta {
  margin: 12px 0 28px;
  font-size: 16px;
  color: var(--muted);
}

.legal .lede {
  max-width: none;
  color: var(--text);
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  scroll-margin-top: 24px;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.legal p {
  margin: 0 0 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--chip);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------------ */
/* Motion + extras (2026-10 pass)                                       */
/* ------------------------------------------------------------------ */

/* hero mascot Piksel */
.mascot {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  animation: pk-bob 3.6s ease-in-out infinite;
  --px: 0;
  --py: 0;
}

.mascot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pk-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: pk-blink 5s infinite;
}

.pk-pupil {
  transform: translate(calc(var(--px) * 1px), calc(var(--py) * 1px));
  transition: transform 0.12s ease-out;
}

.mascot.busy {
  animation: pk-wiggle 0.5s ease-in-out infinite;
}

.mascot.happy {
  animation: pk-happy 0.7s ease-out 2;
}

@keyframes pk-bob {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pk-blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.1);
  }
}

@keyframes pk-wiggle {
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes pk-happy {
  40% {
    transform: translateY(-16px) scale(1.06);
  }
  70% {
    transform: translateY(0) scale(0.97);
  }
}

/* visible label above the scan input */
.scan-label {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto 8px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
}

.vid-link {
  margin: 6px 0 0;
  font-size: 16px;
}

.vid-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--red);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* chart draw-on (JS adds .arm, then .go when in view) */
.chart.arm .ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.chart.arm .ar,
.chart.arm .dotend {
  opacity: 0;
}

.chart.arm.go .ln {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s ease-out;
}

.chart.arm.go .ar,
.chart.arm.go .dotend {
  opacity: 1;
  transition: opacity 0.8s ease 1.2s;
}

/* staggered reveals */
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s, box-shadow 0.2s;
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.in [data-stagger] > * {
  opacity: 1;
  transform: none;
}

/* progress rail on the 4 steps */
.steps {
  position: relative;
}

.js .steps::before,
.js .steps::after {
  content: '';
  position: absolute;
  left: 0;
  top: -16px;
  height: 3px;
  border-radius: 3px;
}

.js .steps::before {
  right: 0;
  background: var(--paper-line);
}

.js .steps::after {
  width: calc(var(--p, 0) * 100%);
  background: var(--red);
}

.js .steps li.on {
  border-color: var(--red);
}

.js .steps li.on::before {
  color: var(--red);
}

/* hover lift */
@media (hover: hover) {
  .js .reveal.in [data-stagger] > :is(.card, .stats li, .steps li, .facts li):hover {
    transform: translateY(-4px);
    transition-delay: 0s;
    box-shadow: 0 10px 24px rgba(18, 17, 14, 0.1);
  }
}

/* explainer video */
.vid {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, 860px);
  margin: clamp(24px, 4vw, 40px) auto 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
}

.vid .vid-fallback {
  width: 28%;
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

.vid .vid-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vid .vid-poster[hidden] {
  display: none;
}

.vid video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.vid-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(181, 42, 42, 0.45);
  transition: transform 0.2s, background 0.2s;
}

.vid-play:hover {
  background: var(--red-hover);
  transform: scale(1.06);
}

.vid-play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
  fill: currentColor;
}

.vid.playing .vid-play,
.vid.playing .vid-poster,
.vid.playing .vid-fallback {
  display: none;
}

/* creator band */
.creator-in {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.creator-in img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.creator-in .lede {
  margin: 0 0 22px;
  max-width: 52ch;
}

@media (max-width: 760px) {
  .mascot {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
  }

  .creator-in {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .creator-in img {
    max-width: 180px;
  }

  .vid-play {
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
  }

  .js .steps::before,
  .js .steps::after {
    display: none;
  }
}

@media (max-width: 1000px) {
  .js .steps::before,
  .js .steps::after {
    display: none;
  }
}

/* narrow phones: language switch moves into the menu so logo + CTA + toggle fit */
@media (max-width: 480px) {
  .nav-actions .lnk {
    display: none;
  }
}

/* ---- Scan tiers: locked rows, unlock form, full checks, print ---- */
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  font: 400 15px var(--font);
}

.issues li.locked .ph,
.ph-row i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(18, 17, 14, 0.14), rgba(18, 17, 14, 0.05));
  filter: blur(3px);
}

.issues li.locked .ph {
  width: 85%;
  margin-top: 8px;
}

.locked-rows {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.ph-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
}

.ph-row i:nth-child(1) { width: 40%; }
.ph-row i:nth-child(2) { width: 90%; }
.ph-row i:nth-child(3) { width: 65%; }

.unlock {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.unlock h3 {
  margin: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.check input {
  margin-top: 3px;
  flex: none;
}

.report-tools,
.pro-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.pro-ask p {
  margin: 0;
  color: var(--muted);
}

.rchecks {
  margin-top: 28px;
}

.rchecks .psec {
  margin-top: 18px;
}

.clist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.clist li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  break-inside: avoid;
}

.clist li b {
  display: flex;
  gap: 8px;
  font-weight: 500;
}

.clist li i {
  margin-left: auto;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

.clist li.fail b { color: var(--bad); }
.clist li.warn b { color: var(--warn); }
.clist li.pass b { color: var(--ok); }
.clist li p { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }

/* Long URLs in details (og:image, canonical) wrap instead of widening the report on a phone. */
.rchecks,
.issues li,
.rx-card {
  overflow-wrap: anywhere;
}

/* ---- Unlock form: field errors, the primary action, locked rows that lead to it ---- */
.field-err {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--bad);
}

.field.invalid select {
  border-color: var(--bad);
}

.check.invalid {
  color: var(--bad);
}

.check.invalid input {
  outline: 2px solid var(--bad);
  outline-offset: 2px;
}

.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: progress;
  pointer-events: none;
}

a.locked-rows {
  color: inherit;
  text-decoration: none;
}

.locked-more {
  font-size: 15px;
  font-weight: 500;
  color: var(--red-hot);
}

a.locked-rows:hover .locked-more,
.lockedlink:hover {
  text-decoration: underline;
}

.lockedlink {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--red-hot);
  text-decoration: none;
}

.lockedlink .ph {
  margin-bottom: 8px;
}

/* Landing result: the single primary action of a scan (opens /r/<id>#unlock). */
.r-unlock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--panel);
}

.r-unlock[hidden] {
  display: none;
}

.r-unlock p {
  flex: 1 1 240px;
  margin: 0;
  font-weight: 500;
}

.scan-fail {
  margin: 8px 0 0;
  font-size: 15px;
}

.scan-fail[hidden] {
  display: none;
}

.scan-fail a {
  color: var(--red-hot);
  font-weight: 500;
}

@media (max-width: 760px) {
  .unlock .pilot-form .btn,
  .r-unlock .btn {
    width: 100%;
    justify-self: stretch;
  }
}

.print-only { display: none; }

@page { size: A4; margin: 16mm 16mm 20mm; @bottom-left { content: "kolabaja.com"; font: 9pt sans-serif; color: #777; } @bottom-right { content: "Hal. " counter(page); font: 9pt sans-serif; color: #777; } }

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; text-shadow: none !important; animation: none !important; }
  html, body, .panel { background: #fff !important; color: #1a1a1a; }
  body { font-size: 10.5pt; line-height: 1.5; }
  .shared-top, .staff-bar, .result-cta, .report-tools, .pro-ask, .unlock, .locked-rows, .copybtn, .rx-btn, .rx-wait,
  .qp, .qp-float, [data-print], button, form, nav, #r-issues, .result-top, .pillars, .print-hide { display: none !important; }
  .print-only { display: block; }
  .panel, .panel-in, main { box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; max-width: none !important; background: #fff !important; }

  .print-cover { min-height: 245mm; position: relative; break-after: page; page-break-after: always; display: flex !important; flex-direction: column; justify-content: space-between; }
  .pc-brand { display: flex; align-items: center; gap: 12px; font-size: 18pt; font-weight: 600; border-bottom: 3px solid var(--red-hot, #e5322d); padding-bottom: 12px; }
  .pc-brand img { width: 44px; height: 44px; }
  .pc-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11pt; color: #666; margin: 0 0 8px; }
  .print-cover h1 { font-size: 34pt; line-height: 1.1; margin: 0 0 12px; word-break: break-all; overflow-wrap: anywhere; }
  .pc-meta { color: #666; font-size: 11pt; margin: 0; }
  .pc-score { align-self: flex-start; border-left: 6px solid var(--red-hot, #e5322d); padding-left: 18px; }
  .pc-score b { display: block; font-size: 84pt; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
  .pc-score span { font-size: 12pt; color: #666; }
  .pc-foot { margin: 0; font-size: 10pt; color: #888; }

  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; color: #111; }
  h3 { font-size: 16pt; border-bottom: 2px solid #e5322d; padding-bottom: 6px; margin: 0 0 12px; }
  h4 { font-size: 13pt; margin: 0 0 8px; }
  p, li { orphans: 3; widows: 3; }
  a { color: inherit !important; text-decoration: none !important; overflow-wrap: anywhere; word-break: break-word; }
  code, pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

  .rchecks .psec { margin: 0 0 6mm; }
  .rx-pro { break-before: page; page-break-before: always; }
  .rcard, .clist li, .fix, .rx-card, .pillar { break-inside: avoid; page-break-inside: avoid; }
  .clist { list-style: none; margin: 0; padding: 0; }
  .clist li { border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; margin: 0 0 6px; background: #fff; }
  .clist li.fail { border-left: 4px solid #c62828; }
  .clist li.warn { border-left: 4px solid #e08a00; }
  .clist li.pass { border-left: 4px solid #2e8b57; }
  .clist li p { margin: 4px 0 0; color: #444; }
}

/* === hero, simplified: mascot, headline, one-line lede, one control, one quiet line === */
.hero .lede {
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero .scan-label {
  width: min(100%, 560px);
  margin: 0 auto 8px;
  text-align: left;
}

.hero .scan-note {
  margin-top: 12px;
  font-size: 14px;
}

.hero .legal-hint {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* the 4-step flow now lives under the hero as its own quiet band */
.flow-band .panel-in {
  padding-top: 28px;
  padding-bottom: 28px;
}

.flow-band .flow {
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Queue progress: queued / working panel (landing scan + /r/<id>)     */
/* ------------------------------------------------------------------ */

.qp[hidden] {
  display: none;
}

.qp {
  width: min(100%, 520px);
  margin: 18px auto 0;
  padding: 12px 18px 12px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--chip);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.qp.qp-out {
  opacity: 0;
}

/* Piksel on a loop; the video has a white backdrop, multiply melts it into the panel colour. */
.qp-art {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
}

.qp-art video,
.qp-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.qp-body {
  flex: 1;
  min-width: 0;
}

.qp-msg {
  margin: 0 0 10px;
  min-height: 1.4em;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  transition: opacity 0.18s ease;
}

.qp-msg.swap {
  opacity: 0;
}

.qp-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.qp-bar i {
  display: block;
  height: 100%;
  width: 6%;
  border-radius: 4px;
  background: var(--red-hot);
  transition: width 0.6s ease;
}

.qp-count {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.qp-inline {
  margin: 0 0 14px;
  width: 100%;
}

/* Floating pill while the remaining steps run after the first result is on screen. */
.qp.qp-float {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);
  margin: 0;
  padding: 8px 16px 8px 8px;
  gap: 12px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgb(60 30 20 / 0.16);
  animation: qp-rise 0.35s ease;
}

.qp.qp-float .qp-art {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.qp.qp-float .qp-msg {
  margin-bottom: 6px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp.qp-float .qp-count {
  display: none;
}

.qp.qp-float.qp-out {
  transform: translate(-50%, 12px);
}

@keyframes qp-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

@media (max-width: 480px) {
  .qp {
    gap: 12px;
  }

  .qp-art {
    width: 72px;
    height: 72px;
  }

  .qp-msg {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qp,
  .qp-msg,
  .qp-bar i {
    transition: none;
  }

  .qp.qp-float {
    animation: none;
  }
}

/* Signed-in chip that replaces "Masuk" in the navbar (site.js, from the kb_who hint cookie) */
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  max-width: 160px;
}

.who:hover {
  border-color: var(--red-hot);
}

.who-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  font-size: 15px;
  font-weight: 600;
}

.who-n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links .who-menu {
  align-self: flex-start;
  margin: 6px 12px;
}

.nav-links .who-menu::after {
  display: none;
}

@media (max-width: 1000px) {
  .nav-links .who-menu.only-sm {
    display: inline-flex;
  }

  /* the compact avatar stays beside the menu button; the full chip lives in the opened menu */
  .nav-actions .who {
    padding: 4px;
  }

  .nav-actions .who .who-n {
    display: none;
  }
}

@media (max-width: 760px) {
  /* phones: the chip lives inside the opened menu only, so the bar keeps its room */
  .nav-actions .who {
    display: none;
  }
}
