/* Personal AI — Conversational homepage. iMessage UI + layout directions.
   Tokens from colors_and_type.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ============================================================
   PHONE — iMessage screen
   ============================================================ */
.pp-device {
  --imsg-gray: #262628;
  --imsg-gray-text: #F2F2F7;
  --imsg-blue: #0A84FF;
  --pp-screen-bg: #000;
  --pp-rule: rgba(255,255,255,0.12);
  --pp-meta: rgba(235,235,245,0.45);
  width: 390px;
  background: #1C1C1E;
  border-radius: 46px;
  padding: 12px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
}
.pp-device__screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--pp-screen-bg);
  height: 720px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Bare (full-bleed) variant — no bezel */
.pp-screen--bare {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--pp-screen-bg);
}

/* status bar */
.pp-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 4px;
  flex-shrink: 0;
}
.pp-status__time { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -0.02em; }
.pp-status__island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 30px; border-radius: 18px; background: #000; z-index: 5;
}
.pp-status__right { display: flex; align-items: center; gap: 6px; }

/* contact header */
.pp-head {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 7px 16px 10px;
  border-bottom: 1px solid var(--pp-rule);
  flex-shrink: 0;
}
.pp-appicon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--accent, #6756FF);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(103,86,255,0.28);
}
.pp-appicon svg { width: 30px; height: 30px; }
.pp-head__name {
  display: flex; align-items: center; gap: 3px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: #fff;
  letter-spacing: -0.02em;
}
.pp-head__name .chev { color: var(--pp-meta); font-size: 13px; }
.pp-head__sub {
  font-family: var(--font-mono); font-size: 11px; color: var(--pp-meta); letter-spacing: -0.02em;
}
.pp-head__reset {
  position: absolute; top: 50%; right: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--pp-rule); background: rgba(255,255,255,0.06); color: var(--pp-meta);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0; transition: opacity .15s ease, color .15s ease, border-color .15s ease; cursor: pointer;
}
.pp-head__reset:hover,
.pp-head__reset:active {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}
.pp-device:hover .pp-head__reset { opacity: 1; }
@media (min-width: 768px) { .pp-head__reset { top: 50px; right: 28px; } }
@media (max-width: 767px) { .pp-head__reset { opacity: 1; top: 18px; } }

/* message stream */
.pp-stream {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 4px 16px 0px;
  display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: thin; scrollbar-color: var(--pai-rule) transparent;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.pp-stream::-webkit-scrollbar { width: 5px; }
.pp-stream::-webkit-scrollbar-thumb { background: var(--pai-rule); border-radius: 4px; }

.pp-daystamp {
  text-align: center; margin: 4px 0 12px;
  font-family: var(--font-sans); font-size: 11px; color: var(--pp-meta); font-weight: 600;
  letter-spacing: -0.01em;
}

/* column wrapper so chips stack below the bubble */
.pp-bubble-col {
  display: flex; flex-direction: column; align-items: flex-start;
}
.pp-row--out .pp-bubble-col { align-items: flex-end; }

/* citation tags */
.pp-citations {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin-top: 8px; padding-left: 2px;
}
.pp-citations__label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.28); margin-right: 2px;
}
.pp-citation {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  padding: 1px 7px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.01em;
  cursor: default;
}

/* action chips rendered below an assistant bubble */
.pp-action-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; padding-left: 2px;
}
.pp-action-chip {
  display: inline-flex; align-items: center;
  padding: 6px 13px; border-radius: 99px;
  background: rgba(103,86,255,0.10);
  border: 1px solid rgba(103,86,255,0.30);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: #A09EFF; letter-spacing: -0.005em;
  cursor: pointer; text-align: left;
  transition: background 140ms, border-color 140ms, color 140ms;
}
.pp-action-chip:hover {
  background: rgba(103,86,255,0.20);
  border-color: rgba(103,86,255,0.55);
  color: #C8C5FF;
}
.pp-daystamp b { color: rgba(235,235,245,0.6); font-weight: 700; }

