/* ============================================================
   Jasa Raharja Green Office — Landing page (public, pre-login)
   Self-contained stylesheet (no Tailwind build needed).
   Palette per brand guideline. Avoid purple / heavy shadows.
   Hero is full-width; header + content constrained to --maxw.
   ============================================================ */
:root {
    --blue: #0878D1;
    --blue-dark: #064785;
    --navy: #12365C;
    --cyan: #22B8D8;
    --green: #159B59;
    --green-soft: #EAF7EF;
    --bg: #FFFFFF;
    --bg-alt: #F4FAFE;
    --ink: #12365C;
    --ink-2: #607D9B;
    --line: #DCECF7;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 10px 30px rgba(12, 54, 92, .07);
    --shadow-sm: 0 4px 14px rgba(12, 54, 92, .06);
    --maxw: 1200px;
    --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
.go-html { -webkit-text-size-adjust: 100%; }

.go-body {
    margin: 0;
    font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #FFFFFF;                 /* clean white, matches official signage */
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* Green leaf accents (official-signage theme), behind opaque sections */
.go-body::before, .go-body::after {
    content: ""; position: fixed; z-index: 0; pointer-events: none;
    width: 230px; height: 230px; opacity: .4;
    background-repeat: no-repeat; background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 56C8 30 30 8 56 8c0 26-22 48-48 48z' fill='%23159B59'/%3E%3Cpath d='M18 50C44 50 50 22 50 22' stroke='%23ffffff' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.go-body::before { top: 64px; left: -46px; transform: rotate(-12deg); }
.go-body::after  { bottom: -40px; right: -46px; transform: rotate(160deg); opacity: .3; }
/* keep content above the decorative leaves */
.go-topbar, .go-hero, .go-shell { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid rgba(8, 120, 209, .5);
    outline-offset: 3px;
    border-radius: 10px;
}

/* ---- icons ---- */
.go-ic { width: 22px; height: 22px; flex: none; }
.go-ic--sm { width: 16px; height: 16px; }

/* ---- shared constrained container ---- */
.go-shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 40px; }

/* ============ HEADER (full width) ============ */
.go-topbar { width: 100%; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.1); }
.go-topbar__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad);
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.go-brand__logo { height: 42px; width: auto; }
.go-topbar__sep { width: 1px; height: 34px; background: var(--line); }
.go-program { display: flex; align-items: center; gap: 10px; }
.go-program__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.go-program__text { display: flex; flex-direction: column; line-height: 1.2; }
.go-program__text strong { color: var(--green); font-weight: 700; font-size: 15px; }
.go-program__text small { color: var(--ink-2); font-size: 12px; }
.go-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.go-tagline { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 600; font-size: 13px; }

