/* =============================================================
   AI Search Experts — Landing Page Styles
   Page-specific layout on top of the shared design system.
   ============================================================= */

/* =============================================================
   Layout primitives
   ============================================================= */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.section {
  padding: 64px clamp(24px, 5vw, 80px);
  background: var(--aise-canvas);
}
.section--alt    { background: var(--aise-surface); }
.section--alt-2  { background: var(--aise-surface); }
.section--cta    {
  padding: 80px clamp(24px, 5vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section__inner { max-width: 1060px; margin: 0 auto; }

.section__label {
  font-family: var(--aise-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--aise-accent-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--aise-space-4);
}
[data-theme="dark"] .section__label { color: var(--aise-accent-300); }

.section__heading {
  font-family: var(--aise-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--aise-text);
  margin-bottom: var(--aise-space-4);
  max-width: 640px;
  text-wrap: balance;
}

.section__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--aise-text-muted);
  max-width: 560px;
  margin-bottom: var(--aise-space-8);
  text-wrap: pretty;
}

/* =============================================================
   Top navigation (fixed, glass)
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  background: color-mix(in srgb, var(--aise-canvas) 80%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--aise-border);
  transition: background var(--aise-duration-base) var(--aise-ease),
              border-color var(--aise-duration-base) var(--aise-ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--aise-canvas) 95%, transparent);
  border-bottom-color: var(--aise-border-strong);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--aise-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--aise-text);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--aise-space-2);
}

.nav__link {
  font-family: var(--aise-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--aise-text-subtle);
  padding: 6px 14px;
  border-radius: var(--aise-r-md);
  transition: background var(--aise-duration-fast) var(--aise-ease),
              color var(--aise-duration-fast) var(--aise-ease);
}
.nav__link:hover {
  color: var(--aise-text);
  background: var(--aise-overlay-hover);
}

.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  font-size: 14px;
  color: var(--aise-text-subtle);
  border: 1px solid var(--aise-border-strong);
  border-radius: var(--aise-r-md);
  margin-left: var(--aise-space-2);
}
.nav__theme:hover { color: var(--aise-text); background: var(--aise-overlay-hover); }

/* ---------- Mobile hamburger button (hidden on desktop) ---------- */
.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--aise-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav__burger:hover { background: var(--aise-overlay-hover); }
.nav__burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--aise-text);
}

/* ---------- Mobile drawer (hidden on desktop, slide-in on mobile) ---------- */
.nav__drawer {
  display: none; /* desktop: completely off; mobile media query flips */
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--aise-ease, ease);
}
.nav__drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav__drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86%, 340px);
  background: var(--aise-surface);
  border-left: 1px solid var(--aise-border);
  padding: 18px 20px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  /* Allow internal scrolling when content overflows on short viewports
     (landscape phones), so the CTA + hint at the bottom stay reachable. */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav__drawer.is-open .nav__drawer-panel { transform: translateX(0); }

.nav__drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.nav__brand--drawer { font-size: 13px; gap: 8px; }

.nav__drawer-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--aise-border);
  border-radius: 8px;
  color: var(--aise-text);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav__drawer-close:hover { background: var(--aise-overlay-hover); }

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--aise-border);
  font-family: var(--aise-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--aise-text);
  text-decoration: none;
}
.nav__drawer-link:hover { color: var(--aise-accent-500); }
[data-theme="dark"] .nav__drawer-link:hover { color: var(--aise-accent-300); }
.nav__drawer-arrow {
  font-family: var(--aise-mono);
  font-size: 14px;
  color: var(--aise-text-subtle);
}

.nav__drawer-appearance {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__drawer-appearance-label {
  font-family: var(--aise-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--aise-text-muted);
}
.nav__drawer-appearance-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--aise-border);
  background: var(--aise-overlay-subtle);
}
.nav__drawer-appearance-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--aise-text-muted);
  font-family: var(--aise-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
}
.nav__drawer-appearance-btn.is-active {
  background: var(--aise-overlay-hover);
  color: var(--aise-text);
}

.nav__drawer-spacer { flex: 1; }

.nav__drawer-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--aise-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--aise-canvas);
  background: var(--aise-text);
  border-radius: 10px;
  padding: 14px 24px;
}
.nav__drawer-cta:hover { opacity: 0.9; }
.nav__drawer-hint {
  font-family: var(--aise-mono);
  font-size: 11px;
  color: var(--aise-text-subtle);
  margin-top: 10px;
  text-align: center;
}

