/* Dunia Canggih SOC: dark navy + gold, from the parent brand, with a teal "all systems up" status colour. */
:root {
  --bg: #060810;
  --bg2: #0c1122;
  --panel: #121933;
  --line: #222b4a;
  --fg: #f4f1e9;
  --muted: #aeb3c6;
  --gold: #e8c66a;
  --gold-deep: #b8893a;
  --ok: #60d2e0;
  --warn: #f08ea8;
  --on-gold: #1a1405;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; font-weight: 300; }
a { color: var(--gold); }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--fg); text-decoration: none; }
.brand b { font-family: var(--display); font-size: 22px; font-weight: 400; font-style: italic; }
.brand span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.nav nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--fg); }

/* type */
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
h1, h2 { font-family: var(--display); font-weight: 300; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h1 em, h2 em { color: var(--gold); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 58ch; }
.ms { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold); }
section { padding-block: 84px; border-top: 1px solid var(--line); }
section > .wrap > header { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 500; padding: 12px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid var(--gold); }
.btn.primary { background: var(--gold); color: var(--on-gold); }
.btn.primary:hover { background: color-mix(in srgb, var(--gold) 80%, white); }
.btn.ghost { background: transparent; color: var(--gold); }

/* hero */
.hero { padding-block: 96px 80px; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.status-board { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-family: var(--num); font-size: 13px; }
.status-board .head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.status-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 16%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--warn) 4%, transparent); } }
.status-row .r { color: var(--muted); }
.status-row .r.warn { color: var(--warn); }
.status-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* grids */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.item { padding: 22px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.item p { margin: 0; color: var(--muted); font-size: 15px; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.tier.featured { border-color: var(--gold-deep); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, transparent), transparent 60%), var(--bg2); }
.tier .tag { align-self: flex-start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.tier .from { font-family: var(--num); font-size: 26px; font-weight: 500; }
.tier .from small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 300; }
.tier ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 4px; }
.tier .btn { margin-top: auto; justify-content: center; }

/* in / out */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 720px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .item ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 15px; }
.split .item.out h3 { color: var(--warn); }
.split .item.in h3 { color: var(--ok); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--gold-deep); min-width: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--num); color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.steps .when { display: block; font-family: var(--num); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* evidence */
.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.evidence div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.evidence span { font-family: var(--num); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* contact */
.contact { display: grid; gap: 20px; justify-items: start; }
.mail { font-family: var(--num); font-size: clamp(18px, 3vw, 26px); color: var(--fg); user-select: all; word-break: break-all; }
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); }

