:root {
  /* Apple.com system palette */
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #e8e8ed;
  --ink: #1d1d1f;
  --muted: #86868b;
  --dim: #6e6e73;
  --accent: #0071e3;
  --accent-2: #0077ed;
  --accent-press: #0077ed;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.82);
  --glass-3: rgba(255, 255, 255, 0.92);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 100%;
  --sans: "SF Pro Display", "SF Pro Text", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* legacy aliases used by older page markup */
  --navy: #1d1d1f;
  --navy-2: #424245;
  --gold: #0071e3;
  --gold-2: #0077ed;
  --parchment: #f5f5f7;
  --parchment-2: #e8e8ed;
  --paper: #ffffff;
  --line-gold: rgba(0, 113, 227, 0.28);
  --serif: var(--sans);
  --wa: #128c7e;
  --wa-2: #25d366;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 920px) {
  /* Native scroll feels better on phones than CSS smooth scrolling */
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: clip;
  overscroll-behavior-y: contain;
  max-width: 100%;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
@media (min-width: 641px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
}
/* Full-bleed sections: no side page margin */
#portals > .container,
section.full-bleed > .container {
  padding-left: 0;
  padding-right: 0;
}
#portals .section-head,
section.full-bleed .section-head {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 641px) {
  #portals .section-head,
  section.full-bleed .section-head {
    padding-left: 28px;
    padding-right: 28px;
  }
}
section.full-bleed .channel-row,
section.full-bleed .steps {
  width: 100%;
}

/* Apple-style frosted light nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(251, 251, 253, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 251, 253, 0.92);
}
body.nav-open {
  overflow: hidden;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  min-height: 48px;
}
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
  padding: 8px 0;
  overflow: visible;
}
.brand strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand strong em {
  color: var(--ink);
  font-style: normal;
}
.brand small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 980px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
}

/* Apple pill CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 980px;
  padding: 11px 22px;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.022em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost:hover { background: rgba(0, 113, 227, 0.06); }
.btn-outline {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--ink);
  font-size: 12px;
  padding: 7px 14px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: var(--wa-2); color: #073b2c; }
.btn-wa:hover { background: #1ebe5d; }

.btn-shop {
  position: relative;
  background: transparent;
  color: var(--accent);
  border: none;
  border-radius: 0;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 400;
}
.btn-shop::after {
  content: " ›";
}
.btn-shop:hover { text-decoration: underline; }

/* Hero — Apple full-bleed light plane */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-2);
  box-sizing: border-box;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-2);
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.55) 0%, rgba(245, 245, 247, 0.35) 40%, rgba(245, 245, 247, 0.88) 100%);
  pointer-events: none;
}
.hero.has-video .hero-media::after {
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.55) 0%, rgba(245, 245, 247, 0.4) 45%, rgba(245, 245, 247, 0.92) 100%);
}
/* Portal heroes sit on product photography — keep copy readable */
.portal .hero-media::after,
.portal .hero.has-video .hero-media::after {
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.78) 0%, rgba(245, 245, 247, 0.58) 42%, rgba(245, 245, 247, 0.94) 100%);
}
.portal .hero h1 { color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); }
.portal .hero .lede {
  color: #3a3a3c;
  max-width: 34ch;
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) brightness(1.05);
}
.hero-poster { z-index: 0; }
.hero-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-grain { display: none; }
.hero-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12), transparent 68%);
  top: 12%;
  right: 8%;
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-14px, 18px, 0); }
}
.hero-inner {
  padding: 120px 0 88px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.hero h1 span { color: var(--ink); }
.hero .lede,
.lede {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  color: var(--muted);
  max-width: 28ch;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

section {
  padding: 88px 0;
  background: var(--bg);
}
section:nth-of-type(even) { background: var(--bg-2); }
.section-head {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  box-sizing: border-box;
}
.section-head h2,
.section-head p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.003em;
  line-height: 1.08349;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink);
}
.section-head p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4211;
  max-width: 36ch;
}

