/* =====================================================
   RUANG PRINT - Design System
   Tema: light, app look, mobile-first
   Font: Plus Jakarta Sans (display+body), IBM Plex Mono (data teknis)
   Signature: pola halftone dot + tanda registrasi sablon (crosshair)
   ===================================================== */

:root {
    /* Warna */
    --paper: #fbfaf7;
    --card: #ffffff;
    --ink: #16182b;
    --ink-soft: #4b4d63;
    --muted: #7a7d94;
    --border: #e8e3da;
    --border-soft: #f0ede6;

    --accent: #eb4b2d;
    --accent-dark: #c93a1f;
    --accent-soft: #fef0ea;
    --accent-ring: #f7b8a4;

    --teal: #12786b;
    --teal-soft: #e7f5f2;

    --gold: #b8892f;
    --gold-soft: #faf1de;

    --danger: #c0362c;
    --danger-soft: #fbeceb;

    /* Tipografi */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Layout */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1120px;
    --shadow-card: 0 1px 2px rgba(22, 24, 43, 0.04), 0 8px 24px -12px rgba(22, 24, 43, 0.12);
    --shadow-float: 0 12px 32px -8px rgba(22, 24, 43, 0.18);
    --nav-height: 64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    padding-bottom: calc(var(--nav-height) + 12px);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.4em;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

img { max-width: 100%; display: block; }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Layout shell ---------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: var(--container);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
}

.brand .mark { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 22px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(235, 75, 45, 0.5);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--ink); }

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    padding: 10px 14px;
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }

/* ---------- Registration mark (signature motif) ----------
   Meniru tanda registrasi sablon untuk sejajarkan layer warna cetak.
   Dipakai sebagai aksen dekoratif di sudut kartu/section, bukan dekorasi acak. */

.reg-mark {
    width: 18px;
    height: 18px;
    position: relative;
    opacity: 0.55;
}

.reg-mark::before,
.reg-mark::after {
    content: '';
    position: absolute;
    background: var(--ink);
}

.reg-mark::before { width: 100%; height: 1.4px; top: 50%; left: 0; transform: translateY(-50%); }
.reg-mark::after { height: 100%; width: 1.4px; left: 50%; top: 0; transform: translateX(-50%); }

.reg-mark-circle {
    position: absolute;
    inset: 3px;
    border: 1.4px solid var(--ink);
    border-radius: 50%;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 28px 0 40px;
    overflow: hidden;
}

.hero-halftone {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.3px);
    background-size: 14px 14px;
    opacity: 0.06;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.hero-visual {
    position: relative;
    margin-top: 28px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.hero-visual .reg-mark { position: absolute; }
.hero-visual .reg-mark.tl { top: 16px; left: 16px; }
.hero-visual .reg-mark.tr { top: 16px; right: 16px; }
.hero-visual .reg-mark.bl { bottom: 16px; left: 16px; }
.hero-visual .reg-mark.br { bottom: 16px; right: 16px; }

/* ---------- Hero dua kolom (teks kiri, ilustrasi kanan) ---------- */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.hero-copy h1 { margin-top: 6px; }

.hero-art {
    display: flex;
    justify-content: center;
}

.hero-art svg {
    width: 100%;
    max-width: 340px;
    height: auto;
}

@media (min-width: 860px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 40px;
    }
    .hero-art svg { max-width: 100%; }
}

/* ---------- Cards ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.feature-card .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

/* ---------- Proses (numbered - urutan nyata) ---------- */

.process-step {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
}

.process-step:last-child { border-bottom: none; }

.process-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    width: 32px;
    flex-shrink: 0;
    padding-top: 2px;
}

/* ---------- Material / katalog cards ---------- */

.material-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

.material-card .swatch-row {
    display: flex;
    gap: 6px;
    padding: 14px 16px 0;
}

.swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
}

.material-card .body { padding: 12px 16px 18px; }

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--teal-soft);
    color: var(--teal);
}

/* ---------- Bottom app nav (mobile) ---------- */

.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -16px rgba(22,24,43,0.2);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    transition: color 0.15s ease;
}

.nav-item.active { color: var(--accent); }
.nav-item .icon { width: 22px; height: 22px; }

.nav-item-cta {
    background: var(--accent);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    box-shadow: 0 8px 20px -6px rgba(235, 75, 45, 0.55);
}

.nav-item-cta .icon { width: 24px; height: 24px; }

@media (min-width: 900px) {
    .app-bottom-nav { display: none; }
    body { padding-bottom: 0; }
}

/* ---------- Forms ---------- */

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--card);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }

.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--teal-soft); color: var(--teal); }

/* ---------- Status badges (order/produksi) ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 100px;
}

.badge-pending { background: var(--gold-soft); color: var(--gold); }
.badge-progress { background: var(--teal-soft); color: var(--teal); }
.badge-done { background: #e6f4e8; color: #1f7a37; }
.badge-cancel { background: var(--danger-soft); color: var(--danger); }

/* ---------- Utility ---------- */

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
