/* ============================================================
   ARLO — web foundation V2 (cinematic)
   Tokens carried from V1 + glass header, warm bloom,
   3D phone motif, app-ui chat screen, full-screen panels.
   ============================================================ */

/* ----------  TOKENS  ---------- */
:root {
  /* Arlo design system — lavender surface is home */
  --paper:        #EFE9FB;
  --paper-2:      #F6F3FC;
  --paper-raised: #ffffff;
  --lilac:        #8B5CF6;
  --lilac-soft:   #A78BFA;

  --purple:       #8B5CF6;
  --purple-deep:  #6D45D6;
  --purple-ink:   #5A34C0;
  --purple-wash:  #efeafd;

  /* system ink scale */
  --text-primary:   #1A1722;
  --text-secondary: #6B6577;
  --text-tertiary:  #9A93A8;
  --on-purple:      #ffffff;

  /* canonical macro palette — fixed hues, never remapped */
  --protein: #7C5CF0;
  --carbs:   #F1AA5A;
  --fat:     #5AB496;

  /* semantic — trend badges only */
  --pos:      #3E9E7E;
  --pos-soft: rgba(62,158,126,.13);
  --pos-text: #1B6B4B;
  --neg:      #D98A6A;
  --neg-soft: rgba(217,138,106,.15);
  --neg-text: #BD6A4C;

  --card-lavender: #F5F2FF;

  --hairline:   rgba(26, 23, 34, 0.07);
  --hairline-2: rgba(26, 23, 34, 0.10);
  --fill-soft:  rgba(139, 92, 246, 0.06);

  --r-pill: 999px;
  --r-lg:   24px;
  --r-md:   18px;
  --r-sm:   12px;

  --shadow-sm: 0 1px 2px rgba(74,45,120,.05), 0 6px 18px -10px rgba(74,45,120,.18);
  --shadow-md: 0 2px 4px rgba(74,45,120,.05), 0 18px 40px -20px rgba(74,45,120,.22);
  --shadow-lg: 0 4px 8px rgba(74,45,120,.05), 0 40px 80px -32px rgba(74,45,120,.30);
  --shadow-phone: 0 50px 90px -40px rgba(74,45,120,.55), 0 20px 40px -24px rgba(74,45,120,.35);
  --shadow-purple: 0 10px 30px -8px rgba(139,92,246,.45);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;

  --maxw: 1240px;
}

/* ----------  RESET  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--paper), var(--paper-2) 45%);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--purple); color: #fff; }

/* ----------  WARM BLOOM (signature atmosphere)  ---------- */
.bloom {
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.bloom span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  will-change: transform;
}
.bloom .b1 { width: 52vw; height: 52vw; left: -8vw;  top: -6vh;  background: radial-gradient(circle, rgba(139,92,246,.34), transparent 66%); animation: drift1 26s ease-in-out infinite; }
.bloom .b2 { width: 46vw; height: 46vw; right: -10vw; top: 14vh;  background: radial-gradient(circle, rgba(167,139,250,.38), transparent 66%); animation: drift2 32s ease-in-out infinite; }
.bloom .b3 { width: 60vw; height: 60vw; left: 8vw;   top: 78vh;  background: radial-gradient(circle, rgba(139,92,246,.22), transparent 68%); animation: drift3 38s ease-in-out infinite; }
.bloom .b4 { width: 44vw; height: 44vw; right: -6vw; top: 140vh; background: radial-gradient(circle, rgba(201,187,246,.34), transparent 66%); animation: drift1 30s ease-in-out infinite reverse; }
.bloom .b5 { width: 50vw; height: 50vw; left: -6vw;  top: 210vh; background: radial-gradient(circle, rgba(139,92,246,.26), transparent 68%); animation: drift2 34s ease-in-out infinite; }
.bloom .b6 { width: 56vw; height: 56vw; right: 0;    top: 280vh; background: radial-gradient(circle, rgba(201,187,246,.34), transparent 68%); animation: drift3 28s ease-in-out infinite reverse; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vh) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,5vh) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,-4vh) scale(1.14); } }

.bloom-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246,243,252,.28), rgba(246,243,252,.10) 30%, rgba(246,243,252,.28));
}

/* ----------  GLASS HEADER (three floating islands)  ---------- */
.glass-header {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1240px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;            /* shell is just for layout */
}
.glass-header > * { pointer-events: auto; }

