/* ============================================================
   ORent — Landing site
   Dark theme, orange accent. Built to match admin docs.
   ============================================================ */

:root {
  --bg:        #0f1115;
  --bg-2:      #14171f;
  --panel:     #161922;
  --panel-2:   #1d212c;
  --border:    #2a2f3d;
  --text:      #e6e8ee;
  --muted:     #9aa1b1;
  --dim:       #6b7384;
  --accent:    #ED7829;   /* brand */
  --accent-2:  #ff9b4d;
  --accent-3:  #ffd166;
  --ok:        #4ade80;
  --warn:      #fbbf24;
  --danger:    #f87171;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.6), 0 8px 24px -8px rgba(237,120,41,.15);
  --shadow-md: 0 8px 24px -10px rgba(0,0,0,.5);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --pad-x: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(237,120,41,0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,155,77,0.07), transparent 60%),
    var(--bg);
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent-3); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { margin: 0; }

/* ============ Brand mark (square with accent dot) ============ */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 4px rgba(237,120,41,.15);
  display: inline-block;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* ============ Top nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,17,21,0.72);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #1a0f06;
  box-shadow: 0 6px 20px -6px rgba(237,120,41,0.55);
}
.btn-primary:hover { color: #1a0f06; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(237,120,41,0.06);
}
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ============ Eyebrow / section heads ============ */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px var(--pad-x);
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-2) 50%, transparent 100%);
  max-width: none;
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section-alt > .section-head { padding-top: 0; padding-bottom: 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-sub {
  color: var(--muted);
  margin-top: 14px;
  font-size: 17px;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad-x) 96px;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-fineprint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
}

/* Hero visual — fake phone + dashboard card */
.hero-visual {
  position: relative;
  height: 580px;
}
.phone {
  position: absolute;
  right: 2%;
  top: 20px;
  width: 270px;
  height: 540px;
  background: #0a0c11;
  border: 9px solid #1a1d27;
  border-radius: 40px;
  padding: 18px 14px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(237,120,41,0.06);
  transform: rotate(4deg);
  z-index: 1;
}
/* Ambient orange glow behind the phone — adds atmosphere */
.phone::after {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(237,120,41,0.14), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.phone-screen {
  height: 100%;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(237,120,41,0.18), transparent 60%),
    linear-gradient(180deg, #1a1d27 0%, #0f1218 100%);
  border-radius: 22px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Status bar */
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 12px;
}
.phone-status-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}
.phone-icon-wifi {
  height: 11px;
  width: auto;
  color: var(--text);
}
.phone-icon-bat {
  height: 11px;
  width: auto;
  color: var(--text);
}
.phone-bat-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

/* Top bar: device label (left) | user chip + menu (right, grouped) */
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.phone-device {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.phone-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone-userchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(237,120,41,0.14);
  border: 1px solid rgba(237,120,41,0.5);
  color: var(--accent);
  height: 22px;
  padding: 0 9px 0 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.phone-usericon {
  width: 12px;
  height: 12px;
  color: var(--accent);
  flex: 0 0 auto;
}
.phone-menu {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  background: rgba(237,120,41,0.14);
  border: 1px solid rgba(237,120,41,0.5);
  border-radius: 6px;
  height: 22px;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Neon countdown clock */
.phone-clock {
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 10px 8px 8px;
  margin-bottom: 14px;
}
.phone-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-family: var(--mono);
  color: #9aff3d;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(154,255,61,0.55);
}
.phone-clock-num { min-width: 36px; text-align: center; }
.phone-clock-sep { color: #9aff3d; opacity: 0.7; }
.phone-clock-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.phone-clock-labels span { min-width: 50px; text-align: center; }

/* Sections (RECENTS / APPS) */
.phone-section { margin-bottom: 10px; }
.phone-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.phone-section-mark {
  width: 3px;
  height: 11px;
  background: var(--accent);
  border-radius: 1px;
}

/* App grid */
.phone-grid {
  display: grid;
  gap: 8px;
}
.phone-grid-4 { grid-template-columns: repeat(4, 1fr); }
.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.app-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 4px 8px -2px rgba(0,0,0,0.45);
}
/* Glossy top highlight — gives icons depth instead of flat-block look */
.app-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
}
.app-label {
  font-size: 8px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}
