/* Nala Lingkungan: the brand from the PRD, laid over the kit's system.css.
   Hijau tua #0A7A46 (buttons, active menu, links, icons), biru ajakan #0066B2 (Minta penawaran,
   Kirim lewat WhatsApp), hijau muda #E6F4EC (cards, labels), biru tua #0B2A3F (the Layanan opening).
   Space Grotesk for headings, Inter for text. */
:root {
  --p-bg: #ffffff; --p-surface: #e6f4ec; --p-ink: #0b2a3f; --p-muted: #4f6474;
  --p-accent: #0a7a46; --p-accent-ink: #ffffff; --p-action: #0a7a46; --p-action-ink: #ffffff;
  --p-inv-bg: #0b2a3f; --p-inv-surface: #1b374b; --p-inv-ink: #ffffff; --p-inv-muted: #b4c0c9;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #0b2a3f; --p-inv-action: #ffffff; --p-inv-action-ink: #0b2a3f;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --display-weight: 500;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.03em;
  --ly-scale: 1;
  --blue: #0066b2;
  --green: #0a7a46;
  --mint: #e6f4ec;
}

/* the blue call to action: Minta penawaran, Kirim lewat WhatsApp, Minta pemodelan lengkap */
.btn--blue { --action: var(--blue); --action-ink: #fff; background: var(--blue); color: #fff; }
.btn--blue:hover { background: color-mix(in oklab, var(--blue) 86%, #000); }
.btn--wa svg { width: 18px; height: 18px; flex: none; }
.btn { min-height: 44px; }

/* the logo: leaf and wave, beside the name */
.nav__logo img { width: 34px; height: auto; display: block; }
.nav__logo { gap: 10px; }
.nav__link[aria-current="page"] { color: var(--green); }
.footer .nav__logo img { width: 40px; }

/* labels and pills in hijau muda */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--green); font: 500 var(--t-small)/1.3 var(--font-text); }
.hero__over .tag { background: rgba(230, 244, 236, .14); color: #e6f4ec; margin-bottom: var(--s-4); }
.hero__over .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }

/* cards in hijau muda */
.mint-card { background: var(--mint); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); display: grid; align-content: start; gap: var(--s-3); }
.mint-card h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.mint-card p { max-width: 52ch; }
.mint-card .link { color: var(--green); font-weight: 500; }
a.mint-card { color: inherit; text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.mint-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11, 42, 63, .08); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--green); }
.ico svg { width: 24px; height: 24px; }
.cards3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards2 { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cards3, .cards2 { grid-template-columns: 1fr; } }
.note { border-left: 3px solid var(--green); padding: var(--s-3) var(--s-4); background: var(--mint); border-radius: 0 var(--r-sm) var(--r-sm) 0; max-width: 70ch; }

/* the service cards: a picture on top of each */
.svc { padding: 0; overflow: hidden; }
.svc > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.svc:hover > img { transform: scale(1.03); }
.svc .svc__body { padding: var(--s-5) var(--s-6) var(--s-6); display: grid; gap: var(--s-3); }
.svc .svc__pic { overflow: hidden; }