/* shared frosted-glass island */
.gh-island {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: rgba(255,253,251,.5);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6),
              inset 0 1px 0 rgba(255,255,255,.9),
              0 14px 36px -18px rgba(74,45,120,.45);
  transition: background .3s ease, box-shadow .3s ease, transform .22s cubic-bezier(.22,1,.36,1);
}

/* left — logo island */
.gh-brand {
  padding: 12px 22px;
  justify-content: center;
}
.gh-brand img { height: 24px; width: auto; display: block; }

/* centre — nav-links island */
.gh-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 10px;
  gap: 2px;
}
.gh-link {
  display: none;
  white-space: nowrap;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  transition: color .2s ease, background .2s ease;
}
.gh-link:hover { color: var(--purple-deep); background: rgba(139,92,246,.1); }

/* right — CTA island */
.gh-cta {
  gap: 8px;
  white-space: nowrap;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--purple-ink);
  padding: 13px 26px;
}
.gh-cta:hover { transform: translateY(-2px); background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(139,92,246,.4), inset 0 1px 0 rgba(255,255,255,.9), 0 16px 32px -14px rgba(139,92,246,.5); }
.gh-cta svg { transition: transform .22s cubic-bezier(.22,1,.36,1); }
.gh-cta:hover svg { transform: translateX(3px); }

.glass-header.is-scrolled .gh-island {
  background: rgba(255,253,251,.65);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7),
              inset 0 1px 0 rgba(255,255,255,.95),
              0 20px 46px -20px rgba(74,45,120,.5);
}

@media (min-width: 760px) { .gh-link { display: inline-flex; } }
@media (max-width: 759px) {
  .gh-nav { display: none; }
  .gh-brand { padding: 10px 18px; }
  .gh-brand img { height: 22px; }
  .gh-cta { padding: 11px 20px; font-size: 14.5px; }
}

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 17px 30px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, background .2s ease;
}
.btn svg { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.btn-primary {
  background: linear-gradient(180deg, #9a6bff 0%, var(--purple) 48%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(139,92,246,.55); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: rgba(255,253,251,.7);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow-md); }

/* ----------  FULL-SCREEN PANELS  ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 132px 0 96px;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.panel-split.reverse .col-type { order: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(139,92,246,.16); }

.display {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  color: var(--text-primary);
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--purple-deep); }
.lede {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 36px;
  max-width: 26em;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.panel-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 30px; font-size: 14.5px; color: var(--text-tertiary);
}
.panel-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-tertiary); }

/* ----------  3D PHONE MOTIF  ---------- */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1600px;
}
.stage::after { /* contact glow on the bloom */
  content: "";
  position: absolute;
  width: 90%; height: 70%;
  background: radial-gradient(closest-side, rgba(139,92,246,.30), transparent 72%);
  filter: blur(30px);
  z-index: 0;
}
.device {
  position: relative;
  z-index: 1;
  width: min(330px, 76vw);
  border-radius: 50px;
  padding: 12px;
  background: linear-gradient(155deg, #ffffff, #ece6f6 60%, #e3dbf2);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255,255,255,.8);
  transform-style: preserve-3d;
  will-change: transform;
}
.device.float-a { animation: floatA 11s ease-in-out infinite; }
.device.float-b { animation: floatB 12.5s ease-in-out infinite; }
.device.float-c { animation: floatC 13s ease-in-out infinite; }
@keyframes floatA {
  0%,100% { transform: rotateY(-15deg) rotateX(7deg) translateY(0); }
  50%     { transform: rotateY(-7deg)  rotateX(3deg) translateY(-18px); }
}
@keyframes floatB {
  0%,100% { transform: rotateY(14deg) rotateX(6deg) translateY(-6px); }
  50%     { transform: rotateY(6deg)  rotateX(2deg) translateY(12px); }
}
@keyframes floatC {
  0%,100% { transform: rotateY(-4deg) rotateX(4deg) translateY(0); }
  50%     { transform: rotateY(4deg)  rotateX(1deg) translateY(-14px); }
}
.device-screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: #f3effb;
  aspect-ratio: 1260 / 2736;
}
.device-screen > img { width: 100%; height: 100%; object-fit: cover; }
.device::before { /* notch pill */
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%) translateZ(1px);
  width: 34%; height: 7px;
  border-radius: 99px;
  background: rgba(36,28,46,.16);
  z-index: 3;
}

/* ----------  APP-UI (custom chat screen inside a phone)  ---------- */
.au {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e7e0f6 0%, #efe9f9 26%, #f7f3fc 60%, #fdfbfe 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--text-primary);
}
.au strong { font-variant-numeric: tabular-nums; }
.au-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 6px; font-weight: 700; font-size: 15px;
}
.au-status .sig { display: inline-flex; gap: 5px; align-items: center; opacity: .92; }
.au-status .sig span { display: inline-block; }
.au-bars { width: 17px; height: 11px; background:
  linear-gradient(to right, currentColor 0 3px, transparent 3px 4px, currentColor 4px 7px, transparent 7px 8px, currentColor 8px 11px, transparent 11px 12px, currentColor 12px 17px); }