/* Layout-only colored tiles — no real-app branding.
   Each tile uses a deeper, richer two-stop gradient so the gloss overlay
   on top reads as a 3D icon highlight, not a flat color swatch. */
.app-c1  { background: linear-gradient(160deg, #475569 0%, #1e293b 100%); }
.app-c2  { background: linear-gradient(160deg, #60a5fa 0%, #1e40af 100%); }
.app-c3  { background: linear-gradient(160deg, #6366f1 0%, #312e81 100%); }
.app-c4  { background: linear-gradient(160deg, #ef4444 0%, #7f1d1d 100%); }
.app-c5  { background: linear-gradient(160deg, #fb923c 0%, #9a3412 100%); }
.app-c6  { background: linear-gradient(160deg, #4ade80 0%, #166534 100%); }
.app-c7  { background: linear-gradient(160deg, #a78bfa 0%, #5b21b6 100%); }
.app-c8  { background: linear-gradient(160deg, #f472b6 0%, #9d174d 100%); }
.app-c9  { background: linear-gradient(160deg, #2dd4bf 0%, #115e59 100%); }
.app-c10 { background: linear-gradient(160deg, #fbbf24 0%, #92400e 100%); }

/* Page indicator */
.phone-pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.phone-pager-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.phone-pager-active {
  width: 12px;
  border-radius: 2px;
  background: var(--accent);
}

.dash-card {
  position: absolute;
  left: 10px;
  bottom: 30px;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,0.65),
    0 4px 16px -6px rgba(237,120,41,0.18);
  transform: rotate(-3deg);
  z-index: 4;
}

/* Sales summary card (top-left of hero) */
.sales-card {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 240px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  box-shadow:
    0 24px 50px -15px rgba(0,0,0,0.6),
    0 4px 16px -6px rgba(237,120,41,0.15);
  transform: rotate(3deg);
  z-index: 2;
}
.sales-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.sales-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  padding: 2px 7px;
  border-radius: 999px;
}
.sales-card-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.sales-card-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}
.sales-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  opacity: 0.35;
}
.sales-bar-hi { opacity: 1; }

/* Customer card (middle-left of hero, layered between sales & device card) */
.user-card {
  position: absolute;
  top: 210px;
  left: 90px;
  width: 215px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  box-shadow:
    0 24px 50px -15px rgba(0,0,0,0.65),
    0 4px 14px -6px rgba(237,120,41,0.18);
  transform: rotate(-2deg);
  z-index: 3;
}
.user-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 9px;
}
.user-card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(237,120,41,0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.user-card-avatar svg { width: 17px; height: 17px; }
.user-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.user-card-bal {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 1px;
  line-height: 1.1;
}
.user-card-event {
  display: flex;
  align-items: center;
  gap: 8px;
}
.event-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74,222,128,0.12);
  color: var(--ok);
  border: 1px solid rgba(74,222,128,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.event-meta { display: flex; flex-direction: column; line-height: 1.15; }
.event-label { font-size: 11px; font-weight: 600; color: var(--text); }
.event-time { font-size: 9px; color: var(--muted); margin-top: 1px; }
.event-amt {
  margin-left: auto;
  font-weight: 800;
  color: var(--ok);
  font-family: var(--mono);
  font-size: 12px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-ok { background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* Manager device card (mirrors the real .manager/lib device card UI) */
.mgr-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.mgr-dots { display: inline-flex; gap: 3px; }
.mgr-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-right: auto;
  letter-spacing: 0.2px;
}
.mgr-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(237,120,41,0.16);
  border: 1px solid rgba(237,120,41,0.5);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px 3px 5px;
  border-radius: 999px;
  line-height: 1;
}
.mgr-card-chip svg { width: 10px; height: 10px; }
.mgr-card-menu {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.mgr-card-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 14px;
}
.mgr-card-time {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  letter-spacing: 1px;
  margin: 6px 0 12px;
  text-shadow: 0 0 12px rgba(237,120,41,0.35);
}
.mgr-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mgr-card-action svg { width: 14px; height: 14px; }
.mgr-card-logout {
  background: rgba(248,113,113,0.12);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.3);
}
.mgr-card-start {
  background: rgba(74,222,128,0.10);
  color: var(--ok);
  border: 1px solid rgba(74,222,128,0.3);
}
.mgr-card-empty {
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  padding: 18px 0;
}
.mgr-pill {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mgr-pill-ready {
  color: var(--ok);
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
}

/* ============ Tabbed preview (Devices / Customers / Activity) ============ */
.preview-wrap { position: relative; }

/* Hide the radio inputs themselves (only used as toggle state) */
.preview-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preview-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 32px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.preview-wrap > .preview-tabs {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.preview-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  user-select: none;
}
.preview-tab svg { width: 16px; height: 16px; }
.preview-tab:hover { color: var(--text); }

.preview-pane { display: none; }

/* CSS-only tab switching via sibling selector — no JS */
#prev-devices:checked   ~ .preview-pane-devices,
#prev-customers:checked ~ .preview-pane-customers,
#prev-activity:checked  ~ .preview-pane-activity {
  display: block;
}

#prev-devices:checked   ~ .preview-tabs label[for="prev-devices"],
#prev-customers:checked ~ .preview-tabs label[for="prev-customers"],
#prev-activity:checked  ~ .preview-tabs label[for="prev-activity"] {
  color: #1a0f06;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 4px 12px -4px rgba(237,120,41,0.5);
}

/* ============ Manager dashboard mockup section ============ */
.mgr-mockup {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(237,120,41,0.04);
  min-height: 460px;
}
.mgr-side {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 22px 14px;
}
.mgr-side-brand {
  color: var(--accent);
  font-weight: 800;
  font-size: 17px;
  padding: 0 10px 18px;
  letter-spacing: 0.2px;
}
.mgr-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mgr-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
}
.mgr-side-item svg { width: 16px; height: 16px; flex: 0 0 auto; }
.mgr-side-item:hover { background: var(--panel); color: var(--text); }
.mgr-side-active {
  background: rgba(237,120,41,0.08);
  color: var(--accent);
}
.mgr-side-active:hover { background: rgba(237,120,41,0.12); color: var(--accent); }

.mgr-main { padding: 26px 28px; }
.mgr-main-head {
  text-align: center;
  margin-bottom: 22px;
}
.mgr-main-head h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.mgr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.mgr-grid .mgr-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.mgr-grid .mgr-card-time { font-size: 32px; margin: 4px 0 10px; }
.mgr-grid .mgr-card-action { margin-top: auto; }

/* ============ Customer accounts mockup ============ */
.cust-mockup {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 16px;
}
.cust-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(237,120,41,0.04);
}

/* — Users list panel — */
.cust-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 12px;
}
.cust-search svg { width: 16px; height: 16px; color: var(--muted); }

.cust-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cust-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid transparent;
}
.cust-row-active {
  border-color: rgba(237,120,41,0.4);
  background: rgba(237,120,41,0.06);
}
.cust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.cust-avatar svg { width: 18px; height: 18px; }
.cust-row-active .cust-avatar {
  background: rgba(237,120,41,0.18);
  color: var(--accent);
}
.cust-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.cust-last {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.cust-balance { text-align: right; }
.cust-balance-amt {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.cust-balance-lbl {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

/* — Detail panel — */
.cust-detail-head {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.cust-detail-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.cust-detail-balance {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.cust-detail-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cust-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.cust-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cust-btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1a0f06;
  border-color: transparent;
}

.cust-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.cust-tab {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cust-tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cust-tx-list {
  display: flex;
  flex-direction: column;
}
.cust-tx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cust-tx:last-child { border-bottom: none; }
.cust-tx-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.cust-tx-icon-in {
  background: rgba(74,222,128,0.12);
  color: var(--ok);
  border: 1px solid rgba(74,222,128,0.3);
}
.cust-tx-icon-out {
  background: rgba(248,113,113,0.12);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.3);
}
.cust-tx-icon-link {
  background: rgba(138,180,255,0.12);
  color: var(--link);
  border: 1px solid rgba(138,180,255,0.3);
}
.cust-tx-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cust-tx-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.cust-tx-amt {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
}
.cust-tx-amt-in { color: var(--ok); }
.cust-tx-amt-out { color: var(--danger); }

/* ============ Activity log mockup ============ */
.act-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(237,120,41,0.04);
}
.act-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.act-date svg { width: 16px; height: 16px; }

.act-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 12px;
}
.act-search svg { width: 16px; height: 16px; color: var(--muted); }

.act-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.act-filter {
  flex: 0 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.act-filter-active {
  color: var(--accent);
  background: rgba(237,120,41,0.10);
  border-color: rgba(237,120,41,0.5);
}

.act-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.act-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.act-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}
.act-icon-in     { background: rgba(74,222,128,0.12);  color: var(--ok);     border: 1px solid rgba(74,222,128,0.3); }
.act-icon-login  { background: rgba(74,222,128,0.12);  color: var(--ok);     border: 1px solid rgba(74,222,128,0.3); }
.act-icon-logout { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.act-icon-rental { background: rgba(248,113,113,0.10); color: var(--danger); border: 1px solid rgba(248,113,113,0.25); }
.act-icon-idle   { background: rgba(251,191,36,0.12);  color: var(--warn);   border: 1px solid rgba(251,191,36,0.3); }
.act-icon-guest  { background: rgba(237,120,41,0.14);  color: var(--accent); border: 1px solid rgba(237,120,41,0.4); }

.act-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.act-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.act-amt {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  min-width: 70px;
  text-align: right;
}
.act-amt-in  { color: var(--ok); }
.act-amt-out { color: var(--danger); }

/* ============ Value props row ============ */
.valueprops {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vp {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.vp-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.vp h3 { margin-bottom: 6px; }
.vp p { color: var(--muted); font-size: 14px; }

/* ============ Features ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feat h4 { margin-bottom: 8px; color: var(--accent-2); }
.feat p { color: var(--muted); font-size: 14px; }

/* ============ How it works (steps) ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1a0f06;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.step h4 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

/* ============ FAQ ============ */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ============ Final CTA ============ */
.finalcta {
  text-align: center;
  padding: 96px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.finalcta h2 { margin-bottom: 12px; }
.finalcta p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 40px var(--pad-x);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  color: var(--dim);
  font-size: 13px;
  text-align: right;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-visual { height: 600px; max-width: 520px; margin: 0 auto; }
  .phone { right: 0; }
  .dash-card { left: 0; width: 250px; }
  .valueprops { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .mgr-mockup { grid-template-columns: 1fr; }
  .mgr-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .mgr-side-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .mgr-side-item { white-space: nowrap; }
  .mgr-side-item span { display: none; }
  .mgr-side-active span { display: inline; }
  .cust-mockup { grid-template-columns: 1fr; }
  .preview-tabs { padding: 4px; }
  .preview-tab { padding: 8px 14px; font-size: 13px; }
  .preview-tab svg { display: none; }
  .section { padding: 72px var(--pad-x); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .mgr-grid { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  .lede { font-size: 17px; }

  /* === Tighter section rhythm on mobile === */
  .section { padding: 48px var(--pad-x); }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 32px var(--pad-x) 48px; }
  .finalcta { padding: 56px var(--pad-x); }
  .footer { padding: 28px var(--pad-x); }

  /* === Hero shrink: only the phone, no side cards === */
  .hero-visual {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .sales-card,
  .dash-card,
  .user-card { display: none; }
  .phone {
    position: static;
    transform: none;
    margin: 0;
    width: 240px;
    height: 460px;
    padding: 14px 12px;
  }
  .phone-clock-row { font-size: 26px; }

  /* === Mockup trims: hide overflow rows on the active tab === */
  /* Devices: 4 → 2 cards (CP-1 + CP-3 active stay visible) */
  .mgr-grid .mgr-card:nth-child(n+3) { display: none; }
  /* Customers: 6 → 4 user rows */
  .cust-rows .cust-row:nth-child(n+5) { display: none; }
  /* Transactions: 5 → 3 rows */
  .cust-tx-list .cust-tx:nth-child(n+4) { display: none; }
  /* Activity: 6 → 4 events */
  .act-feed .act-event:nth-child(n+5) { display: none; }

  /* Tighter internal padding on mockups */
  .mgr-main { padding: 18px 16px; }
  .cust-panel { padding: 14px; }
  .act-panel { padding: 16px; }
}