/* calculator */
.calc-head { padding-block: 56px 28px; display: grid; gap: 12px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 0 0 18px; }
.step legend, .step > h2 { float: left; width: 100%; font-family: var(--body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 14px; padding: 0; }
.step > *:not(legend) { clear: both; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .choice { grid-template-columns: minmax(0, 1fr); } }
.opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--panel); min-width: 0; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt b { font-weight: 500; }
.opt .p { font-family: var(--num); font-size: 14px; color: var(--gold); }
.opt small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); }
.check:has(input:checked) { border-color: var(--gold-deep); }
.check small { display: block; color: var(--muted); font-size: 13px; }
.check .p { font-family: var(--num); font-size: 14px; color: var(--gold); white-space: nowrap; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 400; min-width: 0; }
.field small { color: var(--muted); font-size: 12.5px; }
.field input { font: inherit; font-family: var(--num); font-size: 15px; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; background: var(--panel); }
.seg label { position: relative; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--gold); color: var(--on-gold); font-weight: 500; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.summary { position: sticky; top: 76px; background: var(--panel); border: 1px solid var(--gold-deep); border-radius: 14px; padding: 22px; display: grid; gap: 14px; }
@media (max-width: 900px) { .summary { position: static; } }
.summary .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.summary .big { font-family: var(--num); font-size: 36px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary .big small { font-family: var(--body); font-size: 14px; color: var(--muted); font-weight: 300; }
.summary table { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary td.n { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.summary tr.sub td { color: var(--muted); }
.summary tr.disc td { color: var(--ok); }
.summary tr.tot td { font-weight: 500; border-bottom: 0; }
.compare { background: var(--bg2); border-radius: 10px; padding: 14px; font-size: 14px; display: grid; gap: 6px; }
.compare b { font-family: var(--num); font-weight: 500; }
.compare .verdict.good { color: var(--ok); }
.compare .verdict.note { color: var(--muted); }
.status { min-height: 1.3em; font-size: 13px; color: var(--ok); margin: 0; }
textarea.fallback { width: 100%; height: 150px; font-family: var(--num); font-size: 12px; background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }

/* shared detail-page components (plan pages, support page) */
.price-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
@media (max-width: 880px) { .price-hero { grid-template-columns: minmax(0, 1fr); } }
.price-card { background: var(--bg2); border: 1px solid var(--gold-deep); border-radius: 14px; padding: 24px; display: grid; gap: 10px; }
.price-card .amt { font-family: var(--num); font-size: clamp(34px, 5vw, 46px); font-weight: 500; line-height: 1; }
.price-card .amt small { font-family: var(--body); font-size: 15px; color: var(--muted); font-weight: 300; }
.price-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 6px 0 0; font-size: 14.5px; }
.price-card dt { color: var(--muted); }
.price-card dd { margin: 0; text-align: right; font-family: var(--num); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tbl td:first-child { color: var(--fg); font-weight: 400; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .mono { font-family: var(--num); font-size: 13px; white-space: nowrap; }
.pill { display: inline-block; font-family: var(--num); font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); margin: 2px 4px 2px 0; white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: currentColor; }
.pill.warn { color: var(--gold); border-color: currentColor; }
.pill.no { color: var(--warn); border-color: currentColor; }
.ai-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: a; }
@media (max-width: 880px) { .ai-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ai-flow { grid-template-columns: minmax(0, 1fr); } }
.ai-flow li { counter-increment: a; padding: 18px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.ai-flow li::before { content: counter(a, decimal-leading-zero); display: block; font-family: var(--num); font-size: 12px; color: var(--gold); margin-bottom: 8px; }
.ai-flow p { margin: 0; color: var(--muted); font-size: 15px; }
.ai-flow .who { display: inline-block; margin-top: 10px; font-family: var(--num); font-size: 11.5px; color: var(--ok); }
.ai-flow .who.h { color: var(--gold); }
.pdf-note { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sample { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.sample .kind { font-family: var(--num); font-size: 12px; color: var(--gold); letter-spacing: .06em; }
.sample .btns { margin-top: auto; }
.sample .btn { padding: 9px 16px; font-size: 14px; }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.limits .item h3 { color: var(--warn); }
.req { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.req li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.req li b { font-weight: 500; }
.req li span { color: var(--muted); }
@media (max-width: 640px) { .req li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---- Themes: dark is the default above; theme.js sets data-theme on <html> ---- */
:root[data-theme="light"] {
  --bg: #f4f5f9; --bg2: #ffffff; --panel: #eceef5; --line: #d6d9e4;
  --fg: #0c1122; --muted: #545b73; --gold: #8a6116; --gold-deep: #b8893a;
  --ok: #0b7a87; --warn: #b8345a; --on-gold: #ffffff;
  color-scheme: light;
}
/* Canggih mode: the parent brand's neon side. Cyan and violet replace gold. */
:root[data-theme="canggih"] {
  --bg: #07031a; --bg2: #110a2e; --panel: #1a1142; --line: #2f2366;
  --fg: #f3f0ff; --muted: #b5abd9; --gold: #8ee6eb; --gold-deep: #aa84f6;
  --ok: #76d6a0; --warn: #f08ea8; --on-gold: #07031a;
  --glow: linear-gradient(100deg, #8ee6eb, #aa84f6 45%, #f08ea8 90%);
  color-scheme: dark;
}
:root[data-theme="canggih"] body {
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, #aa84f6 22%, transparent), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, color-mix(in srgb, #8ee6eb 12%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, #aa84f6 6%, transparent) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="canggih"] h1 em, :root[data-theme="canggih"] h2 em, :root[data-theme="canggih"] .brand span {
  background: var(--glow); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
:root[data-theme="canggih"] .btn.primary { background: var(--glow); border-color: transparent; color: var(--on-gold); }
:root[data-theme="canggih"] .btn.primary:hover { filter: brightness(1.1); }
:root[data-theme="canggih"] .status-board,
:root[data-theme="canggih"] .summary,
:root[data-theme="canggih"] .price-card,
:root[data-theme="canggih"] .tier.featured { box-shadow: 0 0 0 1px color-mix(in srgb, #aa84f6 40%, transparent), 0 0 40px color-mix(in srgb, #aa84f6 18%, transparent); }

/* theme toggle */
.theme-toggle { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle .sw { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
:root[data-theme="light"] .theme-toggle .sw { background: linear-gradient(90deg, #0c1122 50%, #f4f5f9 50%); border: 1px solid var(--line); }
:root[data-theme="canggih"] .theme-toggle .sw { background: var(--glow); }