.au-batt { width: 24px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.6px rgba(36,28,46,.5); position: relative; }
.au-batt::before { content:""; position:absolute; inset:2px; right:7px; background: var(--text-primary); border-radius: 1px; }
.au-batt::after { content:""; position:absolute; right:-3px; top:3.5px; width:2px; height:5px; border-radius:1px; background: rgba(36,28,46,.5); }
.au-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 18px 10px;
}
.au-faded { color: var(--text-tertiary); opacity: .7; font-weight: 500; }
.au-ava {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  display: grid; place-items: center;
}
.au-ava svg { width: 16px; height: 16px; color: var(--purple); }
.au-feed {
  flex: 1; overflow: hidden;
  padding: 6px 18px 10px;
  display: flex; flex-direction: column; gap: 12px;
}
.au-day { text-align: center; color: var(--text-tertiary); font-weight: 600; font-size: 12px; margin: 2px 0; }
.au-arlo { max-width: 90%; line-height: 1.45; color: var(--text-primary); }
.au-arlo strong { font-weight: 700; }
.au-arlo .lead { font-size: 16px; }
.au-user {
  align-self: flex-end; max-width: 82%;
  background: linear-gradient(180deg, #9a6bff, var(--purple-deep));
  color: #fff; padding: 11px 14px; border-radius: 18px 18px 6px 18px;
  line-height: 1.4; box-shadow: var(--shadow-purple);
}
.au-card {
  background: rgba(255,255,255,.78);
  border-radius: 16px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 8px 20px -14px rgba(74,45,120,.4);
}
.au-card .kc { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 700; }
.au-card .big { font-size: 20px; font-weight: 800; margin: 4px 0 2px; }
.au-card .big small { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.au-macros { display: flex; gap: 10px; margin-top: 10px; }
.au-macro { flex: 1; }
.au-macro .ml { font-size: 11px; color: var(--text-tertiary); font-weight: 600; display: flex; justify-content: space-between; }
.au-bar { height: 5px; border-radius: 99px; background: rgba(36,28,46,.08); margin-top: 5px; overflow: hidden; }
.au-bar i { display: block; height: 100%; border-radius: 99px; }
.au-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.au-chip {
  font-size: 12.5px; font-weight: 600; color: var(--purple-deep);
  background: rgba(255,255,255,.85); padding: 8px 13px; border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.22);
}
.au-photo {
  align-self: flex-end; width: 62%; aspect-ratio: 4/3; border-radius: 18px;
  background-size: cover; background-position: center;
  box-shadow: 0 12px 26px -14px rgba(74,45,120,.5), inset 0 0 0 2px rgba(139,92,246,.4);
}
.au-photo.tall { width: 66%; aspect-ratio: 3/4; }
.au-input {
  margin: auto 14px 14px; padding: 11px 14px;
  background: rgba(255,255,255,.9); border-radius: 22px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-tertiary); box-shadow: inset 0 0 0 1px var(--hairline), 0 8px 20px -16px rgba(74,45,120,.5);
}
.au-input .cam {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: rgba(139,92,246,.12); display: grid; place-items: center; color: var(--purple);
}
.au-input .cam svg { width: 16px; height: 16px; }
.au-input .slash {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: rgba(139,92,246,.10); display: grid; place-items: center;
  color: var(--purple); font-weight: 800; font-size: 17px;
}
.au-input .ph { flex: 1; font-size: 14px; }
.au-input .plus { color: var(--text-tertiary); font-size: 20px; }

/* scrolling reel */
.au-reel { position: absolute; inset: 0; overflow: hidden; }
.au-reel .au-feed { animation: reelScroll 26s linear infinite; }
@keyframes reelScroll {
  0%, 6%   { transform: translateY(0); }
  94%,100% { transform: translateY(calc(-100% + 360px)); }
}
.reel-tag {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 4; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--purple-ink); background: rgba(255,255,255,.82);
  padding: 6px 12px; border-radius: 99px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.25), 0 6px 16px -10px rgba(74,45,120,.5);
}