/* bubble rows */
.pp-row { display: flex; margin-top: 2px; }
.pp-row--in  { justify-content: flex-start; }
.pp-row--out { justify-content: flex-end; }
.pp-row.grp-gap { margin-top: 6px; }

.pp-bubble {
  width: fit-content;
  max-width: 76%;
  padding: 9px 14px;
  font-family: var(--font-sans); font-size: 16px; line-height: 21px; letter-spacing: -0.01em;
  border-radius: 19px;
  position: relative;
  overflow-wrap: break-word;
}
.pp-bubble--out { white-space: pre-wrap; }
.pp-bubble--in  { background: var(--imsg-gray); color: var(--imsg-gray-text); border-bottom-left-radius: 6px; }
.pp-bubble--out { background: var(--imsg-blue); color: #fff; border-bottom-right-radius: 6px; }
/* only last bubble of a group keeps the tail corner */
.pp-row:not(.last-in-group) .pp-bubble--in  { border-bottom-left-radius: 19px; }
.pp-row:not(.last-in-group) .pp-bubble--out { border-bottom-right-radius: 19px; }

.pp-bubble a { color: inherit; text-decoration: underline; }
.pp-bubble strong { font-weight: 600; }
.pp-bubble em { font-style: italic; }

/* reset global color rules that leak into markdown-rendered content */
.pp-bubble p, .pp-bubble li, .pp-bubble td, .pp-bubble th,
.pp-bubble h1, .pp-bubble h2, .pp-bubble h3, .pp-bubble h4 {
  color: inherit;
}

/* markdown paragraphs */
.pp-bubble p { margin: 0 0 0.45em; }
.pp-bubble p:last-child { margin-bottom: 0; }

/* lists */
.pp-bubble ul, .pp-bubble ol { margin: 0.2em 0 0.45em 1.3em; padding: 0; }
.pp-bubble li { margin-bottom: 0.2em; }

/* inline code */
.pp-bubble code {
  font-family: var(--font-mono); font-size: 0.8em;
  background: rgba(255,255,255,0.12); padding: 1px 5px; border-radius: 4px;
}

/* tables — wrap cells, no horizontal scroll */
.pp-bubble table {
  border-collapse: collapse; width: 100%;
  margin: 6px 0; font-size: 13px; line-height: 1.5;
  table-layout: fixed;
}
.pp-bubble th, .pp-bubble td {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 10px; text-align: left; vertical-align: top;
  white-space: normal; overflow-wrap: break-word; word-break: break-word;
}
.pp-bubble th {
  background: rgba(255,255,255,0.08); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(235,235,245,0.65);
}
.pp-bubble td code { font-size: 0.78em; }

/* code blocks — wrap long lines instead of scrolling sideways */
.pp-bubble pre {
  white-space: pre-wrap; overflow-wrap: break-word;
  overflow-x: hidden;
}
.pp-bubble pre code {
  white-space: pre-wrap;
}


/* typing indicator */
.pp-typing { background: var(--imsg-gray); border-radius: 19px; border-bottom-left-radius: 6px; padding: 13px 15px; display: inline-flex; gap: 5px; }
.pp-typing span { width: 8px; height: 8px; border-radius: 50%; background: #B4B7BE; animation: ppDot 1.2s infinite ease-in-out; }
.pp-typing span:nth-child(2) { animation-delay: .18s; }
.pp-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ppDot { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }

/* input bar */
.pp-input {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--pp-rule);
  background: var(--pp-screen-bg);
}
/* first-run typing cue */
.pp-cue {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 0 0px;
}
.pp-cue__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--imsg-blue); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(10,132,255,0.4);
}
.pp-cue__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
  animation: ppCuePulse 1.5s ease-out infinite;
}
@keyframes ppCuePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes ppCueRise { from { transform: translateY(8px); } to { transform: none; } }
.pp-cue__arrow { display: inline-block; color: var(--imsg-blue); font-size: 16px; font-weight: 700; line-height: 1; animation: ppCueBob 1.3s ease-in-out infinite; }
@keyframes ppCueBob { 0%, 100% { transform: translateY(0); opacity: 0.8; } 50% { transform: translateY(2px); opacity: 1; } }
.pp-input__plus {
  width: 33px; height: 33px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: rgba(235,235,245,0.6); font-size: 22px; font-weight: 300; cursor: pointer;
}
.pp-input__field {
  flex: 1; display: flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.28); border-radius: 22px;
  padding: 11px 10px 11px 18px; min-height: 50px;
  background: rgba(255,255,255,0.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pp-input__field--cue {
  border-color: var(--imsg-blue); border-width: 2px;
  animation: ppInputPulse 1.7s ease-in-out infinite;
}
.pp-input__field--cue:focus-within {
  animation: none;
  box-shadow: none;
}
@keyframes ppInputPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10,132,255,0); }
  50%      { box-shadow: 0 0 0 6px rgba(10,132,255,0.22); }
}
.pp-caret {
  width: 2px; height: 22px; background: var(--imsg-blue); border-radius: 1px;
  margin-right: 1px; flex-shrink: 0; animation: ppCaret 1.05s step-end infinite;
}
.pp-input__field:focus-within .pp-caret { display: none; }
@keyframes ppCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.pp-input__send--ready { animation: ppSendPop .25s ease; }
@keyframes ppSendPop { from { transform: scale(0.7); } to { transform: scale(1); } }
.pp-input__field input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-sans); font-size: 17px; color: #fff; letter-spacing: -0.01em;
}
.pp-input__field input::placeholder { color: rgba(235,235,245,0.5); }
.pp-input__send {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--imsg-blue); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s ease, transform .12s ease;
}
.pp-input__send:disabled { background: rgba(255,255,255,0.18); cursor: default; }
.pp-input__send:not(:disabled):active { transform: scale(0.9); }
.pp-input__hint {
  text-align: center; font-family: var(--font-mono); font-size: 10px; color: #B4B7BE;
  letter-spacing: 0.02em; padding: 0 0 6px;
}

