:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5e8f0;
  --line-2: #eef0f6;
  --primary: #ea580c;
  --primary-600: #c2410c;
  --primary-50: #fff7ed;
  --accent: #0f172a;
  --success: #16a34a;
  --success-50: #f0fdf4;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 12px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .06);
  --sidebar-w: 260px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

button, a, input, select, textarea, .nav-item, .chip, .produk-card, .qty-btn {
  touch-action: manipulation;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

.muted { color: var(--muted); }
.muted.small { font-size: 12.5px; }
.hidden { display: none !important; }

code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, transform .05s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-600); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  background: var(--surface-2);
  color: var(--muted-2);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary.lg {
  padding: 14px 18px;
  font-size: 15px;
  width: 100%;
}

.btn-soft {
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13.5px;
  transition: background .15s;
}
.btn-soft:hover { background: var(--line); }
.btn-soft.danger { color: var(--danger); background: var(--danger-50); }
.btn-soft.danger:hover { background: #fee2e2; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background .15s;
  color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); }

/* ===== LOGIN ===== */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(234, 88, 12, .12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(15, 23, 42, .08), transparent 40%),
    linear-gradient(135deg, #fafbfd, #eef0f6);
  z-index: 1000;
}
.login-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .brand-emoji {
  font-size: 44px;
  margin-bottom: 8px;
  display: inline-block;
  background: var(--primary-50);
  width: 72px;
  height: 72px;
  line-height: 72px;
  border-radius: 20px;
  border: 1px solid #fed7aa;
}
.login-brand h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-brand p { margin: 0; color: var(--muted); font-size: 14px; }

.login-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 14px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(245, 158, 11, .15);
}
.login-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
  animation: banner-pulse 1.8s ease-in-out infinite;
}
.login-banner strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
  letter-spacing: .2px;
}
.login-banner small {
  display: block;
  font-size: 11px;
  color: #b45309;
  margin-top: 1px;
}
@keyframes banner-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .65; transform: scale(.92); }
}

.form-login { display: grid; gap: 14px; }
.form-login label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.form-login input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.form-login input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .1);
}

.login-error {
  background: var(--danger-50);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin: 0;
  border: 1px solid #fecaca;
}

.login-hint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  text-align: center;
  color: var(--muted);
}

.login-access {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}
.login-access-title {
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-size: 12px;
}
.addr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
.addr-row + .addr-row { border-top: 1px dashed var(--line); }
.addr-label {
  color: var(--muted);
  font-weight: 600;
  width: 62px;
  flex-shrink: 0;
}
.addr-url {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 6px;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.addr-btn {
  flex-shrink: 0;
  background: var(--primary-50);
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 6px 7px;
  cursor: pointer;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.addr-btn:hover { background: var(--primary-100); }
.addr-btn svg { display: block; }

/* Logo custom (override emoji 🧾 saat user upload gambar) */
.brand-emoji.has-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 4px;
  background: #fff;
}
.brand-emoji.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}

