/* ============================================================
   Sandbox Chip Merah Putih — Landing Page v2.0
   styles.css
   Specification: 07-stripe-revamp-design-spec.md
   Order: §2 tokens → §3 hairline frame → §4 type → §5 components
          → §6 logo → §7 nav → §8 sections → §9 motion
   ============================================================ */

/* ---------- PERURI Sans (self-hosted WOFF2) ----------
   Family has five weights (Light 300 / Regular 400 / Medium 500 /
   Bold 700 / Black 900) — there is NO true Semibold, so weight 600
   ("semibold" per the brand request) renders the Medium cut. */
@font-face {
  font-family: 'Peruri Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/PeruriSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Peruri Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/PeruriSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Peruri Sans';
  font-style: normal;
  font-weight: 600;                       /* semibold → Medium cut */
  font-display: swap;
  src: url('assets/fonts/PeruriSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Peruri Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/PeruriSans-Bold.woff2') format('woff2');
}

/* ---------- §2 Design tokens ---------- */
:root {
  /* ---- Brand ---- */
  --core-blue:       #202887;   /* dark band, structural fills */
  --core-blue-700:   #182177;   /* hover on a --core-blue surface */
  --core-blue-800:   #13195C;   /* pressed on a --core-blue surface */
  --core-blue-900:   #101444;   /* the darkest ramp step; also --text-strong */

  --violet:          #3E3EFE;   /* THE action colour */
  --violet-hover:    #3232D6;
  --violet-press:    #2A2ABF;
  --violet-soft:     #EDEDFF;   /* icon tiles, selected chips, ghost hover */
  --violet-soft-hi:  #E0E0FF;   /* hover on --violet-soft */

  --soft-purple:     #D8D8FC;   /* links & rules on the dark band */

  /* NOT tokens, deliberately:
     #D861FF orchid purple — generated artwork only, plus the one decorative
             CSS wedge fallback in §8.4 where it is written as a literal.
     #ED1C24 red — exists only inside the logo SVG files, never in CSS. */

  /* ---- Text ---- */
  --text-strong:     #101444;   /* headings, sentence one            17.4:1 on white */
  --text-muted:      #545A82;   /* body, sentence two of a heading    6.6:1 on white */
  --text-soft:       #6E749A;   /* captions ≥14px, ON WHITE ONLY      4.5:1 on white */
  --text-inv:        #FFFFFF;
  --text-inv-muted:  #B9BCE8;   /* body text on --core-blue            6.7:1 */
  --text-inv-link:   #D8D8FC;   /* links on --core-blue                8.8:1 */

  /* ---- Surfaces ---- */
  --surface-0:       #FFFFFF;
  --surface-1:       #F7F7FE;   /* the soft-purple wash */
  --surface-2:       #F2F3FB;   /* code panes, inset wells */
  --surface-dark:    #202887;

  /* ---- Lines ---- */
  --line:            #E6E7F2;   /* the hairline. Used everywhere */
  --line-strong:     #D5D7E9;   /* card borders that must read on tint */
  --line-dashed:     #D5D7E9;   /* dashed dividers — footer, FAQ, fact rows */
  --line-inv:        rgba(255,255,255,.16);
  --grid-line:       rgba(16,20,68,.045);   /* the 64px background grid */
  --grid-line-inv:   rgba(255,255,255,.06);

  /* ---- Radii — three only ---- */
  --r-xs:  4px;    /* buttons, badges, chips, tags, input */
  --r-sm:  8px;    /* cards, icon tiles, thumbnails, segmented control */
  --r-md: 12px;    /* large panels, the hero mockup, section-scale images */
  --r-full: 9999px;/* the pilot badge and nothing else */

  /* ---- Shadow — three only ---- */
  --shadow-xs: 0 1px 1px rgba(16,20,68,.04), 0 2px 4px rgba(16,20,68,.05);
  --shadow-md: 0 4px 10px -2px rgba(16,20,68,.10), 0 2px 4px -2px rgba(16,20,68,.06);
  --shadow-lg: 0 24px 48px -16px rgba(16,20,68,.22), 0 8px 16px -8px rgba(16,20,68,.10);

  /* ---- Layout ---- */
  --frame:      1280px;   /* the ruled frame */
  --gutter:     40px;     /* desktop */
  --col-gap:    32px;

  /* ---- IDDS overrides ---- */
  --ina-primary-primary: var(--violet);
  --ina-content-guide:   var(--violet);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;              /* §9 anchor navigation */
  scroll-padding-top: 88px;             /* offset for sticky 72px header */
}

