:root {
  --ink: #212121;
  --muted: #212121;
  --light: #f2f2f2;
  --line: #e2e2e2;
  --white: #ffffff;
  --blue: #0c2ebd;
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; }
button, textarea, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(33,33,33,0.08);
  backdrop-filter: blur(8px);
}
.header-inner {
  position: relative;
  height: 114px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
}
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.desktop-nav a, .mobile-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  transition: opacity .2s ease;
}
.desktop-nav a:hover, .mobile-nav a:hover { opacity: .55; }
.brand-logo { display: block; justify-self: center; }
.brand-logo img { display: block; width: 204px; height: auto; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.locale-label { font-size: 11px; color: #3d3d3d; white-space: nowrap; }
.header-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.header-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu-button { display: none; background: none; border: 0; padding: 8px; }
.mobile-menu-button span { display: block; width: 22px; height: 1px; margin: 5px 0; background: var(--ink); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 24px 22px; background: #fff; }
.mobile-nav.open { display: grid; gap: 16px; }

main { min-height: 70vh; }
.studio-intro {
  text-align: center;
  max-width: 930px;
  margin: 0 auto;
  padding: 58px 24px 34px;
}
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 2.4px; margin-bottom: 11px; }
.studio-intro h1 { margin: 0; font-size: clamp(26px, 3vw, 44px); font-weight: 500; letter-spacing: 2.3px; line-height: 1.25; }
.studio-intro p { max-width: 760px; margin: 20px auto 0; color: var(--muted); font-size: 14px; }

.studio-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 72px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.studio-toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.studio-title { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; }
.studio-subtitle { margin-top: 2px; font-size: 11px; color: var(--muted); }
.text-button { border: 0; background: none; text-transform: uppercase; font-size: 10px; letter-spacing: 1.5px; padding: 8px 0 8px 12px; cursor: pointer; }
.text-button:hover { opacity: .6; }

.progress-wrap { background: #fafafa; border-bottom: 1px solid var(--line); padding: 16px 22px; overflow-x: auto; }
.progress-track { display: flex; align-items: flex-start; min-width: 690px; max-width: 900px; margin: 0 auto; }
.progress-step { display: grid; justify-items: center; gap: 5px; min-width: 82px; color: #a0a0a0; }
.progress-step span { width: 26px; height: 26px; border: 1px solid #c7c7c7; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: white; }
.progress-step strong { font-size: 9px; letter-spacing: 1px; font-weight: 500; text-transform: uppercase; white-space: nowrap; }
.progress-step.active { color: var(--ink); }
.progress-step.active span { border-color: var(--ink); }
.progress-step.complete { color: var(--ink); }
.progress-step.complete span { background: var(--ink); border-color: var(--ink); color: #fff; }
.progress-line { height: 1px; background: #d4d4d4; flex: 1; margin-top: 13px; min-width: 28px; }
.progress-line.complete { background: var(--ink); }

.conversation {
  min-height: 530px;
  max-height: min(66vh, 760px);
  overflow-y: auto;
  padding: 30px max(22px, calc((100% - 900px) / 2));
  scroll-behavior: smooth;
}
.welcome { max-width: 820px; margin: 38px auto; text-align: center; }
.assistant-avatar { width: 42px; height: 42px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-size: 18px; font-weight: 600; }
.welcome h2 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: .2px; }
.welcome p { color: var(--muted); max-width: 640px; margin: 12px auto 25px; }
.starter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 700px; margin: 0 auto; }
.starter { min-height: 54px; padding: 12px 16px; background: #fff; border: 1px solid #d5d5d5; border-radius: 3px; text-align: left; font-size: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.starter:hover { border-color: #888; background: #fafafa; }

.message-row { display: flex; width: 100%; margin: 18px 0; }
.message-row.user { justify-content: flex-end; }
.message-row.assistant { justify-content: flex-start; }
.message-bubble { max-width: min(76%, 720px); border-radius: 16px; padding: 13px 16px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.user .message-bubble { background: #f0f4fa; border-bottom-right-radius: 4px; }
.message-row.assistant .message-bubble { padding-left: 0; background: transparent; border-radius: 0; max-width: min(88%, 800px); }
.message-bubble a { text-underline-offset: 3px; }
.message-image-thumb { width: 160px; max-height: 120px; object-fit: cover; display: block; margin: 0 0 9px auto; border-radius: 8px; border: 1px solid #ddd; }
.typing { display: inline-flex; gap: 5px; align-items: center; height: 24px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #777; animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.artifact-card { max-width: 800px; margin: 10px 0 26px; border: 1px solid #d8d8d8; border-radius: 4px; overflow: hidden; background: white; }
.artifact-image-wrap { background: #fff; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; }
.artifact-card.mockup .artifact-image-wrap { background: #efefef; }
.artifact-image-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.artifact-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-top: 1px solid #e3e3e3; }
.artifact-title { font-size: 11px; letter-spacing: 1.4px; font-weight: 600; text-transform: uppercase; }
.artifact-finish { color: var(--muted); font-size: 10px; margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }
.artifact-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.small-button { border: 1px solid var(--ink); background: #fff; color: var(--ink); padding: 8px 11px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.small-button.primary { background: var(--ink); color: #fff; }
.small-button:hover { opacity: .72; }

.attachment-preview { margin: 0 18px 10px; padding: 10px; display: flex; align-items: center; gap: 11px; background: #f7f7f7; border: 1px solid #ddd; border-radius: 4px; }
.attachment-preview[hidden] { display: none; }
.attachment-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 3px; }
.attachment-info { display: grid; flex: 1; min-width: 0; }
.attachment-info strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-info span { font-size: 10px; color: var(--muted); }
.attachment-preview button { border: 0; background: transparent; font-size: 24px; color: #777; cursor: pointer; }

.composer { margin: 0 18px; border: 1px solid #bdbdbd; border-radius: 4px; min-height: 58px; display: grid; grid-template-columns: 46px 1fr 48px; align-items: end; background: white; transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: #777; box-shadow: 0 0 0 2px rgba(33,33,33,.06); }
.upload-button { align-self: stretch; display: grid; place-items: center; cursor: pointer; }
.upload-button svg, .send-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#messageInput { border: 0; outline: 0; resize: none; min-height: 56px; max-height: 160px; padding: 17px 8px 12px; color: var(--ink); background: transparent; line-height: 1.5; }
#messageInput::placeholder { color: #999; }
.send-button { width: 38px; height: 38px; margin: 0 8px 9px 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.send-button:disabled { opacity: .3; cursor: default; }
.composer-note { padding: 9px 20px 17px; text-align: center; font-size: 9px; color: #8a8a8a; letter-spacing: .2px; }

.site-footer { margin-top: 20px; }
.newsletter-strip { background: #f2f2f2; padding: 36px max(24px, calc((100vw - 1280px) / 2)); display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.newsletter-strip h2 { font-size: 14px; letter-spacing: 1.7px; font-weight: 600; margin: 0 0 7px; }
.newsletter-strip p { margin: 0; color: var(--muted); font-size: 11px; max-width: 760px; }
.outline-button { display: inline-block; border: 1px solid currentColor; padding: 11px 18px; text-decoration: none; font-size: 9px; letter-spacing: 1.5px; white-space: nowrap; }
.footer-main { background: #212121; color: #efefef; padding: 46px max(24px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-column { display: grid; align-content: start; gap: 8px; }
.footer-column h3 { margin: 0 0 9px; font-size: 11px; letter-spacing: 1.5px; font-weight: 600; }
.footer-column a, .footer-column span { color: #c9c9c9; text-decoration: none; font-size: 10px; }
.footer-column a:hover { color: white; }
.footer-bottom { background: #212121; color: #858585; border-top: 1px solid #3a3a3a; padding: 18px max(24px, calc((100vw - 1280px) / 2)); font-size: 9px; }

@media (max-width: 1000px) {
  .header-inner { height: 88px; grid-template-columns: 1fr auto 1fr; }
  .desktop-nav, .locale-label, .desktop-only { display: none; }
  .mobile-menu-button { display: block; justify-self: start; }
  .brand-logo img { width: 165px; }
  .header-actions { gap: 8px; }
  .conversation { max-height: none; min-height: 500px; }
}

@media (max-width: 720px) {
  .header-inner { height: 78px; padding: 0 14px; }
  .brand-logo img { width: 135px; }
  .studio-intro { padding: 38px 18px 25px; }
  .studio-intro h1 { font-size: 25px; letter-spacing: 1.4px; }
  .studio-intro p { font-size: 12px; }
  .studio-shell { width: calc(100% - 20px); margin-bottom: 45px; box-shadow: 0 7px 26px rgba(0,0,0,.07); }
  .studio-toolbar { padding: 13px 14px; }
  .progress-wrap { padding: 13px 12px; }
  .conversation { padding: 18px 14px; min-height: 480px; }
  .welcome { margin: 28px auto; }
  .welcome h2 { font-size: 19px; }
  .starter-grid { grid-template-columns: 1fr; }
  .message-bubble { max-width: 88%; }
  .message-row.assistant .message-bubble { max-width: 96%; }
  .artifact-meta { align-items: flex-start; flex-direction: column; }
  .artifact-actions { justify-content: flex-start; }
  .composer { margin: 0 10px; grid-template-columns: 42px 1fr 44px; }
  .attachment-preview { margin-inline: 10px; }
  .newsletter-strip { align-items: flex-start; flex-direction: column; padding: 30px 20px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); padding: 35px 20px; gap: 32px 20px; }
  .footer-bottom { padding-inline: 20px; }
}

@media (max-width: 430px) {
  .brand-logo img { width: 118px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* Render Studio interaction states */
.text-button:disabled,
.small-button:disabled {
  opacity: .35;
  cursor: default;
}
.artifact-card.superseded {
  opacity: .72;
}
body.is-busy .starter,
body.is-busy .upload-button {
  pointer-events: none;
  opacity: .5;
}
:root { color-scheme: light; }
[hidden] { display: none !important; }
.delivery-controls { padding: 16px 24px; border-top: 1px solid #eee; }
.delivery-controls h2 { font-size: 18px; }
.delivery-controls p { font-size: 14px; line-height: 1.6; }
.delivery-controls .small-button { display: inline-block; margin: 6px 6px 6px 0; }
#accessCodeWrap { font-size: 12px; }
#accessCode { max-width: 160px; padding: 8px; border: 1px solid #ddd; border-radius: 3px; }

/* Adrenaline storefront typography and compact conversation layout. */
.studio-intro { padding: 26px 20px 20px; }
.studio-intro h1 { font-size: 24px; letter-spacing: 2px; }
.studio-intro h1::after { content: ""; display: block; width: 45px; height: 3px; background: var(--ink); margin: 16px auto 0; transform-origin: left; animation: heading-line .65s ease-out both; }
@keyframes heading-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.studio-intro p { font-size: 14px; margin-top: 16px; }
.studio-shell { margin-bottom: 32px; }
.studio-toolbar { min-height: 60px; padding: 10px 18px; }
.studio-title { font-size: 16px; }
.studio-subtitle { font-size: 14px; }
.progress-wrap { padding: 10px 16px; }
.progress-track { max-width: 1040px; min-width: 760px; }
.progress-step { color: #212121; }
.progress-step strong, .progress-step span { font-size: 12px; }
.conversation { min-height: 0; height: clamp(260px, 38vh, 460px); max-height: none; padding: 16px 24px; }
.welcome { margin: 0 auto; }
.customizer-icon { display: block; width: 84px; height: 84px; object-fit: contain; margin: 0 auto 8px; }
.welcome h2, .delivery-controls h2 { font-size: 20px; }
.welcome p { margin: 8px auto 14px; font-size: 14px; }
.starter { min-height: 42px; padding: 8px 12px; font-size: 14px; }
.message-bubble { font-size: 14px; }
.small-button { font-size: 12px; }
.composer-note { font-size: 12px; color: #212121; }
#messageInput::placeholder { color: #212121; }
.delivery-controls:has(#continueView[hidden]):has(#completionPanel[hidden]) { display: none; }
.footer-column h3 { font-size: 16px; }
.footer-column a, .footer-column span { font-size: 14px; }
.footer-bottom { font-size: 11.2px; color: #bdbdbd; }
@media (max-width: 720px) {
  .studio-intro { padding: 20px 16px 16px; }
  .studio-toolbar { flex-wrap: wrap; gap: 8px; }
  .conversation { padding: 14px; height: 340px; }
  .studio-intro h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-intro h1::after { animation: none; }
  html, .conversation { scroll-behavior: auto; }
}

/* Storefront refinement. */
.desktop-nav a, .mobile-nav a { font-size: 12px; }
.studio-intro h1::after { width: 36px; height: 2px; }
.customizer-icon { width: 250px; max-width: 80%; height: auto; margin: 8px auto 28px; }
.conversation { height: auto; max-height: none; overflow: visible; padding: 28px 24px 36px; }
.welcome { margin: 0 auto; }
.welcome p { margin: 16px auto 24px; }
.starter-grid { gap: 12px; }
.composer { margin-top: 12px; }
.progress-step, .attachment-preview button, #messageInput::placeholder, .composer-note { color: #212121; }
.progress-step.complete { color: #212121; }
.progress-step.complete span { color: #ffffff; }
.footer-main, .footer-column a, .footer-column span, .footer-bottom { color: #ffffff; }
.footer-column h3 { font-weight: 400; }
.footer-column { gap: 12px; }
.footer-column address { font-style: normal; font-size: 14px; line-height: 2; margin: 12px 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 12px 0 0; }
.social-links a { display: inline-flex; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 720px) { .conversation { height: auto; padding: 24px 14px 32px; } }