.pp-homebar { height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pp-homebar i { width: 130px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.3); display: block; }

/* ============================================================
   CARRIER LOGO STRIP
   ============================================================ */
.carrier-strip { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; }
.carrier {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  color: #1A1C21; opacity: 0.42; font-size: 21px; transition: opacity .2s ease;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.carrier:hover { opacity: 0.7; }
.carrier--att { font-weight: 600; }
.carrier--att b { color: #00A8E0; font-weight: 700; }
.carrier--vz b { color: #EE0000; }
.carrier--tmo { letter-spacing: -0.04em; }
.carrier--tmo b { color: #E20074; }
.carrier--cast { font-weight: 600; }

/* ============================================================
   DIRECTION A — Partner-led, centered
   ============================================================ */
.dir { font-family: var(--font-sans); color: #1A1C21; height: 100%; }
.dir-a {
  position: relative;
  overflow: hidden;
  background: #0E0F13;
  display: flex; flex-direction: column;
  padding: 30px 48px 26px;
  height: 100%;
  isolation: isolate;
}

/* ── animated gradient field ───────────────────────────────── */
.dir-a__bg { position: absolute; inset: 0; z-index: -2; background: #0E0F13; }
.dir-a__nodes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.85; }
/* glows live on their own layer so the slow hue-shift doesn't tint the nodes */
.dir-a__glows { position: absolute; inset: 0; animation: hueShift 30s ease-in-out infinite alternate; }
@keyframes hueShift {
  0%   { filter: hue-rotate(-14deg); }
  100% { filter: hue-rotate(16deg); }
}
.dir-a__glows::before, .dir-a__glows::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.85; will-change: transform;
}
/* lavender glow — top-left, drifts */
.dir-a__glows::before {
  width: 68%; height: 78%; left: -8%; top: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(160,158,255,0.62), rgba(103,86,255,0.22) 46%, transparent 72%);
  animation: glowDriftA 22s ease-in-out infinite alternate;
}
/* apricot glow — bottom-right, drifts opposite */
.dir-a__glows::after {
  width: 72%; height: 78%; right: -10%; bottom: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(255,169,101,0.48), rgba(244,173,113,0.18) 50%, transparent 74%);
  animation: glowDriftB 26s ease-in-out infinite alternate;
}
@keyframes glowDriftA {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(22%, 16%) scale(1.22); }
  100% { transform: translate(10%, 30%) scale(1.05); }
}
@keyframes glowDriftB {
  0%   { transform: translate(0,0) scale(1.05); }
  50%  { transform: translate(-20%, -14%) scale(1.24); }
  100% { transform: translate(-28%, -24%) scale(1); }
}
/* third soft purple core that breathes */
.dir-a__glows i {
  position: absolute; left: 28%; top: 30%; width: 48%; height: 50%;
  border-radius: 50%; filter: blur(110px);
  background: radial-gradient(circle at 50% 50%, rgba(133,120,255,0.30), transparent 68%);
  animation: glowBreathe 18s ease-in-out infinite alternate;
}
@keyframes glowBreathe {
  0% { transform: translate(0,0) scale(0.9); opacity: 0.5; }
  100% { transform: translate(12%, -12%) scale(1.3); opacity: 0.85; }
}
/* faint engineering grid */
.dir-a__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 35%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 35%, transparent 85%);
}