/* workflow steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); counter-reset: st; }
.steps li { counter-increment: st; border-top: 2px solid var(--green); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.steps li::before { content: counter(st, decimal-leading-zero); font: 500 var(--t-small)/1 var(--font-display); color: var(--green); }
.steps h3 { font: 500 var(--t-lead)/1.3 var(--font-text); }
.steps p { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }
@media (max-width: 639px) { .steps { grid-template-columns: 1fr; } }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .steps--3 { grid-template-columns: 1fr; } }

/* the study maps: the client's own Delft3D FM figures, each tagged as an example study */
.maps { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.maps figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.maps img { display: block; width: 100%; aspect-ratio: 14 / 9; object-fit: contain; background: #fff; transition: transform .6s var(--ease); }
.maps figure:hover img { transform: scale(1.02); }
.maps .tag { position: absolute; left: 12px; top: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
@media (max-width: 767px) { .maps { grid-template-columns: 1fr; } }

/* the delivery box */
.deliver { background: var(--p-inv-bg); color: #fff; border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.deliver h3 { font: 500 var(--t-card)/1.3 var(--font-text); }
.deliver ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.deliver li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.deliver li svg { width: 20px; height: 20px; color: #7fd1a6; margin-top: 2px; }
.deliver p { color: var(--p-inv-muted); }

/* FAQ that opens and closes */
.acc { display: grid; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: var(--s-4); align-items: center; padding: var(--s-5) 0; min-height: 44px; font: 500 var(--t-lead)/1.4 var(--font-text); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 14px; height: 14px; justify-self: end; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur) var(--ease); }
.acc details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.acc summary:hover { color: var(--green); }
.acc details p { padding: 0 0 var(--s-5); max-width: 70ch; }
.acc summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* a fade up as titles and cards enter, once, in sequence (PRD: Layanan, Metode, Kontak) */
.js-rise [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease, ease), transform .6s var(--ease, ease); transition-delay: var(--rd, 0ms); }
.js-rise [data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-rise [data-rise] { opacity: 1; transform: none; transition: none; } }

/* the closing band */
.closing-band { background: var(--p-inv-bg); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: end;
  --bg: var(--p-inv-bg); --ink: #fff; --muted: var(--p-inv-muted); --line-strong: rgba(255,255,255,.4); }
.closing-band h2 { color: #fff; }
.closing-band p { color: var(--p-inv-muted); max-width: 52ch; }
@media (max-width: 767px) { .closing-band { grid-template-columns: 1fr; } }

/* the WhatsApp number set large */
.wa-big { font: 500 clamp(28px, 4vw, 48px)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--green); text-decoration: none; }
.wa-big:hover { text-decoration: underline; text-underline-offset: 6px; }

/* the comparison table on Metode */
.cmp { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: var(--s-4); border-bottom: 1px solid var(--line); }
.cmp thead th { font: 500 var(--t-small)/1.3 var(--font-text); color: var(--muted); }
.cmp tbody th { font-weight: 500; width: 22%; }
.cmp td:last-child { background: var(--mint); }
.cmp-wrap { overflow-x: auto; }
@media (max-width: 639px) { .cmp th, .cmp td { padding: var(--s-3) var(--s-2); font-size: var(--t-small); } }

/* the flow diagram on Metode */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: var(--s-3); }
.flow > div { background: var(--mint); border-radius: var(--r-md); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.flow > div b { font: 500 var(--t-lead)/1.3 var(--font-display); }
.flow > div span { color: var(--muted); font-size: var(--t-small); }
.flow > i { align-self: center; color: var(--green); font-style: normal; font-size: 24px; }
.flow > i::before { content: "→"; }
@media (max-width: 767px) { .flow { grid-template-columns: 1fr; } .flow > i { justify-self: center; } .flow > i::before { content: "↓"; } }
.formula { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); overflow-x: auto; display: grid; gap: var(--s-4); }
.formula math { font-size: 1.35em; }
.formula dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); font-size: var(--t-small); margin: 0; }
.formula dt { font-family: var(--font-display); font-weight: 500; }
.formula dd { margin: 0; color: var(--muted); }
.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.limits li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); }
.limits li::before { content: "!"; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; font: 600 13px/1 var(--font-text); }
.refs { padding-left: 1.2em; display: grid; gap: var(--s-2); color: var(--muted); font-size: var(--t-small); }

/* page heads on the inner pages */
.page-head { padding-block: clamp(48px, 8vw, 112px) var(--s-7); }
.page-head h1 { max-width: 20ch; }
.page-head p.t-lead { max-width: 60ch; margin-top: var(--s-4); color: var(--muted); }
.page-head .tag { margin-bottom: var(--s-4); }

