/* Terasai Build studio — port of terasai-build-redesign/client/src/index.css
   plus live-site nav, owned-price, tablet, and code-modal rules. */

:root {
  --nav-max: 1420px;
  --nav-inset: 32px;
  --nav-pad: 0px;
  --nav-height: 76px;
  /* Standar Terasai: amber + kanvas hitam. --ink = teks cream. */
  --ink: #F2EEE4;
  --ink-raised: #14120E;
  --ink-panel: #17140F;
  --amber: #E8A33D;
  --amber-pale: #E8A33D;
  --ivory: #F2EEE4;
  --smoke: #A69F90;
  --line: #252219;
  --line-strong: rgba(232, 163, 61, 0.45);
  --copper: #5e3212;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --bg: #0B0A08;
  --bg-raised: #14120E;
  --ink-soft: #A69F90;
  --ink-faint: #847C6E;
  --accent: #E8A33D;
  --accent-ink: #0B0A08;
  --accent-soft: rgba(232, 163, 61, 0.1);
  --accent-line: rgba(232, 163, 61, 0.32);
  --good: #7fb89a;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-page: "Manrope", Arial, sans-serif;
  --font-body: var(--font-page);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-width: 320px;
  overflow-x: clip;
}
body, button, a { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--amber); color: var(--accent-ink); }

/* ---- site header, aligned to 1420 canvas ---- */
body.build-studio > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(11, 10, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
}
body.build-studio .logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.065em;
  gap: 10px;
}
body.build-studio .logo-teras { color: var(--ivory) !important; }
body.build-studio .logo-ai { color: var(--amber) !important; }
body.build-studio .logo .mark {
  width: 25px;
  height: 25px;
  min-width: 25px;
  min-height: 25px;
}
body.build-studio .nav-links {
  font-size: 0.88rem;
  font-weight: 500;
  color: #b8b1a7;
  gap: clamp(22px, 3vw, 48px);
}
body.build-studio .nav-links a {
  position: relative;
  color: #b8b1a7;
  transition: color 160ms var(--ease-out);
}
body.build-studio .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 180ms var(--ease-out);
}
body.build-studio .nav-links a:hover,
body.build-studio .nav-links a.is-active {
  color: var(--ivory);
}
body.build-studio .nav-links a:hover::after,
body.build-studio .nav-links a.is-active::after { width: 100%; }
body.build-studio .nav-links a.is-active { color: var(--ivory) !important; }

body.build-studio .lang-btn {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #8a8378;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 6px 2px;
}
body.build-studio .lang-btn b { color: var(--ivory); font-weight: 600; }
body.build-studio .lang-btn:hover b { color: var(--amber); }

body.build-studio .badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--smoke);
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .build-studio { --nav-max: 100%; --nav-inset: clamp(36px, 5.2vw, 88px); }
  body.build-studio > nav .nav-in { width: calc(100% - (2 * clamp(36px, 5.2vw, 88px))); max-width: none; }
  body.build-studio .hero { width: calc(100% - (2 * clamp(36px, 5.2vw, 88px))); max-width: none; }
}

@media (max-width: 960px) {
  body.build-studio nav .nav-in,
  body.build-studio nav .wrap.nav-in {
    width: 100% !important;
    height: 66px !important;
    flex-wrap: nowrap !important;
  }
  body.build-studio .logo .mark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }
}

.site-shell { min-width: 320px; overflow: clip; background: var(--bg); padding-top: 76px; }
@media (max-width: 960px) { .site-shell { padding-top: 66px; } }

