
/* ===============================================================
   Kernels & Cones — Site Chrome (Apple‑inspired) • 2025‑11‑03
   Clean, minimal, high-end visual language with glassy header,
   pill nav, and elegant typography.
   =============================================================== */

:root {
  --header-h: 66px;
  --blue: #0071e3;
  --blue-600: #0a84ff;
  --pink: #d81b60;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text-1: #0a0a0a;
  --text-2: #3a3a3a;
  --muted: #6a6a6a;
  --border: rgba(60,60,67,0.12);
  --border-strong: rgba(60,60,67,0.24);
  --chip: rgba(60,60,67,0.06);
  --blur-strength: 14px;
  --glass: rgba(255,255,255,0.72);
}


@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #111113;
    --text-1: #f5f7fb;
    --text-2: #e6e6e6;
    --muted: #b9b9b9;
    --border: rgba(255,255,255,0.08);
    --chip: rgba(255,255,255,0.08);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text-1);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

.container { width: min(1100px, 92vw); margin-inline: auto; }

.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;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 8px; }

/* =======================
   Header (glassy, sticky)
   ======================= */
.site-header {
  position: sticky;
  top: 0; inset-inline: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: saturate(180%) blur(var(--blur-strength));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-strength));
  }
}
.nav-wrap {
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-inline: 14px;
}
.brand a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-1); font-weight: 700; letter-spacing: .3px;
}
.logo-img { width: 60px; height: 45px; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.08); background: #fff; }

.hide-mobile { display: block; }
.show-mobile { display: none; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }

.nav-links a {
  padding: .48rem .78rem; border-radius: 9999px;
  color: var(--text-2); font-weight: 500;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
}

.nav-links a:hover {
  background-color: var(--chip);
  color: var(--text-1);
}

.nav-links a[aria-current="page"] {
  background-color: color-mix(in srgb, var(--chip) 70%, transparent);
  color: var(--text-1); font-weight: 600;
}


/* CTA buttons (Apple-style primary) */
.button-link, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: .56rem 1rem;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--blue) 32%, #0000);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--blue) 92%, white 8%), var(--blue));
  color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px color-mix(in srgb, var(--blue) 24%, #0000);
  transform: translateZ(0);
  /* removed background from the transition list */
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.button-link:hover, .nav-cta:hover {
  filter: saturate(110%);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px color-mix(in srgb, var(--blue) 30%, #0000);
}

.button-link:active, .nav-cta:active { transform: translateY(1px); }

/* ==============
   Mobile drawer
   ============== */
.mobile-drawer[hidden] { display: none; }
.mobile-drawer.open { display: block; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.18);
  animation: fadeIn .18s ease both;
}
.drawer-content {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(88vw, 340px);
  display: flex; flex-direction: column;
  padding: 28px 22px 22px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top-left-radius: 18px; border-bottom-left-radius: 18px;
  box-shadow: -2px 0 36px rgba(0,0,0,.14);
  animation: slideIn .24s cubic-bezier(.17,.84,.44,1.08) both;
}
@supports (backdrop-filter: blur(8px)) {
  .drawer-content {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
  }
}
.close-drawer {
  position: absolute; top: 10px; right: 12px; font-size: 1.8rem;
  background: none; border: none; color: var(--muted); cursor: pointer;
}
.drawer-menu-list {
  list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 8px;
}
.drawer-menu-list a {
  display: block; padding: 12px 14px; border-radius: 12px;
  color: var(--text-1); text-decoration: none;
}
.drawer-menu-list a:hover { background: var(--chip); }

/* ============
   Responsiveness
   ============ */
@media (max-width: 950px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline-flex; }
}

/* ======
   Footer
   ====== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 28px 0 18px;
  font-size: 0.95rem;
}

/* =========================
   About page (scoped styles)
   ========================= */
