/* Design upgrade, approved by Davis 23 Sep 2026 from the lab before/after images: the homepage hero, the
 * Terminal hero and the FT Terminal card. Layered on top of site.css. Built and tested on lab/ide-gila first. */

/* ---------- buttons: a lit top edge and a warm glow, pressed feels pressed ---------- */
.btn-gold {
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .55), 0 1px 0 rgba(0, 0, 0, .25), 0 8px 24px -10px rgba(217, 164, 65, .55);
}
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 244, 214, .6), 0 1px 0 rgba(0, 0, 0, .25), 0 14px 34px -12px rgba(217, 164, 65, .75); }
.btn:active { transform: scale(.975); transition-duration: .12s; }
.btn:not(.btn-gold) { background: rgba(142, 163, 189, .04); }
.btn:not(.btn-gold):hover { background: rgba(142, 163, 189, .09); border-color: rgba(142, 163, 189, .34); }

/* ---------- heroes: the call to action sits under the headline, the explanation beside it ---------- */
@media (min-width: 900px) {
  .hero-copy { grid-template-areas: "judul side" "aksi side"; grid-template-rows: auto 1fr; row-gap: 0; }
  .hero-title { grid-area: judul; }
  .hero-side { grid-area: side; }
  .hero-cta { grid-area: aksi; align-self: start; }
  .hero h1 { margin-bottom: 30px; }
  .hero-side .lead { font-size: clamp(1.1rem, .95rem + .45vw, 1.32rem); line-height: 1.55; }
}
@media (max-width: 899px) {
  .hero-cta { margin-top: 26px; }                     /* phones: read the promise first, then act */
}
@media (max-width: 480px) {
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; padding: 0 12px; }
}
.hero-points li { padding-left: 22px; }
.hero-points li::before { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(217, 164, 65, .14); }
.hero-close { padding-top: 16px; border-top: 1px solid var(--line); margin-top: 20px; }

/* ---------- ecosystem: the product that exists leads, with the product in the card ---------- */
.eco-main { position: relative; border-color: rgba(217, 164, 65, .3);
  background: radial-gradient(120% 90% at 0% 0%, rgba(217, 164, 65, .09), transparent 55%), var(--panel); }
.eco-shot { display: none; }
@media (min-width: 860px) {
  .grid-3.eco { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
  .eco-main { grid-row: span 2; justify-content: flex-start; padding: 36px 42% 36px 36px; min-height: 420px; }
  .eco-main h3 { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem); }
  .eco-main p { font-size: 17px; line-height: 1.6; max-width: 40ch; }
  .eco-shot { display: block; position: absolute; right: 6%; bottom: -30%; width: 31%; height: auto; z-index: -1;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); transition: transform .8s var(--ease); }
  .eco-main:hover .eco-shot { transform: translateY(-10px); }
}
.card.is-soon { background: transparent; border-style: dashed; }
.card.is-soon .card-cta { color: var(--dim2); font-weight: 600; }
.card.is-soon:hover .card-cta { color: var(--dim); }
.arrow:not(.btn)::after { margin-left: .35em; }
@media (prefers-reduced-motion: reduce) { .eco-shot { transition: none; } }

/* ---------- 23 Sep: a dated day, with the examples that went well AND the count that did not ---------- */
.hari { margin-top: clamp(40px, 5vw, 64px); }
.contoh-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.contoh { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15.5px; }
.contoh th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--dim2);
  padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.contoh td { padding: 15px 18px; color: var(--dim); border-bottom: 1px solid var(--line); white-space: nowrap; }
.contoh tr:last-child td { border-bottom: 0; }
.contoh td:first-child { color: #fff; font-weight: 700; letter-spacing: .02em; }
.contoh td:last-child { color: var(--fg); }
.contoh td small { color: var(--dim2); font-size: 13px; margin-left: 6px; }
.hari-skala { margin-top: 20px; max-width: 68ch; color: var(--dim); line-height: 1.6; text-wrap: pretty; }
.hari-skala strong { color: #fff; }
/* phones: each row becomes a small card, so the last column never scrolls out of sight */
@media (max-width: 600px) {
  .contoh-wrap { overflow: visible; }
  .contoh { min-width: 0; }
  .contoh thead { display: none; }
  .contoh tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .contoh tbody tr:last-child { border-bottom: 0; }
  .contoh td { padding: 0; border: 0; white-space: normal; font-size: 15px; }
  .contoh td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .contoh td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: var(--track-label);
    text-transform: uppercase; color: var(--dim2); line-height: 1.3; }
  .contoh td small { display: block; margin: 2px 0 0; }
}

/* the device glows are 120% wide, which on a phone pushed the page 15px sideways; clip (not hidden) keeps sticky working */
main { overflow-x: clip; }
