/* Dilsho website — page styles on top of the shared brand tokens. Mobile-first. */

/* --- Header / nav --- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--sp-5); padding-block: 14px; flex-wrap: nowrap; }
.brand-lockup { display: inline-flex; align-items: center; flex: none; }
.brand-lockup img { height: 38px; width: auto; }
.site-nav { display: flex; gap: var(--sp-4); margin-left: auto; flex: 0 1 auto; flex-wrap: nowrap; }
.nav-link { color: var(--text); font-weight: var(--fw-semibold); font-size: 15px; padding: 6px 2px; white-space: nowrap; }
.nav-link.is-active { color: var(--coral); }
.header-cta { display: flex; gap: var(--sp-2); flex: none; }
.header-cta .btn { padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--text); cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; padding: var(--sp-3) var(--sp-5); gap: 6px; border-bottom: 1px solid var(--border); background: var(--surface); }
body.nav-open .mobile-nav { display: flex; }

/* --- Sections --- */
.section { padding-block: var(--sp-8); }
.section.narrow { max-width: 720px; }
.band { background: var(--coral-gradient); color: var(--cream); padding-block: var(--sp-8); margin-top: var(--sp-6); }
.band h2, .band .lead { color: var(--cream); }
.band .btn-primary { background: var(--cream); color: var(--coral); }
.lead { font-size: 19px; color: var(--text-muted); max-width: 60ch; }
.band .lead { color: color-mix(in srgb, var(--cream) 88%, transparent); }

/* --- Hero --- */
.hero { background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--coral) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--blush), var(--cream)); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-6); align-items: center; padding-block: var(--sp-8); }
.hero-copy h1 { font-size: clamp(34px, 6vw, 56px); }
.hero-note { margin-top: var(--sp-3); }
.hero-art { display: grid; place-items: center; position: relative; }

/* App-preview card (a real product mock — no external images, on-brand) */
.app-preview { width: min(330px, 86%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 16px; transform: rotate(-1.5deg); }
.app-preview .ap-search { display: flex; align-items: center; gap: 8px; background: var(--surface-soft);
  border-radius: var(--r-pill); padding: 10px 14px; color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.ap-store { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; margin: 10px 2px 6px; }
.ap-store img { width: 16px; height: 16px; }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 8px; }
.ap-row .nm { font-weight: 600; font-size: 14px; }
.ap-row .pr { color: var(--coral); font-weight: 700; font-size: 14px; }
.ap-row .pl { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #fff; border: none; font-size: 18px; line-height: 1; flex: none; }
.hero-heart { position: absolute; width: 54px; opacity: .9; top: -6px; right: 4%; transform: rotate(12deg); filter: drop-shadow(var(--shadow-md)); }

/* Category strip */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); }
.cat-tile { display: grid; place-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 8px; text-align: center; font-weight: 600; font-size: 14px; color: var(--text); transition: transform .1s ease, box-shadow .15s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.cat-tile .ico { font-size: 30px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-5); }
.section-head h2 { margin-bottom: 6px; }

/* Install / PWA band */
.install { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.install img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-md); }

/* Testimonial */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote p { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); line-height: 1.4; }
.quote .heart { width: 34px; margin-bottom: 10px; }

/* --- Cards / grids --- */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.feature-card { height: 100%; }
.feature-ico { font-size: 30px; margin-bottom: var(--sp-2); }
.feature-card h3 { font-size: 19px; }

/* --- Steps --- */
.steps { counter-reset: step; list-style: none; padding: 0; max-width: 720px; }
.steps li { position: relative; padding: var(--sp-4) var(--sp-4) var(--sp-4) 56px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: var(--sp-3); box-shadow: var(--shadow-sm); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: var(--cream);
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }

/* --- Footer --- */
.site-footer { background: var(--espresso); color: var(--cream); margin-top: var(--sp-8); padding-block: var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-5); }
.site-footer h4 { color: var(--cream); margin-bottom: var(--sp-2); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: color-mix(in srgb, var(--cream) 80%, transparent); display: block; padding: 3px 0; font-size: 15px; }
.site-footer a:hover { color: var(--cream); }
.footer-bottom { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* --- Forms (auth + contact) --- */
.auth-card { max-width: 460px; margin-inline: auto; }
.auth-card.wide { max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
fieldset { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
legend { font-family: var(--font-display); font-weight: 700; padding-inline: 8px; }
.optional summary { cursor: pointer; font-weight: var(--fw-semibold); }
.form-msg { min-height: 1.2em; font-weight: var(--fw-semibold); }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--success); }
.locpick .grid-2 { margin-top: 8px; }

/* --- Dashboard --- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); }
.kpi .n { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--coral); }
.kpi .l { color: var(--text-muted); font-size: 14px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.data td.r, table.data th.r { text-align: right; }
.pill-status { padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.notice { padding: var(--sp-4); border-radius: var(--r-lg); border: 1px solid var(--border); }
.notice.pending { background: #FFF7E8; border-color: #F0D9A8; }
.notice.rejected { background: var(--danger-bg); border-color: #f0c0bb; }
.tabbar { display: flex; gap: 6px; flex-wrap: wrap; }
.tabbar button { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 8px 16px; font-weight: 600; cursor: pointer; color: var(--text); }
.tabbar button.is-active { background: var(--coral); color: var(--cream); border-color: var(--coral); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 6px; }

/* --- Modal (shared by dashboard + admin) --- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(43,32,26,.45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 540px; max-height: 90vh; overflow: auto; padding: var(--sp-5); }
.modal h3 { margin-top: 0; }
.modal .modal-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-4); }
.field { margin-bottom: var(--sp-3); }
.field label { margin-bottom: 4px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.detail-grid .k { color: var(--text-muted); font-size: 13px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .app-preview { transform: none; }
  .hero-copy .row { justify-content: center; }
  .three-up { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .install { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 520px) { .cats { grid-template-columns: repeat(2, 1fr); } }