/* ----------  FINAL CTA  ---------- */
.cta {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 0;
}
.cta-inner { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.cta-mark { width: 64px; height: 64px; border-radius: 19px; overflow: hidden; margin: 0 auto 26px; background: #fff; box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,.6); }
.cta-mark img { width: 100%; height: 100%; object-fit: cover; }
.cta-title {
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(38px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 20px; color: var(--text-primary); text-wrap: balance;
}
.cta-title em { font-style: normal; color: var(--purple-deep); }
.cta-sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-secondary); margin: 0 auto 36px; max-width: 28em; text-wrap: pretty; }
.cta-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.cta-form input {
  flex: 1; border: none; border-radius: var(--r-pill); padding: 17px 24px;
  font-family: inherit; font-size: 16.5px; color: var(--text-primary);
  background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--hairline-2); outline: none;
  transition: box-shadow .2s ease;
}
.cta-form input::placeholder { color: var(--text-tertiary); }
.cta-form input:focus { box-shadow: inset 0 0 0 2px var(--purple); }
.cta-success { margin: 18px 0 0; font-weight: 600; color: var(--green); }
.cta-fine { margin: 22px 0 0; font-size: 14px; color: var(--text-tertiary); }
.curious { margin: 34px auto 0; font-size: 15px; color: var(--text-tertiary); max-width: 38em; }

/* ----------  FOOTER  ---------- */
.footer { padding: 72px 0 44px; border-top: 1px solid var(--hairline); background: rgba(250,247,243,.5); backdrop-filter: blur(6px); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-tag { margin: 0; font-size: 16px; color: var(--text-secondary); }
.footer-links { display: flex; gap: clamp(34px, 6vw, 72px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col .h { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 3px; }
.footer-col a, .footer-col span:not(.h) { font-size: 15.5px; color: var(--text-secondary); transition: color .2s ease; }
.footer-col a:hover { color: var(--purple-deep); }
.footer-base { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-tertiary); }
.footer-base .sp { opacity: .5; }
.footer-base a:hover { color: var(--purple-deep); }

/* ----------  REVEAL MOTION  ---------- */
.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0ms); }
.anim .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1; transform: none; transition: none; }
  .bloom span, .device, .au-reel .au-feed { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ----------  RESPONSIVE  ---------- */
@media (max-width: 900px) {
  .panel { padding: 120px 0 80px; }
  .panel-split { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .panel-split.reverse .col-type { order: 0; }
  .col-stage { order: 2; }
  .eyebrow, .actions, .panel-meta { justify-content: center; }
  .lede { margin-inline: auto; }
  .display { font-size: clamp(44px, 13vw, 76px); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .glass-header { top: 8px; padding: 9px 10px 9px 16px; }
  .gh-brand img { height: 22px; }
}

/* ----------  SCHEDULED-NUDGE CHIP (hero follow-through)  ---------- */
.au-nudge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--purple-ink);
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.22);
  padding: 9px 14px; border-radius: 14px;
  backdrop-filter: blur(4px);
}
.au-nudge .clk { opacity: .85; }

/* ----------  POS / NEG MEAL TAGS (real semantic tokens)  ---------- */
.au-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.au-tag {
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 99px;
  display: inline-flex; gap: 6px; align-items: center; letter-spacing: -.005em;
}
.au-tag.pos { background: var(--pos-soft); color: var(--pos-text); }
.au-tag.neg { background: var(--neg-soft); color: var(--neg-text); }

/* summary macro card total line */
.au-card .split { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; font-weight: 700; margin-top: 2px; }
.au-card .split .u { color: var(--text-tertiary); font-weight: 600; font-size: 12px; }
.au-card .split .sep { color: var(--text-tertiary); font-weight: 600; }

/* ----------  RESEARCH · EVIDENCE · LOOKUP (app-UI renders)  ---------- */
/* suggested-question chips */
.au-ask {
  position: relative; background: rgba(139,92,246,.09);
  border: 1px solid rgba(139,92,246,.14); border-radius: 15px;
  padding: 12px 38px 12px 14px; color: var(--purple-ink);
  font-weight: 600; line-height: 1.35; font-size: 12.5px;
}
.au-ask .arr { position: absolute; top: 11px; right: 12px; color: var(--purple); font-weight: 700; }

/* "See the evidence · N sources" row */
.au-evidence { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--text-primary); }
.au-evidence .seal { color: var(--purple); font-size: 15px; }
.au-evidence .chev { margin-left: auto; color: var(--text-tertiary); font-size: 15px; }
.au-hr { height: 1px; background: var(--hairline); margin: 2px 0; }

