/* Somerled design tokens — Trust Navy conversion palette + light/dark */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root,
html[data-theme="light"] {
  --navy: #12304A;
  --bg: #F7F8FA;
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEF1F4;
  --text: #1F2933;
  --muted: #5B6B7A;
  --faint: #8A96A3;
  --accent: #F97316;
  --accent-dim: #EA580C;
  --accent-glow: rgba(249, 115, 22, 0.28);
  --brand: #12304A;
  --brand-soft: #1A4060;
  --teal: #0E7490;
  --ok: #16A34A;
  --border: #D8DEE6;
  --border-strong: #B8C2CE;
  --danger: #DC2626;
  --header-bg: rgba(247, 248, 250, 0.88);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1080px;
  --max-narrow: 720px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 12px 40px rgba(18, 48, 74, 0.08);
  --hero-glow-a: rgba(18, 48, 74, 0.06);
  --hero-glow-b: rgba(249, 115, 22, 0.06);
  --img-well: radial-gradient(circle at 50% 40%, #E8EEF4 0%, #F7F8FA 70%);
  --img-frame: #E2E8F0;
}

html[data-theme="dark"] {
  --navy: #8BB4D9;
  --bg: #0B1220;
  --bg-elevated: #111A2B;
  --surface: #152033;
  --surface-2: #1B2940;
  --text: #E8EEF4;
  --muted: #9AA8B8;
  --faint: #6B7A8C;
  --accent: #F97316;
  --accent-dim: #FB923C;
  --accent-glow: rgba(249, 115, 22, 0.32);
  --brand: #E8EEF4;
  --brand-soft: #B8D0E8;
  --teal: #4ECDC4;
  --ok: #22C55E;
  --border: #243247;
  --border-strong: #334861;
  --danger: #F87171;
  --header-bg: rgba(11, 18, 32, 0.88);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --hero-glow-a: rgba(249, 115, 22, 0.08);
  --hero-glow-b: rgba(139, 180, 217, 0.06);
  --img-well: radial-gradient(circle at 50% 40%, #1A2740 0%, #0B1220 70%);
  --img-frame: rgba(255, 255, 255, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--hero-glow-a), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, var(--hero-glow-b), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #f5d078; text-decoration: underline; }
code, pre { font-family: var(--mono); font-size: 0.88em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap { width: min(100% - 2.25rem, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.25rem, var(--max-narrow)); margin-inline: auto; }

/* —— Header —— */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .mark {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  display: inline-block;
  margin-right: 0.15rem;
  align-self: center;
}
.brand .accent { color: var(--accent); font-weight: 600; }
.brand-sub {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 0.15rem;
}
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
  flex-wrap: wrap;
}
.nav-cluster a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-cluster a:hover,
.nav-cluster a[aria-current="page"] { color: var(--accent); }
.nav-cluster a.ext {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  border: 1px solid var(--border);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.nav-cluster a.ext:hover {
  border-color: var(--teal);
  text-decoration: none;
  color: var(--teal);
}

main { flex: 1; padding: 2.75rem 0 3.5rem; }

/* —— Hero —— */
.hero {
  padding: 1.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero .lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 0 28px var(--accent-glow);
  font-weight: 500;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600;
  padding: 0.72rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  margin-top: 1.15rem;
  margin-right: 0.55rem;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent-dim); color: var(--bg) !important; }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--border-strong);
}
.btn.secondary:hover {
  border-color: var(--accent);
  background: rgba(232, 184, 74, 0.06);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.5rem; }

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.card h2, .card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* —— Placeholders / product media —— */
.placeholder {
  background:
    linear-gradient(145deg, #1a221c 0%, #121612 55%, #2a2410 100%);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.1rem;
  margin: 1rem 0;
  box-shadow: inset 0 0 48px var(--accent-glow);
}
.placeholder code {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--accent);
  word-break: break-all;
  background: transparent;
  border: none;
  padding: 0;
}
.photo-slots { display: grid; gap: 0.85rem; }
@media (min-width: 560px) {
  .photo-slots { grid-template-columns: 1fr 1fr; }
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: -0.02em;
}
.secure-note {
  margin-top: 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 3px solid var(--ok);
  padding: 0.35rem 0 0.35rem 0.85rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}
.prose h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose p { max-width: 42rem; }

.section-title {
  font-size: 1.35rem;
  margin: 0 0 1.1rem;
  letter-spacing: -0.015em;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg-elevated);
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}

.teaser-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .teaser-band {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}
.teaser-band .glow-orb {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 60%, var(--accent-glow), transparent 55%),
    linear-gradient(160deg, #1e2620, #0c0e0d);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Product images */
.product-hero,
.photo-slot,
.card-thumb {
  display: block;
  margin: 1.25rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1218;
  border: 1px solid rgba(255,255,255,0.08);
}
.product-hero img,
.photo-slot img,
.card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #1a2230 0%, #0b0e14 70%);
}
.photo-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.photo-slot figcaption {
  padding: 0.5rem 0.75rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.card-thumb {
  margin: 0.85rem 0;
}
.card-thumb img {
  max-height: 220px;
}

.product-logo {
  margin: 0 0 0.75rem;
}
.product-logo img {
  display: block;
  width: auto;
  height: 72px;
  object-fit: contain;
}


/* Theme toggle — top-right of header (end of nav row) */
.theme-toggle {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.theme-toggle-icon { font-size: 1rem; line-height: 1; }
html[data-theme="light"] .theme-toggle-sun { display: none; }
html[data-theme="dark"] .theme-toggle-moon { display: none; }

h1, h2, h3, .section-title { color: var(--brand); }
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .section-title { color: var(--text); }

.brand { color: var(--brand) !important; }
.brand:hover { text-decoration: none !important; color: var(--brand) !important; }
.brand .accent { color: var(--accent) !important; }

.btn { color: #fff !important; }
.btn:hover { color: #fff !important; background: var(--accent-dim) !important; }
.btn.secondary { color: var(--brand-soft) !important; border-color: var(--border-strong); }
.btn.secondary:hover {
  color: var(--accent) !important;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.site-header { background: var(--header-bg) !important; }

.product-hero,
.photo-slot,
.card-thumb {
  background: var(--img-frame) !important;
  border-color: var(--border) !important;
}
.product-hero img,
.photo-slot img,
.card-thumb img {
  background: var(--img-well) !important;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
/* White outline icon: as-is on dark; navy tint on light */
html[data-theme="light"] .brand-icon {
  filter: brightness(0) saturate(100%) invert(14%) sepia(28%) saturate(1800%) hue-rotate(175deg) brightness(0.95);
}
html[data-theme="dark"] .brand-icon {
  filter: none;
}

.product-logo--white-icon {
  margin: 0 0 0.5rem;
}
.product-logo--white-icon img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}
html[data-theme="light"] .product-logo--white-icon img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(28%) saturate(1800%) hue-rotate(175deg) brightness(0.95);
}
html[data-theme="dark"] .product-logo--white-icon img {
  filter: none;
}

.hero-with-media {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-with-media {
    grid-template-columns: 1.2fr 1fr;
  }
}
.hero-lifestyle,
.product-lifestyle {
  margin: 1rem 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0B1220;
  box-shadow: var(--shadow);
}
.hero-lifestyle { margin: 0; }
.lifestyle-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #0B1220;
}
.hero-lifestyle figcaption,
.product-lifestyle figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