body {
  position: relative;                     /* containing block for the continuous hairlines */
  background: var(--surface-0);
  color: var(--text-strong);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Continuous vertical hairlines — ONE unbroken pair running from below the
   sticky header to the bottom of the page (previously drawn per-frame, which
   read as separate segments; now drawn once on body). The navbar itself
   carries no strokes. z-index: 1 paints them above section backgrounds but
   below .frame content, which also carries z-index: 1.
   v2.2: the lines are translucent instead of a solid fill — rgba(120,128,175,.18)
   over white ≈ rgb(231,232,241), visually identical to the old #E6E7F2, while
   over the navy band it blends down to a muted lavender instead of a bright
   solid line. */
body::before,
body::after {
  content: '';
  position: absolute;
  top: 72px;                              /* header height — starts below the navbar */
  bottom: 0;
  width: 1px;
  background: rgba(120,128,175,.18);
  pointer-events: none;
  z-index: 1;
}
body::before { left: calc((100% - min(100%, 1280px)) / 2); }
body::after  { right: calc((100% - min(100%, 1280px)) / 2); }

/* ---------- §3 The hairline frame system ---------- */
.frame {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  position: relative;
  z-index: 1;               /* lifts content above the continuous body-level hairlines */
  padding-inline: var(--gutter);
}

/* v2.2 (3.4-consistent rhythm): the top stroke sits at the SECTION's top
   edge and the breathing room lives INSIDE the frame, below the rule — so
   the first text never touches the stroke. Matches Cara kerja's rhythm:
   stroke → 56px → text. The hero (first child) keeps 96px of top space and
   no stroke. */
.section { padding-bottom: 96px; }
.section > .frame { border-top: 1px solid var(--line); padding-top: 56px; }
.section:first-child > .frame { border-top: 0; padding-top: 96px; }
.strip { padding: 0; }
.strip > .frame {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  /* v2.3: vertical padding lives on the items, not the frame, so the column
     dividers run unbroken from the top stroke to the bottom stroke */
}
/* the strip's bottom stroke already rules the boundary — drop Cara kerja's
   top rule so the two strokes do not stack into a doubled line */
#cara-kerja > .frame { border-top: 0; }
/* v2.2: no top stroke on the deep-blue band */
#contoh-desain > .frame { border-top: 0; }

.section--tinted { background: var(--surface-1); }
.section--dark { background: var(--surface-dark); }

/* the dark band's horizontal rule stays inverted; the vertical rules are the
   continuous body-level lines and keep one colour for continuity */
.section--dark > .frame { border-color: var(--line-inv); }

/* §3.3 The 64px background grid — MUST live on ::before, never on the
   section itself: mask-image masks the element and every descendant. */
.has-grid { position: relative; }
.has-grid::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, #000 45%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, #000 45%, transparent 85%);
}
.has-grid > .frame { position: relative; z-index: 1; }
.section--dark.has-grid { --grid-line: var(--grid-line-inv); }

/* §3.4 Responsive gutters (frame stays 100% < 1280px) — --gutter drives the
   frame's inline padding AND the footer-bottom bleed-out, so it is overridden
   here on .frame and cascades to children. */
@media (min-width: 768px) and (max-width: 1023px) {
  .frame { --gutter: 32px; }
  .section { padding-bottom: 72px; }
}
@media (max-width: 767px) {
  .frame { --gutter: 24px; }
  .section { padding-bottom: 56px; }
}

/* v2.2: the closing block flows as one — CTA keeps no top stroke; v2.3:
   the CTA band carries 72px bottom padding and the footer now opens with
   its own top stroke + 54px (see §8.10). */
#cta-akhir > .frame { border-top: 0; padding-top: 96px; }
#cta-akhir { padding-bottom: 72px; }