.page-about .about-section {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  padding: 48px 6vw;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.94)), url('assets/hero-background-pro.png') center/cover no-repeat;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(0,0,0,.06);
}
.page-about .about-section h1 {
  font-size: clamp(1.8rem, 3.3vw, 2.4rem);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0 0 12px;
  text-wrap: balance;
  text-align: center;
}
.page-about .about-section h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: color-mix(in srgb, var(--blue-600) 90%, #000);
  margin: 0 0 20px;
  text-align: center;
}
.page-about .about-section p {
  font-size: 1.08rem; color: var(--text-2); line-height: 1.7; margin: 0 0 20px;
  text-align: center; text-wrap: balance;
}
.page-about .about-highlight {
  background: linear-gradient(90deg, #FFFDE7, #E1F5FE 85%);
  border-radius: 14px; padding: 18px 20px; margin: 12px auto 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.page-about .about-img {
  display: block; margin: 26px auto 18px; max-width: 200px;
  border-radius: 16px; border: 3px solid #FFD600;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.page-about .about-section a { font-weight: 600; }

/* ========
   Animation
   ======== */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.nav-links li { list-style: none; margin: 0; padding: 0; }


/* === BEGIN: Nutritional & Safety page styles === */
/* =============================
   Page: Nutritional & Safety sheet (printable)
   ============================= */
.page-safety .safety-sheet {
  width: min(1100px, 92vw);
  margin: 46px auto;
  padding: 36px 6vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.page-safety .print-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.page-safety .print-header img {
  width: 54px; height: 54px; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.page-safety .print-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.3vw, 2.1rem);
  letter-spacing: -0.015em;
}
.page-safety .print-header .subtitle {
  margin: 2px 0 0; color: var(--muted);
}
.page-safety .notice {
  border-radius: 12px; padding: 12px 14px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  color: var(--text-2);
}
.page-safety .grid {
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}
@media (max-width: 980px) {
  .page-safety .grid { grid-template-columns: 1fr; }
}
.page-safety .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset;
}
.page-safety .card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.page-safety .facts { margin: 0; }
.page-safety .facts dt {
  font-weight: 600;
  color: var(--text-1);
  margin-top: 10px;
}
.page-safety .facts dd {
  margin: 6px 0 10px 0;
  color: var(--text-2);
}
.page-safety .bullets { margin: 0; padding-left: 1.2rem; }
.page-safety .safety { margin-top: 22px; }
.page-safety .print-footer {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 18px; color: var(--muted); font-size: .95rem;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.page-safety .print-actions { text-align: right; margin-top: 18px; }

/* Print-friendly rules */
@media print {
  @page { margin: 0.5in; }
  .site-header, .mobile-drawer, .print-actions, footer { display: none !important; }
  body { background: #fff !important; }
  .page-safety .safety-sheet { box-shadow: none !important; border-color: #000; }
  .page-safety .card, .page-safety .notice { break-inside: avoid; page-break-inside: avoid; }
  .page-safety .grid { grid-template-columns: 1fr; }
  a { color: #000 !important; text-decoration: none !important; }
}
/* === END: Nutritional & Safety page styles === */


/* === LOCKED HEADER OVERRIDES === */
.site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
body { padding-top: var(--header-h, 66px); }
/* Ensure drawer sits above header */
.drawer-overlay { z-index: 1200; }
.drawer-content { z-index: 1201; }
/* Print: remove body top padding when header is hidden */
@media print {
  body { padding-top: 0 !important; }
}


/* === APPLE-GLASS HEADER FIXES + DARK MODE === */

/* Glass tint variables (light/dark) */
:root { --glass: rgba(255,255,255,0.72); }
@media (prefers-color-scheme: dark) { :root { --glass: rgba(17,17,19,0.65); } }

/* Make header glassy but not fully transparent; add blur where supported */
.site-header {
  background-color: var(--glass) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 24px rgba(0,0,0,.04);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header {
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }
}

/* Ensure hamburger visibility and layout */
.hide-mobile { display: block; }
.show-mobile { display: none; }


@media (prefers-color-scheme: dark) {
  
}

/* 3-line hamburger using one span + pseudos */







/* Ensure mobile rules definitely apply */
@media (max-width: 950px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: inline-flex !important; }
}

/* === HAMBURGER VISIBILITY FIX === */
.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--text-1); /* bars use currentColor */
  cursor: pointer;
  z-index: 2;
}
@media (prefers-color-scheme: dark) {
  .nav-toggle { background: rgba(32,32,34,0.6); color: var(--text-1); }
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background-color: currentColor; 
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease; 
}

.nav-toggle::before { transform: translate(-50%, -50%) translateY(-7px); }
.nav-toggle::after  { transform: translate(-50%, -50%) translateY(7px);  }
.nav-toggle.open span { opacity: 0; }
.nav-toggle.open::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.open::after  { transform: translate(-50%, -50%) rotate(-45deg); }


/* === SAFETY PAGE VISIBILITY & LAYOUT FIXES (screen) === */
:root { --border-strong: rgba(60,60,67,0.24); }
@media (prefers-color-scheme: dark) { :root { --border-strong: rgba(255,255,255,0.18); } }

@media screen {
  .page-safety .print-actions { 
    display: flex !important; 
    justify-content: flex-end; 
    gap: 10px; 
    margin-top: 18px; 
  }
}

.page-safety .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  .page-safety .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .page-safety .grid { grid-template-columns: 1fr; }
}

.page-safety .card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset;
}
/* Force dark-mode overlay even if an old inline style is still on the section */
@media (prefers-color-scheme: dark) {
  .page-about .about-section {
    background: linear-gradient(
      180deg,
      rgba(18,18,20,0.92),
      rgba(18,18,20,0.92)
    ),
    url('assets/hero-background-pro.png') center/cover no-repeat !important;
  }
}
/* === About highlight: force readable background & text === */
/* Tweak these two numbers to make the box more/less opaque */
:root {
  --about-highlight-bg-light: rgba(255, 255, 255, 0.94); /* raise toward 1.00 for more solid */
}
@media (prefers-color-scheme: dark) {
  :root {
    --about-highlight-bg-dark: rgba(18, 18, 20, 0.92);   /* raise toward 1.00 for more solid */
  }
}

.page-about .about-highlight {
  /* remove the old gradient and apply a solid glassy fill */
  background: var(--about-highlight-bg-light) !important; /* overrides any earlier 'background' */
  color: var(--text-1) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 860px;
  margin-left: auto; margin-right: auto;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .page-about .about-highlight {
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
  }
}

@media (prefers-color-scheme: dark) {
  .page-about .about-highlight {
    background: var(--about-highlight-bg-dark) !important; /* solid dark glass */
    color: var(--text-1) !important; /* in dark mode var(--text-1) is light, so strong contrast */
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }
}
/* =============================
   Page: Service Area (light/dark)
   ============================= */
.page-service .service-card {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  padding: 48px 6vw;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.94));
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(0,0,0,.06);
}
.page-service h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 0 10px;
  color: var(--text-1);
}
.page-service .lead {
  text-align: center;
  color: var(--text-2);
  margin: 0 0 24px;
  font-size: 1.08rem;
}
.page-service .service-map {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
  margin: 6px 0 24px;
}
@media (max-width: 700px) {
  .page-service .service-map { height: 48vw; min-height: 160px; max-height: 260px; }
}