.kicker {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--amber-pale);
  white-space: nowrap;
}
.kicker > span:first-child { display: inline-block; width: 19px; height: 1px; background: currentColor; flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 0;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.button-primary {
  min-height: 49px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--amber);
  box-shadow: 0 10px 26px rgba(232, 163, 61, 0.16);
}
.build-studio a.button-primary,
.build-studio a.button-primary:hover {
  color: var(--accent-ink);
}
.button-primary:hover { background: #D4922F; transform: translateY(-2px); }
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent-line);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ivory);
  transition: color 160ms var(--ease-out);
}
.text-action:hover { color: var(--amber-pale); }
.text-action:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---- hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 735px;
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(540px, 1.06fr);
  gap: 50px;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 42vw;
  height: 42vw;
  max-width: 650px;
  max-height: 650px;
  left: -18vw;
  top: 10%;
  background: radial-gradient(circle, rgba(105, 59, 20, 0.16), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0 -100vw 0 38%;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(232, 163, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 163, 61, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, black 28%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; padding-top: 12px; }
.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(54px, 5.55vw, 89px);
  line-height: 0.995;
  letter-spacing: -0.075em;
  font-weight: 760;
}
.hero h1 em, h2 em {
  color: var(--amber-pale);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.065em;
}
.hero-amber { color: var(--amber-pale); }
.hero-description {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--smoke);
}
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 25px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(232, 163, 61, 0.68);
}

.hero-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.hero-visual picture,
.system-map-visual picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-index {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #8f8779;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  z-index: 4;
}
.index-label { color: var(--amber-pale); }
.index-line { flex: 1; max-width: 69px; height: 1px; background: var(--line-strong); }
.index-main { font-size: 16px; color: var(--ivory); letter-spacing: -0.04em; }
.index-sub { color: #857d70; }

.system-map-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(232, 163, 61, 0.4);
  background: rgba(10, 9, 7, 0.72);
  box-shadow: 0 9px 23px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  color: #e5d7c2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.system-map-label b { color: var(--amber); font-weight: 500; }
.label-web { left: 5%; top: 22%; }
.label-geo { right: 4%; top: 25%; }
.label-data { left: 13%; bottom: 18%; }

/* one-canvas: image is the atmosphere, copy sits on the left wash */
@media (min-width: 700px) {
  .hero-one-canvas {
    min-height: 780px;
    display: grid;
    grid-template-columns: minmax(0, 0.97fr) minmax(0, 1.03fr);
    gap: 0;
    overflow: hidden;
    padding: 98px 0 96px;
  }
  .hero-one-canvas .hero-copy {
    grid-column: 1;
    position: relative;
    z-index: 4;
    max-width: 560px;
    padding-top: 0;
  }
  .hero-one-canvas .hero-visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
    overflow: hidden;
    background: #080706;
  }
  .hero-one-canvas .hero-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    filter: saturate(0.92) contrast(1.02) brightness(0.96);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-one-canvas .hero-visual::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, #080706 0%, rgba(8, 7, 6, 0.98) 18%, rgba(8, 7, 6, 0.84) 34%, rgba(8, 7, 6, 0.28) 51%, transparent 68%, rgba(8, 7, 6, 0.18) 85%, #080706 100%),
      linear-gradient(0deg, #080706 0%, rgba(8, 7, 6, 0.22) 18%, transparent 44%, rgba(8, 7, 6, 0.34) 86%, #080706 100%);
  }
  .hero-one-canvas .system-map-label { z-index: 3; }
  .hero-one-canvas .label-web { left: 51%; top: 33%; }
  .hero-one-canvas .label-geo { right: 7%; top: 35%; }
  .hero-one-canvas .label-data { left: 57%; bottom: 23%; }
  .hero-one-canvas .hero-index { z-index: 4; }
  .hero-one-canvas .hero-grid { z-index: 2; opacity: 0.14; inset: 0 -100vw 0 42%; }
  .hero h1 { font-size: clamp(48px, 5.1vw, 80px); letter-spacing: -0.082em; line-height: 0.98; }
  .hero h1 .hero-tools { white-space: nowrap; }
  .hero-description { max-width: 530px; font-size: 14px; }
}

@media (min-width: 1061px) {
  .hero-one-canvas {
    grid-template-columns: minmax(470px, 0.82fr) minmax(760px, 1.18fr);
  }
  .hero h1 { font-size: clamp(57px, 4.95vw, 80px); }
}

