/* ============================================================================
   Ultimate POS Desktop — Stripe-inspired design system
   A hand-crafted system modelled on Stripe's design language: the indigo
   (#635BFF) primary, deep navy ink (#0A2540), slate body text, generous type
   scale, soft elevated cards, and the signature angled multi-colour gradient.
   Self-contained (no build step) so every page renders the brand consistently.
   ============================================================================ */

:root {
  /* Brand */
  --brand: #635bff;
  --brand-600: #5a52e0;
  --brand-700: #4b45c6;
  --brand-050: #f5f4ff;
  --ink: #0a2540;         /* deep navy, Stripe's headline ink */
  --ink-2: #1a2b3c;
  --slate: #425466;       /* body */
  --slate-2: #697386;     /* muted */
  --line: #e6ebf1;        /* hairlines */
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-2: #f6f9fc;        /* Stripe's off-white section bg */
  --success: #15be53;
  --warning: #ff8f0e;
  --danger: #df1b41;
  --cyan: #00d4ff;
  --pink: #ff5996;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 5px -1px rgba(50,50,93,.12), 0 1px 3px -1px rgba(0,0,0,.07);
  --shadow: 0 13px 27px -5px rgba(50,50,93,.16), 0 8px 16px -8px rgba(0,0,0,.2);
  --shadow-lg: 0 30px 60px -12px rgba(50,50,93,.22), 0 18px 36px -18px rgba(0,0,0,.28);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--slate);
  background: var(--bg); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; /* safety net: no accidental horizontal scroll on any device */
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--slate-2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); }

