/* ============================================================
   HAKEA LABS — Global Stylesheet
   Premium minimal design system
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colours — Cyan / Blue / Purple system */
  --brand-bg:       #0a0e14;
  --brand-surface:  #12161e;
  --brand-border:   #1e2530;
  --brand-text:     #e8edf5;
  --brand-muted:    #8b94a5;
  --brand-cyan:     #2EC4B6;
  --brand-blue:     #3AB0D1;
  --brand-purple:   #8947A6;
  --brand-accent:   #3AB0D1;
  --brand-accent-soft: rgba(58,176,209,0.10);
  --brand-glow:     rgba(46,196,182,0.20);
  --brand-gradient: linear-gradient(135deg, #2EC4B6, #3AB0D1, #8947A6);

  /* TeamLens Palette (Green / Teal) */
  --tl-bg:          #f7faf9;
  --tl-surface:     #ffffff;
  --tl-border:      #d9e5e2;
  --tl-text:        #1b2320;
  --tl-muted:       #516058;
  --tl-accent:      #3a9a8c;
  --tl-accent-soft: rgba(58,154,140,0.08);

  /* LifeLens Palette (Blue / Slate) */
  --ll-bg:          #f8f9fc;
  --ll-surface:     #ffffff;
  --ll-border:      #dde1ea;
  --ll-text:        #1b1f2e;
  --ll-muted:       #586069;
  --ll-accent:      #4a6cf7;
  --ll-accent-soft: rgba(74,108,247,0.08);
  --ll-coral:       #d4816b;

  /* Magpie — capture-first home inventory. Sage on warm paper. */
  --mp-bg:          #f4eee2;
  --mp-surface:     #fbf7ec;
  --mp-border:      #e0d7c2;
  --mp-text:        #1f2530;
  --mp-muted:       #5b6470;
  --mp-accent:      #4f8270;
  --mp-accent-soft: rgba(79,130,112,0.10);

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-heading: 'Montserrat', 'Inter', -apple-system, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing Scale */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;

  /* Layout */
  --max-width: 1120px;
  --content-padding: 1.25rem;
}

@media (min-width: 768px) {
  :root { --content-padding: 2rem; }
}
@media (min-width: 1024px) {
  :root { --content-padding: 2.5rem; }
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero content visible immediately on load — fast staggered fade */
.hero .fade-in {
  opacity: 0;
  animation: heroFadeIn 0.5s var(--ease) forwards;
}
.hero .fade-in:nth-child(1) { animation-delay: 0s; }
.hero .fade-in:nth-child(2) { animation-delay: 0.1s; }
.hero .fade-in:nth-child(3) { animation-delay: 0.2s; }
.hero .fade-in:nth-child(4) { animation-delay: 0.3s; }
.hero .fade-in:nth-child(5) { animation-delay: 0.4s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

/* Theme variants set by page */
.nav-dark {
  background: rgba(14,17,23,0.85);
  border-bottom-color: var(--brand-border);
}
.nav-light {
  background: rgba(255,255,255,0.85);
  border-bottom-color: #e5e7eb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-logo svg { display: none; }
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Footer wordmark — matches header style */
.footer-brand .nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-xl);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { opacity: 1; }

/* Ensure nav items inherit page text colour */
.nav-dark .nav-link,
.nav-dark .nav-dropdown-toggle { color: var(--brand-text); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.875rem; font-weight: 500; opacity: 0.7;
  transition: opacity var(--duration) var(--ease);
  cursor: pointer;
}
.nav-dropdown-toggle:hover { opacity: 1; }
.nav-dropdown-toggle svg {
  width: 12px; height: 12px;
  transition: transform var(--duration) var(--ease);
}
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -12px;
  min-width: 160px;
  padding: var(--sp-sm) 0;
  border-radius: var(--radius-md);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--duration) var(--ease);
  z-index: 10;
}
.nav-dark .nav-dropdown-menu {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-light .nav-dropdown-menu {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav-dropdown-item:hover {
  opacity: 1;
}
.nav-dark .nav-dropdown-item:hover { background: rgba(255,255,255,0.05); }
.nav-light .nav-dropdown-item:hover { background: rgba(0,0,0,0.03); }

/* Mobile Menu */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
@media (min-width: 768px) {
  .nav-hamburger { display: none; }
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}
.nav-dark .nav-hamburger span { background: var(--brand-text); }
.nav-light .nav-hamburger span { background: var(--tl-text); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  padding: var(--sp-xl) var(--content-padding);
  display: flex; flex-direction: column; gap: var(--sp-md);
  overflow-y: auto;
  background: #fff;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.35s var(--ease);
  z-index: 99;
}
.mobile-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.page-brand .mobile-menu { background: var(--brand-bg); }

.mobile-menu a {
  display: block;
  padding: var(--sp-md) 0;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
  color: var(--tl-text);
  transition: opacity var(--duration) var(--ease);
}
.page-brand .mobile-menu a { border-color: var(--brand-border); color: var(--brand-text); }

.mobile-menu .mobile-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: var(--sp-md);
  color: var(--tl-muted);
}
.page-brand .mobile-menu .mobile-label { color: var(--brand-muted); }

/* ============================================================
   HERO SECTIONS
   ============================================================ */

.hero {
  padding: calc(64px + var(--sp-3xl)) 0 var(--sp-4xl);
  text-align: center;
}

/* Brand page hero — content visible immediately, no large gap */
.page-brand .hero {
  padding: calc(64px + var(--sp-lg)) 0 var(--sp-2xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--sp-xl);
}

/* Product name — large branded display above tagline */
.hero-product-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-sm);
}