.page-service .service-list {
  text-align: center;
  color: var(--text-2);
  font-size: 1.05rem;
}
.page-service .service-list ul {
  display: inline-block;
  text-align: left;
  margin: 10px auto 0;
  padding-left: 18px;
}

.page-service .maps-actions { text-align: center; margin-top: 18px; }
.page-service .maps-btn { min-width: 220px; }

/* Dark mode overlay to keep text readable over the hero backdrop */
@media (prefers-color-scheme: dark) {
  .page-service .service-card {
    background: linear-gradient(180deg, rgba(18,18,20,.92), rgba(18,18,20,.92));
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
  }
}
/* =============================
   Page: Service Area (GTA, Apple-style)
   ============================= */
.page-service .service-card {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  padding: 48px 6vw;
  background-color: rgba(255,255,255,.94);
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .page-service .service-card {
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }
}
@media (prefers-color-scheme: dark) {
  .page-service .service-card {
    background-color: rgba(18,18,20,.92);
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
  }
}

/* Hero */
.page-service .service-hero h1 {
  text-align: center;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text-1);
}
.page-service .service-hero .lead {
  text-align: center;
  color: var(--text-2);
  margin: 0 0 22px;
  font-size: 1.08rem;
}

/* GTA chip list */
.page-service .chip-list {
  list-style: none; margin: 16px auto 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 980px;
}
.page-service .chip {
  display: inline-flex; align-items: center; padding: 8px 12px;
  border-radius: 9999px; border: 1px solid var(--border);
  background-color: var(--chip);
  color: var(--text-1);
  font-weight: 500; font-size: .95rem;
}