/* ---------- Activation: phones portrait + landscape phones ----------
   The dual condition catches:
     - any viewport ≤800px wide (portrait phones, small portrait tablets)
     - OR any viewport ≤500px tall AND ≤1024px wide (landscape phones up to
       iPhone 14 Pro Max landscape at 932×430)
*/
@media (max-width: 800px), (max-height: 500px) and (max-width: 1024px) {
  .nav { height: 56px; }
  .nav__brand { font-size: 14px; }
  .nav__brand svg { width: 22px; height: 22px; }

  /* Hide the inline menu, show the burger */
  .nav__menu { display: none; }
  .nav__burger { display: inline-flex; }

  /* Drawer participates in the layout when at mobile */
  .nav__drawer { display: block; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px clamp(24px, 5vw, 60px) 80px;
  background: var(--aise-canvas);
}
@media (min-width: 1251px) {
  .hero { min-height: 100vh; }
}

.hero__glow {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--aise-accent-500) 35%, transparent) 0%,
    color-mix(in srgb, var(--aise-accent-700) 12%, transparent) 40%,
    transparent 70%
  );
  filter: blur(50px);
  pointer-events: none;
}

.hero__bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--aise-surface));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 100px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero__text { flex: 0 0 420px; max-width: 420px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: 9999px;
  background: var(--aise-overlay-subtle);
  border: 1px solid var(--aise-border);
  margin-bottom: var(--aise-space-8);
}
.hero__badge-tag {
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--aise-accent-500);
  color: var(--aise-white);
  font-family: var(--aise-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero__badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--aise-text-muted);
}

.hero__h1 {
  font-family: var(--aise-sans);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--aise-text);
  margin-bottom: var(--aise-space-5);
}

.hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--aise-text-muted);
  /* Reserve room for the typewriter's longest case ("Google AI Mode" wrap),
     so the line below it doesn't bounce as the word cycles. */
  min-height: calc(2 * 17px * 1.65);
}

.hero__type {
  font-family: var(--aise-mono);
  font-size: 0.88em;
  font-weight: 500;
  color: var(--aise-accent-500);
}
[data-theme="dark"] .hero__type { color: var(--aise-accent-300); }

.hero__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--aise-accent-500);
  margin-left: 1px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
[data-theme="dark"] .hero__caret { background: var(--aise-accent-300); }

@keyframes blink {
  50% { opacity: 0; }
}

.hero__ctas {
  display: flex;
  gap: var(--aise-space-3);
  margin-top: var(--aise-space-10);
}

.btn--cta-primary {
  background: var(--aise-text);
  color: var(--aise-canvas);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  height: auto;
  border-radius: var(--aise-r-lg);
}
.btn--cta-primary:hover:not(:disabled) {
  background: var(--aise-text);
  opacity: 0.9;
}

.btn--cta-secondary {
  background: transparent;
  color: var(--aise-text-muted);
  border: 1px solid var(--aise-border-strong);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  height: auto;
  border-radius: var(--aise-r-lg);
}

/* =============================================================
   Hero visual (right side)
   ============================================================= */
.hero__visual-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 16px;
  opacity: 0.85;
}
.hero__visual-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  border: 1px solid color-mix(in srgb, var(--aise-accent-500) 35%, transparent);
  box-shadow:
    0 0 15px color-mix(in srgb, var(--aise-accent-500) 25%, transparent),
    0 0 40px color-mix(in srgb, var(--aise-accent-700) 12%, transparent),
    inset 0 0 15px color-mix(in srgb, var(--aise-accent-500) 8%, transparent);
  pointer-events: none;
}
.hero__visual-inner {
  border-radius: 16px;
  overflow: hidden;
  background: var(--aise-canvas);
  padding: 16px;
}

.hero-visual {
  position: relative;
  width: 668px;
  height: 460px;
  max-width: 100%;
  display: flex;
  align-items: center;
  background: var(--aise-canvas);
}
.hero-visual__svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-visual__svg .grid       { stroke: var(--aise-border); }
/* Curves start dim + dashed; reveal flips them to solid colored strokes.
   stroke-dasharray is transitioned with 0s delay so it switches cleanly
   (interpolating dasharray looks janky), while stroke/opacity ease. */
