/* ============================================================= */
/* TOKENS                                                          */
/* ============================================================= */
:root {
  --sd-red: #E71324;
  --sd-dark-red: #92001D;
  --sd-deep-red: #500010;
  --white: #FFFFFF;
  --stone: #DCE2E9;
  --sun: #FF9D00;
  --amethyst: #A200ED;
  --ocean: #00B0F2;
  --qc-blue: #3253DC; /* Qualcomm brand blue */
  --green: #1A8F42; /* success/check accent (not in brief palette; added for checkmarks) */
  --n-0: #FFFFFF;
  --n-1: #F5F5F6;
  --n-2: #EEEEEF;
  --n-3: #E6E6E7;
  --n-4: #DCDEE1;
  --ink: #0A0A0B;
  --text-primary: #0A0A0A;
  --text-secondary: #636364;

  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Roboto Flex", system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;

  --display-m: 66px;
  --h1: 54px;
  --h2: 42px;
  --h3: 36px;
  --body-xl: 21px;
  --body-l: 17px;
  --body-m: 16px;

  --section-pad: 120px;
  --content-max: 1200px;
  --gutter: 40px;
  --radius: 16px;
  --radius-btn: 8px;

  --shell-h: 56px;
  --rail-w: 384px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================= */
/* RESET / BASE                                                   */
/* ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body); color: var(--text-primary); background: #e8eaee;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.nowrap { white-space: nowrap; }
sup.fnref { font-size: 0.5em; font-family: var(--font-body); color: var(--text-secondary); vertical-align: super; margin-left: 2px; }

/* Mask icon utility (provided single-path SVGs, colored via currentColor) */
.msk {
  display: inline-block; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.msk--desktop    { -webkit-mask-image: url("assets/icons/desktop_icon.svg");    mask-image: url("assets/icons/desktop_icon.svg"); }
.msk--mobile     { -webkit-mask-image: url("assets/icons/mobile_icon.svg");     mask-image: url("assets/icons/mobile_icon.svg"); }
.msk--responsive { -webkit-mask-image: url("assets/icons/responsive_icon.svg"); mask-image: url("assets/icons/responsive_icon.svg"); }
.msk--shield     { -webkit-mask-image: url("assets/icons/shield_icon.svg");     mask-image: url("assets/icons/shield_icon.svg"); }
.msk--endpoint   { -webkit-mask-image: url("assets/icons/endpoint_icon.svg");   mask-image: url("assets/icons/endpoint_icon.svg"); }
.msk--download   { -webkit-mask-image: url("assets/icons/download_icon.svg");   mask-image: url("assets/icons/download_icon.svg"); }
.msk--play       { -webkit-mask-image: url("assets/icons/play_icon.svg");       mask-image: url("assets/icons/play_icon.svg"); }
.msk--search     { -webkit-mask-image: url("assets/icons/search_icon.svg");     mask-image: url("assets/icons/search_icon.svg"); }
.msk--graph      { -webkit-mask-image: url("assets/icons/graph_icon.svg");      mask-image: url("assets/icons/graph_icon.svg"); }

/* ============================================================= */
/* PRESENTATION SHELL                                             */
/* ============================================================= */
.shell {
  position: fixed; top: 0; left: 0; right: 0; height: var(--shell-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--n-3); z-index: 1000;
}
.shell__left, .shell__right { display: flex; align-items: center; gap: 12px; }

.anno-toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 14px;
  border: 1px solid var(--n-3); border-radius: 999px; background: var(--white);
  color: var(--text-secondary); font-family: var(--font-body); font-size: 14px;
}
.anno-toggle__switch { width: 40px; height: 22px; border-radius: 999px; background: var(--n-4); position: relative; transition: background 0.18s ease; flex: none; }
.anno-toggle__knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: transform 0.18s var(--ease); }
.anno-toggle[aria-checked="true"] { color: var(--text-primary); }
.anno-toggle[aria-checked="true"] .anno-toggle__switch { background: var(--sd-red); }
.anno-toggle[aria-checked="true"] .anno-toggle__knob { transform: translateX(18px); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--n-1); border: 1px solid var(--n-3); border-radius: 10px; }
.seg { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: none; background: transparent; color: var(--text-secondary); border-radius: 7px; font-size: 13px; }
.seg .ic { width: 17px; height: 17px; }
.seg[aria-checked="true"] { background: var(--white); color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.seg:hover:not([aria-checked="true"]) { color: var(--text-primary); }

.anno-toggle:focus-visible, .seg:focus-visible, .resize-handle:focus-visible, .btn:focus-visible,
.link:focus-visible, .nav__link:focus-visible, .back-link:focus-visible, .mgmt__tab:focus-visible,
.rail__tab:focus-visible, .rail__close:focus-visible {
  outline: 3px solid var(--sd-red); outline-offset: 2px;
}
.hero :is(.btn, .link, .nav__link):focus-visible { outline-color: var(--sd-red); }

/* ============================================================= */
/* CANVAS + VIEWPORT                                              */
/* ============================================================= */
.canvas {
  margin-top: var(--shell-h); min-height: calc(100vh - var(--shell-h));
  padding: 28px; display: flex; justify-content: center;
  transition: padding-right 0.3s var(--ease);
}
.viewport {
  container-type: inline-size; container-name: page;
  position: relative; width: 100%; max-width: 1440px; background: var(--white);
  box-shadow: 0 20px 70px rgba(10,20,40,0.16); border-radius: 10px; overflow: hidden;
  transition: max-width 0.25s var(--ease), width 0.25s var(--ease);
}
.viewport[data-mode="mobile"] { width: 390px; max-width: 390px; border-radius: 30px; padding-top: 26px; box-shadow: 0 20px 60px rgba(10,20,40,0.24); }
.viewport[data-mode="mobile"] .device-chrome { display: block; position: absolute; top: 0; left: 0; right: 0; height: 26px; background: #0c0c0d; z-index: 5; }
.viewport[data-mode="mobile"] .device-chrome::after { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 100px; height: 8px; border-radius: 999px; background: #333; }
.device-chrome { display: none; }
.viewport[data-mode="responsive"] { width: 1024px; max-width: 1440px; padding-right: 14px; }
.viewport[data-mode="responsive"] .resize-handle { display: flex; }
.viewport[data-mode="responsive"] .width-readout { display: block; }
.page { position: relative; }

.resize-handle { display: none; position: absolute; top: 0; right: 0; width: 14px; height: 100%; background: var(--n-1); border-left: 1px solid var(--n-3); cursor: ew-resize; align-items: center; justify-content: center; z-index: 50; }
.resize-handle::before { content: ""; width: 4px; height: 34px; border-radius: 999px; background: var(--n-4); }
.width-readout { display: none; position: absolute; top: 12px; right: 24px; padding: 4px 10px; background: rgba(12,12,13,0.82); color: #fff; font-family: var(--font-mono); font-size: 12px; border-radius: 6px; z-index: 51; pointer-events: none; }

/* ============================================================= */
/* TYPE HELPERS                                                  */
/* ============================================================= */
.eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 20px; }
.eyebrow--red { color: var(--sd-red); }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--h2); line-height: 1.08; letter-spacing: -0.005em; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--h3); line-height: 1.12; letter-spacing: -0.005em; }
.body-xl { font-size: var(--body-xl); line-height: 1.5; color: var(--text-secondary); }
.body-l { font-size: var(--body-l); line-height: 1.6; color: var(--text-secondary); }
.body-m { font-size: var(--body-m); line-height: 1.6; color: var(--text-secondary); }
.chip, .tag { position: relative; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); background: var(--n-2); border: none; border-radius: 5px; padding: 5px 11px; }
.chip::before, .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qc-blue); flex: none; }
.chip::after, .tag::after { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--qc-blue); transform: translateY(-50%); animation: ping 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes ping { 0% { opacity: 0.5; transform: translateY(-50%) scale(1); } 70%, 100% { opacity: 0; transform: translateY(-50%) scale(2.8); } }