/* ---------- §4 Typography ---------- */
.t-display { font-size: 45px; line-height: 54px; font-weight: 600; letter-spacing: -0.022em; color: var(--text-strong); }  /* headline 45px (v2.1) */
.t-h2       { font-size: 38px; line-height: 46px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-strong); }
.t-h3       { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.012em; color: var(--text-strong); }
.t-h4       { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.006em; color: var(--text-strong); }
.t-lead     { font-size: 20px; line-height: 32px; font-weight: 400; color: var(--text-muted); }
.t-body     { font-size: 16px; line-height: 26px; font-weight: 400; color: var(--text-muted); }
.t-small    { font-size: 14px; line-height: 22px; font-weight: 400; color: var(--text-muted); }
.t-eyebrow  { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.t-stat     { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-strong); }
.t-mono     { font-size: 13px; line-height: 22px; font-weight: 400; color: var(--text-muted); }

.t-cont     { color: var(--text-muted); font-weight: inherit; }  /* Rule 1 */
.t-body strong,
.t-small strong { color: var(--text-strong); font-weight: 600; } /* Rule 2 */
.measure    { max-width: 62ch; }
.measure-sm { max-width: 40ch; }

/* Headings set in PERURI Sans (v2.2); body copy stays Inter */
.t-display, .t-h2, .t-h3, .t-h4, .t-stat, .t-eyebrow {
  font-family: 'Peruri Sans', 'Inter', system-ui, sans-serif;
}

@media (max-width: 767px) {
  .t-display { font-size: 36px; line-height: 42px; }
  .t-h2       { font-size: 28px; line-height: 34px; }
  .t-h3       { font-size: 20px; line-height: 28px; }
  .t-h4       { font-size: 17px; line-height: 25px; }
  .t-lead     { font-size: 17px; line-height: 28px; }
  .t-mono     { font-size: 12px; line-height: 20px; }
}

/* Section header rhythm (§8: header → content 48px desktop / 32px mobile) */
.section-head { margin-bottom: 48px; }
.section-head .t-eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head .t-lead { margin: 0; }
.section-head--center { text-align: center; max-width: 62ch; margin-inline: auto; }
@media (max-width: 767px) {
  .section-head { margin-bottom: 32px; }
}

/* ---------- §5 Components ---------- */

/* §5.1 Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding-inline: 16px;
  border-radius: var(--r-xs);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.btn--lg { height: 48px; padding-inline: 22px; font-size: 16px; }
.btn--sm { height: 32px; padding-inline: 12px; font-size: 14px; }
.btn__chev { font-size: .9em; line-height: 1; transform: translateY(-.5px); }

.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-hover); }
.btn--primary:active { background: var(--violet-press); }

.btn--secondary { background: #fff; color: var(--text-strong); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { background: var(--surface-1); }

.btn--outline { background: transparent; color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--outline:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-xs); }  /* the 2nd of Rule 3's four shadow sites */

.btn--link { height: auto; padding: 0; color: var(--violet); font-weight: 500; }
.btn--link:hover { color: var(--violet-hover); }

.btn--inverse { background: #fff; color: var(--core-blue); }
.btn--inverse:hover { background: var(--soft-purple); }
.btn--inverse-ghost { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.30); }
.btn--inverse-ghost:hover { background: rgba(255,255,255,.18); }

.btn-block { width: 100%; justify-content: center; }

/* §5.2 Card — border and NO shadow on static (Rule 3) */
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 24px;
  height: 100%;
  box-shadow: none;                                   /* Rule 3 */
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.card--interactive:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--on-tint { border-color: var(--line-strong); }
.card--on-dark { background: #fff; border-color: transparent; }

/* §8.3: a heavier lift is right on the dark band, and only there */
.section--dark .card--interactive:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* §5.3 Icon tile */
.icon-tile {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet-soft);
  border-radius: var(--r-sm);
  color: var(--violet);
}
.icon-tile .ti { font-size: 20px; }
.section--dark .icon-tile { background: rgba(255,255,255,.10); color: #fff; }

/* §5.4 Square action button (the + / arrow control) */
.sq-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet-soft);
  border: 0; border-radius: var(--r-xs);
  color: var(--violet); cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.sq-btn:hover { background: var(--violet); color: #fff; }   /* v2.3: hover fills primary; the + turns white */
.sq-btn--quiet { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); }