.hero-visual__svg .link {
  stroke-dasharray: 4 4;
  stroke-width: 0.5;
  opacity: 0.3;
  transition: stroke var(--aise-duration-base) var(--aise-ease),
              stroke-width var(--aise-duration-base) var(--aise-ease),
              opacity var(--aise-duration-base) var(--aise-ease);
}
.hero-visual__svg .link.is-on {
  stroke-dasharray: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

/* Brand card (left). Default state is "inactive" (subtle border, gray dot,
   no pulse). JS adds .is-active at 500ms to flip into the "AI Search
   optimized" state. */
.brand-card {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  padding: 24px 20px;
  border-radius: 12px;
  background: var(--aise-surface);
  border: 1px solid var(--aise-border-strong);
  box-shadow: none;
  transition: border-color 0.6s var(--aise-ease), box-shadow 0.6s var(--aise-ease);
}
.brand-card.is-active {
  border-color: color-mix(in srgb, var(--aise-accent-500) 40%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--aise-accent-500) 12%, transparent);
}
.brand-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--aise-overlay-subtle);
  border: 1px solid var(--aise-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--aise-space-3);
}
.brand-card__name {
  font-family: var(--aise-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--aise-text);
  margin-bottom: 2px;
}
.brand-card__url {
  font-family: var(--aise-mono);
  font-size: 10px;
  color: var(--aise-text-subtle);
  margin-bottom: var(--aise-space-4);
}
.brand-card__status {
  padding-top: var(--aise-space-3);
  border-top: 1px solid var(--aise-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aise-text-subtle);
  transition: background 0.3s var(--aise-ease);
}
.brand-card__status-text {
  font-family: var(--aise-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--aise-text-subtle);
  transition: color 0.3s var(--aise-ease);
}
.brand-card.is-active .brand-card__dot { background: var(--aise-strong); }
.brand-card.is-active .brand-card__status-text { color: var(--aise-strong); }
[data-theme="dark"] .brand-card.is-active .brand-card__status-text,
[data-theme="dark"] .brand-card.is-active .brand-card__dot { color: oklch(72% 0.14 152); }
[data-theme="dark"] .brand-card.is-active .brand-card__dot { background: oklch(72% 0.14 152); }

.brand-card__pulse {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--aise-accent-500);
  opacity: 0;
  transition: opacity 0.3s var(--aise-ease);
}
.brand-card.is-active .brand-card__pulse { opacity: 1; }
.brand-card__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--aise-accent-500);
  animation: pulseRing 1.5s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Platform card stack (right) */
.platform-stack {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  width: 280px;
  background: var(--aise-surface);
  border: 1px solid var(--aise-border);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.5s var(--aise-ease), transform 0.5s var(--aise-ease);
}
.platform-card.is-on { opacity: 1; transform: translateX(0); }

.platform-card[data-color="green"]  { box-shadow: 0 0 20px oklch(0.72 0.14 155 / 0.10); border-color: oklch(0.72 0.14 155 / 0.30); }
.platform-card[data-color="blue"]   { box-shadow: 0 0 20px color-mix(in srgb, var(--aise-accent-500) 10%, transparent); border-color: color-mix(in srgb, var(--aise-accent-500) 30%, transparent); }

.platform-card__bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aise-text-subtle);
  flex-shrink: 0;
}
.platform-card[data-color="green"].is-on .platform-card__bullet { background: oklch(0.72 0.14 155); }
.platform-card[data-color="blue"].is-on  .platform-card__bullet { background: var(--aise-accent-500); }
[data-theme="dark"] .platform-card[data-color="blue"].is-on .platform-card__bullet { background: var(--aise-accent-300); }