/* ============================================================= */
/* BUTTONS + LINKS                                               */
/* ============================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: var(--radius-btn); border: 1px solid transparent;
  font-family: var(--font-body); font-size: var(--body-l); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ease), box-shadow 0.2s ease;
}
.btn--lg { height: 56px; padding: 0 32px; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--sd-red); color: #fff; box-shadow: 0 8px 22px rgba(231,19,36,0.28); }
.btn--primary:hover { background: var(--sd-dark-red); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(231,19,36,0.36); }
.btn--ghost-white { background: transparent; color: var(--text-primary); border-color: var(--n-4); }
.btn--ghost-white:hover { background: var(--n-1); border-color: var(--text-secondary); }
.btn--onred { background: #fff; color: var(--sd-red); }
.btn--onred:hover { background: var(--stone); transform: translateY(-2px); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--outline-white:hover { background: rgba(255,255,255,0.12); }

.link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--body-l); font-weight: 500; color: var(--sd-red); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link--onhero { color: var(--text-primary); }
.link--onhero .ic--chev { color: var(--sd-red); }
.ic--chev { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s var(--ease); }
.link:hover .ic--chev { transform: translateX(3px); }

/* ============================================================= */
/* NAV + HERO                                                    */
/* ============================================================= */
.view { width: 100%; }
section { position: relative; }
.nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--gutter); max-width: var(--content-max); margin: 0 auto; }
.nav__logo { height: 60px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: var(--body-m); color: var(--text-secondary); text-decoration: none; }
.nav__link:hover { color: var(--text-primary); }