@media (min-width: 700px) and (max-width: 1039px) {
  .hero-one-canvas .hero-copy { max-width: 420px; }
  .hero h1 { font-size: clamp(40px, 5.6vw, 58px); }
  .hero-description { font-size: 13.5px; max-width: 400px; }
  .hero-one-canvas .label-web { left: 48%; top: 30%; }
  .hero-one-canvas .label-geo { right: 5%; top: 32%; }
  .hero-one-canvas .label-data { left: 54%; bottom: 20%; }
}

/* ---- signal rail ---- */
.signal-rail {
  position: relative;
  min-height: 95px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signal-rail p {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.signal-rail p span {
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 0.75rem;
}
.rail-line {
  position: absolute;
  width: 34%;
  height: 1px;
  left: 0;
  bottom: -1px;
  background: var(--amber);
  box-shadow: 0 0 20px rgba(232, 163, 61, 0.6);
}

/* ---- materials ---- */
.path-section {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 156px 0 110px;
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 70px;
  margin-bottom: 47px;
}
.section-intro h2,
.process-copy h2,
.price-heading h2,
.faq-heading h2 {
  margin-bottom: 0;
  font-size: clamp(35px, 3.9vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.068em;
  font-weight: 720;
}
.section-intro h2 { max-width: 800px; }
.intro-copy {
  margin: 0;
  color: var(--smoke);
  font-size: 1.02rem;
  line-height: 1.7;
}

.course-list { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 13px; }
.course-card {
  position: relative;
  min-height: 395px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 56%), var(--ink-raised);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
  display: flex;
  flex-direction: column;
}
.course-card::before,
.course-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 29px;
  height: 29px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 220ms var(--ease-out), width 220ms var(--ease-out);
}
.course-card::before { left: -1px; top: -1px; border-left: 1px solid var(--amber); border-top: 1px solid var(--amber); }
.course-card::after { right: -1px; bottom: -1px; border-right: 1px solid var(--amber); border-bottom: 1px solid var(--amber); }
.course-card:hover {
  transform: translateY(-7px);
  border-color: rgba(232, 163, 61, 0.5);
  background: linear-gradient(145deg, rgba(232, 163, 61, 0.12), transparent 59%), var(--ink-panel);
}
.course-card:hover::before,
.course-card:hover::after { width: 53px; opacity: 1; }
.course-card.amber { background: linear-gradient(150deg, rgba(132, 73, 21, 0.32), transparent 55%), var(--ink-raised); }
.course-card.copper { background: linear-gradient(150deg, rgba(79, 41, 16, 0.34), transparent 55%), var(--ink-raised); }
.course-card.ivory { background: linear-gradient(150deg, rgba(244, 240, 232, 0.1), transparent 55%), var(--ink-raised); }

.course-topline { display: grid; grid-template-columns: 35px 1fr auto; align-items: start; gap: 10px; }
.course-number { color: var(--amber); font-family: var(--font-body); font-size: 0.75rem; }
.course-eyebrow {
  max-width: 155px;
  color: #a79a85;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.course-icon { color: var(--amber-pale); }
.ivory .course-icon { color: var(--ivory); }

.outcome-preview {
  position: absolute;
  z-index: 0;
  top: 83px;
  right: 23px;
  width: 117px;
  height: 77px;
  opacity: 0.85;
}
.outcome-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 163, 61, 0.26);
}
.outcome-preview i,
.outcome-preview b {
  position: absolute;
  display: block;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(232, 163, 61, 0.24);
}
.preview-01 i:nth-child(1) { left: 11px; right: 11px; top: 13px; height: 2px; }
.preview-01 i:nth-child(2) {
  left: 11px; width: 45px; top: 26px; height: 31px;
  border: 1px solid var(--amber); background: transparent; box-shadow: none;
}
.preview-01 i:nth-child(3) { right: 11px; width: 31px; top: 26px; height: 12px; }
.preview-01 b { right: 11px; width: 31px; bottom: 17px; height: 14px; background: rgba(232, 163, 61, 0.36); }
.preview-02::after {
  content: "";
  position: absolute;
  left: 17px; top: 17px; width: 78px; height: 38px;
  background-image:
    linear-gradient(90deg, transparent 48%, rgba(232, 163, 61, 0.35) 49%, rgba(232, 163, 61, 0.35) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(232, 163, 61, 0.35) 49%, rgba(232, 163, 61, 0.35) 51%, transparent 52%);
  background-size: 17px 17px;
}
.preview-02 i { width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.preview-02 i:nth-child(1) { left: 28px; top: 28px; }
.preview-02 i:nth-child(2) { left: 68px; top: 40px; background: var(--amber-pale); }
.preview-02 i:nth-child(3) { left: 49px; top: 52px; }
.preview-02 b { left: 29px; right: 38px; bottom: 12px; height: 1px; transform: rotate(21deg); transform-origin: left; }
.preview-03 { display: flex; align-items: end; justify-content: center; gap: 8px; padding: 15px; }
.preview-03 i { position: relative; width: 15px; height: 24px; background: rgba(232, 163, 61, 0.28); }
.preview-03 i:nth-child(2) { height: 42px; background: rgba(232, 163, 61, 0.56); }
.preview-03 i:nth-child(3) { height: 31px; background: var(--amber); }
.preview-03 b { left: 14px; right: 14px; bottom: 12px; height: 1px; }

.course-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 120px;
}
.course-body h3 {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  font-size: clamp(27px, 2.6vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 730;
}
.course-body p {
  max-width: 330px;
  margin-bottom: 28px;
  color: var(--smoke);
  font-size: 0.95rem;
  line-height: 1.65;
}
.course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-pale);
  font-size: 0.92rem;
  font-weight: 600;
}
.course-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.course-line {
  position: absolute;
  z-index: 3;
  height: 1px;
  left: 23px;
  width: 0;
  bottom: 0;
  background: var(--amber);
  transition: width 240ms var(--ease-out);
}
.course-card:hover .course-line { width: calc(100% - 46px); }