.platform-card__logo {
  width: 30px; height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aise-overlay-subtle);
  border: 1px solid var(--aise-border);
  overflow: hidden;
}
.platform-card__logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.3);
  transition: filter 0.5s var(--aise-ease);
}
.platform-card.is-on .platform-card__logo img { filter: none; }
.platform-card__logo--invert.is-on img { filter: brightness(0) invert(1); }
[data-theme="dark"] .platform-card__logo--invert.is-on img { filter: none; }
.platform-card__logo--white { background: #fff; border: none; }
.platform-card__logo--white img { width: 30px; height: 30px; object-fit: cover; border-radius: 7px; filter: none; opacity: 0.4; }
.platform-card.is-on .platform-card__logo--white img { opacity: 1; }

.platform-card__body { flex: 1; min-width: 0; }
.platform-card__row {
  display: flex; align-items: center; justify-content: space-between;
}
.platform-card__name {
  font-family: var(--aise-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--aise-text);
}
.platform-card__score {
  font-family: var(--aise-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--aise-text-subtle);
}
.platform-card[data-color="green"].is-on .platform-card__score { color: oklch(0.72 0.14 155); }
.platform-card[data-color="blue"].is-on  .platform-card__score { color: var(--aise-accent-500); }
[data-theme="dark"] .platform-card[data-color="blue"].is-on .platform-card__score { color: var(--aise-accent-300); }

.platform-card__sub-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.platform-card__sub {
  font-family: var(--aise-mono);
  font-size: 10px;
  color: var(--aise-text-subtle);
}
.platform-card__pill {
  font-family: var(--aise-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.4s var(--aise-ease);
}
.platform-card.is-on .platform-card__pill { opacity: 1; }
.platform-card[data-color="green"] .platform-card__pill {
  color: oklch(0.72 0.14 155);
  background: oklch(0.72 0.14 155 / 0.10);
}
.platform-card[data-color="blue"] .platform-card__pill {
  color: var(--aise-accent-500);
  background: color-mix(in srgb, var(--aise-accent-500) 10%, transparent);
}
[data-theme="dark"] .platform-card[data-color="blue"] .platform-card__pill { color: var(--aise-accent-300); }

.platform-card__bar {
  margin-top: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--aise-overlay-hover);
  overflow: hidden;
}
.platform-card__bar-fill {
  width: 0;
  height: 100%;
  background: var(--aise-text-subtle);
  border-radius: 2px;
  transition: width 0.8s var(--aise-ease) 0.2s, background var(--aise-duration-base) var(--aise-ease);
}
.platform-card.is-on .platform-card__bar-fill { width: var(--bar-pct, 0); }
.platform-card[data-color="green"].is-on .platform-card__bar-fill { background: oklch(0.72 0.14 155); }
.platform-card[data-color="blue"].is-on  .platform-card__bar-fill { background: var(--aise-accent-500); }
[data-theme="dark"] .platform-card[data-color="blue"].is-on .platform-card__bar-fill { background: var(--aise-accent-300); }

@media (max-width: 1250px) {
  .hero__inner { flex-direction: column; gap: var(--aise-space-12); }
  .hero__text { flex: 0 0 auto; max-width: 540px; text-align: center; margin: 0 auto; }
  .hero__badge { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  /* Snug the bordered visual frame around the 668px content so it doesn't
     stretch edge-to-edge with empty space in the column-flipped layout */
  .hero__visual-wrap { width: 100%; max-width: 700px; margin: 0 auto; }

  /* Recenter the radial glow once the text column is centered */
  .hero__glow {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
  }

  /* Bottom-fade washes over platform cards after the column-flip — disable it */
  .hero__bottom-fade { display: none; }
}
/* =============================================================
   Mobile hero visual (vertical-flow animation)
   Hidden on desktop, shown at mobile breakpoint (≤800px portrait OR
   landscape phone). Matches Claude Design's mobile spec.
   ============================================================= */
.hero__visual-mobile { display: none; }

@media (max-width: 800px), (max-height: 500px) and (max-width: 1024px) {
  /* Hide the desktop hero visual (curves + brand-card + platform-stack) */
  .hero__visual-wrap { display: none; }

  /* Hero text restyling for mobile sizing */
  .hero { min-height: 100vh; padding: 88px 20px 48px; }
  /* Cap the hero column at a "phone width" so the visual frame and the
     text feel like one cohesive narrow layout on wider mobile viewports
     (small tablets, landscape phones). Below ~480px wide this is a no-op. */
  .hero__inner { gap: 4px; max-width: 480px; margin: 0 auto; }
  .hero__text { max-width: none; text-align: left; margin: 0; flex: 0 0 auto; }
  .hero__badge { margin-left: 0; margin-right: 0; padding: 4px 12px 4px 5px; margin-bottom: 22px; }
  .hero__badge-tag { padding: 2px 7px; font-size: 9px; }
  .hero__badge-text { font-size: 12px; }
  .hero__h1 { font-size: 40px; line-height: 1.04; margin-bottom: 16px; }
  .hero__sub { font-size: 16px; line-height: 1.55; min-height: calc(2 * 16px * 1.55); }
  .hero__ctas {
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 0;
    justify-content: flex-start;
  }
  .hero__ctas .btn { width: 100%; padding: 14px 24px; border-radius: 10px; }

  /* Mobile visual frame — fills the capped hero column */
  .hero__visual-mobile {
    display: block;
    position: relative;
    margin-top: 32px;
    border-radius: 16px;
    width: 100%;
  }
  .hero__visual-mobile::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    border: 1px solid color-mix(in srgb, var(--aise-accent-500) 35%, transparent);
    box-shadow:
      0 0 15px color-mix(in srgb, var(--aise-accent-500) 25%, transparent),
      0 0 40px color-mix(in srgb, var(--aise-accent-700) 12%, transparent),
      inset 0 0 15px color-mix(in srgb, var(--aise-accent-500) 8%, transparent);
    pointer-events: none;
  }
  .hero__mobile-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--aise-canvas);
    padding: 14px;
  }
  .hero__mobile-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .hero__mobile-grid line { stroke: var(--aise-border); stroke-width: 1; }
  .hero__mobile-links path {
    fill: none;
    stroke-width: 0.5;
    stroke: var(--aise-border);
    stroke-dasharray: 4 4;
    opacity: 0.3;
    transition: stroke 0.6s var(--aise-ease), stroke-width 0.6s var(--aise-ease),
                opacity 0.6s var(--aise-ease), stroke-dasharray 0s 0.6s;
  }
  .hero__mobile-links path.is-on {
    stroke-width: 1.2;
    stroke-dasharray: none;
    opacity: 0.55;
  }

  /* Brand card */
  .hero__mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--aise-surface);
    border: 1px solid var(--aise-border);
    transition: border-color 0.6s var(--aise-ease), box-shadow 0.6s var(--aise-ease);
  }
  .hero__mobile-brand.is-active {
    border-color: color-mix(in srgb, var(--aise-accent-500) 40%, transparent);
    box-shadow: 0 0 40px color-mix(in srgb, var(--aise-accent-500) 20%, transparent);
  }
  .hero__mobile-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--aise-overlay-subtle);
    border: 1px solid var(--aise-border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .hero__mobile-brand-text { flex: 1; min-width: 0; }
  .hero__mobile-brand-name {
    font-family: var(--aise-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--aise-text);
  }
  .hero__mobile-brand-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
  }
  .hero__mobile-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aise-text-subtle);
    transition: background 0.3s var(--aise-ease);
  }
  .hero__mobile-brand-status-label {
    font-family: var(--aise-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--aise-text-subtle);
    transition: color 0.3s var(--aise-ease);
  }
  .hero__mobile-brand.is-active .hero__mobile-brand-dot { background: var(--aise-strong); }
  .hero__mobile-brand.is-active .hero__mobile-brand-status-label {
    color: var(--aise-strong);
  }
  /* Pulsing anchor dot at bottom-center, only visible when active */
  .hero__mobile-brand-pulse {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--aise-accent-500);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s var(--aise-ease);
  }
  .hero__mobile-brand-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--aise-accent-500);
    animation: pulseRing 1.5s ease-out infinite;
  }
  .hero__mobile-brand.is-active .hero__mobile-brand-pulse { opacity: 1; }

  /* Chip grid */
  .hero__mobile-chips {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 44px;
  }
  .hero__mobile-chip--last {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 5px);
  }

  .hero__mobile-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--aise-overlay-subtle);
    border: 1px solid var(--aise-border);
    opacity: 0.25;
    transform: translateY(6px);
    transition: opacity 0.5s var(--aise-ease), transform 0.5s var(--aise-ease),
                border-color 0.5s var(--aise-ease), box-shadow 0.5s var(--aise-ease),
                background 0.5s var(--aise-ease);
  }
  .hero__mobile-chip.is-on {
    opacity: 1;
    transform: translateY(0);
    background: var(--aise-surface);
  }
  .hero__mobile-chip[data-color="green"].is-on {
    border-color: oklch(0.72 0.14 155 / 0.30);
    box-shadow: 0 0 16px oklch(0.72 0.14 155 / 0.10);
  }
  .hero__mobile-chip[data-color="blue"].is-on {
    border-color: color-mix(in srgb, var(--aise-accent-500) 30%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--aise-accent-500) 10%, transparent);
  }

  .hero__mobile-chip-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aise-overlay-subtle);
    border: 1px solid var(--aise-border);
    overflow: hidden;
  }
  .hero__mobile-chip-logo img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.3);
    transition: filter 0.5s var(--aise-ease);
  }
  .hero__mobile-chip.is-on .hero__mobile-chip-logo img { filter: none; }
  .hero__mobile-chip-logo--invert.is-on img,
  .hero__mobile-chip.is-on .hero__mobile-chip-logo--invert img { filter: brightness(0) invert(1); }
  [data-theme="dark"] .hero__mobile-chip.is-on .hero__mobile-chip-logo--invert img { filter: none; }
  .hero__mobile-chip-logo--white {
    background: #fff;
    border: none;
  }
  .hero__mobile-chip-logo--white img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 6px;
    filter: none;
    opacity: 0.4;
  }
  .hero__mobile-chip.is-on .hero__mobile-chip-logo--white img { opacity: 1; }

  .hero__mobile-chip-body { flex: 1; min-width: 0; }
  .hero__mobile-chip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }
  .hero__mobile-chip-name {
    font-family: var(--aise-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--aise-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero__mobile-chip-score {
    font-family: var(--aise-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--aise-text-subtle);
    flex-shrink: 0;
  }
  .hero__mobile-chip[data-color="green"].is-on .hero__mobile-chip-score { color: oklch(0.72 0.14 155); }
  .hero__mobile-chip[data-color="blue"].is-on .hero__mobile-chip-score { color: var(--aise-accent-500); }
  [data-theme="dark"] .hero__mobile-chip[data-color="blue"].is-on .hero__mobile-chip-score { color: var(--aise-accent-300); }

  .hero__mobile-chip-bar {
    margin-top: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--aise-overlay-hover);
    overflow: hidden;
  }
  .hero__mobile-chip-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 2px;
    background: var(--aise-text-subtle);
    transition: width 0.8s var(--aise-ease) 0.2s, background var(--aise-duration-base) var(--aise-ease);
  }
  .hero__mobile-chip.is-on .hero__mobile-chip-bar-fill { width: var(--bar-pct, 0); }
  .hero__mobile-chip[data-color="green"].is-on .hero__mobile-chip-bar-fill { background: oklch(0.72 0.14 155); }
  .hero__mobile-chip[data-color="blue"].is-on .hero__mobile-chip-bar-fill { background: var(--aise-accent-500); }
  [data-theme="dark"] .hero__mobile-chip[data-color="blue"].is-on .hero__mobile-chip-bar-fill { background: var(--aise-accent-300); }
}