/* ---------- the simulator ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: start; }
@media (max-width: 1023px) { .sim { grid-template-columns: 1fr; } }
.sim-form { display: grid; gap: var(--s-5); }
.sim-form .field { display: grid; gap: var(--s-2); }
.sim-lbl { display: flex; align-items: center; gap: var(--s-2); font: 500 var(--t-body)/1.4 var(--font-text); }
.sim-help { font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.sim-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); }
.sim-unit span { color: var(--muted); }
.sim-warn { font-size: var(--t-small); color: #8a4b00; background: #fff4e0; border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); }
.sim-warn[hidden] { display: none; }
.info { position: relative; display: inline-block; }
.info summary { list-style: none; width: 44px; height: 44px; margin: -12px -10px; display: grid; place-items: center; cursor: pointer; }
.info summary::-webkit-details-marker { display: none; }
.info summary span { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green); display: grid; place-items: center; font: 600 12px/1 var(--font-text); }
.info p { position: absolute; z-index: 5; left: -8px; top: 34px; width: min(300px, 76vw); background: var(--p-inv-bg); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font: 400 var(--t-small)/1.5 var(--font-text); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; }
.chip:hover { border-color: var(--green); color: var(--green); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); border: 0; padding: 0; margin: 0; }
.seg label { position: relative; display: grid; gap: 2px; min-height: 56px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font: 500 var(--t-small)/1.3 var(--font-text); }
.seg label small { color: var(--muted); font-weight: 400; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }
.seg label:has(input:checked) small { color: #e6f4ec; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.dial { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: center; }
.dial__face { width: 112px; height: 112px; border-radius: 50%; background: var(--mint); position: relative; touch-action: none; cursor: grab; }
.dial__face svg { width: 100%; height: 100%; display: block; }
.dial__arrow { transform-origin: 56px 56px; transition: transform .15s; }
.dial input[type=range] { width: 100%; accent-color: var(--green); min-height: 44px; }
.dial output { font-size: var(--t-small); color: var(--muted); }
.sim-view { display: grid; gap: var(--s-4); position: sticky; top: 88px; }
@media (max-width: 1023px) { .sim-view { position: static; } }
.sim-canvas { width: 100%; aspect-ratio: 8 / 5; display: block; border-radius: var(--r-lg); background: #2c6e8c; }
.sim-out { font-size: var(--t-body); line-height: 1.6; }
.sim-out b { font-weight: 600; }
.sim-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sim-pills .tag b { font-weight: 600; }
.sim-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sim-tools .btn { height: 44px; }
.sim-note { font-size: var(--t-small); color: var(--muted); }
#kenapa .mint-card { gap: var(--s-2); }
#kenapa .mint-card p { font-size: var(--t-small); }
.sim-msg { font-size: var(--t-small); color: var(--green); min-height: 1.5em; }

/* Kontak */
.contact-cards { display: grid; gap: var(--s-5); align-content: start; }
.form .check { display: flex; gap: var(--s-3); align-items: start; font-size: var(--t-small); }
.form .check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green); }
.form .check[hidden] { display: none; }

/* the long PRD headline needs a wider box and a smaller size than the kit's film hero */
.hero--film .hero__over > :first-child { max-width: 760px; }
.hero--film .hero__over h1 { max-width: 22ch; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.08; }
.tag { align-self: flex-start; justify-self: start; width: fit-content; }
.steps { margin-top: var(--s-6); }
.dial__face { overflow: hidden; }
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
#studi .group { gap: var(--s-6); }

/* the study maps fill each of their two screens */
@media (min-width: 1024px) {
  #studi .group > .maps { flex: 1 1 0; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
  #studi .maps figure { display: flex; }
  #studi .maps img { height: 100%; aspect-ratio: auto; }
}
/* the closing's button holds a long WhatsApp label */
.closing .btn--wa img { width: 22px; height: 22px; }
/* phones: compact cards, so a section stays within two screens */
@media (max-width: 639px) {
  .mint-card { padding: var(--s-4) var(--s-5); gap: var(--s-2); }
  .mint-card .ico { width: 36px; height: 36px; }
  .cards3 { gap: var(--s-3); }
  .svc > img, .svc .svc__pic img { aspect-ratio: 16 / 7; }
  .svc .svc__body { padding: var(--s-4) var(--s-5) var(--s-5); }
  .nav__logo { font-size: 15px; }
  .btn--xl.btn--wa { white-space: normal; height: auto; min-height: 56px; padding-block: 12px; text-align: center; }
}
.svc .svc__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.svc:hover .svc__pic img { transform: scale(1.03); }
.hero--film .hero__over h1 { font-size: clamp(32px, 3.2vw, 48px); max-width: 24ch; }