.dir-a__topbar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.dir-a__brand img { height: 22px; display: block; }
.dir-a__viewsite {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  text-decoration: none; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.03);
  transition: border-color .15s ease, color .15s ease;
}
.dir-a__viewsite:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.dir-a__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 0; }

.dir-a__pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.82);
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
}
.dir-a__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pai-memory); box-shadow: 0 0 10px var(--pai-memory); }

.dir-a__head {
  font-family: var(--font-display); font-weight: 500; font-size: 60px; line-height: 1.0;
  letter-spacing: -0.035em; text-align: center; max-width: 15ch; margin: 0; text-wrap: balance;
  color: #fff;
}
.dir-a__head .grad {
  background: linear-gradient(96deg, #B7B2FF 0%, #C9A6F0 42%, #FFB178 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dir-a__sub {
  font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.62); letter-spacing: -0.02em;
  text-align: center; max-width: 48ch; margin: -8px 0 2px;
}
.dir-a__sub b { color: rgba(255,255,255,0.9); font-weight: 600; }

.dir-a__footer {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
}
.dir-a__eyebrow {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.82);
}
.dir-a__footer .carrier { color: #fff; opacity: 1; }
.dir-a__footer .carrier:hover { opacity: 0.85; }
.dir-a__powered {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.82); letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 7px;
}
.dir-a__powered .dot { width: 6px; height: 6px; background: var(--pai-memory); transform: rotate(45deg); border-radius: 1px; }

/* phone glows softly against the dark field */
.dir-a .pp-device,
.dlay .pp-device {
  box-shadow: 0 40px 120px rgba(103,86,255,0.28), 0 0 0 1px rgba(255,255,255,0.06), 0 30px 70px rgba(0,0,0,0.5);
}

/* ============================================================
   DESKTOP LAYOUTS — horizontal, fit a 1440×900 fold
   ============================================================ */
.dlay {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0E0F13; height: 100%;
  display: flex; flex-direction: column;
  color: #fff; font-family: var(--font-sans);
}
.dlay__nav {
  flex-shrink: 0; height: 72px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.dlay__nav .dir-a__brand img { height: 22px; display: block; }

.dlay__body {
  flex: 1; min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: 1fr 470px; gap: 56px;
  align-items: center; padding: 0 56px;
}
.dlay__copy { display: flex; flex-direction: column; gap: 22px; }
.dlay__copy .dir-a__pill { align-self: flex-start; width: max-content; }
.dlay__head {
  font-family: var(--font-display); font-weight: 500; font-size: 62px; line-height: 1.0;
  letter-spacing: -0.035em; margin: 0; max-width: 13ch; color: #fff;
}
.dlay__head .grad {
  background: linear-gradient(96deg, #B7B2FF 0%, #C9A6F0 42%, #FFB178 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dlay__sub {
  font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.64); letter-spacing: -0.02em;
  max-width: 42ch; margin: 0;
}
.dlay__sub b { color: rgba(255,255,255,0.9); font-weight: 600; }
.dlay__cue {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 4px;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.78);
}
.dlay__cue-arrow {
  color: var(--pai-memory); font-size: 18px;
  animation: cueNudge 1.6s ease-in-out infinite;
}
@keyframes cueNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