/* ---- process ---- */
.build-process {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(40px, 7vw, 130px);
  padding: 110px max(32px, calc((100vw - 1420px) / 2)) 158px;
  background: #0e0c09;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-stage {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(232, 163, 61, 0.34);
  background: #090806;
  box-shadow: inset 0 0 80px rgba(232, 163, 61, 0.04);
}
.process-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.98;
}
.process-stage::before,
.process-stage::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  z-index: 4;
}
.process-stage::before { top: -1px; left: -1px; border-top: 2px solid var(--amber); border-left: 2px solid var(--amber); }
.process-stage::after { right: -1px; bottom: -1px; border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.stage-label {
  position: absolute;
  z-index: 5;
  left: 19px;
  top: 18px;
  color: var(--amber-pale);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.stage-caption {
  position: absolute;
  z-index: 4;
  left: 19px;
  right: 19px;
  bottom: 17px;
  display: flex;
  justify-content: space-between;
  color: #b9aa91;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px #090806;
}
.process-copy { position: relative; }
.brand-monument {
  position: absolute;
  right: 0;
  top: -85px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(232, 163, 61, 0.58);
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.1em;
}
.brand-monument img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(232, 163, 61, 0.2));
}
.process-copy h2 { max-width: 570px; margin-bottom: 42px; }
.process-copy ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.process-copy li {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.process-copy li > span {
  padding-top: 3px;
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 0.78rem;
}
.process-copy li h3 { margin-bottom: 7px; font-size: 1.05rem; letter-spacing: -0.03em; }
.process-copy li p { margin: 0; max-width: 450px; color: var(--smoke); font-size: 0.95rem; line-height: 1.65; }

/* ---- price ---- */
.price-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 130px max(32px, calc((100vw - 1420px) / 2));
  background: var(--bg);
}
.ambient-bg {
  position: absolute;
  z-index: -1;
  width: 115%;
  max-width: none;
  height: 100%;
  inset: 0 -7.5%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
}
.price-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(420px, 0.86fr);
  gap: 60px;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid rgba(232, 163, 61, 0.38);
  background: linear-gradient(112deg, rgba(57, 34, 17, 0.81), rgba(19, 15, 11, 0.88) 46%, rgba(37, 26, 14, 0.82));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
}
.price-panel::before,
.price-panel::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 45px;
  pointer-events: none;
}
.price-panel::before { left: -1px; top: -1px; border-left: 2px solid var(--amber); border-top: 2px solid var(--amber); }
.price-panel::after { right: -1px; bottom: -1px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); }
.price-heading h2 { margin-bottom: 16px; }
.price-heading > p:last-child {
  max-width: 490px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}