/* =============================================================
   "Shift" stats section
   ============================================================= */
.shift-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--aise-border);
  border-radius: 10px;
  overflow: hidden;
}
.shift-stat { padding: 36px 32px; background: var(--aise-surface); }
.shift-stat__value {
  font-family: var(--aise-sans);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--aise-space-3);
}
.shift-stat__label {
  font-size: 14px;
  color: var(--aise-text-muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .shift-stats { grid-template-columns: 1fr; }
}

/* =============================================================
   Process steps
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--aise-space-5);
  margin-top: var(--aise-space-10);
}
.step {
  padding: 36px 28px;
  border-radius: 10px;
  background: var(--aise-overlay-subtle);
  border: 1px solid var(--aise-border);
  transition: background var(--aise-duration-base) var(--aise-ease),
              border-color var(--aise-duration-base) var(--aise-ease);
}
.step:hover {
  background: var(--aise-surface);
  border-color: var(--aise-border-strong);
}
.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--aise-space-5);
}
.step__num {
  font-family: var(--aise-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--aise-accent-500);
}
[data-theme="dark"] .step__num { color: var(--aise-accent-300); }
.step__line {
  flex: 1;
  height: 1px;
  background: var(--aise-border);
  transition: background var(--aise-duration-base) var(--aise-ease);
}
.step:hover .step__line {
  background: linear-gradient(90deg, var(--aise-accent-500), var(--aise-accent-300));
}
.step__title {
  font-family: var(--aise-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--aise-text);
  margin-bottom: var(--aise-space-3);
}
.step__desc {
  font-size: 14px;
  color: var(--aise-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

/* =============================================================
   Platforms grid
   ============================================================= */
.platforms-grid {
  display: flex;
  gap: var(--aise-space-3);
}
.platform-tile {
  flex: 1;
  padding: 28px 16px;
  border-radius: 10px;
  background: var(--aise-overlay-subtle);
  border: 1px solid var(--aise-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--aise-space-3);
  transition: background var(--aise-duration-base) var(--aise-ease),
              border-color var(--aise-duration-base) var(--aise-ease);
}
.platform-tile:hover {
  background: var(--aise-surface);
  border-color: var(--aise-border-strong);
}
.platform-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--aise-overlay-hover);
  border: 1px solid var(--aise-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--aise-duration-base) var(--aise-ease);
}
.platform-tile__icon img { width: 24px; height: 24px; object-fit: contain; }
.platform-tile__icon--invert img { filter: none; }
[data-theme="dark"] .platform-tile__icon--invert img { filter: brightness(0) invert(1); }

