:root {
  --primary: #C2410C;
  --bg: #FFF7ED;
  --text: #1C1917;
  --muted: color-mix(in srgb, var(--text) 60%, transparent);
  --card: #ffffff;
  --border: color-mix(in srgb, var(--text) 10%, transparent);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.cover {
  height: 140px;
  margin: 0 -16px;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000));
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (min-width: 520px) {
  .cover { margin: 16px 0 0; border-radius: var(--radius); }
}
.share-btn {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #111;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.share-btn svg { width: 18px; height: 18px; }

.profile { text-align: center; margin-top: -48px; position: relative; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--card);
  object-fit: cover;
  display: grid; place-items: center; margin: 0 auto;
  font-size: 34px; font-weight: 800; color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.name {
  margin: 12px 0 4px; justify-content: center; width: 100%; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.name svg { width: 20px; height: 20px; color: #1D9BF0; flex: none; }
.tagline { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.info {
  margin: 16px 0 0; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  display: grid; gap: 8px; font-size: 13px; color: var(--muted); text-align: left;
}
.info div { display: flex; gap: 8px; align-items: flex-start; }
.info svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--primary); }

/* ---------- Socials ---------- */
.socials { display: flex; justify-content: center; gap: 10px; margin: 18px 0 4px; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform .15s, background .15s, color .15s;
}
.socials a:hover { transform: translateY(-2px); background: var(--primary); color: #fff; }
.socials svg { width: 20px; height: 20px; }

/* ---------- Link buttons ---------- */
.links { display: grid; gap: 12px; margin-top: 20px; }
.link {
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 10px 16px 10px 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); border-color: var(--primary); }
.link:active { transform: scale(.98); }
.link .ic {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}
.link .ic svg { width: 20px; height: 20px; }
.link .label { flex: 1; text-align: left; line-height: 1.3; }
.link .arrow { width: 18px; height: 18px; opacity: .4; flex: none; }

.link.highlight { background: var(--primary); color: #fff; border-color: transparent; }
.link.highlight .ic { background: rgba(255,255,255,.2); color: #fff; }
.link.highlight .arrow { opacity: .8; }
.link.highlight { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .link, .socials a { transition: none; }
  .link.highlight { animation: none; }
}

/* ---------- Footer ---------- */
.footer { margin-top: auto; padding-top: 32px; text-align: center; font-size: 12px; color: var(--muted); }
.footer a { font-weight: 700; color: var(--text); }

/* ---------- Home / 404 ---------- */
.center { flex: 1; display: grid; place-content: center; text-align: center; gap: 8px; padding: 40px 0; }
.center h1 { margin: 0; font-size: 24px; }
.center p { margin: 0; color: var(--muted); }
.brand-list { display: grid; gap: 10px; margin-top: 20px; text-align: left; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #111; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px;
  opacity: 0; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loader {
  margin: 45vh auto 0; width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tombol "Segera Hadir" ---------- */
.link.soon { opacity: .6; cursor: default; border-style: dashed; }
.link.soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.badge {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; flex: none;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}

/* ---------- Cabang ---------- */
.section-title { font-size: 15px; font-weight: 800; margin: 28px 0 12px; text-align: center; }
.branches { display: grid; gap: 12px; }
.branch {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}
.branch-head { display: flex; gap: 12px; align-items: flex-start; }
.branch-head .ic {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}
.branch-head .ic svg { width: 20px; height: 20px; }
.branch-name { font-weight: 700; font-size: 15px; }
.branch-addr { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.branch-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.branch-actions a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); transition: background .15s, color .15s;
}
.branch-actions a:hover { background: var(--primary); color: #fff; border-color: transparent; }
.branch-actions a.wa { background: #25D366; color: #fff; border-color: transparent; }
.branch-actions a.wa:hover { background: #1EBE5A; }
.branch-actions svg { width: 16px; height: 16px; }

/* ---------- Cover foto ---------- */
.cover { height: 190px; }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 40%, color-mix(in srgb, var(--primary) 55%, transparent) 100%);
}
@media (min-width: 520px) { .cover::after { border-radius: var(--radius); } }
.share-btn, .back-btn { z-index: 1; }
.back-btn {
  position: absolute; top: 12px; left: 12px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: #111; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ---------- Galeri semua brand (halaman utama) ---------- */
.page.wide { max-width: 1240px; padding-left: max(5vw, 16px); padding-right: max(5vw, 16px); }
.home-head { padding: 40px 0 8px; }
.home-head h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -.02em; }
.home-head p { margin: 8px 0 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--cb); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card-cover { height: 120px; background: var(--c) center / cover; position: relative; }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--c) 70%, transparent)); }
.card-body { padding: 0 18px 18px; position: relative; display: flex; flex-direction: column; flex: 1; }
.card-logo { width: 64px; height: 64px; border-radius: 50%; margin-top: -32px; border: 3px solid var(--cb); object-fit: cover; background: #fff; position: relative; }
.card-name { font-size: 19px; font-weight: 800; margin-top: 8px; }
.card-url { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.card-url b { color: var(--c); }
.swatches { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.swatches small { font-size: 12px; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.card-meta { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta li { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--border); white-space: nowrap; }
.card-cta { margin-top: auto; align-self: flex-start; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; }