.price-figure {
  padding-left: clamp(22px, 4vw, 68px);
  border-left: 1px solid rgba(244, 240, 232, 0.16);
}
.price-label {
  display: block;
  margin-bottom: 14px;
  color: var(--amber-pale);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.price-value { margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.price-value strong {
  font-size: clamp(35px, 4vw, 55px);
  letter-spacing: -0.075em;
  color: var(--amber-pale);
  font-weight: 750;
}
.price-value .price-per { color: var(--ink-soft); font-size: 0.95rem; }
.package-copy { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.62; }
.access-stack { margin-bottom: 13px; border-top: 1px solid rgba(244, 240, 232, 0.16); }
.access-stack > div {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 64px 1fr 16px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.11);
}
.access-tier { color: var(--amber); font-family: var(--font-body); font-size: 0.72rem; }
.access-stack b { color: var(--ivory); font-size: 0.92rem; }
.access-stack small { color: var(--ink-soft); font-size: 0.82rem; }
.access-stack i { color: var(--amber-pale); font-style: normal; font-size: 0.92rem; }
.separate-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 13px;
  align-items: baseline;
  margin: 0 0 20px;
  padding: 10px 11px;
  border-left: 1px solid var(--amber);
  background: rgba(232, 163, 61, 0.075);
}
.separate-total span {
  grid-column: 1 / -1;
  color: #a99e8e;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.separate-total strong { color: #e8dfd1; font-size: 0.92rem; }
.separate-total del { color: var(--amber-pale); font-size: 0.95rem; text-decoration-color: rgba(232, 163, 61, 0.72); }
.buy-button { width: 100%; margin-bottom: 12px; }
.price-figure > small {
  display: block;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.5;
}
.price-owned {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.price-owned h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.price-owned p { margin: 0 0 8px; color: var(--smoke); font-size: 0.98rem; line-height: 1.6; }
.price-owned .button { width: auto; align-self: flex-start; }

.studio-list-label {
  display: block;
  margin: 4px 0 8px;
  color: var(--amber-pale);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.studio-list {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  border-top: 1px solid rgba(244, 240, 232, 0.16);
}
.studio-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(244, 240, 232, 0.11);
  color: var(--ivory);
  font-size: 0.95rem;
  font-weight: 500;
}
.studio-list a:hover { color: var(--amber-pale); }
.studio-list .studio-num {
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 0.72rem;
}
.studio-list .studio-go {
  color: var(--amber-pale);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

[data-price-owned][hidden],
[data-price-amt][hidden],
[data-price-note][hidden],
[data-price-cta][hidden],
[data-price-owned-hide][hidden],
.price-owned[hidden] { display: none !important; }

/* ---- faq ---- */
.faq-section {
  width: min(1130px, calc(100% - 64px));
  margin: 0 auto;
  padding: 150px 0;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
}
.faq-heading h2 { margin-bottom: 16px; }
.faq-heading > p:last-child {
  max-width: 320px;
  margin-bottom: 0;
  color: var(--smoke);
  font-size: 1.02rem;
  line-height: 1.7;
}
body.build-studio .faq-list,
.faq-list {
  position: relative;
  display: block;
  margin-top: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.faq-list::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 112px;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(232, 163, 61, 0.5);
}
.faq-list details { position: relative; border-bottom: 1px solid var(--line); }
.faq-list details::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 200ms var(--ease-out);
}
.faq-list details[open]::after { width: 32%; }
.faq-list summary {
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 21px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ivory);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span:first-child {
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}
.faq-list summary > span:nth-child(2) {
  color: var(--ivory);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.faq-list summary svg { transition: transform 180ms var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(90deg); color: var(--amber); }
.faq-list details p {
  max-width: 640px;
  margin: -4px 36px 22px 42px;
  color: var(--smoke);
  font-size: 0.98rem;
  line-height: 1.7;
}
.faq-list summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---- closing band + legal footer ---- */
.footer-close {
  border-top: 1px solid var(--line);
  padding: 50px max(32px, calc((100vw - 1420px) / 2)) 28px;
  background: #0c0b09;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 34px;
  padding-bottom: 54px;
}
.footer-main p { margin: 0; max-width: 280px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.brand-mark { width: 25px; height: 25px; object-fit: contain; }
.brand-name span { color: var(--amber); }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-pale);
  font-size: 0.88rem;
  font-weight: 600;
}
.footer-meta {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #7f786d;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}
.footer-meta div { display: flex; gap: 21px; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--ivory); }

/* ---- code modal ---- */
.code-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.code-modal[hidden] { display: none; }
.code-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.code-modal-box {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-raised);
  padding: 24px 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  max-height: min(92vh, 720px);
  overflow: auto;
}
.code-modal-box h3 { font-size: 1.1rem; margin: 0 0 6px; }
.code-modal-box .cm-lede { font-size: 0.88rem; color: var(--smoke); margin: 0 0 16px; line-height: 1.5; }
.code-modal-box label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.code-modal-box input {
  width: 100%;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ivory);
  margin-bottom: 14px;
}
.code-modal-box input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.code-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.code-modal-actions .button-primary { flex: 1; min-width: 140px; }
.code-modal-actions .btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
}
.code-msg { font-size: 0.8rem; margin-top: 12px; min-height: 1.2em; }
.code-msg.ok { color: var(--good); }
.code-msg.err { color: #c96f5e; }
.code-msg.info { color: var(--amber); }
.cm-help { margin-top: 14px; font-size: 0.78rem; color: var(--ink-faint); line-height: 1.5; }
.cm-help a { color: var(--amber); }

/* Match Learn's heading rhythm: same Manrope weight and spacing across the page. */
body.build-studio .hero h1 {
  line-height: 0.99;
  letter-spacing: -0.062em;
  font-weight: 700;
}
body.build-studio .section-intro h2,
body.build-studio .process-copy h2,
body.build-studio .price-heading h2,
body.build-studio .faq-heading h2 {
  letter-spacing: -0.055em;
  font-weight: 700;
}
body.build-studio .course-body h3 {
  letter-spacing: -0.055em;
  font-weight: 700;
}

/* ---- motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-visual, .course-card, .price-panel {
    animation: reveal 700ms var(--ease-out) both;
  }
  .hero-visual { animation-delay: 90ms; }
  .course-card:nth-child(2) { animation-delay: 70ms; }
  .course-card:nth-child(3) { animation-delay: 140ms; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-visual, .course-card, .price-panel { animation: none; }
}

/* ---- tablet 700–1039: 2-col cards, keep one-canvas hero ---- */
@media (min-width: 700px) and (max-width: 1039px) {
  .course-list { grid-template-columns: 1fr 1fr; }
  .course-card:first-child { grid-column: span 2; }
  .course-card:first-child .course-body p { max-width: 410px; }
  .build-process { gap: 48px; }
  .price-panel { grid-template-columns: 1fr 0.9fr; gap: 32px; }
  .faq-section { gap: 48px; }
  .signal-rail { gap: 16px; }
}

@media (min-width: 700px) and (max-width: 899px) {
  .build-process { grid-template-columns: 1fr; gap: 44px; padding: 90px 32px 110px; }
  .process-stage { min-height: 380px; }
  .brand-monument { top: -56px; }
  .price-panel { grid-template-columns: 1fr; }
  .price-figure, .price-owned {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(244, 240, 232, 0.16);
    padding-top: 27px;
  }
  .faq-section { grid-template-columns: 1fr; }
}

/* ---- phone ---- */
@media (max-width: 699px) {
  .hero {
    width: min(100% - 32px, 100%);
    min-height: auto;
    padding: 67px 0 70px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-grid { inset: 24% -100vw 0 -30%; }
  .hero-copy { max-width: 100%; }
  .hero h1 {
    font-size: clamp(47px, 13.25vw, 64px);
    letter-spacing: -0.07em;
  }
  .hero-description { font-size: 14px; }
  .hero-cta { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-cta .button-primary { width: 100%; }
  .hero-one-canvas { overflow: hidden; position: relative; }
  .hero-one-canvas .hero-copy { position: relative; z-index: 3; }
  .hero-one-canvas .hero-visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    margin: 0;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    background: #080706;
  }
  .hero-one-canvas .hero-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 69% center;
    opacity: 0.56;
    filter: saturate(0.9) contrast(1.02) brightness(0.94);
  }
  .hero-one-canvas .hero-visual::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, #080706 0%, rgba(8, 7, 6, 0.82) 22%, rgba(8, 7, 6, 0.42) 58%, rgba(8, 7, 6, 0.88) 100%),
      linear-gradient(90deg, rgba(8, 7, 6, 0.78) 0%, rgba(8, 7, 6, 0.45) 42%, rgba(8, 7, 6, 0.22) 100%);
  }
  .hero-one-canvas .system-map-label { display: none; }
  .hero-proof { margin-top: 20px; font-size: 0.85rem; }
  .hero-index { position: relative; z-index: 3; bottom: auto; margin-top: 18px; }
  .index-label, .index-sub { display: none; }
  .index-line { max-width: none; }

  .signal-rail {
    width: min(100% - 32px, 100%);
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 24px 0;
  }
  .rail-line { width: 58%; }

  .path-section { width: min(100% - 32px, 100%); padding: 105px 0 76px; }
  .section-intro { grid-template-columns: 1fr; gap: 19px; margin-bottom: 32px; }
  .section-intro h2,
  .process-copy h2,
  .price-heading h2,
  .faq-heading h2 { font-size: clamp(37px, 11vw, 54px); }
  .course-list { grid-template-columns: 1fr; }
  .course-card, .course-card:first-child { grid-column: auto; min-height: 330px; }
  .outcome-preview { top: 69px; right: 20px; }
  .course-body { padding-top: 96px; }
  .course-body h3 { font-size: 29px; }

  .build-process { padding: 74px 16px 91px; grid-template-columns: 1fr; gap: 44px; }
  .process-stage { min-height: 315px; }
  .brand-monument { top: -50px; right: 0; }

  .price-section { padding: 88px 16px; }
  .price-panel { grid-template-columns: 1fr; gap: 38px; padding: 30px 23px; }
  .price-figure, .price-owned {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(244, 240, 232, 0.16);
    padding-top: 27px;
  }
  .access-stack > div { grid-template-columns: 22px 49px 1fr 13px; gap: 5px; }
  .access-stack small { font-size: 8px; }

  .faq-section { width: min(100% - 32px, 100%); padding: 96px 0; grid-template-columns: 1fr; gap: 44px; }
  .faq-list details p { margin-left: 0; margin-right: 0; }

  .footer-close { padding: 35px 16px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 21px; padding-bottom: 38px; }
  .footer-meta { flex-direction: column; gap: 14px; }
  .footer-meta div { flex-wrap: wrap; gap: 11px 18px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(42px, 12.4vw, 54px); }
  .system-map-label { font-size: 0.65rem; }
}