.platform-tile__name {
  font-family: var(--aise-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--aise-text);
  margin-bottom: 2px;
}
.platform-tile__sub {
  font-family: var(--aise-mono);
  font-size: 11px;
  color: var(--aise-text-subtle);
}
.platform-tile__share {
  font-family: var(--aise-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--aise-overlay-hover);
  color: var(--aise-text-subtle);
  transition: background var(--aise-duration-base) var(--aise-ease),
              color var(--aise-duration-base) var(--aise-ease);
}
.platform-tile:hover .platform-tile__share {
  background: linear-gradient(135deg, var(--aise-accent-500), var(--aise-accent-300));
  color: var(--aise-white);
}

@media (max-width: 900px) {
  .platforms-grid { flex-wrap: wrap; }
  .platform-tile { flex: 1 1 calc(50% - var(--aise-space-3)); }
}
@media (max-width: 480px) {
  .platform-tile { flex: 1 1 100%; }
}

/* =============================================================
   Results / metrics + testimonial
   ============================================================= */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--aise-space-5);
  margin-top: var(--aise-space-10);
  margin-bottom: var(--aise-space-12);
}
.metric {
  padding: 40px 28px;
  border-radius: 10px;
  background: var(--aise-overlay-subtle);
  border: 1px solid var(--aise-border);
  text-align: center;
}
.metric__value {
  font-family: var(--aise-sans);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--aise-space-3);
}
.metric__label {
  font-family: var(--aise-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--aise-text);
  margin-bottom: var(--aise-space-1);
}
.metric__sub {
  font-family: var(--aise-mono);
  font-size: 12px;
  color: var(--aise-text-subtle);
}

