/* ==========================================================================
   keliatanajadulu — Mobile (≤640px)
   "Operator Document, di kantong celana lo"
   Rethink layout untuk vertical screen. Bukan shrink desktop.
   - Touch targets ≥44px
   - Body input ≥16px (no iOS zoom)
   - Maintain batik scaffolding, mono labels, ochre moment
   - Single column, generous vertical padding, smaller horizontal
   ========================================================================== */

@media (max-width: 640px) {

  /* ----------------------------------------------------------
     CONTAINER + TYPE SCALE
     ---------------------------------------------------------- */
  .container { padding: 0 20px; }

  /* tighter mobile scale on top of tokens.css */
  :root {
    --fs-hero: 44px;
    --fs-h1:   34px;
    --fs-h2:   30px;
    --fs-h3:   22px;
    --fs-h4:   17px;
  }

  /* hide the giant decorative scaffolds — they distract on small screens */
  .hero::before { width: 380px; height: 380px; right: -140px; top: -80px; opacity: 0.55; }
  .hero::after { display: none; }

  /* ----------------------------------------------------------
     HEADER — keep ticker, compact bar, ochre CTA as the moment
     ---------------------------------------------------------- */
  .hdr-v2__ticker-track { gap: 28px; padding: 7px 0; font-size: 10px; }
  .hdr-v2__ticker-track span::before { font-size: 8px; }

  .hdr-v2__bar {
    grid-template-columns: 1fr auto;
    height: 60px;
    padding: 0 0 0 16px;
  }
  .hdr-v2__cta { justify-self: end; }
  .hdr-v2__brand {
    font-size: 16px;
    padding-right: 0;
    border-right: 0;
    gap: 10px;
    letter-spacing: -0.025em;
  }
  .hdr-v2__brand-stamp { width: 28px; height: 28px; font-size: 10px; }
  .hdr-v2__nav { display: none; }
  .hdr-v2__cta a {
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.005em;
    gap: 0;
  }
  .hdr-v2__cta a .meter { display: none; }

  /* ----------------------------------------------------------
     HERO
     ---------------------------------------------------------- */
  .hero { padding: 40px 0 56px; }

  .hero-eyebrow-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 11px;
  }
  .hero-eyebrow-row .meta { gap: 14px; flex-wrap: wrap; }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
  }
  .hero h1 .accent::after { bottom: 3px; height: 9px; }

  .hero-sub {
    font-size: 16px;
    line-height: 1.55;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .hero-meta { gap: 22px; }
  .hero-ctas { gap: 10px; flex-wrap: nowrap; }
  .hero-ctas .btn {
    flex: 1;
    justify-content: center;
    padding: 15px 14px;
    font-size: 14px;
    min-height: 48px;
  }
  .hero-scarcity { font-size: 11px; line-height: 1.4; }
  .hero-scarcity strong { display: inline; }

  /* hero visual — full-width square, compact internal padding */
  .hero-right { width: 100%; }
  .hero-visual {
    max-width: 100%;
    padding: 18px;
    border-radius: 14px;
  }
  .hv-corner.tl { top: 14px; left: 14px; font-size: 9px; gap: 6px; }
  .hv-corner.br { bottom: 14px; right: 14px; }
  .hv-tag { padding: 4px 8px; font-size: 9px; }
  .hv-tag-v { font-size: 14px; }
  .hv-pulse { width: 6px; height: 6px; }
  .hv-node { padding: 7px 10px; gap: 8px; }
  .hv-node-label .k { font-size: 8px; }
  .hv-node-label .v { font-size: 11px; }
  .hv-node-dot { width: 7px; height: 7px; }

  /* ----------------------------------------------------------
     STATS — 2 col mobile, scaffolded with cross-rules
     ---------------------------------------------------------- */
  .stats { padding: 48px 0; }
  .stats::before { opacity: 0.6; }
  .stats::after { width: 320px; height: 320px; top: -100px; right: -100px; }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat {
    padding: 28px 16px;
    border-left: 1px solid rgba(239, 233, 217, 0.15);
    border-top: 1px solid rgba(239, 233, 217, 0.15);
  }
  .stat:first-child,
  .stat:nth-child(2) { border-top: 0; padding-top: 0; }
  .stat:first-child,
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { padding-right: 0; }
  .stat:nth-child(3),
  .stat:nth-child(4) { padding-bottom: 0; }
  .stat-num { font-size: 40px; gap: 4px; }
  .stat-num .unit { font-size: 15px; }
  .stat-num span[style] { font-size: 22px !important; } /* the "Rp" inline span */
  .stat-label { font-size: 11px; max-width: 160px; line-height: 1.4; }

  /* ----------------------------------------------------------
     SECTION HEAD
     ---------------------------------------------------------- */
  .section { padding: 64px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    align-items: start;
  }
  .section-head h2 {
    font-size: 36px;
    line-height: 1.02;
    letter-spacing: -0.028em;
  }
  .section-head .label { font-size: 12px; }

  /* ----------------------------------------------------------
     TIMELINE — rethink as vertical rail w/ dots on left
     ---------------------------------------------------------- */
  .timeline {
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    padding-left: 2px;
  }
  .timeline::before { display: none; }
  /* mobile vertical rail */
  .timeline::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: var(--kj-border);
    z-index: 0;
  }

  .day {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 14px;
    row-gap: 6px;
    align-items: start;
    padding: 2px 0;
    flex-direction: unset;
  }
  .day-dot {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0;
    margin-top: 6px;
    width: 14px;
    height: 14px;
    justify-self: center;
    z-index: 1;
    border-width: 2px;
    background: var(--bg);
  }
  .section.bone .day-dot { background: var(--bg-alt); }
  .day.milestone .day-dot {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    margin-left: 0;
    margin-bottom: 0;
  }
  .day-num {
    grid-column: 2;
    margin-top: 4px;
    font-size: 11px;
  }
  .day-card {
    grid-column: 2;
    padding: 14px 16px 16px;
    border-radius: 10px;
  }
  .day-card .day-title { font-size: 15px; line-height: 1.25; }
  .day-card .day-desc { font-size: 12.5px; line-height: 1.5; }
  .day-card .day-chips { padding-top: 10px; }
  .day-card .day-chips .chip { font-size: 10px; padding: 3px 7px; }

  /* ----------------------------------------------------------
     DELIVERABLES — single column, feature card stacks
     ---------------------------------------------------------- */
  .deliverables {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .deliv.span-12,
  .deliv.span-8, .deliv.span-7, .deliv.span-6,
  .deliv.span-5, .deliv.span-4, .deliv.span-3 {
    grid-column: 1 / -1;
  }
  .deliv {
    min-height: auto;
    padding: 26px 22px;
    gap: 18px;
    border-radius: 14px;
  }
  .deliv h3 { font-size: 22px; line-height: 1.15; }
  .deliv-desc { font-size: 13px; line-height: 1.55; }
  .deliv-head { gap: 12px; }
  .deliv-num { font-size: 10.5px; }
  .deliv-tag { font-size: 10.5px; padding: 3px 9px; }

  /* feature card: stack the 2-col inner grid (has inline style) */
  .deliv.feature {
    padding: 28px 22px;
  }
  .deliv.feature > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-top: 4px !important;
  }
  .deliv.feature h3 {
    font-size: 26px !important;
    line-height: 1.1 !important;
  }
  .deliv.feature p {
    font-size: 13px !important;
    max-width: 100% !important;
    margin-top: 12px !important;
  }
  .deliv.feature .mini-stack { margin-top: 18px !important; }

  /* whatsapp mock — readable padding */
  .wa-mock { padding: 12px; gap: 5px; }
  .wa-msg { font-size: 12.5px; padding: 8px 11px; max-width: 92%; line-height: 1.4; }

  .mini-stack { font-size: 12px; }
  .mini-stack .row { padding: 5px 0; gap: 10px; }

  /* ----------------------------------------------------------
     COMPARE V2 — single column with vertical arrow
     ---------------------------------------------------------- */
  .compare-v2 { gap: 14px; }
  .compare-v2-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .cv-bukan, .cv-adalah {
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.4;
    gap: 12px;
    border-radius: 12px;
  }
  .cv-icon {
    width: 26px; height: 26px;
    font-size: 11px;
  }
  .cv-arrow {
    transform: rotate(90deg);
    padding: 0;
    font-size: 14px;
    height: 18px;
  }

  /* ----------------------------------------------------------
     CTA + FORM
     ---------------------------------------------------------- */
  .cta { padding: 64px 0 56px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-pitch h2 {
    font-size: 40px;
    line-height: 1.0;
    margin-bottom: 24px;
  }
  .cta-pitch p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 100%;
  }
  .cta-bullets { font-size: 12px; gap: 12px; }
  .cta-bullets li {
    gap: 0;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 4px;
  }
  .cta-bullets .key { min-width: 0; font-weight: 600; }

  .form-card {
    padding: 26px 22px;
    border-radius: 14px;
  }
  .form-card h3 { font-size: 24px; line-height: 1.1; }
  .form-card .form-sub { font-size: 13px; margin-bottom: 22px; }

  .field { margin-bottom: 14px; }
  .field label { font-size: 10.5px; }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px; /* prevent iOS zoom-on-focus */
    padding: 13px 14px;
    border-radius: 6px;
  }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .form-submit {
    padding: 16px 22px;
    font-size: 15px;
    min-height: 52px;
  }
  .form-fineprint {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    font-size: 10.5px;
    margin-top: 14px;
  }

  /* ----------------------------------------------------------
     FOOTER
     ---------------------------------------------------------- */
  .ftr-v2 { padding: 56px 0 0; }
  .ftr-v2__inner { padding: 0 20px; }
  .ftr-v2__stamp {
    width: 440px;
    height: 440px;
    right: -180px;
    top: 30px;
    opacity: 0.32;
  }
  .ftr-v2__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding-bottom: 48px;
  }
  .ftr-v2__manifesto {
    grid-column: 1 / -1;
    font-size: 19px;
    line-height: 1.3;
    max-width: 100%;
  }
  .ftr-v2__col h6 {
    font-size: 9px;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
  }
  .ftr-v2__col ul { gap: 9px; }
  .ftr-v2__col a { font-size: 13.5px; }

  .ftr-v2__giant {
    font-size: 56px;
    letter-spacing: -0.045em;
    line-height: 0.9;
    padding-bottom: 20px;
    /* allow it to slightly clip — feels confident, like a magazine spread */
  }

  .ftr-v2__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 0 28px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }
}

/* Extra-narrow phones (iPhone SE / small Android) — protect against squeeze */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 32px; }
  .cta-pitch h2 { font-size: 36px; }
  .ftr-v2__giant { font-size: 48px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