/* Tagline becomes secondary when product name is present */
.hero-product-name + h1 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 600px;
  margin: 0 auto var(--sp-lg);
  opacity: 0.75;
}

/* Product name colour tinting */
.page-tl .hero-product-name { color: var(--tl-accent); }
.page-ll .hero-product-name { color: var(--ll-accent); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin: 0 auto var(--sp-lg);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto var(--sp-2xl);
}

/* Tighten hero on pages where the subtitle is the final element
   (no CTA cluster underneath) — homepage after the Explore-buttons
   removal, primarily. Self-correcting: if a button cluster comes
   back, this rule stops applying. */
.hero .container > p:last-child {
  margin-bottom: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #2EC4B6, #3AB0D1);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #28b5a8, #339fc0);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(46,196,182,0.3);
}

.btn-secondary {
  border: 1px solid;
}
.btn-secondary.dark {
  border-color: rgba(137,71,166,0.3);
  color: var(--brand-text);
}
.btn-secondary.dark:hover {
  border-color: rgba(137,71,166,0.5);
  background: rgba(137,71,166,0.06);
}
.btn-secondary.light {
  border-color: var(--tl-border);
  color: var(--tl-text);
}
.btn-secondary.light:hover {
  border-color: var(--tl-muted);
  background: rgba(0,0,0,0.03);
}

.btn-tl {
  background: var(--tl-accent);
  color: #fff;
}
.btn-tl:hover {
  background: #2d8577;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58,154,140,0.25);
}

.btn-ll {
  background: var(--ll-accent);
  color: #fff;
}
.btn-ll:hover {
  background: #3b5ce0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,108,247,0.25);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: var(--sp-4xl) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-md);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-md);
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 600px;
}

/* Product page branded headings */
.page-tl .hero h1,
.page-ll .hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page-tl .section-title,
.page-ll .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page-tl .privacy-banner h3,
.page-ll .privacy-banner h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

/* ============================================================
   CARDS
   ============================================================ */

.card-grid {
  display: grid;
  gap: var(--sp-lg);
}
.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  padding: var(--sp-xl);
  border-radius: var(--radius-lg);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.card:hover {
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-sm);
}

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   PRODUCT CARDS (Home page)
   ============================================================ */

.product-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.product-card:hover {
  transform: translateY(-3px);
}

/* Product display heading — branded Gloock font */
.product-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}

.product-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--sp-xl);
}

/* ============================================================
   FEATURE SECTIONS (Product pages)
   ============================================================ */

.feature-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--sp-2xl);
}

.privacy-banner {
  padding: var(--sp-2xl);
  border-radius: var(--radius-xl);
  text-align: center;
}

.privacy-banner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--sp-md);
}

.privacy-banner p {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page {
  padding: calc(64px + var(--sp-3xl)) 0 var(--sp-4xl);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-sm);
}

.legal-content .last-updated {
  font-size: 0.85rem;
  margin-bottom: var(--sp-2xl);
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: var(--sp-3xl) 0 var(--sp-xl);
  border-top: 1px solid;
}

.footer-grid {
  display: grid;
  gap: var(--sp-2xl);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-3xl);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: var(--sp-md);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-md);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: var(--sp-xs) 0;
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease);
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-xl);
  border-top: 1px solid;
  font-size: 0.8rem;
}

/* ============================================================
   PAGE THEMES
   ============================================================ */