/* sources chip */
.au-srcchip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--purple-ink);
  background: rgba(139,92,246,.10); padding: 9px 14px; border-radius: 99px;
}

/* structured section — violet left-rule */
.au-sec { border-left: 3px solid var(--purple); padding-left: 13px; }
.au-sec h5 { margin: 0 0 3px; font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.au-sec p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.au-sec p b { color: var(--text-primary); font-weight: 700; }

/* "FOR YOU SPECIFICALLY" personalisation card */
.au-foryou {
  display: flex; gap: 12px; border-radius: 18px; padding: 15px;
  background: linear-gradient(135deg, #F1ECFF, #F6ECFB 55%, #FCEEF3);
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.10);
}
.au-foryou .ic {
  width: 38px; height: 38px; flex: none; border-radius: 11px; background: #fff;
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 5px 12px -6px rgba(74,45,120,.4);
}
.au-foryou .lab { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--purple-ink); margin-bottom: 5px; }
.au-foryou p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-primary); }
.au-foryou p b { font-weight: 700; }

/* research action button */
.au-rbtn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--purple-ink);
  background: rgba(139,92,246,.10); border: 1px solid rgba(139,92,246,.18);
  padding: 11px 16px; border-radius: 13px;
}
/* research / premium mode chips */
.au-modchips { display: flex; gap: 8px; }
.au-modchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 99px; }
.au-modchip.ghost { background: rgba(139,92,246,.10); color: var(--purple-ink); }
.au-modchip.solid { background: var(--purple); color: #fff; }

/* source line list (lookup) */
.au-srclist { display: flex; flex-direction: column; gap: 7px; }
.au-srcline { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.au-srcline .nm { color: var(--text-primary); font-weight: 600; }
.au-srcline .val { margin-left: auto; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
/* bold research answer paragraph */
.au-answer { font-weight: 700; }
/* sourced bullet list (verbatim lookup answer) */
.au-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.au-bullets li { position: relative; padding-left: 15px; font-size: 13px; line-height: 1.42; color: var(--text-primary); }
.au-bullets li::before { content: "–"; position: absolute; left: 0; color: var(--text-tertiary); }

/* ----------  COMMAND PALETTE (slash-command render)  ---------- */
.au-cmdwrap { flex: 1; display: flex; flex-direction: column; padding: 4px 12px 0; min-height: 0; }
.au-hint { text-align: center; color: var(--text-tertiary); font-size: 12.5px; margin: 2px 0 8px; }
.au-cmd {
  flex: 1; background: #fff; border-radius: 20px 20px 8px 8px; padding: 14px 15px 4px;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 16px 40px -22px rgba(74,45,120,.5);
  overflow: hidden;
}
.au-cmd .cmdhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.au-cmd .cmdhead b { font-size: 15px; font-weight: 700; }
.au-cmd .cmdhead .ct { font-size: 12px; color: var(--text-tertiary); }
.au-cmd .grp { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--purple-ink); margin: 10px 0 3px; }
.au-cmdrow { display: flex; align-items: center; gap: 11px; padding: 5px 0; }
.au-cmdrow .tile { width: 32px; height: 32px; flex: none; border-radius: 9px; background: #F4F1FA; display: grid; place-items: center; font-size: 16px; }
.au-cmdrow .meta { flex: 1; min-width: 0; }
.au-cmdrow .meta .cmd { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.15; }
.au-cmdrow .meta .cmd i { color: var(--purple); font-style: normal; }
.au-cmdrow .meta .desc { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.2; }
.au-cmdrow .ret { color: var(--text-tertiary); font-size: 13px; }

/* composer send circle (command bar active state) */
.au-input .send { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; margin-left: auto; flex: none; }
.au-input .typed { flex: 1; font-size: 15px; color: var(--purple); font-weight: 700; }

/* capability grid (text column of the commands section) */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 30px; }
.cap-tile { display: flex; flex-direction: column; gap: 4px; }
.cap-tile .ci { font-size: 22px; line-height: 1; }
.cap-tile .ct { font-size: 15.5px; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; }
.cap-tile .cd { font-size: 13.5px; color: var(--text-secondary); line-height: 1.4; }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; gap: 16px; } }