.hero { position: relative; overflow: hidden; color: var(--text-primary); padding-bottom: 96px; background: var(--white); }
.hero__grid { position: relative; z-index: 2; max-width: var(--content-max); margin: 0 auto; padding: 40px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: center; min-height: 560px; }
.hero__copy { max-width: 820px; }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: var(--display-m); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 26px; color: var(--text-primary); }
/* Key word highlighted in Snapdragon Red — emphasis by color, not weight (brand rule). */
.hero__hl { color: var(--sd-red); }
.hero__sub { font-size: var(--body-xl); line-height: 1.5; color: var(--text-secondary); margin: 0 0 38px; max-width: 540px; }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__visual { position: relative; display: grid; place-items: center; }
.heartbeat { width: 100%; max-width: 480px; height: auto; }
/* Faint gray concentric rings are a static backdrop (no animation). */
.heartbeat__bug { transform-box: fill-box; transform-origin: center; } /* static, flat — no glow/shadow/blur */

/* Water ripple: each thin red ring grows from the mark (scale 0.14 ≈ fireball)
   out to the outermost ring (scale 1), fading to transparent as it widens.
   Ease-out so it moves fast then decelerates, like a ripple losing energy.
   Transform + opacity only. Three staggered rings ~2.5s apart keep 2–3
   visible at once at different sizes and opacities. */
.ripple { transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: ripple 7.5s var(--ease) infinite; }
.ripple--2 { animation-delay: 2.5s; }
.ripple--3 { animation-delay: 5s; }
@keyframes ripple {
  0%   { transform: scale(0.14); opacity: 0; }
  12%  { opacity: 0.7; }
  100% { transform: scale(1); opacity: 0; }
}
.hero__cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; z-index: 2; }
.hero__cue svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============================================================= */
/* CREDIBILITY BAR + LOGO STRIPS                                 */
/* ============================================================= */
.cred { background: var(--n-1); border-bottom: 1px solid var(--n-3); padding: 60px var(--gutter); text-align: center; }
.cred .eyebrow { margin-bottom: 32px; }
.cred__proof { max-width: 960px; margin: 44px auto 0; }
.cred__stat { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.3; white-space: nowrap; }
.cred__num { color: var(--sd-red); }
.cred__support { margin-top: 10px; color: var(--text-secondary); font-size: var(--body-l); }

