/*
Theme Name: GPSTrack Mint
Theme URI: https://gpstrack.co.za/
Author: GPSTrack
Author URI: https://gpstrack.co.za/
Description: Sleek Linux Mint inspired white-label GPS tracking theme.
Version: 1.0.0
Text Domain: gpstrack-mint
*/

:root {
  --mint-300: #a6e3b5;
  --mint-400: #8fd6a3;
  --mint-500: #61c288;
  --mint-600: #3aa76e;
  --mint-700: #2c8154;
  --ink-900: #020813;
  --ink-800: #050f21;
  --ink-700: #0b1931;
  --ink-600: #12233f;
  --ink-500: #1e3050;
  --ink-300: #8090b3;
  --bg-body: #020813;
  --bg-elevated: rgba(6, 18, 35, 0.96);
  --card-bg: radial-gradient(circle at top left, rgba(143, 214, 163, 0.18), transparent),
    radial-gradient(circle at bottom right, rgba(97, 194, 136, 0.2), transparent),
    rgba(6, 18, 35, 0.98);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 1.75rem;
  --shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 30px rgba(0, 0, 0, 0.4);
  --spacing-page: clamp(1.5rem, 3vw, 3rem);
  --max-width: 1120px;
  --transition-fast: 160ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #06172a 0, #020813 40%, #000 100%);
  color: #f4f7ff;
  -webkit-font-smoothing: antialiased;
}

/* Layout shell */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.page,
.page-pricing,
.page-supported-devices {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-page);
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom,
      rgba(2, 8, 19, 0.98),
      rgba(2, 8, 19, 0.92),
      transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--spacing-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 210deg,
      var(--mint-500),
      var(--mint-300),
      var(--mint-600),
      var(--mint-500));
  box-shadow: 0 0 0 1px rgba(3, 190, 120, 0.6),
    0 0 25px rgba(97, 194, 136, 0.7);
}

.brand-text-main {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: 0.75rem;
  opacity: 0.7;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.main-nav a {
  text-decoration: none;
  color: #dbe3ff;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mint-500), var(--mint-600));
  color: #021012;
  border-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.85);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: #e5f8f0;
  border-color: rgba(255, 255, 255, 0.09);
}

.btn-ghost:hover {
  background: rgba(12, 87, 61, 0.65);
  border-color: rgba(111, 244, 185, 0.9);
}

/* Mobile nav */

.header-mobile-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  background: rgba(4, 16, 33, 0.9);
  color: #f8fafc;
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
}

/* Simple mobile menu using body class */

body.mobile-menu-open .mobile-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  inset: 56px 0 auto 0;
  background: rgba(3, 11, 25, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  padding: 0.75rem var(--spacing-page) 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu a {
  text-decoration: none;
  color: #e5edff;
  padding: 0.55rem 0.25rem;
  border-radius: 0.6rem;
}

.mobile-menu a:hover {
  background: rgba(15, 118, 110, 0.4);
}

.mobile-menu .mobile-cta-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* Hero section */

.hero {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 1.5rem var(--spacing-page) 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--mint-400);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(to right,
      rgba(22, 163, 74, 0.16),
      rgba(34, 197, 94, 0.02));
  border: 1px solid rgba(45, 212, 191, 0.5);
}

.hero-title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  letter-spacing: -0.04em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--mint-300), var(--mint-600));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.25rem;
  color: #cbd5f5;
  font-size: 0.98rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: #9ca7c8;
}

.hero-meta strong {
  color: #e5edff;
}

/* Hero side card */

.hero-card {
  border-radius: var(--radius-2xl);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right,
      rgba(34, 197, 94, 0.18),
      transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-card-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.7);
  background: rgba(8, 47, 35, 0.9);
  color: #bbf7d0;
}

.hero-card-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

.metric-item-label {
  font-size: 0.75rem;
  color: #9ca7c8;
}

.metric-item-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.metric-item-tag {
  font-size: 0.72rem;
  color: #7dd3fc;
}

.hero-card-footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #a5b4fc;
}

/* Sections */

.section {
  margin: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--mint-400);
}

.section-title {
  margin: 0.35rem 0;
  font-size: 1.4rem;
}

.section-lead {
  font-size: 0.95rem;
  color: #c6d0f3;
  max-width: 36rem;
}

/* Pricing */

.page-hero {
  margin-bottom: 1.75rem;
}

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.page-hero .lead {
  font-size: 0.98rem;
  color: #c7d2fe;
  max-width: 38rem;
}

.page-hero .subtext {
  font-size: 0.85rem;
  color: #94a3b8;
  max-width: 34rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1060px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-card {
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 1.2rem 1.25rem 1.35rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-card.featured {
  border-color: rgba(52, 211, 153, 0.8);
  box-shadow: 0 20px 55px rgba(16, 185, 129, 0.85);
}

.pricing-card .badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(22, 163, 74, 0.96);
  color: #ecfdf5;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.pricing-card h2 {
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.pricing-card .tagline {
  font-size: 0.85rem;
  color: #9ca3af;
}

.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  margin-top: 0.3rem;
}

.pricing-card .currency {
  font-size: 1rem;
  color: #a5b4fc;
}

.pricing-card .amount {
  font-size: 1.7rem;
  font-weight: 600;
}

.pricing-card .period {
  font-size: 0.8rem;
  color: #9ca3af;
}

.pricing-card .subtext {
  font-size: 0.8rem;
  color: #94a3b8;
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 1rem;
  font-size: 0.82rem;
  color: #e5e7eb;
}

.pricing-card .features li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.pricing-card .features li::before {
  content: "•";
  position: absolute;
  left: 0.1rem;
  color: var(--mint-400);
}

.pricing-card .btn {
  margin-top: auto;
}

/* Pricing notes */

.pricing-notes {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.2rem 1.25rem;
  background: radial-gradient(circle at top left,
      rgba(148, 163, 184, 0.18),
      transparent),
    rgba(15, 23, 42, 0.95);
}

.pricing-notes h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.pricing-notes ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* Supported devices */

.page-supported-devices .device-intro {
  margin-bottom: 1.8rem;
}

.device-intro p {
  font-size: 0.94rem;
  color: #cbd5f5;
  max-width: 40rem;
}

.device-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 1080px) {
  .device-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.2rem;
  }

  .device-brands-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.device-brand-card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 1rem 1.1rem;
}

.device-brand-card h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.device-brand-card p {
  font-size: 0.82rem;
  color: #9ca7c8;
  margin: 0 0 0.5rem;
}

.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: #e5e7eb;
  max-height: 220px;
  overflow-y: auto;
}

.device-list.compact {
  max-height: none;
}

.device-list li {
  padding: 0.07rem 0;
}

.device-cta {
  margin: 2.2rem 0 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(52, 211, 153, 0.6);
  background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.15),
      rgba(8, 47, 73, 0.9));
  padding: 1rem 1.2rem;
}

.device-cta h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.device-cta p {
  margin: 0.1rem 0 0.7rem;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  padding: 1rem var(--spacing-page) 1.5rem;
  background: rgba(2, 6, 23, 0.96);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #e5f8f0;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Generic content defaults */

h1,
h2,
h3,
h4 {
  font-weight: 600;
}

p {
  line-height: 1.6;
}