/* Portal tiles — light Apple cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
}
.cat-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: min(46vh, 420px);
  border: 0;
  background: var(--bg);
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
section:nth-of-type(even) .cat-tile { background: #fff; }
.cat-tile:hover { transform: scale(1.015); }
.cat-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-tile:hover > img { transform: scale(1.04); }
.cat-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #1d1d1f;
}
.cat-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-collage img:first-child {
  grid-row: 1 / span 2;
}
.cat-tile:hover .cat-collage img { transform: scale(1.04); }
.cat-tile .body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62) 70%);
  color: #f5f5f7;
  text-align: left;
  z-index: 1;
}
.cat-tile .idx {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
  font-weight: 500;
}
.cat-tile h3 {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: 0.007em;
  font-weight: 600;
  color: #fff;
}
.cat-tile p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}
.portal-link {
  color: #2997ff;
  font-weight: 400;
  font-size: 15px;
}
.portal-link::after { content: " ›"; }

/* Channel strip */
.channel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
}
.channel {
  border-radius: 0;
  padding: 48px 28px;
  background: var(--bg-2);
  border: 0;
  transition: transform 0.25s ease, background 0.25s ease;
  text-align: center;
}
section:nth-of-type(even) .channel { background: #fff; }
.channel:hover { transform: translateY(-2px); }
.channel b {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.channel strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0.009em;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}
.channel p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  max-width: 24ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
}
.step {
  border-radius: 0;
  padding: 48px 28px;
  background: var(--bg-2);
  border: 0;
  text-align: center;
}
section:nth-of-type(even) .step { background: #fff; }
.step b {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 600;
}
.step h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  letter-spacing: 0.009em;
  font-weight: 600;
  color: var(--ink);
}
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: var(--bg-2);
  color: var(--dim);
  font-size: 12px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.foot-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.foot-brand em { color: var(--ink); font-style: normal; }
.site-footer p {
  color: var(--muted);
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.5;
}
.site-footer h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
}
.site-footer a {
  display: block;
  color: var(--dim);
  margin-bottom: 6px;
  font-size: 12px;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--accent); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* Support chat — light glass */