/* photographs beside the reason cards, the data list and the chapters */
@media (min-width: 1024px) {
  #kenapa > .wrap, #data > .wrap, #isi-kajian > .wrap { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .why-left { display: flex; flex-direction: column; gap: var(--s-6); min-height: 0; }
  .why-pic { flex: 1 1 0; min-height: 0; }
  .data-pic, .isi-pic { min-height: 0; height: 100%; }
}
.why-pic, .data-pic, .isi-pic .frame { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.why-pic img, .data-pic img, .isi-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.why-pic:hover img, .data-pic:hover img, .isi-pic:hover img { transform: scale(1.03); }
@media (max-width: 1023px) { .why-pic, .data-pic, .isi-pic .frame { aspect-ratio: 16 / 10; } }
#kenapa .cards2 { gap: var(--s-4); }
.isi-pic { position: relative; }
.isi-pic .frame { height: 100%; }
.deliver--over { position: absolute; right: var(--s-5); bottom: var(--s-5); width: min(360px, calc(100% - 2 * var(--s-5))); box-shadow: 0 12px 32px rgba(0,0,0,.25); }
@media (max-width: 639px) { .deliver--over { position: static; width: auto; margin-top: var(--s-4); box-shadow: none; } }
.icon-rows li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: center; }
.icon-rows .ico { background: var(--mint); }
@media (max-width: 1023px) {
  .isi-pic .frame { height: auto; }
  .isi-pic { margin-top: var(--s-6); }
}
@media (max-width: 639px) {
  .actionbar .btn { font-size: 14px; padding: 0 12px; gap: 6px; }
  .actionbar .btn img { width: 16px; height: 16px; }
}
@media (max-width: 359px) {
  .nav__logo { font-size: 14px; gap: 6px; }
  .nav__logo img { width: 26px; }
}

/* ---- gate round: skill rules ---- */
main h2 { font-size: clamp(28px, 2.9vw, 40px); }
.page-head h1, main > section > .wrap > .section-head h1, #sim-h { font-size: clamp(36px, 4.4vw, 60px); }
.why-band { margin: var(--s-6) 0; border-radius: var(--r-lg); overflow: hidden; height: clamp(220px, 30vh, 290px); }
.why-band img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.why-band:hover img { transform: scale(1.02); }
.why-cards .mint-card { padding: var(--s-4) var(--s-5); }
.why-cards .ico { width: 36px; height: 36px; }
.why-cards h3 { font-size: var(--t-body); font-weight: 600; }
/* data rows: the text on the container's line, the icon at the row's end */
.icon-rows li { grid-template-columns: 1fr 44px; }
.icon-rows li .ico { order: 2; }
/* service cards: the picture inset on the text's own line */
.svc .svc__pic { margin: var(--s-5) var(--s-6) 0; border-radius: var(--r-md); }
/* small phones */
@media (max-width: 639px) {
  .closing__links .footer__col { grid-column: 1 / -1; }
  .footer__col li { overflow-wrap: anywhere; }
}
@media (max-width: 359px) {
  .nav__bar { gap: 6px; }
  .nav__logo { font-size: 13px; }
  .nav__logo img { width: 22px; }
}
/* service cards open: the picture and the words on the card's own edges, which sit on the .wrap lines */
.svc { background: none; border-radius: 0; }
.svc .svc__pic { margin: 0; border-radius: var(--r-lg); }
.svc .svc__body { padding: var(--s-5) 0 0; }
.svc .tag { background: var(--mint) !important; }
.why-band { flex: 0 0 auto; }
.mint-card.svc { padding: 0; }
.svc .svc__pic img { aspect-ratio: 4 / 3; }
@media (max-width: 639px) { .svc .svc__pic img { aspect-ratio: 16 / 9; } }
/* Kenapa on one screen: the photograph band, then six compact cards (icon beside the words) */
#kenapa .section-head { margin-bottom: 0; }
.why-band { height: 240px; margin: var(--s-5) 0; }
.why-cards { gap: var(--s-4); }
.why-cards .mint-card { grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 4px; align-content: start; }
.why-cards .mint-card > .ico { grid-row: 1 / span 3; }
.why-cards .mint-card > :not(.ico) { grid-column: 2; }
@media (max-width: 639px) { .why-band { height: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 639px) { .data-pic { aspect-ratio: 4 / 3 !important; } }
@media (max-width: 639px) {
  .data-pic { aspect-ratio: 3 / 1 !important; }
  #data .rows small { display: none; }
  .why-band { aspect-ratio: 2 / 3; }
  .why-cards .link { display: none; }
  .why-cards { gap: 8px; }
}
@media (max-width: 639px) { .why-cards .mint-card p { display: none; } }