/* Map card */
.page-service .service-map-card .service-map {
  width: 100%; height: 360px; border: 0; border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,.08); margin: 6px 0 22px;
}
.page-service .service-map-card .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* Regions grid */
.page-service .service-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(4,1fr);
}
.page-service .service-grid .card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.page-service .service-grid .card h2 {
  margin: 0 0 8px; font-size: 1.1rem; color: var(--text-1);
}
.page-service .service-grid .list {
  margin: 0; padding-left: 18px; color: var(--text-2);
}
.page-service .service-grid .note {
  grid-column: 1 / -1; text-align: center; margin: 6px 0 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1100px) { .page-service .service-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px)  { 
  .page-service .service-grid { grid-template-columns: 1fr; }
  .page-service .service-map-card .service-map { height: 48vw; min-height: 160px; max-height: 260px; }
}
/* =============================
   Page: Terms (Apple-style)
   ============================= */
.page-terms .terms-card {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  padding: 48px 6vw;
  background-color: rgba(255,255,255,.94);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 32px rgba(0,0,0,.06);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .page-terms .terms-card {
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }
}

/* Hero overlay reusing your hero art */
.page-terms .terms-hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.86)),
    url('assets/hero-background-pro.png') center/cover no-repeat;
  text-align: center;
}
.page-terms .terms-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 8px; color: var(--text-1);
}
.page-terms .terms-meta { color: var(--muted); margin: 0 0 6px; }
.page-terms .terms-hero .lead { color: var(--text-2); margin: 0; }

/* Grid: content + sticky TOC */
.page-terms .terms-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 18px;
}
.page-terms .content h2 {
  margin: 20px 0 8px;
  font-size: 1.2rem;
  color: var(--text-1);
}
.page-terms .content p, .page-terms .content li {
  color: var(--text-2);
  line-height: 1.65;
}
.page-terms .content ul { padding-left: 18px; }

.page-terms .toc {
  position: relative;
}
.page-terms .toc-card {
  position: sticky;
  top: calc(var(--header-h,66px) + 14px);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.page-terms .toc-title { display: block; margin: 0 0 8px; color: var(--text-1); }
.page-terms .toc ol {
  margin: 0; padding-left: 18px;
}
.page-terms .toc a { color: var(--text-2); text-decoration: none; }
.page-terms .toc a:hover { text-decoration: underline; text-underline-offset: .18em; }

/* Actions */
.page-terms .print-actions { margin-top: 14px; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .page-terms .terms-card {
    background-color: rgba(18,18,20,.92);
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
  }
  .page-terms .terms-hero {
    background:
      linear-gradient(180deg, rgba(18,18,20,.90), rgba(18,18,20,.90)),
      url('assets/hero-background-pro.png') center/cover no-repeat;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .page-terms .terms-grid { grid-template-columns: 1fr; }
  .page-terms .toc-card { top: 0; position: relative; }
}

/* Print */
@media print {
  .site-header, .mobile-drawer, footer, .page-terms .toc, .page-terms .print-actions { display: none !important; }
  body { background: #fff !important; padding-top: 0 !important; }
  .page-terms .terms-card { box-shadow: none !important; border-color: #000; }
}
/* =============================
   Page: Machines & Pricing (Apple-style)
   ============================= */
.page-machines .pricing-card {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  padding: 48px 6vw;
  background-color: rgba(255,255,255,.94);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 32px rgba(0,0,0,.06);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .page-machines .pricing-card {
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }
}

/* Hero overlay using your global hero art */
.page-machines .pricing-hero {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.86)),
    url('assets/hero-background-pro.png') center/cover no-repeat;
}
.page-machines .pricing-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 10px; color: var(--text-1);
}
.page-machines .pricing-hero .lead {
  color: var(--text-2); margin: 0 0 16px; font-size: 1.08rem;
}
.page-machines .hero-ctas { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* Product grid */
.page-machines .product-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
}
.page-machines .product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset;
}
.page-machines .product-media {
  aspect-ratio: auto;                 /* remove fixed 4/3 */
  height: clamp(200px, 28vw, 280px);  /* tune these numbers to taste */
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--surface);   /* or var(--chip) for a light tint */
}
.page-machines .product-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-machines .product-head {
  display:flex; align-items:baseline; gap:10px; justify-content:space-between;
  flex-wrap: wrap;
}
.page-machines .product-card h2 {
  margin: 0; font-size: 1.25rem; color: var(--text-1);
}
.page-machines .price-line {
  font-weight: 700; color: var(--text-1);
}
.page-machines .price-line .note {
  font-weight: 500; color: var(--muted); margin-left: 6px;
}
.page-machines .desc { margin: 6px 0 10px; color: var(--text-2); }
.page-machines .features { margin: 0 0 8px; padding-left: 18px; color: var(--text-2); }
.page-machines .addons { margin-top: 8px; color: var(--text-2); }
.page-machines .chip-list { list-style:none; margin: 8px 0 0; padding:0; display:flex; gap:8px; flex-wrap:wrap; }
.page-machines .chip { display:inline-flex; padding:6px 10px; border-radius:9999px; border:1px solid var(--border); background-color: var(--chip); font-size:.9rem; color: var(--text-1); }
.page-machines .card-ctas { margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }

/* Fine print */
.page-machines .fineprint p { margin: 0; color: var(--muted); text-align: center; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .page-machines .pricing-card {
    background-color: rgba(18,18,20,.92);
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
  }
  .page-machines .pricing-hero {
    background:
      linear-gradient(180deg, rgba(18,18,20,.90), rgba(18,18,20,.90)),
      url('assets/hero-background-pro.png') center/cover no-repeat;
  }
}

/* Responsive grid breakpoints */
@media (max-width: 1100px) { .page-machines .product-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 720px) {
  .page-machines .product-media { height: clamp(180px, 50vw, 240px); }
}

/* Print cleanup */
@media print {
  .site-header, .mobile-drawer, footer, .page-machines .hero-ctas { display:none !important; }
  body { background:#fff !important; padding-top:0 !important; }
  .page-machines .pricing-card { box-shadow:none !important; border-color:#000; }
}
/* =============================
   Page: Home (Apple-style)
   ============================= */
.page-home .home-card {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  padding: 48px 6vw;
  background-color: rgba(255,255,255,.94);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 32px rgba(0,0,0,.06);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .page-home .home-card {
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }
}

/* Hero with your site art */
.page-home .home-hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.86)),
    url('assets/hero-background-pro.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.page-home .home-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 10px;
  color: var(--text-1);
}
.page-home .home-hero .lead { font-size: 1.1rem; color: var(--text-2); margin: 0 0 10px; }
.page-home .home-hero .bulletline { color: var(--text-2); font-weight: 600; margin: 4px 0 14px; }
.page-home .hero-ctas { display:flex; gap:10px; flex-wrap:wrap; }

.page-home .hero-media { display:grid; place-items:center; }
.page-home .hero-logo {
  width: clamp(160px, 32vw, 360px);
  border-radius: 24px; background-color: #fff;
  box-shadow: 0 6px 26px rgba(0,0,0,.12);
}

/* Features */
.page-home .features-inner {
  max-width: 1050px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.page-home .feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 18px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset;
}
.page-home .feature-icon { font-size: 2rem; margin-bottom: 8px; color: var(--blue-600); }
.page-home .feature-title { margin: 0 0 6px; font-weight: 700; color: var(--text-1); }
.page-home .feature-desc { margin: 0; color: var(--text-2); }

/* Machines preview */
.page-home .section-title {
  text-align:center; margin: 0 0 16px; color: var(--text-1);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
}
.page-home .machines-grid {
  display:grid; gap: 16px; grid-template-columns: repeat(3,1fr);
}
.page-home .machine-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 16px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
/* Legacy class support (if your markup still uses .machine-image) */
/* Legacy .machine-image */
.page-home .machine-image { 
  height: auto; 
}

.page-home .machine-image img { 
  object-fit: contain; max-height: 320px; 
}

/* Home: Featured Machines — variable height, no crop */
.page-home .machine-card .media {
  height: auto; aspect-ratio: auto;
  display: grid; place-items: center;
  padding: 10px; background-color: var(--surface);
}
.page-home .machine-card .media img {
  object-fit: contain;
  width: auto; height: auto;
  max-width: 100%; max-height: 320px;
}

.page-home .machine-card h3 { margin: 4px 0 6px; color: var(--text-1); }
.page-home .machine-card p { margin: 0; color: var(--text-2); }
.page-home .machines-cta { text-align:center; margin-top: 16px; }

/* Testimonial */
.page-home .testimonial { text-align:center; }
.page-home .quote {
  margin: 0 auto 6px; max-width: 780px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset;
  color: var(--text-2); font-style: italic;
}
.page-home .author { color: var(--blue-600); margin: 0; font-weight: 700; }