.support-chat {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: min(380px, calc(100% - 28px));
  max-width: 100%;
  height: min(520px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow);
  z-index: 60;
  overflow: hidden;
  color: var(--ink);
}
.support-chat[hidden] { display: none !important; }
.support-chat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.support-chat__head strong { display: block; font-size: 15px; }
.support-chat__head span { color: var(--muted); font-size: 12px; }
.support-chat__close {
  border: 0;
  background: var(--bg-2);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.support-chat__log {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-chat__compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.support-chat__compose input {
  flex: 1;
  border-radius: 980px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  padding: 12px 14px;
  outline: none;
  margin: 0;
  color: var(--ink);
}
.support-chat__compose input:focus { border-color: var(--accent); }
.support-chat__foot {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 12px;
}
.chat-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  color: var(--ink);
  border-radius: 980px;
  padding: 12px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 14px;
}
.chat-float:hover {
  transform: translateY(-2px);
  background: #fff;
}
.chat-float span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.chat-float.is-hidden { display: none; }

/* Forms / shared page pieces */
.form-card, .card, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 14px;
  outline: none;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.page-hero {
  padding: 88px 0 40px;
  background: var(--bg-2);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 600;
}
.page-hero p { color: var(--muted); max-width: 48ch; margin: 0 auto; font-size: 19px; }

.reveal {
  opacity: 1;
  transform: translateY(16px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { transform: translateY(0); }

/* Portal browse / products / forms */
.portal-header .brand small { color: var(--accent); }
.browse-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 28px;
}
.browse-bar input, .browse-bar select {
  border: 1px solid var(--line-strong); background: var(--bg-2); border-radius: 980px;
  padding: 11px 14px; min-width: 0; color: var(--ink); margin: 0;
}
.browse-bar input { flex: 1 1 160px; min-width: 0; }
.browse-bar select { flex: 0 1 auto; max-width: 100%; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 980px;
  padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink);
}
.chip.active, .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4/3; background: var(--bg-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.product h3 { font-size: 1.05rem; margin: 0; color: var(--ink); line-height: 1.3; font-weight: 600; }
.product p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.product-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px;
}
.tag {
  display: inline-flex; padding: 4px 8px; border-radius: 980px;
  background: var(--bg-2); color: var(--ink); font-size: 11px; font-weight: 600;
}
.price { font-weight: 600; color: var(--ink); }
.price.rfq { color: var(--accent); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.panel h3 { font-weight: 600; font-size: 1.45rem; color: var(--ink); margin: 0 0 8px; }
.panel .hint { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-grid label {
  display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  margin: 0;
}
.form-msg { margin-top: 12px; font-size: .92rem; color: var(--muted); min-height: 1.2em; }
.form-msg.ok { color: #28cd41; }
.form-msg.err { color: #ff3b30; }

.chat {
  display: flex; flex-direction: column; height: min(620px, 75vh);
  background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
}
.chat-head { padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.chat-head strong { display: block; font-size: 1.25rem; letter-spacing: -0.02em; }
.chat-head span { font-size: .85rem; color: var(--muted); }
.chat-log { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: .95rem; white-space: pre-wrap;
}
.bubble.agent { background: var(--bg-2); align-self: flex-start; border: 1px solid var(--line); }
.bubble.user { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-compose {
  display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: var(--bg-2);
}
.chat-compose input {
  flex: 1; border-radius: 980px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); margin: 0;
}
.chat-compose input::placeholder { color: var(--muted); }
.empty {
  padding: 48px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 16px; background: #fff;
}

@media (max-width: 920px) {
  .nav-links,
  .nav-actions { display: none !important; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 36px;
    min-width: 64px;
    padding: 8px 14px;
    border-radius: 980px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }
  .site-header.open {
    max-height: 100dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(251, 251, 253, 0.98);
  }
  /* Keep brand + Menu on one stable row; drawer stacks below.
     Do NOT use padding shorthand here — it would wipe .container gutters. */
  .site-header.open .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: 48px;
    padding-top: 4px;
    padding-bottom: 12px;
  }
  .site-header.open .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 6px 0;
  }
  .site-header.open .brand strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header.open .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }
  .site-header.open .nav-links,
  .site-header.open .nav-actions {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 4px;
    margin: 0;
    box-sizing: border-box;
  }
  .site-header.open .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding: 8px 0 4px;
    gap: 0;
  }
  .site-header.open .nav-links li { width: 100%; }
  .site-header.open .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 16px;
    line-height: 1.3;
    opacity: 1;
    border-radius: 10px;
  }
  .site-header.open .nav-links a:active,
  .site-header.open .nav-links a.active {
    background: rgba(0, 113, 227, 0.06);
  }
  .site-header.open .nav-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    border-top: 1px solid var(--line);
    padding: 12px 0 4px;
    gap: 8px;
  }
  .site-header.open .nav-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 12px 16px;
  }
  .site-header.open .nav-actions [data-auth-slot],
  .site-header.open .nav-actions .nav-auth-slot {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .site-header.open .nav-actions [data-auth-slot] .btn,
  .site-header.open .nav-actions .nav-auth-slot .btn {
    width: 100%;
  }
  .nav-auth-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .cat-grid, .channel-row, .steps, .foot-grid, .product-grid, .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-grid,
  .foot-grid,
  .cat-grid,
  .browse-bar,
  .chip-row {
    max-width: 100%;
    min-width: 0;
  }
  .hero-inner { padding-top: 88px; padding-bottom: 56px; }
  .cat-tile { min-height: 260px; }

  /* Mobile scroll: cheaper sticky nav + less paint while scrolling */
  .site-header {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }
  .hero-orb { display: none; }
  .hero {
    /* Shorter first viewport on phones so listings aren't pushed far down */
    min-height: min(72svh, 560px);
    width: 100%;
    max-width: 100%;
    overflow: clip;
  }
  /* Video decode freezes low-end phones — poster only below tablet */
  .hero-video { display: none !important; }
  .hero.has-video .hero-media::after,
  .portal .hero-media::after,
  .portal .hero.has-video .hero-media::after {
    background:
      linear-gradient(180deg, rgba(245, 245, 247, 0.86) 0%, rgba(245, 245, 247, 0.68) 45%, rgba(245, 245, 247, 0.96) 100%);
  }
  .portal .hero .eyebrow {
    font-size: 13px;
    font-weight: 500;
  }
  .portal .hero .lede {
    font-size: 17px;
    line-height: 1.35;
    color: #1d1d1f;
    max-width: 34ch;
  }
  .portal .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    overflow-wrap: anywhere;
  }
  section > .container {
    max-width: 100%;
    overflow-x: clip;
  }
  .dash-demo {
    overflow: visible;
    padding: 48px 0 56px;
  }
  .dash-stage {
    border-radius: 16px;
    max-width: 100%;
  }
  .dash-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .dash-nav::-webkit-scrollbar { display: none; }
  .support-chat,
  .chat-float {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .support-chat {
    width: min(380px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    right: 12px;
  }
  .reveal {
    /* transform layers hurt sticky/fixed scroll on iOS */
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  /* Keep consistent gutters — never zero container padding sitewide */
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  #portals > .container,
  section.full-bleed > .container {
    padding-left: 0;
    padding-right: 0;
  }
  #portals .section-head,
  section.full-bleed .section-head {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; letter-spacing: 0.06em; }
  .hero-inner {
    padding: 72px 0 40px;
    max-width: 100%;
  }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero .lede {
    font-size: 17px;
    max-width: 100%;
    padding: 0 4px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: min(320px, 100%);
    margin: 0 auto;
  }
  .hero-actions .btn { width: 100%; }
  .section-head {
    margin-bottom: 28px;
    padding-left: 0;
    padding-right: 0;
  }
  .section-head h2 { font-size: clamp(26px, 7vw, 36px); }
  .section-head p { font-size: 16px; }
  .form-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-tile { min-height: 280px; }
  .chat-float { padding: 12px 14px; font-size: 13px; }
  section { padding: 48px 0; overflow-x: clip; }
  .product { max-width: 100%; }
  .page-hero { padding: 64px 0 28px; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}
/* apple-light 1785815134 */
/* cats 1785815673 */
/* fullbleed 1785818936 */

/* Animated customer dashboard demo */
section.dash-demo {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 113, 227, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 30%, rgba(0, 0, 0, 0.04), transparent 50%),
    linear-gradient(180deg, #f5f5f7 0%, #ffffff 55%, #f5f5f7 100%);
}
.dash-demo > .container {
  padding-left: 28px;
  padding-right: 28px;
  position: relative;
  z-index: 1;
}
.dash-demo .section-head { max-width: 720px; }
.dash-demo-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}
.dash-stage {
  width: min(1080px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.1);
}
.dash-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(245,245,247,0.92);
  border-bottom: 1px solid var(--line);
}
.dash-chrome-dots {
  display: flex;
  gap: 6px;
}
.dash-chrome-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d2d7;
  display: block;
}
.dash-chrome-dots i:nth-child(1) { background: #ff5f57; }
.dash-chrome-dots i:nth-child(2) { background: #febc2e; }
.dash-chrome-dots i:nth-child(3) { background: #28c840; }
.dash-chrome-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 6px 14px;
}
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #067d62;
}
.dash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28cd41;
  box-shadow: 0 0 0 0 rgba(40, 205, 65, 0.55);
  animation: dashPulse 1.8s ease-out infinite;
}
@keyframes dashPulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 205, 65, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(40, 205, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 205, 65, 0); }
}
.dash-frame {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}
.dash-side {
  padding: 22px 18px;
  background: #fafafa;
  border-right: 1px solid var(--line);
}
.dash-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.dash-user {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.dash-nav {
  display: grid;
  gap: 4px;
}
.dash-nav span {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: background .25s ease, color .25s ease;
}
.dash-nav span.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 0 var(--line), 0 8px 20px rgba(0,0,0,0.04);
}
.dash-main { padding: 22px 22px 20px; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.dash-metrics article {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid transparent;
}
.dash-metrics span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.dash-metrics strong {
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
}
.dash-panels { min-height: 220px; position: relative; }
.dash-panel {
  display: none;
  animation: dashFadeIn .45s ease both;
}
.dash-panel.is-active { display: grid; gap: 14px; }
@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dash-chart {
  padding: 14px 16px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8f8fa);
  border: 1px solid var(--line);
}
.dash-chart-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.dash-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 96px;
}
.dash-bars i {
  display: block;
  height: 0;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #4da3ff, #0071e3);
  transform-origin: bottom;
}
.dash-stage.is-live .dash-bars i {
  animation: dashBarGrow .9s cubic-bezier(0.22, 1, 0.36, 1) both;
  height: var(--h);
}
.dash-bars i:nth-child(2) { animation-delay: .06s; }
.dash-bars i:nth-child(3) { animation-delay: .12s; }
.dash-bars i:nth-child(4) { animation-delay: .18s; }
.dash-bars i:nth-child(5) { animation-delay: .24s; }
.dash-bars i:nth-child(6) { animation-delay: .3s; }
.dash-bars i:nth-child(7) { animation-delay: .36s; }
@keyframes dashBarGrow {
  from { height: 0; opacity: .4; }
  to { height: var(--h); opacity: 1; }
}
.dash-feed { display: grid; gap: 8px; }
.dash-feed-item {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.dash-feed-item.is-in {
  opacity: 1;
  transform: translateX(0);
}
.dash-feed-item b {
  font-size: 13px;
  font-weight: 700;
}
.dash-feed-item span {
  font-size: 13px;
  color: var(--muted);
}
.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dash-list li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}
.dash-list em { color: var(--muted); font-style: normal; }
.dash-list strong { font-size: 12px; font-weight: 700; color: var(--dim); }
.dash-list strong.ok { color: #067d62; }
.dash-list strong.warn { color: #b87900; }
.dash-saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dash-saved-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.dash-saved-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}
.dash-panel.is-active .dash-saved-grid img { transform: scale(1); }
.dash-saved-grid figcaption {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}
.dash-portals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.dash-portals span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: #fff;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.dash-portals span.is-pulse {
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.35);
  background: rgba(0, 113, 227, 0.06);
}
.dash-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
@media (max-width: 920px) {
  .dash-frame { grid-template-columns: 1fr; }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dash-nav span { text-align: center; padding: 8px 6px; font-size: 12px; }
  .dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-list li { grid-template-columns: 1fr; gap: 4px; }
  .dash-chrome-url { display: none; }
}
@media (max-width: 640px) {
  .dash-demo > .container { padding-left: 16px; padding-right: 16px; }
  .dash-saved-grid { grid-template-columns: 1fr; }
  .dash-cta { flex-direction: column; align-items: stretch; }
}
/* dash-demo 1785820001 */
/* mobile-scroll 1785830001 */
