.grok-page {
  --gb-accent: #1761be;
  --gb-blue-top: #76d2f7;
  --gb-blue-bottom: #0789fd;
  --gb-chat-blue: #31a6fb;
  --gb-chat-gray: #e8e8ea;
  --gb-chat-ink: #000;
  --gb-wash: #e9f2ff;
  --gb-card: #f3f5f8;
  --gb-dialog: #fff;
  --gb-edge: #dce1ea;
  --gb-bot-fill: #fff;
  --gb-bot-eye: #16181c;
  --gb-bot-highlight: #fff;
  --gb-bot-mid: #f3f5fa;
  --gb-bot-shade: #dce3ee;
  --gb-bot-deep: #c4cfdf;
  --gb-bot-rim-light: #fff;
  --gb-bot-rim-dark: #aab8cf;
  --gb-spring: cubic-bezier(.2, .85, .3, 1.2);
}

[data-theme="dark"] .grok-page {
  --gb-accent: #a8c9ff;
  --gb-blue-top: #409cff;
  --gb-blue-bottom: #0091ff;
  --gb-chat-blue: #1895ff;
  --gb-chat-gray: #262629;
  --gb-chat-ink: #fff;
  --gb-wash: #2a3857;
  --gb-card: #252935;
  --gb-dialog: #222734;
  --gb-edge: #3b465a;
  --gb-bot-fill: #101114;
  --gb-bot-eye: #fff;
  --gb-bot-highlight: #343a43;
  --gb-bot-mid: #1a1c22;
  --gb-bot-shade: #101114;
  --gb-bot-deep: #07080b;
  --gb-bot-rim-light: #737e92;
  --gb-bot-rim-dark: #131722;
}

.imsg.grok-page section {
  padding-block: clamp(44px, 6vw, 82px);
  scroll-margin-top: 24px;
}

.grok-page h2 {
  font-size: clamp(32px, 4.1vw, 52px);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: 1.04;
}

.grok-page .gb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 44px;
  color: var(--gb-accent);
  font-weight: 500;
  text-decoration: none;
}

.grok-page .gb-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.grok-page :is(.gb-link, .gb-replay, summary):focus-visible { outline: 2px solid var(--gb-accent); outline-offset: 4px; }