/* ---- Signature gradient hero (full-cover so all hero text stays readable) ---- */
.gradient-band {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  background: linear-gradient(120deg, #8b5cf6 0%, #635bff 26%, #4aa3ff 60%, #37cfe6 100%);
}
/* Soft light streaks for depth — still on colour, so white text never lands on white */
.gradient-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(255,255,255,.26), transparent 60%),
    radial-gradient(820px 460px at -6% 116%, rgba(75,225,236,.42), transparent 60%);
}
/* A subtle angled sheen — decorative only, never clips content */
.gradient-band::after {
  content: ""; position: absolute; top: -20%; left: 40%; width: 90%; height: 160%;
  background: linear-gradient(105deg, transparent 46%, rgba(255,255,255,.10) 50%, transparent 54%);
  pointer-events: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: .98rem; padding: 11px 20px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(99,91,255,.35); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 6px 20px rgba(99,91,255,.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #14335a; color: #fff; }
.btn-ghost { background: rgba(99,91,255,.08); color: var(--brand); }
.btn-ghost:hover { background: rgba(99,91,255,.14); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-white:hover { box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.arrow-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---- Top navigation ---- */
.nav { position: sticky; top: 0; z-index: 50; }
.nav-inner {
  display: flex; align-items: center; gap: 28px; height: 68px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.nav.solid { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.1rem; white-space: nowrap; }
.brand .logo-dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #635bff, #40c9ff); display: grid; place-items: center; color: #fff; font-weight: 800; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--brand); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.on-dark .brand, .on-dark .nav-links a { color: #fff; }
.on-dark .nav-links a:hover { color: #d7f9ff; }

/* Responsive nav: collapse the link row on tablet/mobile so nothing overflows */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; height: 62px; }
}
@media (max-width: 460px) {
  .nav-cta a[style*="var(--ink)"] { display: none; } /* hide "Sign in" text link on tiny screens */
  .brand .muted { display: none; }                    /* keep just "Ultimate POS" */
  .nav-inner { padding: 0 16px; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,.92); font-size: 1.25rem; max-width: 42ch; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { color: rgba(255,255,255,.85); margin-top: 18px; font-size: .92rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: none; } }

/* ---- App window mock ---- */
.window {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
}
.window-bar { height: 38px; background: #0e1b2e; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #33465f; display: inline-block; }
.window-bar i:nth-child(1){ background:#ff5f57 } .window-bar i:nth-child(2){ background:#febc2e } .window-bar i:nth-child(3){ background:#28c840 }
.window-body { padding: 18px; background: #f6f9fc; }

/* ---- Sections ---- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--slate); }

/* ---- Feature grid ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); margin-bottom: 16px; font-size: 22px;
}
.feature-ico.g2 { background: #e6fbff; color: #06b6d4; }
.feature-ico.g3 { background: #fff0f5; color: var(--pink); }
.feature-ico.g4 { background: #eafff1; color: var(--success); }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n { counter-increment: step; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step .n::before { content: counter(step); }

/* ---- Pricing ---- */
.price-card { text-align: center; }
.price-card.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); position: relative; }
.price-tag { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.price-tag small { font-size: 1rem; color: var(--slate-2); font-weight: 600; }
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.badge-brand { background: var(--brand); color: #fff; }
.badge-soft { background: var(--brand-050); color: var(--brand); }
.badge-success { background: #e7f9ee; color: #0a7d33; }
.badge-warn { background: #fff4e5; color: #a35b00; }
.badge-muted { background: #eef1f6; color: var(--slate-2); }
.badge-danger { background: #fdecef; color: var(--danger); }
.check-list { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.check-list li { padding: 7px 0 7px 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

/* ---- CTA band ---- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 56px; background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(1200px 300px at 80% -20%, rgba(99,91,255,.5), transparent), radial-gradient(900px 300px at 10% 120%, rgba(0,212,255,.4), transparent); }
.cta-band > * { position: relative; z-index: 1; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 60px 0 40px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.footer a { color: rgba(255,255,255,.72); display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 780px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---- Logo strip ---- */
.logostrip { display: flex; flex-wrap: wrap; gap: 34px; justify-content: center; align-items: center; opacity: .8; }
.logostrip span { font-weight: 800; color: var(--slate-2); font-size: 1.1rem; letter-spacing: -.02em; }

/* ============================================================================
   App shell (dashboard / superadmin)
   ============================================================================ */
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; margin: 4px 8px 26px; }
.side-group { margin: 18px 0 8px; padding: 0 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-link.active { background: var(--brand); color: #fff; }
.side-foot { margin-top: auto; padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.main { background: var(--bg-2); min-height: 100vh; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; gap: 16px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 1.3rem; margin: 0; }
.content { padding: 30px; max-width: 1120px; }
@media (max-width: 820px){ .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } }

/* ---- Stat tiles ---- */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 820px){ .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .label { color: var(--slate-2); font-size: .85rem; font-weight: 600; }
.stat .value { font-size: 1.9rem; font-weight: 800; color: var(--ink); margin-top: 6px; }
.stat .delta { font-size: .82rem; font-weight: 700; }
.delta.up { color: var(--success); } .delta.down { color: var(--danger); }

/* ---- Panels / tables ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 22px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-2); padding: 12px 22px; border-bottom: 1px solid var(--line); }
.table td { padding: 15px 22px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: .95rem; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fbfcfe; }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .92rem; }
.field .hint { color: var(--slate-2); font-size: .82rem; margin-top: 6px; }
.input, .select, textarea.input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .98rem; color: var(--ink); background: #fff; font-family: inherit; transition: border .12s, box-shadow .12s;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,91,255,.16); }
.auth-wrap { display: grid; place-items: center; min-height: 100vh; padding: 40px 20px; background:
  radial-gradient(900px 400px at 50% -10%, rgba(99,91,255,.16), transparent), var(--bg-2); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; color: var(--ink); cursor: pointer; }
.google-btn:hover { background: #f8fafc; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--slate-2); font-size: .85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin-bottom: 18px; }
.alert-success { background: #e7f9ee; color: #0a7d33; border: 1px solid #b7ebc6; }
.alert-error { background: #fdecef; color: var(--danger); border: 1px solid #f6c6cf; }
.alert-info { background: var(--brand-050); color: var(--brand-700); border: 1px solid #dcd9ff; }

/* ---- Version / release-note list ---- */
.version-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; cursor: pointer; transition: border .12s, box-shadow .12s; }
.version-item:hover { border-color: var(--brand); }
.version-item.selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-050); }
.version-item .v-head { display: flex; align-items: center; justify-content: space-between; }
.version-item .v-name { font-weight: 800; color: var(--ink); }
.release-notes { color: var(--slate); font-size: .92rem; margin-top: 8px; }
.release-notes ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- Logo dropzone ---- */
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; transition: border .12s, background .12s; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-050); }
.dropzone.has { border-style: solid; }
.logo-preview { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; margin: 0 auto 12px; border: 1px solid var(--line); }

.pill-status { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); }
.st-queued { background:#eef1f6; color:#697386 } .st-building { background:#fff4e5; color:#a35b00 }
.st-ready { background:#e7f9ee; color:#0a7d33 } .st-failed { background:#fdecef; color:#df1b41 }
.st-paid { background:#e7f9ee; color:#0a7d33 } .st-pending { background:#fff4e5; color:#a35b00 }

.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap { gap: 12px; } .gap-lg { gap: 20px; } .wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; }
.text-sm { font-size: .88rem; } .text-xs { font-size: .78rem; } .fw-700 { font-weight: 700; }