/* §5.5 Tag / chip */
.tag {
  display: inline-flex; align-items: center;
  height: 24px; padding-inline: 8px;
  background: var(--violet-soft); color: var(--core-blue);
  border-radius: var(--r-xs);
  font-size: 13px; font-weight: 500;
}

/* §5.6 Segmented control (the Katalog filter) */
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-sm); }
.segmented button {
  height: 32px; padding-inline: 14px; border: 0; border-radius: var(--r-xs);
  background: transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.segmented button:hover { color: var(--text-strong); }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--text-strong); box-shadow: var(--shadow-xs); }

/* §5.7 Focus ring — unchanged behaviour, new colour */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---------- §11 Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--violet);
  color: var(--text-inv);
  padding: 12px 16px;
  border-radius: var(--r-xs);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { left: 16px; top: 16px; }

/* ---------- §6 Logo — logomark + PERURI Sans wordmark (v2.2) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.brand__mark { height: 28px; width: auto; display: block; }
.brand__word {
  font-family: 'Peruri Sans', 'Inter', system-ui, sans-serif;
  font-size: 15px; font-weight: 600;       /* "Sandbox Chip" — semibold (Medium cut) */
  color: var(--text-strong);
  white-space: nowrap;
}
.brand__word-2 { font-weight: 400; }        /* "Merah Putih" — regular */
/* below 560px the wordmark + the Akademi link + the two utility buttons
   cannot share the row (~492px needed) — logomark only */
@media (max-width: 559px) {
  .brand__word { display: none; }
}

/* ---------- §7 Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.nav-utility { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-utility .btn { flex-shrink: 0; }
.nav-util-link {
  font-size: 15px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease;
}
.nav-util-link:hover { color: var(--text-strong); }
.nav-divider { width: 1px; height: 24px; background: var(--line); margin-inline: 20px; }
/* primary menu — sits right of the brand, stays visible at every width */
.nav-primary { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 15px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease;
}
.nav-link:hover { color: var(--text-strong); }
.nav-link:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: var(--r-xs); }
/* in-page links: the section currently in view is marked by script.js */
.nav-link--section[aria-current="true"] { color: var(--violet); }
/* Akademi leaves the page — the arrow says so */
.nav-link--ext { display: inline-flex; align-items: center; gap: 4px; }
.nav-link--ext .ti { font-size: 16px; }
.nav-divider--primary { margin-inline: 0; }
/* below 1024px the in-page links no longer fit beside the brand and
   the buttons; Akademi stays as the one menu item */
@media (max-width: 1023px) {
  .nav-link--section, .nav-divider--primary { display: none; }
}
@media (max-width: 767px) {
  .nav-inner { gap: 16px; }
}
@media (max-width: 767px) {
  .nav-util-link, .nav-divider { display: none; }
}

/* ---------- §8.1 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 740px;              /* room for the circuit-traffic canvas */
  display: flex;
  align-items: center;            /* centre the frame content in the tall hero */
  /* v2.5: the animated circuit canvas (#hero-bg, hero-circuit.js) replaces
     the retired assets/img/hero-decoration.webp decoration. Signals route in
     from all four edges of the hero toward the demo card. */
  background-color: var(--surface-0);
}
/* The circuit-traffic canvas — full-bleed behind the frame content */
#hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-left { max-width: 620px; }
.pilot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.pilot-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--violet);
}
.hero h1 { margin: 24px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-caption { margin: 0; }

/* Hero visual — browser frame built in code */
.browser-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-0);
  box-shadow: var(--shadow-lg);               /* the 4th of Rule 3's four shadow sites */
  overflow: hidden;
}
.browser-titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--line);
}
.browser-dot { width: 10px; height: 10px; border-radius: var(--r-full); background: var(--line-strong); }
.browser-url { flex: 1; text-align: center; font-size: 12px; color: var(--text-muted); }
.browser-body { display: flex; }
.code-pane {
  flex: 11;                               /* 55% */
  background: var(--surface-0);
  padding: 16px 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
}
.code-line { display: flex; white-space: pre; }
.code-line .ln {
  width: 28px; flex-shrink: 0;
  text-align: right; padding-right: 12px;
  color: var(--text-soft);                /* valid: white background */
  user-select: none;
}
.code-line .kw { color: var(--violet); }
.code-line .cm { color: var(--text-muted); }
.wave-pane {
  flex: 9;                                /* 45% */
  background: var(--surface-1);
  border-left: 1px solid var(--line);
  padding: 16px;
}
.wave-label { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.wave-svg { display: block; width: 100%; height: auto; max-width: 288px; }
.success-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; transform-origin: left center; }
.success-row .ti { font-size: 16px; color: var(--violet); }
.success-row span { font-size: 13px; font-weight: 600; color: var(--text-strong); }
/* "Berhasil" pulses red when a circuit signal reaches the demo card (hero-circuit.js) */
.success-row.hit { animation: hero-okpulse 0.75s ease-out; }
@keyframes hero-okpulse {
  0%   { transform: scale(1); filter: none; }
  22%  { transform: scale(1.05); filter: drop-shadow(0 0 7px rgba(214,40,57,.55)); }
  100% { transform: scale(1); filter: none; }
}