/* Same rounded, softly colored hero surface as the homepage. */
.imsg.grok-page .gb-hero {
  margin: 110px 24px 0;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 88% 10%, #c8dcff 0%, transparent 54%),
    radial-gradient(ellipse at 80% 96%, #e9e2fb 0%, transparent 62%),
    linear-gradient(115deg, #f6f7f8 26%, #edf3fa 96%);
  padding-block: clamp(30px, 4vw, 64px);
}

[data-theme="dark"] .imsg.grok-page .gb-hero {
  background:
    radial-gradient(ellipse at 87% 15%, #354b77 0%, transparent 62%),
    radial-gradient(ellipse at 77% 96%, #35304a 0%, transparent 65%),
    #20232b;
}

.gb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: center;
}

.gb-hero-copy h1 {
  margin: 0;
  font-size: clamp(49px, 4.9vw, 72px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .99;
  text-wrap: balance;
}

.gb-name { white-space: nowrap; }
.gb-accent { color: var(--gb-accent); }
.grok-page .gb-hero-copy > p:not(.gb-hero-price) {
  margin-top: 22px;
  max-width: 37ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.55;
}

.gb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 26px; }
.arc-concept .gb-hero .hero-proof { margin-top: clamp(24px, 3.6vw, 52px); }

/* Draw the Grok Bot mark's asymmetric eyes and rounded avatar in the hero SVG. */
.gb-stage { container-type: inline-size; position: relative; width: 100%; }
.gb-hero-art { position: relative; aspect-ratio: 1.17; isolation: isolate; }
.gb-orbit {
  position: absolute;
  inset: 11% 5% 6% 3%;
  border: 1px solid #fff9;
  border-radius: 50%;
  transform: rotate(-23deg) scaleY(.83);
  box-shadow: inset 0 0 35px #ffffff30, 0 0 40px #ffffff36;
}

.gb-orbit::after {
  content: "";
  position: absolute;
  inset: 9% -3%;
  border: 1px solid #fff6;
  border-radius: inherit;
}

[data-theme="dark"] .gb-orbit { opacity: .22; }
.gb-ground {
  position: absolute;
  inset: auto 14% 8% 1%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #35497045, transparent 70%);
  transform: rotate(-5deg);
}

.gb-bot {
  position: absolute;
  left: 6%;
  bottom: 10%;
  width: 71%;
  height: 76%;
  transform-origin: 46% 100%;
}

.gb-bot-body {
  position: absolute;
  inset: 0 4% 2% 0;
  width: 96%;
  height: 98%;
  overflow: visible;
  filter: drop-shadow(0 18px 22px #1a263c40);
}

.gb-eye {
  fill: var(--gb-bot-eye);
  transform-box: fill-box;
  transform-origin: center;
}

.gb-device {
  position: absolute;
  z-index: 2;
  left: 64%;
  top: 42%;
  width: 27%;
  height: 55%;
  transform: rotate(15deg) skewY(-7deg);
  transform-origin: 55% 86%;
}

.gb-phone {
  position: absolute;
  inset: 0 0 0 6%;
  border-radius: 18% / 11%;
  background: linear-gradient(137deg, #87aaf0, #506ed2 27%, #435fc0 63%, #334da3 94%);
  border: 1px solid #abcbff;
  box-shadow: -4px -3px 0 #4e6097, -6px -4px 0 #a3b9e7, inset 0 0 0 2px #879ce371, 0 15px 28px #172d6f66;
}

.gb-phone::after {
  content: "";
  position: absolute;
  top: 35%;
  left: -5px;
  height: 15%;
  width: 3px;
  border-radius: 2px;
  background: #b0c3ef;
  box-shadow: 0 1px 1px #243156;
}

.gb-camera {
  position: absolute;
  left: 8%;
  top: 5%;
  width: 49%;
  height: 27%;
  border-radius: 26%;
  background: linear-gradient(135deg, #9fbcf5, #5279c8);
  border: 1px solid #a3c4ff83;
  box-shadow: 0 2px 4px #172f5e5c;
}

.gb-lens {
  position: absolute;
  left: 13%;
  top: 7%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #6681c0 2%, #242e52 21%, #12182a 48%, #080c17 64%, #5d83d2 75%);
  border: 1px solid #94b7f5;
}

.gb-lens + .gb-lens { top: 18%; left: 30%; }
.gb-flash { position: absolute; left: 41%; top: 9%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: #dbe8fa; }
.gb-grip, .gb-tap {
  position: absolute;
  z-index: 3;
  background: linear-gradient(160deg, var(--gb-bot-highlight), var(--gb-bot-mid) 30%, var(--gb-bot-shade) 63%, var(--gb-bot-deep));
  box-shadow: inset 0 1px 1px var(--gb-bot-rim-light), 0 5px 10px #05091445;
  border-radius: 54% 48% 48% 46%;
}

.gb-grip { right: -16%; top: 58%; width: 55%; height: 31%; transform: rotate(-33deg); }
.gb-tap { left: 48%; top: 66%; width: 22%; height: 9%; transform: rotate(-17deg); transform-origin: 12% 54%; }

.gb-message {
  --bt-u: .82px;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding: calc(10.15 * var(--bt-u)) calc(13.5 * var(--bt-u));
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: calc(17 * var(--bt-u));
  line-height: calc(20 * var(--bt-u));
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: "opsz" 17;
  letter-spacing: normal;
  overflow-wrap: break-word;
  transform-origin: 90% 100%;
}

.gb-message::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--gb-fill) center top / 100% var(--gb-fill-height, 100%);
  clip-path: var(--gb-outline, inset(0 round calc(20.5 * var(--bt-u))));
}

/* Position both layers on the same fill so the gradient continues through the tail. */
.gb-message::after { background: var(--gb-fill) center bottom / 100% var(--gb-fill-height, 100%); }
.gb-blue { --gb-fill: var(--gb-chat-blue); align-self: flex-end; color: #fff; }
.gb-gray { --gb-fill: var(--gb-chat-gray); align-self: flex-start; color: var(--gb-chat-ink); transform-origin: 10% 100%; }
@media (prefers-contrast: more) {
  .gb-blue::before, .gb-blue::after { background: #0869d5; }
}
.gb-hero-messages {
  position: absolute;
  inset: 7% 0 auto auto;
  display: grid;
  justify-items: end;
  gap: clamp(7px, 2.2cqw, 14px);
  width: 70%;
}

.gb-hero-messages .gb-message {
  --bt-u: clamp(.8px, .194cqw, 1.12px);
}

.gb-hero-messages .gb-gray { margin-right: 6%; }
.gb-typing { --ty-size: 26px; position: absolute; top: 8px; right: 12px; visibility: hidden; }
.gb-typing .ty-pill i { animation-name: none; }
.gb-spark { position: absolute; top: 36%; right: 12%; color: var(--gb-accent); font-size: clamp(21px, 6cqw, 36px); line-height: 1; }
.gb-replay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gb-edge);
  border-radius: 50%;
  background: var(--gb-dialog);
  color: var(--ink);
  font: 24px/1 var(--font);
  cursor: pointer;
}

.gb-replay:hover { background: var(--gb-wash); }
.gb-replay[hidden] { display: none; }

/* The three examples use the homepage's bubble tails and spring-in timing. */
.gb-cases h2 { max-width: 21ch; }
.gb-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.grok-page .gb-case { display: flex; flex-direction: column; overflow: hidden; background: var(--gb-card); border-color: var(--gb-edge); }
.gb-case-copy { padding: 26px 24px 22px; }
.grok-page .gb-case h3 { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.12; font-weight: 400; letter-spacing: -.028em; }
.grok-page .gb-case-copy p { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.gb-scene {
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 195px;
  margin-top: auto;
  padding: 0 16px;
  background: radial-gradient(ellipse at 50% 120%, var(--gb-wash), transparent 77%);
}

.gb-chat {
  width: min(100%, 280px);
  border: 1px solid var(--gb-edge);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--gb-dialog);
  box-shadow: 0 8px 28px #33486321;
}

.gb-chat-head {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 12px 7px;
  border-bottom: 1px solid var(--gb-edge);
  color: var(--ink);
  font-size: 12px;
}

.gb-avatar {
  position: relative;
  display: inline-block;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gb-bot-fill);
  box-shadow: inset 0 0 0 1px var(--gb-edge);
  overflow: hidden;
}

.gb-avatar > i { position: absolute; inset: 0; }
.gb-avatar > i::before, .gb-avatar > i::after {
  content: "";
  position: absolute;
  top: 29%;
  left: 41%;
  width: 13%;
  height: 29%;
  border-radius: 50%;
  background: var(--gb-bot-eye);
  transform: rotate(-31deg);
}
.gb-avatar > i::after { top: 19%; left: 62%; width: 10%; height: 25%; }
.gb-chat-messages { display: flex; flex-direction: column; gap: 10px; padding: 12px 13px 18px; }
.gb-chat-messages .gb-message { max-width: 94%; }
.gb-chat-messages .gb-blue { --gb-chat-blue: #0c8cfd; }
[data-theme="dark"] .gb-chat-messages .gb-blue { --gb-chat-blue: #0291ff; }
.gb-scene-mail { align-items: center; padding-bottom: 14px; }
.gb-alert-stack { display: grid; gap: 10px; width: min(100%, 295px); }
.gb-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--gb-edge);
  border-radius: 15px;
  background: var(--gb-dialog);
  box-shadow: 0 6px 20px #33486318;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.gb-alert div > span { display: block; margin-top: 3px; color: var(--ink-2); }
.gb-mail-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #0869d5; color: #fff; font-size: 20px; line-height: 1; }
.gb-vip { color: #79510d; background: #fbefcc; border-radius: 99px; padding: 3px 5px; white-space: nowrap; font-size: 10px; }
.gb-now { padding-top: 1px; color: var(--ink-2); font-size: 10px; }

.gb-price-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(22px, 5vw, 60px);
  border: 1px solid var(--gb-edge);
  border-radius: 32px;
  background: linear-gradient(130deg, var(--gb-wash), var(--gb-card) 70%);
}

.gb-guarantee-shield {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 0 16px -7px;
  fill: var(--gb-dialog);
  stroke: var(--gb-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gb-guarantee-shield path + path { fill: none; }
.gb-guarantee h2 { max-width: 16ch; }
.gb-guarantee h2 span { white-space: nowrap; }
.gb-guarantee p { margin-top: 10px; color: var(--ink-2); font-size: 18px; }
.grok-page .gb-offer { padding: clamp(21px, 3.2vw, 37px); border-color: var(--gb-edge); background: var(--gb-dialog); }
.gb-offer .gb-amount { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 18px; color: var(--ink-2); }
.gb-amount strong { color: var(--ink); font-size: clamp(54px, 6vw, 76px); font-weight: 400; letter-spacing: -.07em; line-height: 1; }
.gb-offer .gb-terms { margin-top: 13px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.gb-faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; }
.gb-faq h2 { max-width: 13ch; }
.gb-questions details { border-top: 1px solid var(--gb-edge); }
.gb-questions details:last-child { border-bottom: 1px solid var(--gb-edge); }
.gb-questions summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 52px; padding: 10px 0; cursor: pointer; font-size: 17px; font-weight: 500; list-style: none; }
.gb-questions summary::-webkit-details-marker { display: none; }
.gb-questions summary::after { content: ''; flex: 0 0 7px; width: 7px; height: 7px; margin: -4px 6px 0 0; border: solid var(--ink-2); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.gb-questions details[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.gb-questions details p { margin: 0 18px 16px 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

@media (prefers-reduced-motion: no-preference) {
  .is-playing .gb-bot { animation: gb-bob 1.7s ease-in-out both; }
  .is-playing .gb-eye { animation: gb-blink .3s .43s ease-in-out both; }
  .is-playing .gb-tap { animation: gb-press .44s .75s var(--gb-spring) both; }
  .is-playing .gb-device { animation: gb-tilt .62s .86s var(--gb-spring) both; }
  .is-playing .gb-typing { animation: gb-typing 1.12s ease-in-out both; }
  .is-playing .gb-typing .ty-pill i { animation-name: ty-pulse; animation-iteration-count: 1; }
  .is-playing .gb-pop { animation: gb-pop .48s var(--gb-delay, .2s) var(--gb-spring) both; }
  .gb-hero-messages .gb-blue { --gb-delay: 1.1s; }
  .gb-hero-messages .gb-gray { --gb-delay: 1.95s; }
  .is-playing .gb-spark { animation: gb-spark .68s 1.1s var(--gb-spring) both; }
  .gb-chat-messages .gb-pop + .gb-pop, .gb-alert-stack .gb-pop + .gb-pop { --gb-delay: .95s; }
}

@keyframes gb-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  28% { transform: translateY(-1.1%) rotate(.8deg); }
  52% { transform: translateY(-.7%) rotate(-1.2deg); }
}
@keyframes gb-blink { 0%, 100% { scale: 1; } 45%, 58% { scale: 1 .12; } }
@keyframes gb-press { 0%, 100% { transform: rotate(-17deg); } 61% { transform: translate(14%, -27%) rotate(-27deg) scale(.95); } }
@keyframes gb-tilt { 0%, 100% { transform: rotate(15deg) skewY(-7deg); } 39% { transform: rotate(9deg) skewY(-6deg) scale(.97); } }
@keyframes gb-typing {
  0%, 100% { visibility: hidden; opacity: 0; transform: translateY(5px) scale(.9); }
  20%, 78% { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gb-pop {
  from { opacity: 0; transform: translateY(10px) scale(.79); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gb-spark {
  0% { opacity: 0; transform: translate(-12px, 14px) scale(.1) rotate(-45deg); }
  65% { opacity: 1; transform: translate(4px, -4px) scale(1.14) rotate(12deg); }
  100% { opacity: 1; transform: translate(0) scale(1) rotate(0); }
}

@media (max-width: 900px) {
  .imsg.grok-page .gb-hero { margin-top: 94px; }
  .gb-hero-copy h1 { font-size: clamp(44px, 6.7vw, 60px); }
  .gb-hero-grid { gap: 8px; }
  .gb-case-grid { gap: 12px; }
  .gb-case-copy { padding-inline: 16px; }
  .gb-scene { padding-inline: 10px; }
}

@media (max-width: 710px) {
  .imsg.grok-page .gb-hero { margin: 82px 12px 0; border-radius: 26px; }
  .gb-hero-grid { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding-inline: 20px; }
  .gb-hero-copy { text-align: center; }
  .gb-hero-copy h1, .grok-page .gb-hero-copy > p { margin-inline: auto; }
  .gb-hero-copy h1 { font-size: clamp(42px, 9.5vw, 60px); }
  .gb-actions { justify-content: center; margin-top: 20px; }
  .gb-stage { max-width: 420px; }
  .gb-case-grid, .gb-price-panel, .gb-faq-grid { grid-template-columns: 1fr; }
  .gb-case-grid { gap: 16px; }
  .gb-case-copy { padding-inline: 22px; }
  .gb-scene { min-height: 182px; }
  .gb-price-panel, .gb-faq-grid { gap: 22px; }
  .gb-faq h2, .gb-guarantee h2 { max-width: 100%; }
}