@media (max-width: 720px) { .metrics { grid-template-columns: 1fr; } }

.testimonial {
  position: relative;
  padding: 36px 40px;
  border-radius: 10px;
  background: var(--aise-surface);
  border: 1px solid var(--aise-border);
  overflow: hidden;
}
.testimonial::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aise-accent-500), var(--aise-accent-300));
}
.testimonial__quote {
  font-size: 18px;
  line-height: 1.65;
  color: var(--aise-text-muted);
  font-style: italic;
  margin-bottom: var(--aise-space-5);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--aise-space-3);
}
.testimonial__avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--aise-accent-500), var(--aise-accent-300));
  color: var(--aise-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--aise-sans);
  font-size: 14px;
  font-weight: 600;
}
.testimonial__name {
  font-family: var(--aise-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--aise-text);
}
.testimonial__role {
  font-family: var(--aise-mono);
  font-size: 11px;
  color: var(--aise-text-subtle);
}

/* =============================================================
   Closing CTA
   ============================================================= */
.cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse,
    color-mix(in srgb, var(--aise-accent-500) 35%, transparent) 0%,
    transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}
.cta__h2 {
  font-family: var(--aise-sans);
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--aise-text);
  margin-bottom: var(--aise-space-5);
  text-wrap: balance;
}
.cta__sub {
  font-size: 17px;
  color: var(--aise-text-muted);
  line-height: 1.65;
  margin-bottom: var(--aise-space-10);
}
.cta__hint {
  margin-top: var(--aise-space-4);
  font-family: var(--aise-mono);
  font-size: 12px;
  color: var(--aise-text-subtle);
}

/* =============================================================
   Footer
   ============================================================= */
.footer {
  padding: 40px clamp(24px, 5vw, 80px);
  background: var(--aise-canvas);
  border-top: 1px solid var(--aise-border);
}
.footer__inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aise-space-6);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--aise-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--aise-text-subtle);
}
.footer__links { display: flex; gap: var(--aise-space-6); }
.footer__link {
  font-size: 13px;
  color: var(--aise-text-subtle);
}
.footer__link:hover { color: var(--aise-text); }
.footer__copy {
  font-family: var(--aise-mono);
  font-size: 11px;
  color: var(--aise-text-subtle);
}

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}

/* =============================================================
   Mobile section restyling
   Applies Claude Design's mobile layout to the existing sections
   (Shift, Process, Platforms, Results, CTA, Footer). HTML unchanged.
   ============================================================= */
