/* Smartgeek shared theme — dark / high-contrast, zero trackers */
@font-face {
  font-family: "Nexa";
  src: url("../fonts/nexa_bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("../fonts/nexa_light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #0070f3;
  --accent-hover: #0058c8;
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --header-bg: #ffffff;
  --header-text: #1e293b;
  --canada: #c8102e;
  --radius: 6px;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Nexa", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #60a5fa; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text);
}
p { margin: 0 0 1rem; }

.sg-container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.sg-container--narrow { width: min(100% - 2.5rem, 720px); }

/* Header */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid #e5e5e5;
  min-height: var(--header-h);
}
.sg-header__inner {
  width: min(100% - 1.5rem, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}
.sg-logo img { height: 40px; width: auto; }
.sg-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sg-nav a {
  color: var(--header-text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  white-space: nowrap;
}
.sg-nav a:hover,
.sg-nav a[aria-current="page"] { color: var(--accent); }
.sg-nav__tel { font-weight: 700 !important; }
.sg-canada-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  color: var(--canada) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sg-canada-pill img { height: 14px; width: 14px; }
.sg-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.sg-nav-toggle span {
  display: block;
  height: 2px;
  background: #0f172a;
  transition: transform 0.2s, opacity 0.2s;
}
.sg-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sg-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sg-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .sg-nav-toggle { display: flex; }
  .sg-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
  .sg-nav.is-open { display: flex; }
  .sg-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }
  .sg-header { position: sticky; }
  .sg-header__inner { position: relative; }
}

/* Hero */
.sg-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
  text-align: center;
  padding: 4.5rem 0 4rem;
}
.sg-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transform: scale(1.02);
}
.sg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.72) 55%, rgba(10,10,10,0.95) 100%);
  pointer-events: none;
}
.sg-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 860px);
  margin-inline: auto;
}
.sg-eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,112,243,0.18);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sg-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  margin-bottom: 1.15rem;
  text-wrap: balance;
}
.sg-hero__sub {
  color: #d1d5db;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.75;
  margin: 0 auto 1.75rem;
  max-width: 62ch;
}
.sg-hero--compact { min-height: min(72vh, 620px); }

/* Buttons */
.sg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sg-btn--primary {
  background: var(--accent);
  color: #fff !important;
}
.sg-btn--primary:hover { background: var(--accent-hover); color: #fff !important; }
.sg-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.45);
}
.sg-btn--ghost:hover { border-color: #fff; color: #fff !important; }
.sg-btn--dark-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border-strong);
}
.sg-btn--dark-ghost:hover { border-color: var(--accent); color: #fff !important; }

/* Sections */
.sg-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}
.sg-section--tight { padding: 3.5rem 0; }
.sg-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.sg-section__title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin-bottom: 1rem;
  text-align: center;
}
.sg-section__lead {
  color: var(--text-muted);
  max-width: 70ch;
  margin: 0 auto 2.25rem;
  text-align: center;
  font-size: 1.05rem;
}
.sg-liner {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 2rem;
}

/* Cards / grids */
.sg-grid {
  display: grid;
  gap: 1.25rem;
}
.sg-grid--3 { grid-template-columns: 1fr; }
.sg-grid--4 { grid-template-columns: 1fr; }
.sg-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .sg-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .sg-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .sg-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sg-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.sg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sg-card img.sg-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.sg-card img.sg-card__img--square {
  width: 120px;
  height: 120px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}
.sg-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.sg-card p,
.sg-card .sg-card__body {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
  flex: 1;
}
.sg-meta { margin-top: 0.85rem; color: var(--text-dim); font-size: 0.92rem; }
.sg-meta strong {
  display: block;
  color: #e2e8f0;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Timeline */
.sg-week {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  margin-bottom: 0.75rem;
}

/* Media split */
.sg-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .sg-split { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; }
  .sg-split--reverse { direction: rtl; }
  .sg-split--reverse > * { direction: ltr; }
}
.sg-split img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Tables */
.sg-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--bg-elevated);
}
.sg-table th,
.sg-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  vertical-align: top;
}
.sg-table th {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}
.sg-table td { color: #cbd5e1; }
.sg-table tr:last-child td { border-bottom: none; }
.sg-table strong { color: #f8fafc; }

/* Why list */
.sg-why {
  counter-reset: why;
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
  margin-left: 0;
}
@media (min-width: 900px) {
  .sg-why { grid-template-columns: 1fr 1fr; }
}
.sg-why li {
  counter-increment: why;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.15rem 1.15rem 1.15rem 3.25rem;
  list-style: none;
}
.sg-why li::before {
  content: counter(why);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
}
.sg-why strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #f8fafc;
}
.sg-why p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form */
.sg-form {
  margin-top: 1.5rem;
}
.sg-form__grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .sg-form__grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
}
.sg-form label.sg-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.sg-form input[type="text"],
.sg-form input[type="email"],
.sg-form select,
.sg-form textarea {
  width: 100%;
  min-height: 48px;
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  font: inherit;
  border-radius: 0;
}
.sg-form select option { background: #111; }
.sg-form textarea { min-height: 140px; resize: vertical; }
.sg-form__checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.sg-form__checks label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}
.sg-form__checks input[type="checkbox"] { margin-top: 0.25rem; }
.sg-form__math {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.sg-form__math input {
  width: 3.5rem !important;
  min-height: 40px !important;
  margin: 0 !important;
}
.sg-form__msg {
  margin-top: 1rem;
  display: none;
}
.sg-form__msg.is-ok { color: #22c55e; display: block; }
.sg-form__msg.is-err { color: #ef4444; display: block; }
.sg-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Footer */
.sg-footer {
  background: #050505;
  border-top: 1px solid #222;
  padding: 2.5rem 0;
  text-align: center;
}
.sg-footer p { color: #e2e8f0; margin-bottom: 0.75rem; }
.sg-footer__note { color: var(--text-dim) !important; font-size: 0.95rem; max-width: 60ch; margin: 0.5rem auto; }
.sg-privacy {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #555;
  text-transform: uppercase;
}
.sg-privacy a { color: #666; }

/* Utilities */
.sg-center { text-align: center; }
.sg-muted { color: var(--text-muted); }
.sg-contact-line {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text) !important;
  margin: 0.35rem 0;
}
.sg-contact-line:hover { color: var(--accent) !important; }
.sg-product-shot {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  background: #111;
}

/* Store */
.sg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1.75rem;
}
.sg-filter {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.sg-filter.is-active,
.sg-filter:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(0,112,243,0.15);
}
.sg-store-card__link { color: inherit; display: block; }
.sg-store-card__link:hover h3 { color: #93c5fd; }
.sg-store-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.sg-store-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  padding: 0.15rem 0.45rem;
}
.sg-store-badge--status { color: #86efac; }
.sg-store-price {
  color: #e2e8f0 !important;
  font-weight: 700;
  margin-top: 0.75rem !important;
}
.sg-feature-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
}
.sg-feature-list li { margin-bottom: 0.55rem; }

@media (max-width: 600px) {
  .sg-actions .sg-btn { width: 100%; }
  .sg-section { padding: 3.25rem 0; }
}