/* Brand / Home (Dark) */
.page-brand {
  background: var(--brand-bg);
  color: var(--brand-text);
  position: relative;
}

/* Ambient background glow */
.page-brand::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(46,196,182,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-brand::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -15%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(137,71,166,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Ensure content sits above ambient glow, but don't override fixed nav */
.page-brand > *:not(.site-nav):not(.mobile-menu) { position: relative; z-index: 1; }

/* Brand hero — geometric sans heading with gradient text */
.page-brand .hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e8edf5 0%, #3AB0D1 50%, #2EC4B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-brand .section-title {
  font-family: var(--font-heading);
  font-weight: 700;
}

.page-brand .hero p,
.page-brand .section-subtitle { color: var(--brand-muted); }
.page-brand .section-label { color: var(--brand-cyan); }
.page-brand .hero-badge {
  background: rgba(46,196,182,0.08);
  color: var(--brand-cyan);
  border: 1px solid rgba(46,196,182,0.15);
}

/* Brand cards — glass treatment with gradient border */
.page-brand .card {
  background: rgba(18,22,30,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--brand-border);
  position: relative;
}
.page-brand .card:hover {
  border-color: rgba(46,196,182,0.25);
  box-shadow: 0 8px 40px rgba(46,196,182,0.08), 0 2px 12px rgba(0,0,0,0.3);
}
.page-brand .card p { color: var(--brand-muted); }
/* Brand homepage — coloured icon variants (Hakea palette).
   Six gradient-tinted icon boxes pulling from cyan / blue / purple /
   magenta / teal / lavender. Scoped to .page-brand so product pages
   keep their per-app accent treatment. */
.page-brand .card-icon {
  width: 52px;
  height: 52px;
  background: rgba(46,196,182,0.08);
  border: 1px solid rgba(46,196,182,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-brand .card:hover .card-icon { transform: translateY(-1px); }

.page-brand .card-icon.icon-cyan {
  background: linear-gradient(135deg, rgba(46,196,182,0.30), rgba(46,196,182,0.12));
  border-color: rgba(46,196,182,0.45);
  box-shadow: 0 4px 16px rgba(46,196,182,0.18);
}
.page-brand .card-icon.icon-blue {
  background: linear-gradient(135deg, rgba(58,176,209,0.32), rgba(58,176,209,0.12));
  border-color: rgba(58,176,209,0.45);
  box-shadow: 0 4px 16px rgba(58,176,209,0.18);
}
.page-brand .card-icon.icon-purple {
  background: linear-gradient(135deg, rgba(137,71,166,0.38), rgba(137,71,166,0.14));
  border-color: rgba(137,71,166,0.55);
  box-shadow: 0 4px 16px rgba(137,71,166,0.20);
}
.page-brand .card-icon.icon-magenta {
  background: linear-gradient(135deg, rgba(229,93,170,0.32), rgba(192,38,211,0.16));
  border-color: rgba(229,93,170,0.50);
  box-shadow: 0 4px 16px rgba(229,93,170,0.20);
}
.page-brand .card-icon.icon-teal {
  background: linear-gradient(135deg, rgba(26,168,176,0.32), rgba(46,196,182,0.14));
  border-color: rgba(26,168,176,0.45);
  box-shadow: 0 4px 16px rgba(26,168,176,0.18);
}
.page-brand .card-icon.icon-lavender {
  background: linear-gradient(135deg, rgba(167,139,250,0.32), rgba(124,92,252,0.14));
  border-color: rgba(167,139,250,0.50);
  box-shadow: 0 4px 16px rgba(167,139,250,0.18);
}
.page-brand .card h3 { color: var(--brand-text); }
.page-brand .product-card.tl-card {
  background: linear-gradient(135deg, #1a2a26 0%, #1e2e28 100%);
  border: 1px solid rgba(58,154,140,0.2);
}
.page-brand .product-card.tl-card:hover {
  box-shadow: 0 12px 40px rgba(58,154,140,0.15);
}
.page-brand .product-card.tl-card h3 { color: #6ee7b7; }
.page-brand .product-card.tl-card p { color: var(--brand-muted); }

.page-brand .product-card.ll-card {
  background: linear-gradient(135deg, #1a2232 0%, #1e283b 100%);
  border: 1px solid rgba(74,108,247,0.2);
}
.page-brand .product-card.ll-card:hover {
  box-shadow: 0 12px 40px rgba(74,108,247,0.15);
}
.page-brand .product-card.ll-card h3 { color: #93b5fd; }
.page-brand .product-card.ll-card p { color: var(--brand-muted); }

.page-brand .privacy-banner {
  background: rgba(18,22,30,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--brand-border);
}
.page-brand .privacy-banner h3 {
  font-family: var(--font-heading);
}
.page-brand .privacy-banner p { color: var(--brand-muted); }

.page-brand .site-footer {
  border-top-color: var(--brand-border);
}
.page-brand .footer-bottom {
  border-top-color: var(--brand-border);
  color: var(--brand-muted);
}
.page-brand .footer-col h4 { color: var(--brand-muted); }

/* TeamLens (Light / Green-Teal) */
.page-tl {
  background: var(--tl-bg);
  color: var(--tl-text);
}
.page-tl .hero p,
.page-tl .section-subtitle { color: var(--tl-muted); }
.page-tl .section-label { color: var(--tl-accent); }
.page-tl .hero-badge {
  background: var(--tl-accent-soft);
  color: var(--tl-accent);
}
.page-tl .card {
  background: var(--tl-surface);
  border: 1px solid var(--tl-border);
}
.page-tl .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.page-tl .card p { color: var(--tl-muted); }
.page-tl .card-icon { background: var(--tl-accent-soft); color: var(--tl-accent); }
.page-tl .feature-img-placeholder {
  background: var(--tl-accent-soft);
  color: var(--tl-accent);
  border: 1px dashed var(--tl-border);
}
.page-tl .privacy-banner {
  background: var(--tl-accent-soft);
  border: 1px solid rgba(58,154,140,0.12);
}
.page-tl .privacy-banner p { color: var(--tl-muted); }

.page-tl .site-footer {
  background: #fff;
  border-top-color: var(--tl-border);
  color: var(--tl-text);
}
.page-tl .footer-bottom {
  border-top-color: var(--tl-border);
  color: var(--tl-muted);
}
.page-tl .footer-col h4 { color: var(--tl-muted); }

.page-tl .nav-link { color: var(--tl-text); }

/* LifeLens (Cool / Blue) */
.page-ll {
  background: var(--ll-bg);
  color: var(--ll-text);
}
.page-ll .hero p,
.page-ll .section-subtitle { color: var(--ll-muted); }
.page-ll .section-label { color: var(--ll-accent); }
.page-ll .hero-badge {
  background: var(--ll-accent-soft);
  color: var(--ll-accent);
}
.page-ll .card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
}
.page-ll .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.page-ll .card p { color: var(--ll-muted); }
.page-ll .card-icon { background: var(--ll-accent-soft); color: var(--ll-accent); }
.page-ll .feature-img-placeholder {
  background: var(--ll-accent-soft);
  color: var(--ll-accent);
  border: 1px dashed var(--ll-border);
}
.page-ll .privacy-banner {
  background: var(--ll-accent-soft);
  border: 1px solid rgba(74,108,247,0.12);
}
.page-ll .privacy-banner p { color: var(--ll-muted); }

.page-ll .site-footer {
  background: #fff;
  border-top-color: var(--ll-border);
  color: var(--ll-text);
}
.page-ll .footer-bottom {
  border-top-color: var(--ll-border);
  color: var(--ll-muted);
}
.page-ll .footer-col h4 { color: var(--ll-muted); }

.page-ll .nav-link { color: var(--ll-text); }

/* ============================================================
   App icons (shared across product pages + homepage cards)
   ------------------------------------------------------------
   Renders the iOS 1024px master at 128px display (256px source,
   2× DPR safe). Rounded-rectangle clip matches iOS app-icon
   convention. Drop-shadow gives the icon presence on light bg
   without needing a separate inset border.
   ============================================================ */
.app-icon {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  vertical-align: middle;
}
.app-icon-lg {
  width: 128px;
  height: 128px;
}
.app-icon-card {
  width: 56px;
  height: 56px;
  border-radius: 20%;
  margin-bottom: var(--sp-md);
  display: block;
}
.hero .app-icon-lg {
  display: block;
  margin: 0 auto var(--sp-lg);
}

/* ============================================================
   Magpie page (sage on warm paper)
   ============================================================ */
.page-mp {
  background: var(--mp-bg);
  color: var(--mp-text);
}
.page-mp .hero-product-name { color: var(--mp-accent); }
.page-mp .hero h1,
.page-mp .section-title { color: var(--mp-text); }
.page-mp .hero p,
.page-mp .section-subtitle { color: var(--mp-muted); }
.page-mp .section-label { color: var(--mp-accent); }
.page-mp .hero-badge {
  background: var(--mp-accent-soft);
  color: var(--mp-accent);
}
.page-mp .card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
}
.page-mp .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.page-mp .card p { color: var(--mp-muted); }
.page-mp .card-icon { background: var(--mp-accent-soft); color: var(--mp-accent); }
.page-mp .feature-img-placeholder {
  background: var(--mp-accent-soft);
  color: var(--mp-accent);
  border: 1px dashed var(--mp-border);
}
.page-mp .privacy-banner {
  background: var(--mp-accent-soft);
  border: 1px solid rgba(79,130,112,0.18);
}
.page-mp .privacy-banner h3 { color: var(--mp-text); }
.page-mp .privacy-banner p  { color: var(--mp-muted); }
.page-mp .site-footer {
  background: #fff;
  border-top-color: var(--mp-border);
  color: var(--mp-text);
}
.page-mp .footer-bottom {
  border-top-color: var(--mp-border);
  color: var(--mp-muted);
}
.page-mp .footer-col h4 { color: var(--mp-muted); }
.page-mp .nav-link { color: var(--mp-text); }

/* Magpie primary button */
.btn-mp {
  background: var(--mp-accent);
  color: #fff;
}
.btn-mp:hover {
  background: #3f6c5b;
}

/* Magpie product card on the homepage (matches tl-card / ll-card pattern) */
.page-brand .product-card.mp-card {
  background: rgba(79,130,112,0.10);
  border-color: rgba(79,130,112,0.20);
}
.page-brand .product-card.mp-card:hover {
  border-color: rgba(79,130,112,0.40);
}
.page-brand .product-card.mp-card h3 { color: #7ab69e; }
.page-brand .product-card.mp-card p  { color: var(--brand-muted); }

/* Legal pages inherit light theme */
.page-legal {
  background: #fafbfc;
  color: #1b1f23;
}
.page-legal .legal-content .last-updated { color: #586069; }
.page-legal .legal-content h2 { color: #1b1f23; }
.page-legal .legal-content p,
.page-legal .legal-content li { color: #3d4852; }
.page-legal .legal-content a { color: #4a6cf7; }

.page-legal .site-footer {
  background: #fff;
  border-top-color: #e1e4e8;
  color: #1b1f23;
}
.page-legal .footer-bottom {
  border-top-color: #e1e4e8;
  color: #586069;
}
.page-legal .footer-col h4 { color: #586069; }

.page-legal .nav-link { color: #1b1f23; }

/* ============================================================
   404 PAGE
   ============================================================ */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-xl);
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-md);
}

.error-page p {
  font-size: 1.1rem;
  margin-bottom: var(--sp-2xl);
}

/* ============================================================
   SUPPORT / CONTACT PAGES
   ============================================================ */

.support-grid {
  display: grid;
  gap: var(--sp-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-item {
  border-bottom: 1px solid;
  padding: var(--sp-lg) 0;
}
.page-legal .faq-item { border-color: #e1e4e8; }

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform var(--duration) var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding-top: var(--sp-md);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #586069;
}

/* Contact / Support page hero */
.page-hero {
  padding: calc(64px + var(--sp-3xl)) 0 var(--sp-xl);
  max-width: 640px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-sm);
  color: #1b1f23;
}

.page-hero p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #586069;
  margin-bottom: var(--sp-2xl);
}

.page-hero::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #3AB0D1, #8947A6);
  border-radius: 1px;
  margin-top: var(--sp-lg);
}

/* Contact cards — premium treatment */
.contact-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2xl);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid #e1e4e8;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.contact-card:hover {
  border-color: #c8ccd2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  color: #1b1f23;
}
.contact-card .contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--sp-md);
}
.contact-card .contact-email a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}
.contact-card .contact-email a:hover { opacity: 0.75; }
.contact-card p {
  font-size: 0.9rem;
  color: #586069;
  line-height: 1.6;
}

.contact-note {
  font-size: 0.9rem;
  color: #586069;
  line-height: 1.6;
}
.contact-note a {
  color: #1b1f23;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-location {
  font-size: 0.85rem;
  color: #8b949e;
  margin-top: var(--sp-xl);
}

/* ============================================================
   SVG ICON SYSTEM (replaces emoji icons)
   ============================================================ */

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  font-size: 0;  /* hide emoji fallback text */
}

.card-icon svg {
  width: 22px; height: 22px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Brand page icons — white pictograms on coloured gradients (V3.10) */
.page-brand .card-icon svg {
  stroke: #fff;
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

/* TL page icons */
.page-tl .card-icon svg { stroke: var(--tl-accent); }

/* LL page icons */
.page-ll .card-icon svg { stroke: var(--ll-accent); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
  padding: calc(64px + var(--sp-4xl)) 0 var(--sp-3xl);
  max-width: 720px;
  margin: 0 auto;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-lg);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: var(--sp-4xl);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: var(--sp-lg);
}

.about-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-top: var(--sp-3xl);
  margin-bottom: var(--sp-lg);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  margin: var(--sp-xl) 0;
}
@media (min-width: 640px) {
  .about-values { grid-template-columns: 1fr 1fr; }
}

.about-value {
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.about-value h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.about-value p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* About page theming (uses legal light base) */
.page-about {
  background: #fafbfc;
  color: #1b1f23;
}
.page-about .about-hero h1 { color: #1b1f23; }
.page-about .about-content p { color: #3d4852; }
.page-about .about-content h2 { color: #1b1f23; }
.page-about .about-value {
  background: #fff;
  border-color: #e1e4e8;
}
.page-about .about-value p { color: #586069; }

.page-about .site-footer {
  background: #fff;
  border-top-color: #e1e4e8;
  color: #1b1f23;
}
.page-about .footer-bottom {
  border-top-color: #e1e4e8;
  color: #586069;
}
.page-about .footer-col h4 { color: #586069; }
.page-about .nav-link { color: #1b1f23; }

/* ============================================================
   PRODUCT MEDIA — Screenshot carousel
   ============================================================ */

.product-media {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto var(--sp-xl);
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.product-media .media-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.product-media .media-slide.active {
  opacity: 1;
}

/* Ken Burns effect — each slide gets a unique animation */
.product-media .media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  animation: none;
}
.product-media .media-slide.active img {
  animation: kb1 5s var(--ease) forwards;
}

/* Alternate Ken Burns directions per slide */
.product-media .media-slide:nth-child(1).active img { animation-name: kb1; }
.product-media .media-slide:nth-child(2).active img { animation-name: kb2; }
.product-media .media-slide:nth-child(3).active img { animation-name: kb3; }
.product-media .media-slide:nth-child(4).active img { animation-name: kb4; }
.product-media .media-slide:nth-child(5).active img { animation-name: kb1; }

@keyframes kb1 {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -1%); }
}
@keyframes kb2 {
  from { transform: scale(1.10) translate(-2%, 0); }
  to   { transform: scale(1) translate(1%, 1%); }
}
@keyframes kb3 {
  from { transform: scale(1) translate(1%, 1%); }
  to   { transform: scale(1.12) translate(-1%, -2%); }
}
@keyframes kb4 {
  from { transform: scale(1.10) translate(0, -1%); }
  to   { transform: scale(1) translate(0, 0); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .product-media .media-slide.active img { animation: none; }
}

.page-tl .product-media {
  background: var(--tl-bg);
  border: 1px solid var(--tl-border);
}

.page-ll .product-media {
  background: var(--ll-bg);
  border: 1px solid var(--ll-border);
}

.media-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.media-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  opacity: 0.25;
  transition: opacity var(--duration) var(--ease);
}
.media-dot.active { opacity: 1; }
.page-tl .media-dot { background: var(--tl-accent); }
.page-ll .media-dot { background: var(--ll-accent); }

/* ============================================================
   APP STORE BADGE PLACEHOLDER
   ============================================================ */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity var(--duration) var(--ease);
}
.appstore-badge:hover { opacity: 0.85; }
.appstore-badge small {
  font-size: 0.65rem;
  font-weight: 400;
  display: block;
  line-height: 1;
}
.appstore-badge span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

/* ============================================================
   Hero app icon — clickable iOS-icon-style square at the top
   of a product hero. Currently used as the hidden entry point
   to the LifeLens micro-game at /lifelens/play/.
   ============================================================ */
.hero-app-icon {
  /* display: block so `margin: 0 auto` actually centres the link */
  display: block;
  width: clamp(96px, 14vw, 140px);
  height: clamp(96px, 14vw, 140px);
  margin: 0 auto var(--sp-lg);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
  cursor: pointer;
  text-decoration: none;
  border-radius: 22%;
}
.hero-app-icon:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 10px 30px rgba(58, 176, 209, 0.20);
}
.hero-app-icon:active {
  transform: scale(1.0) translateY(0);
}
.hero-app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}