/* §8.1 Orientation strip — the benchmark stat strip under the hero */
.orientasi-item {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 24px; padding-bottom: 24px;      /* stroke → 24px → text; lets the dividers span the full band */
}
.orientasi-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--text-strong); }
.orientasi-title .ti { font-size: 20px; color: var(--violet); }
.orientasi-body { font-size: 15px; line-height: 24px; color: var(--text-muted); }
@media (min-width: 768px) {
  .orientasi-item + .orientasi-item {
    border-left: 1px solid var(--line);
    padding-left: 32px;
  }
}

/* ---------- §8.2 Cara kerja — borderless columns ---------- */
.step { display: flex; flex-direction: column; gap: 12px; }
.step h3 { margin: 0; }
.step .t-body { margin: 0; max-width: 38ch; }

/* ---------- §8.3 Contoh desain — deep Core Blue band ---------- */
.section--contoh {
  /* Optional art, anchored bottom-right. Degrades to the band colour while
     assets/img/band-glow.webp does not exist (layered pattern). */
  background-color: var(--surface-dark);
  background-image:
    url('assets/img/band-glow.webp'),
    linear-gradient(var(--surface-dark), var(--surface-dark));
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 640px, cover;
}
.section--dark .t-eyebrow { color: var(--soft-purple); }   /* violet on #202887 is 2.1:1 — illegible */
.section--dark .section-head h2 { color: #fff; }
.section--dark .t-cont { color: var(--text-inv-muted); }
.section--dark .btn--link { color: var(--text-inv-link); }
.section--dark .btn--link:hover { color: #fff; }

.example-card { padding: 0; gap: 0; overflow: hidden; }
.example-band {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* --thumb is set per-card in the markup when generated art exists (§2.2).
     Unset today → var() falls through to `none`, the violet-soft gradient
     behind it shows, and background-color guarantees the fill. */
  background-color: var(--violet-soft);
  background-image:
    var(--thumb, none),
    linear-gradient(var(--violet-soft), var(--violet-soft));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.example-band .tag {
  position: absolute; top: 12px; right: 12px;
  background: #fff;                          /* tag must read on the violet-soft band */
  z-index: 1;
}
.example-band svg { display: block; }
.example-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px;
}
.example-card .t-small { margin-top: -4px; }
.example-card .t-body { margin: 0; }
.cta-wrap { margin-top: auto; padding-top: 12px; }

/* ---------- §8.4 Untuk siapa — image cards with copy below ---------- */
.audience-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.panel {
  position: relative; overflow: hidden;
  display: block;
  background: transparent;
  border-radius: 12px;
  min-height: 340px;
}
.panel-thumb {
  display: block;
  width: 100%; height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}
.panel-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  color: var(--text, #1f2937);
  background: transparent;
}
.panel-copy h3.t-h4 { margin: 0; font-family: 'Peruri Sans', sans-serif; font-size: 24px !important; font-weight: 600; line-height: 1.2; color: var(--text-strong, #111827); }
.panel .t-body { margin: 0; max-width: 45ch; color: var(--text, #374151); }
.panel .btn--link { margin-top: 4px; padding: 0; align-self: flex-start; color: var(--violet, #5b21b6); text-shadow: none; }
@media (max-width: 639px) {
  .panel, .panel-thumb { min-height: 280px; }
  .panel, .panel-thumb { border-radius: 12px; }
}

/* ---------- §8.5 Fitur — Stripe-style white containers, 2×2 ---------- */
.feature {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow-xs);       /* soft float, Stripe reference */
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature h3 { margin: 0; }
.feature .t-body { margin: 0; max-width: 48ch; }

/* ---------- §8.6 Katalog referensi — tint + visible grid + corner bleed ---------- */
.section--katalog {
  /* Corner art, ~640px wide, top-right. Degrades to the tint while
     assets/img/katalog-bleed.webp does not exist (layered pattern).
     (Per-layer background opacity is not supported in CSS; the art renders
     at full opacity once the asset exists.) */
  background-color: var(--surface-1);
  background-image:
    url('assets/img/katalog-bleed.webp'),
    linear-gradient(var(--surface-1), var(--surface-1));
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 640px auto, cover;
}
.catalog-filters { display: flex; justify-content: center; margin-bottom: 32px; }
.catalog-card { transition: opacity 150ms ease; } /* §9: 150ms opacity fade */
.catalog-card[hidden] { display: none; }
.catalog-card .t-body { margin: 0; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-card .btn--sm { align-self: flex-start; }
.catalog-tags + .cta-wrap { padding-top: 0; }
.dl-link { font-size: 14px; font-weight: 500; color: var(--violet); text-decoration: none; white-space: nowrap; transition: color 140ms ease; }
.dl-link:hover { color: var(--violet-hover); text-decoration: underline; }

/* ---------- §8.7 Tentang program — dashed fact rows ---------- */
.tentang-left .t-lead { margin: 0 0 24px; }
.fact-row { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0; }
.fact-row + .fact-row { border-top: 1px dashed var(--line-dashed); }
.fact-row .ti { font-size: 20px; color: var(--violet); margin-top: 2px; }
.fact-text { display: flex; flex-direction: column; gap: 2px; }
.fact-label { font-size: 16px; font-weight: 600; color: var(--text-strong); }
.fact-detail { font-size: 14px; line-height: 22px; color: var(--text-muted); }

/* The IDDS alert, restyled: violet-soft fill, no border, violet icon */
.ina-alert--info {
  background: var(--violet-soft);
  border: 0;
  border-radius: var(--r-sm);
}
.ina-alert--info .ina-alert__icon { background: transparent; color: var(--violet); }
.ina-alert__icon .ti { font-size: 20px; }
.ina-alert--info .ina-alert__description { color: var(--text-muted); }
.tentang-left .ina-alert { margin: 0 0 24px; }

/* ---------- Akademi — entry point to chip-academy ---------- */
.akademi-left .t-eyebrow { display: block; margin-bottom: 12px; }
.akademi-left .t-h2 { margin: 0; }
.akademi-left .t-lead { margin: 20px 0 28px; max-width: 56ch; }
.akademi-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.akademi-cta .btn .ti { font-size: 18px; }
@media (max-width: 639px) {
  .akademi-cta .btn { width: 100%; justify-content: center; }
}
.akademi-features { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.akademi-features li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-strong); }
.akademi-features .ti { font-size: 20px; color: var(--violet); }

/* module list — one row per module, the uxcel-style course stack */
.module-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.module-row {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px 12px 12px;
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.module-row__icon {
  flex: 0 0 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet-soft); color: var(--violet);
  border-radius: var(--r-sm);
}
.module-row__icon .ti { font-size: 30px; }
.module-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.module-row__title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-strong); }
.module-row__meta { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.module-row__go { flex-shrink: 0; font-size: 20px; color: var(--violet); transition: transform 140ms ease; }
.module-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-row:hover .module-row__go { transform: translateX(2px); }
.module-row:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (max-width: 479px) {
  .module-row { gap: 14px; padding-right: 14px; }
  .module-row__icon { flex-basis: 48px; height: 48px; }
  .module-row__icon .ti { font-size: 24px; }
  .module-row__title { font-size: 16px; line-height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .module-row, .module-row__go { transition: none; }
  .module-row:hover, .module-row:hover .module-row__go { transform: none; }
}

/* ---------- §8.8 FAQ — open dashed list with square + control ---------- */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-wrap .ina-accordion { border-top: 1px dashed var(--line-dashed); }
.faq-wrap .ina-accordion:last-child { border-bottom: 1px dashed var(--line-dashed); }
.faq-wrap .ina-accordion__toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none; border: 0; cursor: pointer;
}
.faq-wrap .ina-accordion__title { font-size: 18px; font-weight: 600; color: var(--text-strong); text-align: left; }
.faq-wrap .sq-btn { flex-shrink: 0; }
/* v2.3: only the + glyph rotates to × — the square container stays put */
.sq-btn__icon { display: block; line-height: 1; transition: transform 200ms ease; }  /* §9: rotate 200ms */
.faq-wrap .ina-accordion__toggle[aria-expanded="true"] .sq-btn__icon { transform: rotate(45deg); }
.faq-wrap .ina-accordion__body { padding: 0 0 24px; }
.faq-wrap .t-body { max-width: 62ch; margin: 0; }

/* ---------- §8.9 CTA akhir — tinted, not a coloured band ---------- */
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta-mini { display: flex; flex-direction: column; gap: 12px; }
.cta-mini .t-body { margin: 0; max-width: 34ch; }
.cta-mini .btn--link { margin-top: auto; padding-top: 12px; align-self: flex-start; }

/* ---------- §8.10 Footer — same tint, dashed columns ---------- */
.site-footer { background: var(--surface-1); padding: 0 0 32px; }   /* v2.3: no section top padding — the stroke lives on the frame, 54px above the content */
.site-footer > .frame { border-top: 1px solid var(--line); }  /* v2.4: the stroke sits at the footer's top edge — the 54px breathing room lives on the brand/columns so the column dividers run unbroken to the © rule */
.footer-brand, .footer-col { padding-top: 54px; }   /* v2.4: content 54px below the top stroke; the item boxes start AT the stroke so the dividers connect */
.footer-brand p { font-size: 15px; line-height: 24px; color: var(--text-muted); max-width: 30ch; margin: 16px 0 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);           /* sq-btn--quiet */
  border-radius: var(--r-xs);
  color: var(--text-muted); text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.footer-social a:hover { background: var(--surface-1); color: var(--text-strong); }
.footer-social .ti { font-size: 18px; }
.footer-col h3 { font-size: 14px; font-weight: 600; color: var(--text-strong); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--text-muted); text-decoration: none; transition: color 140ms ease; }
.footer-col a:hover { color: var(--violet); }
@media (min-width: 768px) {
  .footer-col { border-left: 1px dashed var(--line-dashed); padding-left: 32px; padding-bottom: 32px; }  /* v2.4: bottom padding extends the divider to the © rule */
  .footer-brand { padding-bottom: 32px; }  /* v2.5: brand column (email button) ends on the same line as the column dividers — keeps the dashed © rule from butting against the social icon */
}
.footer-bottom {
  /* bleed out to the frame edges so the dashed rule meets the continuous
     vertical hairlines on both sides (v2.2); content stays on the gutter */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 0;                       /* v2.4: at ≥768 the © rule sits exactly where the column dividers end */
  padding-top: 32px;
  border-top: 1px dashed var(--line-dashed);
  font-size: 14px; color: var(--text-muted);
}
/* v2.4: below 768 the columns stack (no dividers) — restore the spacing gap */
@media (max-width: 767px) {
  .footer-bottom { margin-top: 32px; }
}

/* ---------- §9 Motion / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- §10 Responsive ---------- */
@media (max-width: 1023px) {
  .hero-visual { max-width: 620px; margin-inline: auto; }
}
@media (max-width: 639px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  /* keep the filter pill group from overflowing at ≤320px — wrap instead of scroll */
  .segmented { flex-wrap: wrap; }
}

/* ============================================================
   §8.6 Katalog referensi — featured strip + /katalog page
   All values resolve to doc 07 tokens. No new hex, no new weight.
   ============================================================ */

/* ---- Catalog count line (shared: landing was removed; used by /katalog page) ---- */
.sec-count {
  margin: 0;
  font-size: 14px; font-weight: 500;
  color: var(--text-soft);            /* ON the --surface-1 tint; see A9 */
}

/* ---- /katalog page ---- */
.katalog-back {
  display: inline-flex; align-items: center;
  min-height: 44px; margin-top: 16px;
  font-size: 15px; font-weight: 500;
  color: var(--violet); text-decoration: none;
  transition: color 140ms ease;
}
.katalog-back:hover { color: var(--violet-hover); text-decoration: underline; }

.section--katalog-top { padding-bottom: 0; }
.section--katalog-top > .frame { border-top: 0; padding-top: 32px; }
.section--katalog-top h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 600; }
.katalog-page-sub {
  font-size: 16px; line-height: 1.55; color: var(--text-soft);
}

.filter-bar {
  position: sticky; top: 72px; z-index: 20;
  background: color-mix(in srgb, var(--surface-0) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 24px;
}
.filter-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1 1 320px; min-width: 220px; }
.search-wrap .ti {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-soft); font-size: 16px; pointer-events: none;
}
.search {
  width: 100%; font: inherit; font-size: 15px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  background: var(--surface-0); color: var(--text-strong);
}
.search::placeholder { color: var(--text-soft); }
.tingkat-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); }
.tingkat-wrap select {
  font: inherit; font-size: 14px;
  padding: 9px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--r-xs); background: var(--surface-0); color: var(--text-strong);
}
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
.chips button {
  font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap;
  cursor: pointer; padding: 7px 14px;
  border-radius: var(--r-full); border: 1px solid var(--line-strong);
  background: var(--surface-0); color: var(--text-soft);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.chips button[aria-pressed="true"] {
  background: var(--core-blue); border-color: var(--core-blue); color: var(--surface-0);
}
.chips button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.result-count { margin: 24px 0 0; font-size: 14px; color: var(--text-soft); }

.katalog-group { margin-top: 72px; }
.katalog-group:first-of-type { margin-top: 48px; }
.katalog-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-strong);
}
.katalog-group-head h2 {
  margin: 0; font-size: 20px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.katalog-group-icon { font-size: 20px; color: var(--violet); }
.katalog-group-head span { font-size: 14px; color: var(--text-soft); }
.katalog-rows { list-style: none; margin: 0; padding: 0; }

.katalog-row {
  position: relative;
  display: flex; gap: 24px; align-items: flex-start;
  min-height: 72px; padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 140ms ease;
}
.katalog-row:last-child { border-bottom: 0; }
.katalog-row:hover { background: var(--surface-1); }
.katalog-row:focus-within { background: var(--surface-1); }
.katalog-row-main { flex: 1 1 auto; min-width: 0; }
.katalog-row-title { margin: 0; font-size: 16px; font-weight: 600; }
.katalog-row-title a {
  color: var(--text-strong); text-decoration: none;
}
.katalog-row-title a::after { content: ''; position: absolute; inset: 0; }
.katalog-row-title a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.katalog-row-title a:focus-visible::after { outline: none; }
.katalog-row-ring {
  margin: 4px 0 0; font-size: 14px; line-height: 1.5;
  color: var(--text-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.katalog-row-meta {
  flex: 0 0 auto; font-size: 13px; color: var(--text-soft);
  text-align: right; padding-top: 2px;
}

.katalog-empty { padding: 48px 0; border-top: 1px solid var(--line); }
.katalog-empty h2 { margin: 0; font-size: 18px; font-weight: 600; }
.katalog-empty p { margin: 8px 0 0; color: var(--text-soft); font-size: 15px; }

.katalog-foot-block {
  margin-top: 64px; margin-bottom: 40px; padding: 32px;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.katalog-foot-block h2 { margin: 0; font-size: 18px; font-weight: 600; }
.katalog-foot-block p { margin: 12px 0 0; font-size: 15px; }
.katalog-foot-block a { font-weight: 500; color: var(--violet); text-decoration: none; }
.katalog-foot-block a:hover { color: var(--violet-hover); text-decoration: underline; }

/* ---- §10 Responsive ---- */
@media (max-width: 899px) {
  .katalog-row { flex-direction: column; gap: 4px; }
  .katalog-row-meta { text-align: left; }
}
@media (max-width: 699px) {
  .filter-bar { padding: 12px 0; }
}
