:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --ink: #172026;
  --muted: #5c6873;
  --line: #d8dee4;
  --blue: #0969da;
  --green: #1a7f37;
  --gold: #9a6700;
  --red: #b42318;
  --shadow: 0 16px 40px rgba(23, 32, 38, 0.08);
  --soft-blue: #eef6ff;
  --soft-green: #eefaf2;
  --generated-accent: #1f7a8c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.hero-actions,
.auth-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark,
.agent-avatar,
.feature-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #172026;
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.button-secondary {
  background: #fff;
  color: var(--blue);
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.hero-copy h1,
.dashboard-head h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

.lede strong {
  color: var(--ink);
}

.hero-subtitle {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.login-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.official-hero {
  position: relative;
  min-height: calc(92vh - 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 28px 88px;
  background: #10212b;
  color: #fff;
}

.official-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  background: #f6f8fa;
}

.hero-scene {
  position: absolute;
  inset: 0;
  opacity: 0.84;
}

.camera-frame,
.site-preview-window {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.camera-frame {
  right: 8%;
  top: 16%;
  width: min(36vw, 430px);
  min-width: 300px;
  padding: 16px;
  transform: rotate(2deg);
}

.camera-top,
.window-dots,
.preview-row {
  display: flex;
  align-items: center;
}

.camera-top {
  justify-content: space-between;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.camera-top span {
  width: 34px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.menu-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 260px;
  padding: 14px;
  border-radius: 8px;
  background: #f8f1e7;
  color: #2c241d;
}

.menu-photo span {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px solid rgba(44, 36, 29, 0.18);
  border-radius: 8px;
  background: #fffaf2;
  font-weight: 900;
}

.menu-photo span:first-child {
  grid-column: 1 / -1;
  min-height: 118px;
  background: #f1d7a8;
}

.site-preview-window {
  right: 16%;
  bottom: 13%;
  width: min(34vw, 390px);
  min-width: 280px;
  padding: 18px;
  color: #fff;
}

.window-dots {
  gap: 6px;
  margin-bottom: 16px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.site-preview-window p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.preview-row {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.preview-row b {
  color: #9be7b1;
}

.official-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin-left: max(28px, calc((100vw - 1180px) / 2));
  padding-bottom: 34px;
}

.official-hero .eyebrow {
  color: #9be7b1;
}

.official-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.official-hero .lede {
  color: rgba(255, 255, 255, 0.86);
}

.official-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.official-hero .login-note {
  color: rgba(255, 255, 255, 0.72);
}

.official-section {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 0 28px;
}

.faq-section {
  padding-bottom: 72px;
}

.page-marketing-home .official-hero .lede {
  max-width: 620px;
}

.marketing-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.marketing-case-grid article {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.marketing-case-grid strong {
  font-size: 20px;
}

.marketing-case-grid p {
  margin: 0;
  color: var(--muted);
}

.case-arrow {
  color: var(--green) !important;
  font-weight: 900;
}

.marketing-cta-footer {
  margin-bottom: 72px;
  padding-bottom: 0;
}

.template-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
}

.template-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.template-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.theme-card-breakfast {
  border-top: 4px solid #d97706;
  background: #fff7ed;
}

.theme-card-cafe {
  border-top: 4px solid #6f4e37;
  background: #f8f3ee;
}

.theme-card-tutoring {
  border-top: 4px solid #2563eb;
  background: #eef4ff;
}

.theme-card-clinic {
  border-top: 4px solid #16a34a;
  background: #effcf3;
}

.theme-card-corporate {
  border-top: 4px solid #1e3a8a;
  background: #eef2f7;
}

.template-thumb {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 190px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.template-thumb strong {
  font-size: 34px;
  line-height: 1;
}

.template-thumb span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.thumb-breakfast {
  background: linear-gradient(135deg, #fed7aa 0%, #fde68a 100%);
}

.thumb-cafe {
  background: linear-gradient(135deg, #e7d7cb 0%, #f5efe8 100%);
}

.thumb-tutoring {
  background: linear-gradient(135deg, #bfdbfe 0%, #1e3a8a22 100%);
}

.thumb-clinic {
  background: linear-gradient(135deg, #bbf7d0 0%, #ecfdf3 100%);
}

.thumb-corporate {
  background: linear-gradient(135deg, #cbd5e1 0%, #e5e7eb 100%);
}

.template-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.template-card-body h2 {
  margin: 0;
  font-size: 24px;
}

.template-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-spec-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.template-spec-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

.template-spec-list dt {
  color: var(--muted);
  font-weight: 800;
}

.template-spec-list dd {
  margin: 0;
  color: var(--ink);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.06;
}

.showcase-hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.before-after-section {
  padding-bottom: 72px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 14px;
}

.before-after-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.before-after-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.before-after-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.before-after-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.before-after-middle {
  display: grid;
  align-content: center;
  gap: 10px;
}

.flow-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--ink);
  font-weight: 900;
}

.showcase-case-layout {
  padding-top: 34px;
  padding-bottom: 72px;
}

.showcase-case-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
}

.showcase-case-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.showcase-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.showcase-cover-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.showcase-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.55;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading h2,
.case-copy h2,
.pricing-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.official-feature-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.official-feature-grid article,
.step-grid article,
.breakfast-demo,
.pricing-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.official-feature-grid article,
.step-grid article {
  padding: 20px;
}

.official-feature-grid h3,
.step-grid h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.official-feature-grid p,
.step-grid p,
.case-copy p,
.pricing-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.step-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #172026;
  color: #fff;
  font-weight: 900;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: center;
}

.case-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.case-flow span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.case-flow b {
  color: var(--green);
  font-size: 22px;
}

.breakfast-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.breakfast-demo > div {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 16px;
  border-radius: 8px;
  background: #f9fbfd;
}

.demo-menu {
  background: #fff7ed !important;
}

.demo-site {
  background: var(--soft-blue) !important;
}

.demo-line {
  background: var(--soft-green) !important;
}

.breakfast-demo strong {
  font-size: 18px;
}

.breakfast-demo span,
.breakfast-demo p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-snapshot,
.panel,
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-snapshot {
  padding: 22px;
}

.snapshot-header,
.panel-title,
.dashboard-head,
.identity-panel,
.agent-card,
.status-list div,
.site-item,
.conversation-item {
  display: flex;
  align-items: center;
}

.snapshot-header {
  justify-content: space-between;
  font-weight: 900;
  margin-bottom: 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 127, 55, 0.14);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-grid div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.metric-label,
.muted,
.snippet-meta,
.site-item small,
.conversation-item small {
  color: var(--muted);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.agent-card {
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #eef6ff;
}

.agent-avatar,
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.agent-card p,
.feature-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.agent-policy {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.builder-band,
.agent-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: -54px auto 72px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.builder-band h2,
.agent-band h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.builder-band p,
.agent-band p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.sentence-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.agent-preview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.compact-chat-transcript {
  min-height: 132px;
  max-height: 220px;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-band {
  margin-top: 0;
}

.agent-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-feature-grid div,
.voice-readiness {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  font-weight: 800;
}

.voice-readiness {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  background: var(--soft-green);
}

.voice-readiness span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 0 28px;
}

.feature-item {
  padding: 22px;
  border-top: 3px solid var(--blue);
  background: #fff;
}

.feature-item:nth-child(2) {
  border-top-color: var(--green);
}

.feature-item:nth-child(3) {
  border-top-color: var(--gold);
}

.feature-item h2,
.panel h2,
.auth-panel h2 {
  margin: 12px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.dashboard-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.dashboard-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-head h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.dashboard-subtitle {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.identity-panel {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-panel {
  max-width: 560px;
  padding: 24px;
}

.auth-panel p {
  color: var(--muted);
}

.auth-actions {
  gap: 10px;
  margin: 18px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

.create-panel {
  border-top: 4px solid var(--blue);
}

.status-panel {
  border-top: 4px solid var(--green);
}

.ai-panel {
  border-top: 4px solid var(--gold);
}

.line-panel {
  border-top: 4px solid #06c755;
}

.image-panel {
  border-top: 4px solid #7c3aed;
}

.credit-panel {
  border-top: 4px solid #0ea5e9;
}

.overview-panel {
  grid-column: 1 / -1;
  border-top: 4px solid #172026;
}

.site-status-panel {
  border-top: 4px solid #0ea5e9;
}

.runtime-panel {
  border-top: 4px solid #6366f1;
}

.builder-launch-panel {
  border-top: 4px solid #14b8a6;
}

.chat-panel {
  border-top: 4px solid #0f766e;
}

.sites-panel,
.snippet-panel,
.chat-panel,
.conversation-panel,
.image-panel {
  grid-column: 1 / -1;
}

.panel-title {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metrics div {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.dashboard-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-metrics strong {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
}

.builder-quick-actions,
.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-layout,
.preview-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.builder-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.wizard-rail,
.wizard-panel,
.preview-site {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wizard-rail {
  align-self: start;
  padding: 22px;
}

.wizard-rail h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.wizard-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-steps li {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.wizard-steps li.active {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: var(--blue);
}

.wizard-steps li.complete {
  border-color: rgba(26, 127, 55, 0.28);
  background: var(--soft-green);
  color: var(--green);
}

.wizard-panel {
  min-height: 560px;
  padding: 24px;
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
}

.wizard-step-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid label {
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.choice-grid input:checked + span {
  border-color: var(--blue);
  background: var(--soft-blue);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.builder-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.style-choice-grid,
.agent-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-choice-grid {
  max-width: 720px;
}

.draft-grid,
.preview-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.draft-grid article,
.preview-content-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.draft-grid p,
.preview-content-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.preview-site {
  overflow: hidden;
}

.preview-hero {
  padding: 58px 34px;
  background: #10212b;
  color: #fff;
}

.preview-device-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  padding: 20px 24px 0;
}

.device-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
}

.device-header span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c7d2db;
}

.device-header strong {
  margin-left: auto;
  font-size: 12px;
}

.device-content {
  padding: 16px;
}

.device-content h3 {
  margin: 0;
  font-size: 20px;
}

.device-content p {
  color: var(--muted);
}

.device-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-pills span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.preview-mini-contact {
  display: grid;
  gap: 8px;
  margin: 0;
}

.preview-mini-contact div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-sections-panel {
  margin: 18px 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.preview-visual-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-visual-shell article {
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.publish-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.publish-checklist-grid article {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.publish-checklist-grid strong {
  display: block;
  margin-bottom: 6px;
}

.publish-checklist-grid p {
  margin: 0;
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

.preview-publish-status {
  margin-top: 14px;
}

.preview-visual-shell strong {
  display: block;
  margin-bottom: 8px;
}

.preview-visual-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.preview-icon-set,
.preview-visual-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-sections-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.section-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.section-status-grid article {
  min-height: 94px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section-status-grid strong {
  display: block;
  margin-bottom: 6px;
}

.section-status-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.preview-hero .eyebrow {
  color: #9be7b1;
}

.preview-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}

.preview-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.preview-source-note {
  margin: 12px 0 0;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.preview-theme-note {
  margin: 10px 0 0;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.page-preview.theme-breakfast .preview-hero {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.page-preview.theme-cafe .preview-hero {
  background: linear-gradient(135deg, #6f4e37 0%, #a0785a 100%);
}

.page-preview.theme-tutoring .preview-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.page-preview.theme-clinic .preview-hero {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
}

.page-preview.theme-corporate .preview-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #6b7280 100%);
}

.preview-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

.preview-content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 24px;
}

.generated-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.generated-hero {
  display: grid;
  align-content: center;
  min-height: 520px;
  padding: 72px max(28px, calc((100vw - 1180px) / 2));
  background: linear-gradient(130deg, #10212b 0%, color-mix(in srgb, #10212b 60%, var(--generated-accent)) 100%);
  color: #fff;
}

.generated-hero .eyebrow {
  color: #9be7b1;
}

.generated-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.98;
}

.generated-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  line-height: 1.58;
}

.generated-source-note {
  margin: 10px 0 0;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.generated-mode-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.generated-theme-note {
  margin: 10px 0 0;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.page-generated-site.theme-breakfast {
  --generated-accent: #d97706;
  --generated-surface: #fff7ed;
}

.page-generated-site.theme-cafe {
  --generated-accent: #6f4e37;
  --generated-surface: #f8f3ee;
}

.page-generated-site.theme-tutoring {
  --generated-accent: #2563eb;
  --generated-surface: #eef4ff;
}

.page-generated-site.theme-clinic {
  --generated-accent: #16a34a;
  --generated-surface: #effcf3;
}

.page-generated-site.theme-corporate {
  --generated-accent: #1e3a8a;
  --generated-surface: #eef2f7;
}

.generated-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.68);
  background: transparent;
  color: #fff;
}

.generated-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--generated-surface, #fff);
}

.generated-section h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.generated-section > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.generated-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.generated-card-grid article,
.faq-list details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.generated-card-grid article {
  border-top: 3px solid color-mix(in srgb, var(--generated-accent) 64%, #ffffff);
}

.generated-card-grid h3 {
  margin: 14px 0 8px;
}

.generated-card-grid p,
.faq-list p {
  color: var(--muted);
  line-height: 1.55;
}

.generated-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.generated-contact-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.generated-contact-list dt {
  color: var(--muted);
  font-weight: 900;
}

.generated-contact-list dd {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.demo-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.demo-timeline li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.demo-timeline li span {
  color: var(--muted);
}

.mock-agent-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  width: min(360px, calc(100vw - 44px));
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.mock-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--generated-accent) 60%, #172026);
  color: #fff;
}

.mock-agent-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.mock-agent-body {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  background: #f9fbfd;
}

.mock-agent-body p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.45;
}

.mock-agent-user {
  justify-self: end;
  background: var(--soft-blue) !important;
}

.mock-agent-reply {
  justify-self: start;
}

.mock-agent-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.mock-agent-form input {
  min-height: 36px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.muted-pill {
  background: #f6f8fa;
  color: var(--muted);
}

.image-use-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.5;
}

.suggested-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.image-panel .form-grid {
  grid-template-columns: minmax(220px, 0.45fr) minmax(260px, 1fr) auto;
  align-items: end;
}

.compact-status-list {
  margin-top: 10px;
}

.warning-text {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(154, 103, 0, 0.22);
  border-radius: 8px;
  background: #fff8e5;
  color: #6f4e00;
  font-size: 13px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field-wide,
.field-help {
  grid-column: 1 / -1;
}

.field-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.confirm-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.confirm-field input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.image-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.credit-estimate {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(9, 105, 218, 0.2);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.credit-estimate span {
  color: var(--muted);
}

.credit-transactions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.transaction-list {
  display: grid;
  gap: 8px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.transaction-item:last-child {
  border-bottom: 0;
}

.transaction-item span:first-child {
  display: grid;
  gap: 3px;
}

.transaction-item small {
  color: var(--muted);
}

.credit-positive {
  color: var(--green);
  font-weight: 900;
}

.credit-negative {
  color: var(--red);
  font-weight: 900;
}

.image-result strong {
  display: block;
  margin-bottom: 6px;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.generated-image {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-result-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.image-download {
  text-decoration: none;
}

.compact-field {
  margin-top: 12px;
}

.result-box,
.snippet-box {
  overflow: auto;
  min-height: 90px;
  max-height: 280px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1720;
  color: #f6f8fa;
  font-size: 13px;
  line-height: 1.45;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.status-list div {
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list dt {
  color: var(--muted);
  font-weight: 800;
}

.status-list dd {
  margin: 0;
  font-weight: 900;
}

.site-list,
.conversation-list {
  display: grid;
  gap: 10px;
}

.site-item,
.conversation-item {
  width: 100%;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.site-item.selected,
.conversation-item.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.site-item span:first-child,
.conversation-item span:first-child {
  display: grid;
  gap: 3px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.snippet-meta {
  margin-bottom: 10px;
  font-weight: 800;
}

.chat-meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.voice-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.voice-panel strong {
  color: var(--ink);
}

.chat-transcript {
  display: grid;
  gap: 10px;
  min-height: 150px;
  max-height: 300px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.chat-message {
  display: grid;
  gap: 5px;
  max-width: 82%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.chat-message.user {
  justify-self: end;
  border-color: rgba(9, 105, 218, 0.28);
  background: #eef6ff;
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.handoff-layout {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

@media (max-width: 820px) {
  .topbar,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 16px 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-band,
  .dashboard-grid,
  .feature-band,
  .official-feature-grid,
  .step-grid,
  .marketing-case-grid,
  .template-gallery,
  .preview-visual-shell,
  .publish-checklist-grid,
  .before-after-grid,
  .showcase-detail-grid,
  .case-section,
  .breakfast-demo,
  .dashboard-metrics,
  .builder-shell,
  .choice-grid,
  .builder-form-grid,
  .style-choice-grid,
  .agent-choice-grid,
  .draft-grid,
  .preview-content-grid,
  .preview-device-band,
  .section-status-grid,
  .generated-card-grid,
  .generated-contact-list,
  .builder-band,
  .agent-band,
  .sentence-builder,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: auto;
    padding: 34px 18px 48px;
  }

  .official-hero {
    min-height: 760px;
    padding: 42px 18px 72px;
  }

  .official-hero-copy {
    margin-left: 0;
  }

  .official-hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.08;
  }

  .camera-frame {
    right: -60px;
    top: auto;
    bottom: 74px;
    width: 330px;
    min-width: 0;
    opacity: 0.55;
  }

  .site-preview-window {
    right: 18px;
    bottom: 24px;
    width: min(320px, calc(100vw - 36px));
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.04;
  }

  .lede {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-actions,
  .auth-actions,
  .preview-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button,
  .auth-actions .button,
  .sentence-builder .button,
  .chat-form .button,
  .preview-actions .button {
    width: 100%;
  }

  .product-snapshot {
    padding: 18px;
  }

  .snapshot-grid,
  .agent-feature-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid div {
    min-height: auto;
  }

  .feature-band {
    margin: 0 auto 44px;
    padding: 0 18px;
  }

  .official-section {
    margin-bottom: 44px;
    padding: 0 18px;
  }

  .pricing-section {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-band,
  .agent-band {
    margin: 0 18px 34px;
    padding: 18px;
  }

  .builder-band h2,
  .agent-band h2 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.16;
  }

  .agent-band {
    margin-top: 0;
  }

  .dashboard-layout {
    padding: 28px 18px 54px;
  }

  .builder-layout,
  .preview-layout {
    padding: 24px 18px 54px;
  }

  .identity-panel {
    align-items: flex-start;
    width: 100%;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .image-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 100%;
  }

  .wizard-panel,
  .wizard-rail {
    padding: 18px;
  }

  .wizard-actions,
  .next-actions,
  .builder-quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-actions .button,
  .next-actions .button,
  .builder-quick-actions .button {
    width: 100%;
  }

  .preview-hero {
    padding: 34px 18px;
  }

  .preview-sections-panel {
    margin: 16px 18px 0;
  }

  .generated-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .generated-hero,
  .generated-section {
    padding: 42px 18px;
  }

  .mock-agent-widget {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