/* ============ BUTTONS ============ */
.go-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-family: inherit; cursor: pointer;
    border: 0; border-radius: 999px; line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.go-btn--primary {
    padding: 16px 26px; font-size: 16px; color: #fff;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 45%, var(--blue-dark) 100%);
    box-shadow: 0 10px 22px rgba(8, 120, 209, .28);
}
.go-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(8, 120, 209, .34); }
.go-btn--primary:active { transform: translateY(0); }
.go-btn--ghost { padding: 10px 18px; font-size: 14px; color: var(--blue); background: #fff; border: 1px solid var(--line); }
.go-btn--ghost:hover { background: var(--bg-alt); }

/* ============ HERO (full width) ============ */
.go-hero { position: relative; width: 100%; overflow: hidden; background: #E9F3FB; }
.go-hero__media { line-height: 0; }
.go-hero__img { width: 100%; height: auto; display: block; }
.go-hero__inner {
    position: absolute; inset: 0;
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
    display: flex; align-items: center;
    pointer-events: none;            /* let only the copy/links be interactive */
}
.go-hero__copy { position: relative; max-width: 50%; pointer-events: auto; }
.go-hero__copy::before {           /* legibility scrim on the left */
    content: ""; position: absolute; z-index: -1;
    top: 50%; left: -40%; transform: translateY(-50%);
    width: 160%; height: 160%;
    background: radial-gradient(60% 60% at 35% 50%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 72%);
}
.go-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.go-hero__title { margin: 16px 0 14px; font-weight: 800; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.07; letter-spacing: -.01em; }
.go-t-blue { color: var(--blue); }
.go-t-green { color: var(--green); }
.go-hero__desc { margin: 0 0 24px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 17px); max-width: 26em; }
.go-hero__hint { margin: 14px 2px 0; color: var(--ink-2); font-size: 13px; }

/* ============ STATS ============ */
.go-stats {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: clamp(20px, 2.5vw, 30px);
    display: grid; grid-template-columns: minmax(200px, 250px) 1fr; gap: clamp(18px, 2.5vw, 34px);
    align-items: center; margin-top: -40px; position: relative; z-index: 2;
}
.go-stats__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 12px; }
.go-stats__heading { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.go-stats__sub { margin: 0; color: var(--ink-2); font-size: 13px; }
.go-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.go-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 16px 18px; }
.go-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; }
.go-c-green { background: var(--green); }
.go-c-cyan { background: var(--cyan); }
.go-c-blue { background: var(--blue); }
.go-c-navy { background: var(--navy); }
.go-card__label { margin: 0 0 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.go-card__value { margin: 0; color: var(--navy); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.go-card__unit { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.go-card__trend { margin: 8px 0 0; font-size: 12px; font-weight: 700; }
.go-card__trend--up { color: var(--green); }
.go-card__trend--down { color: #C23B3B; }
.go-card__caption { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-2); }

/* ============ FEATURES ============ */
.go-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; padding: 36px 6px 10px; }
.go-feature { display: flex; gap: 12px; align-items: flex-start; }
.go-feature__icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #E7F3FC; color: var(--blue); }
.go-feature__title { margin: 2px 0 4px; font-size: 15px; font-weight: 700; color: var(--navy); }
.go-feature__desc { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* ============ FOOTER ============ */
.go-footer { text-align: center; padding: 40px 10px 10px; }
.go-footer__msg { display: inline-flex; align-items: center; gap: 8px; justify-content: center; color: var(--blue); font-weight: 700; font-style: italic; font-size: clamp(18px, 2.2vw, 24px); margin: 0 0 10px; }
.go-footer__meta,
.go-footer__steps { margin: 10px auto 0; max-width: 48em; color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: .2px; text-transform: uppercase; }
.go-footer__steps span { margin: 0 6px; color: var(--navy); font-weight: 700; }

/* ============ REVEAL ============ */
.go-reveal--armed { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.go-reveal--armed.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    /* hero stacks: copy (white) above, image below */
    .go-hero { display: flex; flex-direction: column; background: #fff; }
    .go-hero__media { order: 2; }
    .go-hero__inner { position: static; order: 1; max-width: var(--maxw); padding: clamp(26px, 5vw, 40px) var(--pad); pointer-events: auto; }
    .go-hero__copy { max-width: 36em; }
    .go-hero__copy::before { display: none; }
    .go-stats { margin-top: 0; grid-template-columns: 1fr; }
    .go-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .go-features { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
}
@media (max-width: 640px) {
    .go-topbar__inner { gap: 10px 12px; }
    .go-topbar__sep, .go-tagline { display: none; }
    .go-brand__logo { height: 32px; }
    .go-program__text strong { font-size: 14px; }
    .go-hero__title { font-size: clamp(28px, 8vw, 38px); }
    .go-btn--primary { width: 100%; justify-content: center; }
    .go-stats__grid { grid-template-columns: 1fr; }
    .go-features { grid-template-columns: 1fr; }
}
/* Kiosk 43" landscape — scale up comfortably. */
@media (min-width: 1800px) {
    :root { --maxw: 1560px; }
    .go-body { font-size: 19px; }
    .go-brand__logo { height: 54px; }
    .go-hero__title { font-size: 60px; }
    .go-btn--primary { padding: 20px 34px; font-size: 19px; }
}
/* Avoid an over-tall hero on ultra-wide displays. */
@media (min-width: 2100px) {
    .go-hero__img { max-height: 760px; object-fit: cover; object-position: 70% center; }
}
@media (prefers-reduced-motion: reduce) {
    .go-reveal--armed { opacity: 1; transform: none; transition: none; }
    .go-btn { transition: none; }
}

/* ============ CO-BRAND (Jasa Raharja | Kepul) ============ */
.go-kepul__logo { height: 30px; width: auto; display: block; }

/* ============ WASTE CATEGORY STRIP ============ */
.go-cats { padding: 30px 6px 6px; text-align: center; }
.go-cats__title { margin: 0 0 22px; font-size: clamp(18px, 2vw, 22px); font-weight: 800; color: var(--navy); }
.go-cats__grid { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(26px, 5vw, 64px); }
.go-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.go-cat__badge { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.go-cat__badge svg { width: 34px; height: 34px; }
.go-cat__name { font-weight: 700; font-size: 14px; color: var(--navy); }
@media (max-width: 640px) {
    .go-cats__grid { gap: 22px 40px; }
    .go-cat__badge { width: 60px; height: 60px; }
    .go-cat__badge svg { width: 28px; height: 28px; }
}

/* ============ SIGNATURE BLUE WAVE (footer) ============ */
.go-wave { width: 100%; line-height: 0; margin-top: 8px; }
.go-wave svg { width: 100%; height: clamp(70px, 9vw, 130px); display: block; }

@media (max-width: 640px) {
    .go-kepul__logo { height: 24px; }
}

/* ============ AUTH / REGISTER FORM ============ */
.go-authwrap { max-width: 640px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--pad) 10px; position: relative; z-index: 1; }
.go-card--form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.go-form__title { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.15; }
.go-form__sub { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.go-alert { background: #FDECEC; border: 1px solid #F6C9C9; color: #B23636; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: 13px; }
.go-note { background: #EAF6EE; border: 1px solid #BFE3CC; color: #1E6B3A; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: 13px; }
.go-otp { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: 12px; padding-left: 12px; }
.go-alert strong { display: block; margin-bottom: 4px; }
.go-alert ul { margin: 0; padding-left: 18px; }
.go-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.go-field { display: flex; flex-direction: column; }
.go-field--full { grid-column: 1 / -1; }
.go-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.go-opt { font-weight: 500; color: var(--ink-2); }
.go-req { color: #D92D20; font-weight: 800; margin-left: 3px; }
.go-input {
    font-family: inherit; font-size: 15px; color: var(--ink);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt);
    width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.go-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,120,209,.15); background: #fff; }
.go-input:disabled { opacity: .6; }
select.go-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23607D9B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.go-form__submit { width: 100%; justify-content: center; margin-top: 20px; }
.go-authfoot { text-align: center; margin: 18px 0 0; color: var(--ink-2); font-size: 14px; }
.go-link { color: var(--blue); font-weight: 700; }
.go-link:hover { text-decoration: underline; }
@media (max-width: 520px) { .go-formgrid { grid-template-columns: 1fr; } }

/* ============ FIGTREE @font-face (relative URLs — subpath-safe) ============
   Defined here (not via @fonts) so paths resolve relative to this CSS file,
   working under /jasaraharja and at the root alike. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url(../build/assets/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url(../build/assets/figtree-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url(../build/assets/figtree-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url(../build/assets/figtree-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap; src: url(../build/assets/figtree-latin-800-normal.woff2) format('woff2'); }

/* ---- WhatsApp phone field with +62 prefix ---- */
.go-phone { display: flex; }
.go-phone__cc {
    display: flex; align-items: center; padding: 0 14px;
    border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
    background: #EAF2FA; color: var(--navy); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.go-phone__input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.go-help { display: block; font-size: 12px; color: var(--ink-2); margin-top: 6px; }

/* ---- Password show/hide toggle ---- */
.go-pw { position: relative; }
.go-pw__input { padding-right: 46px; }
.go-pw__toggle {
    position: absolute; top: 0; right: 0; height: 100%; width: 44px;
    display: grid; place-items: center; background: none; border: 0; cursor: pointer;
    color: var(--ink-2); border-radius: 0 12px 12px 0;
}
.go-pw__toggle:hover { color: var(--navy); }
.go-pw__toggle.is-on { color: var(--blue); }