/* Service area CTA */
.page-home .service-cta { text-align:center; }
.page-home .service-cta .service-text { color: var(--text-2); margin: 0; }
.page-home .service-cta .link-cta { font-weight: 700; }

/* Dark mode overlays */
@media (prefers-color-scheme: dark) {
  .page-home .home-card {
    background-color: rgba(18,18,20,.92);
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
  }
  .page-home .home-hero {
    background-image:
      linear-gradient(180deg, rgba(18,18,20,.90), rgba(18,18,20,.90)),
      url('assets/hero-background-pro.png');
  }
}

/* Responsive */
@media (max-width: 980px) {
  .page-home .home-hero { grid-template-columns: 1fr; text-align:center; }
}
@media (max-width: 960px) {
  .page-home .features-inner { grid-template-columns: 1fr; }
  .page-home .machines-grid { grid-template-columns: 1fr; }
}

/* Print trim */
@media print {
  .site-header, .mobile-drawer, footer, .page-home .hero-ctas { display:none !important; }
  body { background:#fff !important; padding-top:0 !important; }
  .page-home .home-card { box-shadow:none !important; border-color:#000; }
}


/* =============================
   Page: Contact (Apple-style)
   ============================= */
.page-contact .contact-card {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  padding: 48px 6vw;
  background-color: rgba(255,255,255,.94);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 32px rgba(0,0,0,.06);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .page-contact .contact-card {
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }
}

/* Hero over your global hero art */
.page-contact .contact-hero {
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.86)),
    url('assets/hero-background-pro.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.page-contact .contact-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 8px;
  color: var(--text-1);
}
.page-contact .contact-hero .lead { color: var(--text-2); margin: 0; }

/* Form layout */
.page-contact .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin-top: 16px;
}
.page-contact .col { display: grid; gap: 10px; }
.page-contact .row { display: flex; gap: 10px; }
.page-contact .row .field { flex: 1; }
.page-contact .row .grow { flex: 1; }
.page-contact .row .sm { width: 160px; }

/* Controls */
.page-contact label {
  font-size: 0.98rem; font-weight: 600; color: var(--text-1);
}
.page-contact input,
.page-contact select,
.page-contact textarea {
  font: inherit; font-size: 1rem;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text-1);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  min-width: 0;
}
.page-contact input:focus,
.page-contact select:focus,
.page-contact textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--blue-600) 40%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 24%, transparent);
  background-color: var(--surface);
}
.page-contact textarea { resize: vertical; min-height: 120px; }

/* Checkbox group */
.page-contact .machines-choice {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2px;
}
.page-contact .machines-choice input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: var(--blue-600);
}

/* Status + button */
.page-contact .form-status { margin: 6px 0 0; color: var(--muted); min-height: 1em; }
.page-contact .btn-send { margin-top: 4px; }
.page-contact .btn-send[aria-busy="true"] .btn-label { opacity: .7; }
.page-contact .btn-spinner { display: none; }
.page-contact .btn-send[aria-busy="true"] .btn-spinner {
  display: inline-block;
  width: 1em; height: 1em; margin-left: .5rem;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: contact-spin .7s linear infinite;
  vertical-align: -0.15em;
}
@keyframes contact-spin { to { transform: rotate(1turn); } }

/* Success box */
.page-contact .success-message {
  margin-top: 12px;
  background-color: #C7F9CC;
  color: #174a23;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  font-size: 1.02rem;
}

/* Responsive */
@media (max-width: 860px) {
  .page-contact .form-grid { grid-template-columns: 1fr; }
  .page-contact .row .sm { width: 50%; }
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  .page-contact .contact-card {
    background-color: rgba(18,18,20,.92);
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
  }
  .page-contact .contact-hero {
    background-image:
      linear-gradient(180deg, rgba(18,18,20,.90), rgba(18,18,20,.90)),
      url('assets/hero-background-pro.png');
  }
  .page-contact input,
  .page-contact select,
  .page-contact textarea {
    background-color: #141416;
    border-color: color-mix(in srgb, var(--border) 60%, transparent);
    color: var(--text-1);
  }
}

/* Print cleanup */
@media print {
  .site-header, .mobile-drawer, footer, .page-contact .btn-send { display: none !important; }
  body { background: #fff !important; padding-top: 0 !important; }
  .page-contact .contact-card { box-shadow: none !important; border-color: #000; }
}