@media (max-width: 800px), (max-height: 500px) and (max-width: 1024px) {
  /* ---------- Section primitives ---------- */
  .section { padding: 64px 20px; }
  .section--cta { padding: 80px 20px; }
  /* Cap content column to a phone-style width, centered. On phones
     (<480px) this is a no-op; on tablets it keeps content from feeling
     orphaned in a wide expanse. */
  .section__inner { max-width: 480px; }
  .section__heading { font-size: 30px; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 14px; }
  .section__sub { font-size: 15px; line-height: 1.6; margin-bottom: 36px; }
  .section__label { font-size: 11px; letter-spacing: 0.12em; }

  /* ---------- Shift: horizontal stat cards stacked vertically ---------- */
  .shift-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .shift-stat {
    padding: 24px 22px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
  }
  .shift-stat__value {
    font-size: 44px;
    margin-bottom: 0;
    min-width: 60px;
  }
  .shift-stat__label { font-size: 13px; line-height: 1.45; min-width: 0; }

  /* ---------- Process: tighter step cards ---------- */
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .step { padding: 24px 22px; border-radius: 12px; }
  .step__head { gap: 12px; margin-bottom: 14px; }
  .step__num { font-size: 12px; }
  .step__title { font-size: 19px; margin-bottom: 8px; }
  .step__desc { font-size: 14px; line-height: 1.55; }

  /* ---------- Platforms: 2-col grid, last item spans full width ---------- */
  .platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-wrap: initial; /* override the flex-based wrap from the ≤900 block */
  }
  .platform-tile {
    flex: initial;
    padding: 18px 14px;
    border-radius: 12px;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }
  .platform-tile:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
  .platform-tile__icon { width: 38px; height: 38px; border-radius: 9px; }
  .platform-tile__name { font-size: 14px; margin-bottom: 2px; }
  .platform-tile__sub { font-size: 10px; }
  .platform-tile__share {
    font-size: 10px;
    padding: 2px 8px;
    margin-top: 4px;
    align-self: flex-start;
  }

  /* ---------- Results: horizontal metric cards ---------- */
  .metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 28px;
  }
  .metric {
    padding: 22px 22px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 18px;
    text-align: left;
  }
  .metric__value {
    font-size: 44px;
    margin-bottom: 0;
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: center;
    min-width: 60px;
  }
  .metric__label { font-size: 14px; margin-bottom: 2px; grid-column: 2; align-self: end; min-width: 0; }
  .metric__sub { font-size: 11px; grid-column: 2; align-self: start; min-width: 0; }

  .testimonial { padding: 26px 22px; border-radius: 12px; }
  .testimonial__quote { font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
  .testimonial__avatar { width: 34px; height: 34px; font-size: 13px; }
  .testimonial__name { font-size: 13px; }
  .testimonial__role { font-size: 10px; }

  /* ---------- CTA: tighter, full-width button ---------- */
  .cta__inner { max-width: 480px; }
  .cta__h2 { font-size: 34px; line-height: 1.04; margin-bottom: 16px; }
  .cta__sub { font-size: 15px; line-height: 1.55; margin-bottom: 28px; }
  .cta__glow { width: 460px; height: 300px; }
  .section--cta .btn--cta-primary { width: 100%; padding: 14px 28px; border-radius: 10px; }
  .cta__hint { font-size: 11px; margin-top: 12px; }

  /* ---------- Footer: stacked, left-aligned ---------- */
  .footer { padding: 32px 20px 28px; }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
  }
  .footer__brand { font-size: 13px; }
  .footer__links { gap: 20px; }
  .footer__link { font-size: 13px; }
  .footer__copy { font-size: 10px; }
}

/* ---------- Landscape phones (low height, regardless of width) ----------
   Shrinks hero h1/padding so the buttons stay reachable above the fold
   on short viewports like iPhone X landscape (812×375). */
@media (max-height: 500px) and (max-width: 1024px) {
  .hero {
    min-height: 0;
    padding: 72px 20px 32px;
  }
  .hero__h1 { font-size: 28px; margin-bottom: 12px; }
  .hero__sub {
    font-size: 14px;
    line-height: 1.45;
    /* Override the 2-line min-height reservation since paragraphs are
       shorter at this font size; let it auto-size. */
    min-height: 0;
  }
  .hero__badge { margin-bottom: 14px; }
  .hero__ctas { margin-top: 20px; }
  .hero__visual-mobile { margin-top: 20px; }
}