.logo-strip { max-width: var(--content-max); margin: 0 auto; }
.logo-strip__marquee { display: flex; width: 100%; }
.logo-strip__track { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 28px; width: 100%; }
.logo-strip__track[aria-hidden="true"] { display: none; }
.logo-strip li { display: inline-flex; align-items: center; }
.logo-strip img { width: auto; filter: grayscale(1) opacity(0.62); transition: filter 0.25s ease, transform 0.25s var(--ease); }
.logo-strip li:hover img { filter: grayscale(0) opacity(1); transform: translateY(-2px); }
.logo-strip--oem img { height: 32px; }
.logo-strip--oem img[alt="HP"] { height: 48px; }
.logo-strip--oem img[alt="Dell"] { height: 48px; }
.logo-strip--oem img[alt="Samsung"] { height: 24px; }
.logo-strip--oem img[alt="ASUS"] { height: 24px; }
.logo-strip--oem img[alt="Acer"] { height: 27px; }
.logo-strip--apps { padding: 30px 32px; background: var(--n-1); border: 1px solid var(--n-3); border-radius: var(--radius); }
.logo-strip--apps .logo-strip__track { justify-content: center; gap: 20px 44px; }
.logo-strip--apps img { height: 42px; }
.logo-strip--apps img[alt="Zoom"] { height: 27px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================= */
/* PROOF SECTIONS                                              */
/* ============================================================= */
.proof { padding: var(--section-pad) var(--gutter); }
.proof--white { background: var(--white); }
.proof--neutral { background: var(--n-1); }
.proof__inner { max-width: var(--content-max); margin: 0 auto; }
.stagger { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.proof__head { max-width: 440px; }
.proof__body { padding-top: 44px; }
.proof__bento { max-width: var(--content-max); margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bento { background: var(--n-1); border: 1px solid var(--n-3); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease; }
.proof--neutral .bento { background: var(--white); }
.bento:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,20,40,0.10); border-color: var(--n-4); }
.bento--lead { min-height: 190px; }
.bento__num { font-family: var(--font-display); font-weight: 400; font-size: 66px; line-height: 1; background: linear-gradient(120deg, var(--sd-red) 0%, var(--sd-dark-red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento__label { font-size: var(--body-l); color: var(--text-secondary); max-width: 34ch; }

/* ---- A. On device AI: 2/3 stat + 1/3 image ---- */
.ai-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: center; }
.ai-copy { max-width: 660px; }
.ai-copy .h3 { margin-top: 2px; }
.ai-stat { position: relative; display: flex; align-items: flex-end; gap: 22px; margin: 34px 0 22px; }
.ai-stat__num { font-family: var(--font-display); font-weight: 400; font-size: 132px; line-height: 0.85; letter-spacing: -0.02em; background: linear-gradient(125deg, var(--sd-red) 0%, var(--sd-red) 45%, var(--sd-dark-red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-stat__unit { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.06em; color: var(--sd-red); }
.ai-stat__sub { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: var(--text-secondary); text-transform: none; }
.ai-copy__support { max-width: 54ch; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ai-image { position: relative; animation: floaty 6s ease-in-out infinite; }
.ai-image::before { content: ""; position: absolute; inset: -8% -8% -8% 6%; background: radial-gradient(circle at 60% 40%, rgba(231,19,36,0.16), rgba(231,19,36,0) 68%); pointer-events: none; }
.ai-image img { position: relative; width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: 0 24px 60px rgba(10,20,40,0.18); transition: transform 0.45s var(--ease), box-shadow 0.45s ease; }
.ai-image:hover img { transform: scale(1.03) rotate(-0.6deg); box-shadow: 0 34px 80px rgba(10,20,40,0.24); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---- C. Manageability (interactive) ---- */
.proof--anchor { background: var(--stone); padding: 140px var(--gutter); }
.anchor__inner { max-width: var(--content-max); margin: 0 auto; }
.anchor__head { max-width: 960px; }
.anchor__lede { margin-top: 24px; color: #3a4652; }
.mgmt { margin-top: 56px; }
.mgmt__tabs { display: flex; align-items: center; gap: 0; }
.mgmt__tab { flex: 1; display: flex; align-items: center; justify-content: flex-start; gap: 12px; background: rgba(255,255,255,0.55); border: 1.5px solid #c3ccd6; border-radius: var(--radius); padding: 22px 24px; text-align: left; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease; }
.mgmt__tab:hover { background: #fff; transform: translateY(-2px); }
.mgmt__tab.is-active { background: #fff; border-color: var(--sd-red); box-shadow: 0 14px 34px rgba(231,19,36,0.14); }
.mgmt__name { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.15; color: var(--text-primary); }
.mgmt__ico { width: 30px; height: 30px; flex: none; color: #97a2ae; transition: color 0.2s ease; }
.mgmt__tab.is-active .mgmt__ico { color: var(--sd-red); }
/* Directional connector between the three flow pills: solid, dark, and larger
   so the left-to-right sequence reads clearly. */
.mgmt__link { flex: 0 0 56px; height: 3px; background: var(--text-primary); border-radius: 2px; position: relative; margin: 0 6px; }
.mgmt__link::after { content: ""; position: absolute; right: -2px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--text-primary); border-right: 3px solid var(--text-primary); transform: translateY(-50%) rotate(45deg); }
.mgmt__stage { margin-top: 26px; background: #fff; border: 1px solid #c3ccd6; border-radius: var(--radius); padding: 44px 48px; }
.mgmt__panel { animation: fadeUp 0.4s var(--ease); }
.mgmt__title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 16px; }
.mgmt__panel .body-l { max-width: none; }
.mgmt__list { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 26px; }
.mgmt__list li { display: flex; align-items: center; gap: 10px; font-size: var(--body-m); color: #2b3540; }
.mgmt__list li::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--green); -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- ECOSYSTEM ---- */
.ecosystem { max-width: var(--content-max); margin: 48px auto 0; }
.ecosystem__notes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; justify-content: center; }

/* ============================================================= */
/* CLOSING ROW: peer stat (1/3) + CTA (2/3)                      */
/* ============================================================= */
.close { padding: var(--section-pad) var(--gutter); background: var(--white); }
.close__inner { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: stretch; }
.close__stat { background: var(--n-1); border: 1px solid var(--n-3); border-radius: var(--radius); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.close__num { display: block; font-family: var(--font-display); font-weight: 400; font-size: 104px; line-height: 0.9; margin-bottom: 14px; background: linear-gradient(120deg, var(--sd-red) 0%, var(--sd-dark-red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.close__statline { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.3; }
.close__cta { position: relative; background: var(--sd-red); border-radius: var(--radius); padding: 64px 56px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.close__titlerow { position: relative; display: flex; align-items: center; gap: 22px; margin-bottom: 16px; }
.close__title { font-family: var(--font-display); font-weight: 400; font-size: var(--h1); line-height: 1.03; color: #fff; }
.close__mark { height: 54px; width: auto; flex: none; }
/* Supporting line sits directly on the red band (matching Qualcomm's treatment).
   Slightly larger + medium weight keeps white legible on bright red (≈4.65:1, AA pass). */
.close__sub { position: relative; color: #fff; font-size: var(--body-xl); font-weight: 500; line-height: 1.5; max-width: 52ch; margin-bottom: 34px; }
.close__actions { position: relative; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================= */
/* FOOTER                                                       */
/* ============================================================= */
.footer { background: var(--ink); color: #cfcfd2; padding: 72px var(--gutter) 40px; }
.footer__main { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 3fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid #26262a; }
.footer__logo { height: 40px; width: auto; }
.footer__tagline { margin: 20px 0 22px; font-size: var(--body-m); color: #9a9aa0; max-width: 26ch; line-height: 1.5; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2e2e33; display: grid; place-items: center; color: #cfcfd2; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.footer__social a:hover { background: var(--sd-red); border-color: var(--sd-red); color: #fff; }
.footer__social a:focus-visible { outline: 3px solid var(--sd-red); outline-offset: 2px; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__h { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer__col a { color: #9a9aa0; text-decoration: none; font-size: var(--body-m); }
.footer__col a:hover { color: #fff; }
.footer__notes { position: relative; max-width: var(--content-max); margin: 28px auto 0; padding-bottom: 26px; border-bottom: 1px solid #26262a; }
.footer__legal { font-size: 13px; color: #8a8a90; margin-bottom: 16px; }
.footer__bar { max-width: var(--content-max); margin: 24px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.footer__copy { font-size: 12px; color: #8a8a90; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal-links a { font-size: 12px; color: #8a8a90; text-decoration: none; }
.footer__legal-links a:hover { color: #fff; }
.footnotes { display: grid; gap: 6px; counter-reset: fn; }
.footnotes li { font-size: 12px; color: #8a8a90; line-height: 1.5; counter-increment: fn; padding-left: 20px; position: relative; }
.footnotes li::before { content: counter(fn); position: absolute; left: 0; color: #6a6a70; }

/* ============================================================= */
/* READINESS TOOL VIEW                                          */
/* ============================================================= */
.readiness { max-width: var(--content-max); margin: 0 auto; padding: 40px var(--gutter) var(--section-pad); }
.back-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; color: var(--text-secondary); font-size: var(--body-m); padding: 8px 0; margin-bottom: 24px; }
.back-link:hover { color: var(--sd-red); }
.back-link .ic { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s var(--ease); }
.back-link:hover .ic { transform: translateX(-3px); }
.readiness__hero { position: relative; padding: 56px 0 72px; border-bottom: 1px solid var(--n-3); }
.readiness__hero > * { max-width: 820px; }
.readiness__title { position: relative; font-family: var(--font-display); font-weight: 400; font-size: var(--h1); line-height: 1.06; letter-spacing: -0.005em; margin-bottom: 24px; }
.readiness__sub { position: relative; margin-bottom: 40px; }
.readiness__steps { padding-top: 64px; }
.readiness__steps .eyebrow { margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--n-1); border: 1px solid var(--n-3); border-radius: var(--radius); padding: 30px 24px; transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,20,40,0.10); }
.step__icon { display: flex; align-items: center; height: 40px; margin-bottom: 20px; color: var(--sd-red); }
.step__icon .msk { width: 34px; height: 34px; }
.step__num { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sd-red); }
.step__title { font-family: var(--font-display); font-weight: 400; font-size: 18px; margin: 8px 0 12px; white-space: nowrap; }
.step__body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================= */
/* RIGHT RAIL (docked side panel)                               */
/* ============================================================= */
.rail {
  position: fixed; top: var(--shell-h); right: 0; bottom: 0; width: var(--rail-w);
  background: #fff; z-index: 900; border-left: 1px solid var(--n-3);
  box-shadow: -12px 0 30px rgba(10,20,40,0.06);
  display: flex; flex-direction: column; animation: railIn 0.3s var(--ease);
}
@keyframes railIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.annotations-on .canvas { padding-right: calc(var(--rail-w) + 28px); }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--n-2); }
.rail__tabs { display: inline-flex; background: var(--n-1); border: 1px solid var(--n-3); border-radius: 10px; padding: 3px; gap: 2px; }
.rail__tab { border: none; background: transparent; color: var(--text-secondary); font-size: 13px; height: 30px; padding: 0 14px; border-radius: 7px; }
.rail__tab.is-active { background: #fff; color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.rail__close { width: 36px; height: 36px; flex: none; border: 1px solid var(--n-3); border-radius: 8px; background: #fff; display: grid; place-items: center; }
.rail__close:hover { background: var(--n-1); }
.rail__close .ic { width: 20px; height: 20px; stroke: var(--text-primary); stroke-width: 2; fill: none; stroke-linecap: round; }
.rail__body { padding: 20px 18px 32px; overflow-y: auto; }
.rail__hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.rail__panel[data-panel="rationale"] p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 14px; }
.anno-list { display: grid; gap: 14px; }
.anno-list button { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; width: 100%; text-align: left; background: var(--n-1); border: 1px solid var(--n-3); border-radius: 12px; padding: 14px; font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: var(--text-primary); transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease); }
.anno-list button:hover { background: #fff; border-color: var(--sd-red); transform: translateX(2px); }
.anno-list button:focus-visible { outline: 3px solid var(--sd-red); outline-offset: 2px; }
.anno-list button.is-active { border-color: var(--sd-red); background: #fdeff0; }
.anno-list__num { width: 24px; height: 24px; border-radius: 50%; background: var(--sd-red); color: #fff; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.anno-list__text { display: block; }
.anno-list__title { display: block; font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text-primary); margin-bottom: 5px; }

/* In-page annotation pins */
.pin { display: none; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--sd-red); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 14px; align-items: center; justify-content: center; z-index: 40; box-shadow: 0 2px 10px rgba(231,19,36,0.5); border: 2px solid #fff; user-select: none; transition: transform 0.15s var(--ease); }
.pin--onbtn { top: -12px; right: -12px; }
.annotations-on .pin { display: inline-flex; }
.annotations-on .pin--mobileonly { display: none; }
.annotations-on .viewport[data-mode="mobile"] .pin--mobileonly { display: inline-flex; }
.pin:hover, .pin.is-active { transform: scale(1.15); }
.pin.is-active { background: var(--sd-dark-red); }
.pin:focus-visible { outline: 3px solid var(--sd-red); outline-offset: 3px; }
.pin.pulse { animation: pinPulse 1s var(--ease) 2; }
@keyframes pinPulse { 0%,100% { box-shadow: 0 2px 10px rgba(231,19,36,0.5); } 50% { box-shadow: 0 0 0 12px rgba(231,19,36,0.22); } }

/* ============================================================= */
/* SCROLL REVEAL                                               */
/* ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================= */
/* CONTAINER QUERIES                                            */
/* ============================================================= */
@container page (max-width: 1080px) {
  :root { --section-pad: 96px; }
  .hero__title { font-size: 56px; }
  .hero__grid { min-height: 500px; }
  .ai-stat__num { font-size: 108px; }
}

@container page (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
  .hero__visual { order: -1; }
  .heartbeat { max-width: 340px; }
  .stagger { grid-template-columns: 1fr; gap: 24px; }
  .proof__body { padding-top: 0; }
  .ai-grid { grid-template-columns: 1fr; gap: 36px; }
  .ai-image { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step__title { white-space: normal; font-size: 22px; }
  .step__body { display: block; -webkit-line-clamp: none; overflow: visible; }
  .mgmt__tabs { flex-direction: column; gap: 12px; align-items: stretch; }
  .mgmt__link { display: none; }
  .close__inner { grid-template-columns: 1fr; }
  .close__cta { padding: 48px 40px; }

  /* Tablet and below: credibility line wraps, logo strips auto scroll */
  .cred__stat { white-space: normal; }
  .logo-strip { overflow: hidden; max-width: 100%; }
  .logo-strip__marquee { flex-wrap: nowrap; width: max-content; animation: marquee 22s linear infinite; }
  .logo-strip__track { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; }
  .logo-strip__track li { padding: 0 22px; }
  .logo-strip__track[aria-hidden="true"] { display: flex; }
  .logo-strip--oem img { filter: grayscale(1) opacity(0.7); }
  .logo-strip--apps { padding: 24px 0; overflow: hidden; }
  .logo-strip--apps .logo-strip__marquee { animation-duration: 26s; }
}

@container page (max-width: 640px) {
  :root { --section-pad: 72px; --gutter: 22px; --h2: 32px; --h3: 28px; --h1: 38px; --body-xl: 18px; }
  .hero { padding-bottom: 64px; }
  .nav { padding: 20px var(--gutter); }
  .nav__logo { height: 44px; }
  .hero__grid { padding: 8px var(--gutter) 0; }
  .hero__title { font-size: 42px; }
  .hero__brk { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link { justify-content: center; }
  .hero__cue { display: none; }
  .nav__links { gap: 14px; }
  .nav__link { display: none; }
  .ai-stat__num { font-size: 88px; }
  .ai-stat { gap: 16px; }
  .proof__bento { grid-template-columns: 1fr; }
  .bento__num { font-size: 52px; }
  .close__num { font-size: 84px; }
  .close__stat { padding: 36px 28px; }
  .mgmt__stage { padding: 30px 24px; }
  .steps { grid-template-columns: 1fr; }
  .close__actions { flex-direction: column; }
  .close__actions .btn { width: 100%; }
  .footer { padding: 56px var(--gutter) 36px; }
  .footer__main { grid-template-columns: 1fr; gap: 34px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__logo { height: 34px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cred__stat { font-size: 22px; }
  .cred .nowrap { white-space: normal; }
  .close__mark { display: none; }
  .logo-strip__track li { padding: 0 18px; }
}

/* Rail overlays instead of docking on narrow windows */
@media (max-width: 900px) {
  :root { --rail-w: min(384px, 92vw); }
  body.annotations-on .canvas { padding-right: 0; }
  .rail { box-shadow: -14px 0 44px rgba(10,20,40,0.18); }
}

/* ============================================================= */
/* REDUCED MOTION                                               */
/* ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .logo-strip__marquee { animation: none !important; }
  /* No motion: hide the expanding ripples and show a single static red ring instead. */
  .heartbeat__ripples { display: none; }
  .ring--3 { stroke: var(--sd-red); }
}

/* ============================================================= */
/* PRINT                                                        */
/* ============================================================= */
@media print {
  .shell, .resize-handle, .width-readout, .hero__cue, .rail { display: none !important; }
  .canvas { margin: 0; padding: 0 !important; }
  .viewport { box-shadow: none; border-radius: 0; max-width: none; width: 100% !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