/* auto-scroll reel — full verbatim conversation pans without clipping */
.au-reelbox { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.au-reelbox .au-feed { position: absolute; top: 0; left: 0; right: 0; height: auto; }
.anim .au-reelbox.reel-go .au-feed { animation: reelPan var(--dur, 22s) ease-in-out infinite alternate; }
@keyframes reelPan { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--end, -380px)); } }
@media (prefers-reduced-motion: reduce) { .au-reelbox .au-feed { animation: none !important; } }

/* dashboard cards (mirrors the real /today screen, canonical palette) */
.au-dash { display: flex; flex-direction: column; gap: 12px; }
.dcard { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--hairline), 0 8px 20px -14px rgba(74,45,120,.4); }
.dcard.lav { background: var(--card-lavender); box-shadow: inset 0 0 0 1px var(--hairline); }
.dk { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 700; }
.dcal { display: flex; align-items: baseline; justify-content: space-between; margin-top: 3px; }
.dcal b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dcal .u { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.dbar { height: 6px; border-radius: 99px; background: rgba(26,23,34,.09); margin-top: 9px; overflow: hidden; }
.dbar i { display: block; height: 100%; border-radius: 99px; }
.dmac { margin-top: 12px; }
.dmac .drow { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin: 10px 0 4px; }
.dmac .drow:first-child { margin-top: 0; }
.dmac .drow .lbl { font-weight: 700; color: var(--text-primary); }
.dmac .drow .val { color: var(--text-tertiary); font-weight: 600; font-variant-numeric: tabular-nums; }
.dnote { font-size: 12.5px; color: var(--text-secondary); margin-top: 12px; }
/* horizontal 3-up macro (LEFT TODAY card) */
.dsplit { display: flex; gap: 12px; margin-top: 12px; }
.dsplit .dm { flex: 1; }
.dsplit .dm .t { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }
.dsplit .dm .t .n { color: var(--text-tertiary); font-weight: 600; }
.dsplit .dm .t .g { font-weight: 700; font-variant-numeric: tabular-nums; }

/* trend stat tiles (text column of dashboard section) */
.stat-row { display: flex; gap: clamp(24px, 5vw, 48px); margin-top: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat b { font-size: clamp(28px, 3.4vw, 36px); font-weight: 750; letter-spacing: -.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: 13.5px; color: var(--text-secondary); }

/* trends graph card (invented from the DS chart primitives) */
.tcard { background: #fff; border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 1px var(--hairline), 0 10px 24px -16px rgba(74,45,120,.45); }
.thead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tbig { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.tbig .u { font-size: 13px; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0; }
.tbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: var(--neg-soft); color: var(--neg-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tsub { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; margin-top: 5px; }
.tchart { margin-top: 12px; width: 100%; height: 84px; display: block; }
.tstats { display: flex; gap: 10px; }
.tstat { flex: 1; background: var(--card-lavender); border-radius: 16px; padding: 14px 10px; text-align: center; }
.tstat b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.tstat b .u { font-size: 14px; font-weight: 700; }
.tstat.pos b { color: var(--pos); }
.tstat.pro b { color: var(--protein); }
.tstat > span { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }
.tcheck { background: #fff; border-radius: 16px; padding: 14px 15px; box-shadow: inset 0 0 0 1px var(--hairline); }
.tcheck .th { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.tcheck p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }
.tcheck p b { color: var(--text-primary); font-weight: 700; }

/* ----------  APP STORE DOWNLOAD BADGE  ---------- */
.download { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 13px;
  background: #000; color: #fff; border-radius: 15px;
  padding: 13px 26px 13px 22px;
  box-shadow: 0 20px 44px -20px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 26px 52px -18px rgba(0,0,0,.6); }
.appstore-badge svg { width: 27px; height: 27px; flex: none; }
.appstore-badge .ab-txt { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.appstore-badge .ab-txt small { font-size: 11.5px; font-weight: 500; letter-spacing: .01em; opacity: .92; }
.appstore-badge .ab-txt b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.cta-micro { margin: 0; font-size: 15px; color: var(--text-tertiary); }
.download { margin-top: 30px; }
.download::before { content: ""; display: block; width: 34px; height: 1px; background: rgba(26,23,34,.12); margin-bottom: 22px; }
.appstore-badge.soon {
  background: rgba(26,23,34,.05); color: var(--text-tertiary);
  box-shadow: inset 0 0 0 1px rgba(26,23,34,.09); cursor: default;
  position: relative;
}
.appstore-badge.soon:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(26,23,34,.09); }
.appstore-badge.soon .ab-txt small { opacity: 1; color: var(--purple); font-weight: 600; }

@media (max-width: 560px) {
  .cta-form { flex-direction: column; }
}