/* ===== APP SHELL ===== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--ink);
  color: #cbd5e1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .brand-emoji {
  font-size: 26px;
  background: rgba(234, 88, 12, .15);
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.sidebar-brand h1 { font-size: 14.5px; color: #fff; font-weight: 700; }
.sidebar-brand small { font-size: 11.5px; color: #94a3b8; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, .3);
}
.nav-icon { font-size: 18px; width: 20px; text-align: center; }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.user-info { overflow: hidden; }
.user-name { color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: #94a3b8; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }

.sidebar-actions { display: grid; gap: 6px; }
.sidebar-footer .btn-soft {
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 12px;
  text-align: center;
}
.sidebar-footer .btn-soft:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-footer .btn-soft.danger { color: #fca5a5; background: rgba(239, 68, 68, .12); }
.sidebar-footer .btn-soft.danger:hover { background: rgba(239, 68, 68, .2); }

/* ===== Mobile topbar & drawer ===== */
.mobile-topbar {
  display: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.mobile-topbar .brand { display: flex; align-items: center; gap: 10px; }
.mobile-topbar .brand h1 { font-size: 15px; color: #fff; }
.mobile-topbar .brand small { font-size: 11.5px; color: #94a3b8; }
.mobile-topbar .brand-emoji { font-size: 22px; }
.mobile-topbar .icon-btn { color: #fff; font-size: 22px; }
.mobile-topbar .icon-btn:hover { background: rgba(255,255,255,.1); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  animation: fade-in .2s ease;
}
.drawer-panel {
  position: relative;
  width: min(85%, 320px);
  background: var(--ink);
  color: #cbd5e1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  animation: slide-in .25s ease;
}
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer-header .icon-btn { color: #cbd5e1; }
.drawer-header .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding-top: 14px; }
.drawer-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; display: grid; gap: 6px; }
.drawer-footer .btn-soft {
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  padding: 10px 12px;
  text-align: center;
}
.drawer-footer .btn-soft:hover { background: rgba(255,255,255,.12); color: #fff; }
.drawer-footer .btn-soft.danger { color: #fca5a5; background: rgba(239, 68, 68, .12); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* ===== Content area ===== */
.content {
  padding: 24px 28px 100px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.tab-panel { display: none; animation: fade-in .2s ease; }
.tab-panel.active { display: block; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.page-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.page-header p { margin: 0; font-size: 13.5px; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Kasir layout ===== */
.kasir-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

.toolbar { display: grid; gap: 12px; margin-bottom: 16px; }
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .6;
}
.search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .1);
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.chips::-webkit-scrollbar { height: 4px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}
.chip:hover { border-color: var(--muted-2); color: var(--ink-2); }
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}
.produk-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: all .15s;
}
.produk-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.produk-card:active { transform: translateY(0); }
.produk-card .ikon {
  font-size: 30px;
  background: var(--surface-2);
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 4px;
}
.produk-card .nama {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.produk-card .kategori {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.produk-card .harga {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  margin-top: 2px;
}
.produk-card .qty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, .35);
}

/* ===== Cart ===== */
.cart-area {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.cart-drag-handle { display: none; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.cart-header h3 { font-size: 16px; font-weight: 700; }
.cart-header small { font-size: 12px; }
.cart-header-actions { display: flex; gap: 6px; align-items: center; }
.btn-clear-cart {
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--danger);
  background: var(--danger-50);
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-clear-cart:hover { background: #fee2e2; }
.cart-close-mobile { display: none; }

.cart-list {
  flex: 1;
  overflow-y: auto;
  min-height: 240px;
  margin: 0 -4px;
  padding: 0 4px;
}

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-emoji { font-size: 44px; opacity: .4; margin-bottom: 8px; }
.empty-state p { margin: 0; font-size: 13.5px; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item .name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.cart-item .price { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item .controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.qty-btn:hover { background: var(--line); }
.cart-item .qty { min-width: 20px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-item .subtotal { font-weight: 700; text-align: right; font-size: 13.5px; margin-top: 4px; color: var(--primary); }
.cart-item .right-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.cart-summary {
  border-top: 1.5px dashed var(--line);
  padding-top: 14px;
  margin-top: 12px;
}
.cart-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
}
.cart-summary .row.total {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 8px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

/* ===== Data tables ===== */
.data-table {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tr {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.tr:last-child { border-bottom: none; }
.tr.header {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .05em;
}
.tr.produk { grid-template-columns: 48px 2fr 1fr 1fr 90px; }
.tr.user { grid-template-columns: 48px 2fr 1fr 1fr 90px; }

.tr .ikon-cell {
  font-size: 22px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--surface-2);
  border-radius: 10px;
}
.tr strong.cell-title { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tr .edit-btn {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  background: var(--primary-50);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s;
}
.tr .edit-btn:hover { background: #ffedd5; }

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.role-badge.admin { background: var(--primary-50); color: var(--primary-600); }
.role-badge.kasir { background: #eff6ff; color: #1d4ed8; }
.role-badge.you { background: var(--success-50); color: var(--success); margin-left: 6px; }

/* ===== Riwayat ===== */
.riwayat-list { display: flex; flex-direction: column; gap: 10px; }
.trx-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color .15s;
}
.trx-card[open] { border-color: var(--primary); }
.trx-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  gap: 12px;
}
.trx-card summary::-webkit-details-marker { display: none; }
.trx-id { font-weight: 600; font-size: 14px; }
.trx-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.trx-total { font-weight: 700; color: var(--primary); font-size: 16px; }
.trx-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}
.trx-detail .item { display: flex; justify-content: space-between; padding: 3px 0; }
.trx-detail .item .item-name { color: var(--ink-2); }
.trx-detail .reprint { margin-top: 12px; }

/* ===== Cards ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.card .muted.small { margin: -6px 0 14px; }

.form-stack { display: grid; gap: 14px; }
.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.form-stack input, .form-stack select {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-stack input:focus, .form-stack select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .1);
}
.form-stack .btn-primary { justify-self: start; }

.data-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { display: inline-flex; align-items: center; cursor: pointer; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
  animation: fade-in .2s ease;
}
.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: slide-up .25s ease;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
  flex-wrap: wrap;
}

.big-total {
  background: var(--ink);
  color: #fff;
  padding: 18px 20px;
  border-radius: var(--radius);
  text-align: center;
}
.big-total small { font-size: 12.5px; color: #94a3b8; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.big-total strong { font-size: 28px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; }

.modal-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.modal-box label input, .modal-box label select {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.modal-box label input:focus, .modal-box label select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .1);
}
.modal-box label small { font-size: 11.5px; font-weight: 400; }

.quick-cash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quick-cash button {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 13px;
  transition: all .15s;
  color: var(--ink-2);
}
.quick-cash button:hover { background: var(--primary-50); color: var(--primary); }

.kembalian-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--success-50);
  border: 1.5px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--success);
  font-weight: 500;
}
.kembalian-box strong {
  font-size: 18px;
  font-weight: 800;
}

/* ===== Mobile cart bar ===== */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 30;
}
.cart-bar-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .35);
  font-weight: 600;
  font-size: 14px;
}
.cart-bar-btn:hover { background: var(--primary-600); }
.cart-bar-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.cart-bar-info strong { font-size: 13px; font-weight: 700; }
.cart-bar-info small { font-size: 12px; opacity: .85; }
.cart-bar-cta { font-size: 14px; font-weight: 600; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 2100;
  box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Payment methods ===== */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--radius-sm);
}
.pm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all .15s;
  line-height: 1.1;
}
.pm-btn .pm-icon { font-size: 18px; }
.pm-btn:hover { color: var(--ink-2); }
.pm-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pm-panel { display: flex; flex-direction: column; gap: 12px; }

/* ===== Input clear button ===== */
.input-clear-wrap { position: relative; }
.input-clear-wrap input { width: 100%; padding-right: 38px; }
.input-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.input-clear:hover { background: var(--danger-50); color: var(--danger); }

/* ===== Info box (non tunai) ===== */
.info-box {
  display: flex;
  gap: 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  padding: 14px;
  border-radius: var(--radius-sm);
  color: #1e40af;
}
.info-box .info-icon { font-size: 24px; line-height: 1; }
.info-box strong { font-size: 14px; display: block; margin-bottom: 2px; color: #1e3a8a; }
.info-box p { margin: 0; color: #1e40af; }
.info-box .muted { color: #3b82f6; }

/* ===== QRIS display (in payment modal) ===== */
.qris-display {
  background: var(--surface-2);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.qris-display img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.qris-display .qr-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 30px 20px;
}
.qris-display .qr-placeholder .ph-emoji { font-size: 44px; margin-bottom: 8px; opacity: .5; }
.qris-display .qr-placeholder p { margin: 0 0 4px; font-weight: 600; color: var(--ink-2); }
.qris-display .qr-placeholder small { font-size: 12px; }

.qris-help {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.qris-help strong { color: var(--primary); font-size: 15px; font-weight: 700; }

/* ===== QRIS upload (pengaturan) ===== */
.qris-upload {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.qris-preview {
  width: 120px;
  height: 120px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.qris-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qris-preview .empty-qr {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.qris-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Preview struk modal ===== */
.modal-box-preview { max-width: 380px; }
.preview-struk {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}
.preview-struk .struk-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.preview-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.modal-actions-struk { flex-wrap: wrap; }
.modal-actions-struk button { flex: 1 1 auto; }

/* ===== Modal: QR code ===== */
.modal-box-qr { max-width: 360px; }
.qr-hint {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin: 4px 0 12px;
}
.qr-display {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  max-width: 280px;
}
.qr-display svg {
  width: 100%;
  height: auto;
  display: block;
}
.qr-url {
  text-align: center;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-2);
  margin: 0 0 14px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 6px;
  word-break: break-all;
  border: 1px solid var(--line);
}

/* ===== Modal: konfirmasi ===== */
.modal-box-confirm { max-width: 380px; }
.confirm-message {
  margin: 4px 0 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 1.5px solid transparent;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}
.btn-danger:hover { background: #b91c1c; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  /* iOS Safari: cegah auto-zoom saat fokus input (font-size harus >= 16px) */
  input, select, textarea {
    font-size: 16px !important;
  }
  .chip { font-size: 13px; }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
  }
  .sidebar { display: none; }

  .mobile-topbar {
    display: flex;
    position: sticky;
    top: 0;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    flex-shrink: 0;
    padding: 0 14px;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    will-change: transform;
  }
  .mobile-topbar .brand { flex: 1; min-width: 0; }
  .mobile-topbar .brand h1 {
    font-size: 15px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
  }
  .mobile-topbar .brand small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
    display: block;
  }
  .mobile-topbar .brand-emoji { font-size: 20px; width: 36px; height: 36px; line-height: 36px; }
  .mobile-topbar .icon-btn { flex-shrink: 0; }

  .content { padding: 16px 14px 96px; }

  .kasir-layout { grid-template-columns: 1fr; }
  .cart-area {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    max-height: 85dvh;
    height: auto;
    z-index: 50;
    transform: translateY(100%);
    transition: transform .3s ease, visibility 0s linear .3s;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, .2);
    border: none;
    border-top: 1px solid var(--line);
    padding: 6px 16px calc(18px + env(safe-area-inset-bottom));
    visibility: hidden;
  }
  .cart-area.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s linear 0s;
  }
  .cart-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin: 4px auto 6px;
  }
  .cart-close-mobile { display: inline-flex; }
  body.cart-open { overflow: hidden; }

  .mobile-cart-bar { display: block; }
  .mobile-cart-bar.hidden { display: none !important; }
  .mobile-cart-bar {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .page-header { margin-bottom: 16px; }
  .page-header h2 { font-size: 19px; }
  .header-actions { width: 100%; }
  .header-actions .btn-soft, .header-actions .btn-primary { flex: 1; }

  .tr.produk { grid-template-columns: 44px 1fr 70px; padding: 12px 14px; gap: 10px; }
  .tr.produk .cell-kat, .tr.produk .cell-harga { display: none; }
  .tr.user { grid-template-columns: 44px 1fr 70px; padding: 12px 14px; gap: 10px; }
  .tr.user .cell-username, .tr.user .cell-role { display: none; }
  .tr.header { display: none; }
  .edit-btn { padding: 8px 10px !important; font-size: 12.5px !important; }

  .grid-2 { gap: 12px; }
  .card { padding: 18px; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    padding: 18px;
    animation: slide-up-mobile .25s ease;
  }
  @keyframes slide-up-mobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .quick-cash { grid-template-columns: repeat(3, 1fr); }

  .qris-display { min-height: 220px; padding: 12px; }
  .qris-display img { max-height: 240px; }
  .qris-upload { flex-direction: column; align-items: stretch; }
  .qris-preview { width: 100%; height: 200px; }
  .qris-upload-actions { flex-direction: row; }
}

@media (max-width: 480px) {
  .content { padding: 14px 12px 96px; }
  .produk-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .produk-card { padding: 12px; }
  .produk-card .ikon { font-size: 24px; width: 40px; height: 40px; line-height: 40px; }
  .produk-card .nama { font-size: 13.5px; }
  .produk-card .harga { font-size: 14px; }

  .big-total strong { font-size: 26px; }
  .quick-cash { grid-template-columns: repeat(3, 1fr); }
  .login-card { padding: 28px 22px; }

  .payment-methods { gap: 4px; padding: 3px; }
  .pm-btn { padding: 8px 4px; font-size: 12px; }
  .pm-btn .pm-icon { font-size: 16px; }

  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn-soft,
  .modal-actions .btn-primary { width: 100%; }
}

@media (max-width: 380px) {
  .produk-grid { grid-template-columns: 1fr 1fr; }
  .quick-cash { grid-template-columns: repeat(2, 1fr); }
  .brand h1 { font-size: 14px !important; }
}

/* ===================================================================== */
/* ===== LANDING PAGE (POSTINIA) ======================================= */
/* ===================================================================== */
.landing-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(234, 88, 12, .10), transparent 38%),
    radial-gradient(circle at 90% 8%, rgba(15, 23, 42, .06), transparent 42%),
    linear-gradient(180deg, #fffdfb, var(--bg));
  overflow-x: hidden;
}

/* Nav */
.landing-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-brand { display: flex; align-items: center; gap: 10px; }
.landing-logo {
  font-size: 22px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-50);
  border: 1px solid #fed7aa;
  border-radius: 12px;
}
.landing-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.landing-nav-links { display: flex; align-items: center; gap: 8px; }
.landing-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.landing-nav-links a:hover { color: var(--ink); background: var(--surface-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--line);
  transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--muted-2); background: var(--surface); }
.btn-ghost.lg { padding: 13px 22px; font-size: 15px; }

/* Hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 40px 24px 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid #fed7aa;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-copy h1 .grad {
  background: linear-gradient(120deg, var(--primary), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

/* Hero artwork (mock POS card) */
.hero-art { display: flex; justify-content: center; }
.hero-card {
  width: 320px;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: rotate(2deg);
}
.hero-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-card-logo {
  font-size: 22px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-50); border: 1px solid #fed7aa; border-radius: 12px;
}
.hero-card-head strong { display: block; font-size: 16px; font-weight: 800; }
.hero-card-head small { color: var(--muted); font-size: 12px; }
.hero-card-rows { display: grid; gap: 12px; padding: 4px 0 14px; border-bottom: 1px dashed var(--line); }
.hcr { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.hcr span { color: var(--ink-2); }
.hcr b { color: var(--ink); }
.hero-card-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 14px; font-weight: 800;
}
.hero-card-total span { color: var(--muted); font-weight: 600; }
.hero-card-total strong { font-size: 22px; color: var(--primary-600); }
.hero-card-pay {
  background: var(--primary); color: #fff;
  text-align: center; padding: 13px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-sm);
}

/* Features */
.features { max-width: 1120px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.features h2, .howto h2 {
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px;
}
.section-sub { color: var(--muted); font-size: 16px; margin: 0 auto 40px; max-width: 520px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #fed7aa;
}
.fc-icon {
  font-size: 26px;
  width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border-radius: 14px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* How it works */
.howto { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; text-align: center; }
.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 36px 0;
  text-align: left;
}
.howto-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--primary); color: #fff;
  border-radius: 12px; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.howto-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.howto-step p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.howto-cta { margin-top: 8px; }

/* Footer */
.landing-footer {
  max-width: 1120px; margin: 0 auto;
  padding: 36px 24px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.landing-footer .landing-brand { justify-content: center; margin-bottom: 12px; }
.landing-footer p { color: var(--muted); margin: 0 0 6px; font-size: 14px; }
.landing-footer small { color: var(--muted-2); font-size: 12.5px; }

/* ===== AUTH (login/register) shared additions ===== */
.login-card { position: relative; }
.auth-back {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.auth-back:hover { background: var(--line); color: var(--ink-2); }
.auth-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.login-brand p { margin-top: 2px; }

/* Landing responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-card { transform: rotate(0); width: 100%; max-width: 340px; }
  .hero-copy h1 { font-size: 38px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .landing-nav { padding: 16px; flex-wrap: wrap; }
  .landing-nav-links a[href="#fitur"],
  .landing-nav-links a[href="#cara"] { display: none; }
  .hero { padding: 24px 16px 44px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-sub { font-size: 15px; }
  .hero-cta .btn-primary.lg, .hero-cta .btn-ghost.lg { width: 100%; }
  .features, .howto { padding: 40px 16px; }
  .features h2, .howto h2 { font-size: 25px; }
  .feature-grid { grid-template-columns: 1fr; }
}