/* ---- Learn parity pass: the full Build page uses the same editorial type
   scale, readable labels, and section rhythm as belajar.html. Keep technical
   monospace confined to the code modal and machine-readable footer metadata. */
body.build-studio {
  font-size: 16px;
  line-height: 1.65;
}

body.build-studio .kicker {
  gap: 8px;
  margin-bottom: 19px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.19em;
}

/* Hero must use Learn's exact display treatment too. The previous parity pass
   fixed the sans family and weight, but Build's italic accent still kept a
   heavier weight and tighter tracking than belajar.html. */
body.build-studio .hero h1 {
  max-width: 730px;
  font-family: var(--font-page);
  font-size: clamp(46px, 5.12vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.062em;
  font-weight: 700;
}

body.build-studio .hero h1 em,
body.build-studio .section-intro h2 em,
body.build-studio .process-copy h2 em,
body.build-studio .price-heading h2 em,
body.build-studio .faq-heading h2 em {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.04em;
}

body.build-studio .button {
  font-size: 13px;
  font-weight: 800;
}

body.build-studio .button-primary {
  min-height: 0;
  padding: 13px 19px;
}

body.build-studio .text-action {
  gap: 9px;
  padding: 9px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

body.build-studio .signal-rail p {
  font-size: 13px;
  line-height: 1.55;
}

body.build-studio .section-intro h2,
body.build-studio .process-copy h2,
body.build-studio .price-heading h2,
body.build-studio .faq-heading h2 {
  font-size: clamp(35px, 4vw, 59px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 700;
}

body.build-studio .intro-copy,
body.build-studio .price-heading > p:last-child,
body.build-studio .faq-heading > p:last-child {
  font-size: 15px;
  line-height: 1.8;
}

body.build-studio .course-number {
  font-size: 11px;
  font-weight: 700;
}

body.build-studio .course-eyebrow {
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.build-studio .course-body h3 {
  font-size: clamp(28px, 2.55vw, 38px);
  line-height: 1.11;
  letter-spacing: -0.045em;
  font-weight: 700;
}

body.build-studio .course-body p,
body.build-studio .process-copy li p,
body.build-studio .package-copy,
body.build-studio .price-owned p,
body.build-studio .footer-main p {
  font-size: 15px;
  line-height: 1.8;
}

body.build-studio .course-link,
body.build-studio .back-top {
  font-size: 13px;
  font-weight: 800;
}

body.build-studio .stage-label,
body.build-studio .stage-caption,
body.build-studio .brand-monument,
body.build-studio .studio-list-label,
body.build-studio .price-label {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.build-studio .process-copy li > span {
  font-size: 11px;
  font-weight: 700;
}

body.build-studio .process-copy li h3 {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
}

body.build-studio .price-value strong {
  letter-spacing: -0.055em;
  font-weight: 700;
}

body.build-studio .access-tier,
body.build-studio .separate-total span,
body.build-studio .studio-list .studio-num {
  font-size: 10px;
  font-weight: 700;
}

body.build-studio .access-stack b,
body.build-studio .studio-list a,
body.build-studio .separate-total strong,
body.build-studio .separate-total del {
  font-size: 15px;
}

body.build-studio .price-owned h3 {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 700;
}

body.build-studio .faq-list summary {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body.build-studio .faq-list summary > span:first-child {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
}

body.build-studio .faq-list details p {
  font-size: 13px;
  line-height: 1.8;
}

@media (min-width: 1100px) {
  body.build-studio { --page-pad: clamp(36px, 5.2vw, 88px); }

  body.build-studio .signal-rail,
  body.build-studio .path-section,
  body.build-studio .faq-section {
    width: calc(100% - (2 * var(--page-pad)));
    max-width: none;
  }

  body.build-studio .path-section,
  body.build-studio .faq-section {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  body.build-studio .build-process,
  body.build-studio .price-section,
  body.build-studio .footer-close {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }

  body.build-studio .build-process { padding-top: 112px; padding-bottom: 112px; }
  body.build-studio .price-section { padding-top: 112px; padding-bottom: 112px; }
  body.build-studio .button { font-size: 15px; }
  body.build-studio .button-primary { padding: 15px 23px; }
  body.build-studio .text-action { font-size: 15px; }
  body.build-studio .course-link,
  body.build-studio .back-top { font-size: 14px; }
}

@media (max-width: 699px) {
  body.build-studio .course-body p,
  body.build-studio .process-copy li p,
  body.build-studio .package-copy,
  body.build-studio .price-owned p,
  body.build-studio .footer-main p { font-size: 15px; }
  body.build-studio .faq-list summary { font-size: 14px; }
}