.dlay__phone { display: flex; align-items: center; justify-content: center; }
.dlay__phone .pp-device { width: 380px; }
.dlay__phone .pp-device__screen { height: 660px; }

/* Showcase phone column — pill stacked above the phone */
.dlay__phonecol { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dlay__livepill { width: max-content; }
.dot--live {
  width: 8px; height: 8px; border-radius: 50%; background: #34D17E;
  box-shadow: 0 0 0 0 rgba(52,209,126,0.7);
  animation: liveBlink 1.6s ease-out infinite;
}
@keyframes liveBlink {
  0%   { box-shadow: 0 0 0 0 rgba(52,209,126,0.65); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px rgba(52,209,126,0); opacity: 0.6; }
  100% { box-shadow: 0 0 0 0 rgba(52,209,126,0); opacity: 1; }
}

.dlay__bar {
  flex-shrink: 0; height: 88px; padding: 0 56px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.dlay__bar .dir-a__eyebrow { white-space: nowrap; }
.dlay__bar-tag {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em; white-space: nowrap;
}

/* Showcase variant — phone left, proof points right */
.dlay__body--show { grid-template-columns: 460px 1fr; }
.dlay__head--show { font-size: 54px; max-width: 14ch; }
.dlay__stats { display: flex; gap: 14px; margin-top: 6px; }
.dlay__stat {
  flex: 1; padding: 18px 20px; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px;
  background: rgba(255,255,255,0.03);
}
.dlay__stat-n {
  font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.03em;
  background: linear-gradient(96deg, #B7B2FF, #FFB178);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dlay__stat-d { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.6); letter-spacing: -0.01em; margin-top: 6px; }
.dlay__custline { display: flex; align-items: center; gap: 22px; margin-top: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.dlay .dir-a__eyebrow {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.82);
}
.dlay .dir-a__footer { display: none; }
.dlay .carrier { color: #fff; opacity: 1; }
.dlay .carrier:hover { opacity: 0.82; }
.dlay__custline .carrier-strip { gap: 26px; }
.dlay__bar .carrier-strip { gap: 30px; }

/* ============================================================
   DIRECTION B — Full-bleed phone
   ============================================================ */
.dir-b {
  display: flex; flex-direction: column; height: 100%; background: #fff;
  position: relative;
}
.dir-b__banner {
  background: #1A1C21; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.01em;
}
.dir-b__banner b { color: var(--accent); font-weight: 700; }
.dir-b__banner .sep { opacity: 0.4; }
.dir-b__screen { flex: 1; min-height: 0; }

/* ============================================================
   DIRECTION C — Split: copy + phone
   ============================================================ */
.dir-c {
  display: grid; grid-template-columns: 1fr 440px; height: 100%;
  background: #fff;
}
.dir-c__copy {
  background: var(--pai-ink); color: #fff;
  padding: 56px 52px; display: flex; flex-direction: column; gap: 30px;
  justify-content: center;
}
.dir-c__eyebrow {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--accent); display: inline-flex; align-items: center; gap: 9px;
}
.dir-c__eyebrow::before { content:""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); border-radius: 1px; }
.dir-c__head {
  font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1.05;
  letter-spacing: -0.03em; margin: 0; max-width: 15ch;
}
.dir-c__values { display: flex; flex-direction: column; gap: 18px; margin: 4px 0; }
.dir-c__value { display: flex; gap: 16px; align-items: flex-start; }
.dir-c__value .n {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: rgba(255,255,255,0.45);
  min-width: 24px; padding-top: 2px;
}
.dir-c__value .t { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.dir-c__value .d { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.62); margin-top: 3px; letter-spacing: -0.01em; }
.dir-c__carriers { padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-direction: column; gap: 14px; }
.dir-c__carriers .lbl { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; text-transform: uppercase; }
.dir-c__carriers .carrier { color: #fff; opacity: 0.55; }
.dir-c__carriers .carrier:hover { opacity: 0.85; }
.dir-c__phonewrap {
  background: var(--pai-paper); display: flex; align-items: center; justify-content: center;
  padding: 30px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

html, body { overscroll-behavior: none; }

/* mobile layout hidden on desktop by default */
.m-view { display: none; }

/* ── 1100px: tighten desktop ── */
@media (max-width: 1100px) {
  .dlay__nav, .dlay__bar { padding-left: 40px; padding-right: 40px; }
  .dlay__body { grid-template-columns: 1fr 400px; gap: 40px; padding: 0 40px; }
  .dlay__head { font-size: 52px; }
}

/* ── 960px: compress columns ── */
@media (max-width: 960px) {
  .dlay__nav, .dlay__bar { padding-left: 32px; padding-right: 32px; }
  .dlay__body { grid-template-columns: 1fr 340px; gap: 32px; padding: 0 32px; }
  .dlay__head { font-size: 44px; }
  .dlay__sub { font-size: 16px; }
  .dlay__phone .pp-device { width: 310px; }
  .dlay__phone .pp-device__screen { height: 540px; }
  .dlay__bar-tag { display: none; }
}

/* ── 767px: switch to mobile layout ── */
@media (max-width: 767px) {
  .d-view { display: none; }

  /* Non-v2: solid black so it blends with iOS chrome (iMessage feel).
     v2: let the html gradient from index.html bleed behind the browser
     address bar and system toolbar so no black band appears at edges. */
  html:not(.is-v2),
  html:not(.is-v2) body {
    background: #000 !important;
  }

  .m-view {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    isolation: isolate;
    overflow: hidden;
    /* NO padding — safe-area absorbed by .m-nav (top) and .pp-homebar (bottom)
       so the background fills edge-to-edge with no dead zones */
    /* Define chat variables here so bare ChatPhone (no .pp-device parent) inherits them */
    --pp-screen-bg: transparent;
    --pp-rule: rgba(255,255,255,0.12);
    --pp-meta: rgba(235,235,245,0.45);
    --imsg-gray: #262628;
    --imsg-gray-text: #F2F2F7;
    --imsg-blue: #0A84FF;
  }

  .m-nav {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    /* extra 16px on top of safe-area so there's always visible gradient above the logo */
    padding-top: calc(var(--pai-sat, env(safe-area-inset-top, 0px)) + 16px);
    padding-bottom: 16px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .m-nav__logo { height: 18px; display: block; }
  .m-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 99px;
    transition: color .15s, border-color .15s;
  }
  .m-nav__link:hover { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.3); }

  .m-chat {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  /* bare chat fills full width, bottom safe area handled by pp-homebar */
  .m-view .pp-screen--bare {
    flex: 1;
    min-height: 0;
  }

  .m-view .pp-homebar {
    display: none;
  }

  .m-view .pp-input {
    padding-bottom: calc(12px + var(--pai-sab, env(safe-area-inset-bottom, 0px)));
  }

  /* Phone device fills available height */
  .m-chat .pp-device {
    width: 100%;
    max-width: 390px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .m-chat .pp-device__screen {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  /* Make dir-a__bg transparent so .m-view's own gradient shows through.
     The animated glows (.dir-a__glows children) still render on top. */
  .m-view .dir-a__bg {
    background: transparent;
  }

  /* Stretch glows to bleed past the safe-area insets at top and bottom
     so no dark band shows behind the status bar or home indicator */
  .m-view .dir-a__glows::before {
    top: -50%;
    height: 150%;
    width: 100%;
    left: -20%;
  }
  .m-view .dir-a__glows::after {
    bottom: -50%;
    height: 150%;
    width: 100%;
    right: -20%;
  }
  .m-view .dir-a__glows i {
    top: 5%;
    height: 90%;
  }

}

/* ============================================================
   MOBILE V2 — shared nav
   ============================================================ */
.mv2-nav { display: none; }

@media (max-width: 767px) {
  .mv2-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding-top: calc(var(--pai-sat, env(safe-area-inset-top, 0px)) + 12px);
    padding-bottom: 14px;
    padding-left: 20px;
    padding-right: 20px;
    background: linear-gradient(to bottom, rgba(14,15,19,0.72) 0%, transparent 100%);
  }
}

/* ============================================================
   MOBILE V2 — hero snap → chat snap  (?v2 URL param)
   ============================================================ */
.mv2 { display: none; }

@media (max-width: 767px) {

  .mv2 {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0E0F13;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }

  .mv2__hero,
  .mv2__chat {
    height: 100%;
    height: 100lvh;    /* hero: full physical screen so gradient bleeds behind browser chrome */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding-top: calc(var(--pai-sat, env(safe-area-inset-top, 0px)) + 58px);
  }

  /* Chat overrides to visual viewport height so the input stays above the browser toolbar */
  .mv2__chat {
    height: 100dvh;
  }

  /* ── Hero section ── */
  .mv2__hero {
    display: flex;
    flex-direction: column;
    isolation: isolate;
    background:
      radial-gradient(ellipse 220% 55% at 25% -5%,  rgba(103,86,255,0.75), transparent 60%),
      radial-gradient(ellipse 220% 55% at 75% 105%, rgba(244,173,113,0.75), transparent 60%),
      #0E0F13;
    color: #fff;
    --accent: #6756FF;
    --pp-meta: rgba(235,235,245,0.45);
  }

  .mv2__hero .dir-a__bg { background: transparent; }
  .mv2__hero .dir-a__glows::before { top: -50%; height: 150%; width: 100%; left: -20%; }
  .mv2__hero .dir-a__glows::after  { bottom: -50%; height: 150%; width: 100%; right: -20%; }
  .mv2__hero .dir-a__glows i       { top: 5%; height: 90%; }

  .mv2__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 20px;
    position: relative;
    z-index: 1;
  }

  .mv2__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .mv2__head {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 40px;
    line-height: 1.0;
    letter-spacing: -0.035em;
    margin: 0;
    color: #fff;
    text-wrap: balance;
  }
  .mv2__head .grad {
    background: linear-gradient(96deg, #B7B2FF 0%, #C9A6F0 42%, #FFB178 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  .mv2__sub {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.62);
    letter-spacing: -0.01em;
    margin: 0;
  }
  .mv2__sub b { color: rgba(255,255,255,0.9); font-weight: 600; }

  .mv2__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mv2__tagline {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
  }

  .mv2__customers {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mv2__customers .dir-a__eyebrow {
    font-family: var(--font-mono); font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.55);
  }
  .mv2__customers .carrier-strip { gap: 20px; justify-content: flex-start; flex-wrap: wrap; }
  .mv2__customers .carrier { font-size: 16px; color: #fff; opacity: 0.65; }
  .mv2__customers .carrier:hover { opacity: 0.9; }

  /* scroll-down cue */
  .mv2__swipe {
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: mv2Bob 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
  }
  @keyframes mv2Bob {
    0%, 100% { transform: translateY(0);  opacity: 0.4; }
    50%       { transform: translateY(5px); opacity: 0.7; }
  }

  /* ── Chat section ── */
  .mv2__chat {
    background: #000;
    display: flex;
    flex-direction: column;
    --pp-screen-bg: transparent;
    --pp-rule: rgba(255,255,255,0.12);
    --pp-meta: rgba(235,235,245,0.45);
    --imsg-gray: #262628;
    --imsg-gray-text: #F2F2F7;
    --imsg-blue: #0A84FF;
  }

  .mv2__chat .pp-screen--bare { flex: 1; min-height: 0; }
  .mv2__chat .pp-homebar      { display: none; }
  .mv2__chat .pp-input        { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

}
