:root {
  --ink: #171a19;
  --muted: #68716d;
  --line: #dce2df;
  --paper: #f5f7f6;
  --white: #fff;
  --accent: #087f6d;
  --accent-soft: #e8f6f2;
  --radius: 14px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.config-header { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: white; border-bottom: 1px solid var(--line); }
.back-link { display: flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.back-link span { font-size: 24px; line-height: 0; }
.config-brand { display: grid; justify-items: center; line-height: 1.25; }
.config-brand strong { font-size: 15px; }
.config-brand small { color: var(--muted); font-size: 10px; }
.reset-button { justify-self: end; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); font-size: 12px; }

.config-layout { height: calc(100dvh - 68px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.preview-stage { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 28px 34px 18px; background: #e9eeeb; }
.preview-heading { display: flex; justify-content: space-between; align-items: end; max-width: 920px; width: 100%; margin: 0 auto 18px; }
.preview-heading p { margin: 0 0 2px; color: var(--accent); font-size: 11px; font-weight: 800; }
.preview-heading h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.device-switch { display: flex; padding: 3px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.85); border-radius: 10px; }
.device-switch button { min-width: 48px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; }
.device-switch button.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(38,54,48,.09); }
.preview-area { min-height: 0; flex: 1; display: grid; place-items: center; }
.browser-frame { width: min(100%, 920px); aspect-ratio: 16 / 10; overflow: hidden; background: white; border: 1px solid rgba(30,45,39,.14); border-radius: 15px; box-shadow: 0 28px 70px rgba(30,52,43,.16); transition: width .45s ease, background .3s ease; }
.browser-frame.mobile { width: min(44%, 350px); aspect-ratio: 9 / 17; }
.browser-bar { height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #f5f6f5; border-bottom: 1px solid #e4e7e5; }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #cbd0cd; }
.browser-bar span { margin-left: 8px; color: #909794; font-size: 7px; }
.mock-site { --site-accent: #087f6d; --site-bg: #fff; --site-ink: #151817; height: calc(100% - 28px); overflow: hidden; padding: 3.5% 4.5%; color: var(--site-ink); background: var(--site-bg); transition: color .3s ease, background .3s ease; }
.mock-nav { display: flex; align-items: center; gap: 16px; font-size: clamp(6px, .65vw, 10px); }
.mock-nav b { margin-right: auto; font-size: 1.5em; letter-spacing: -.05em; }
.mock-nav span { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-nav em { padding: .65em 1em; border-radius: 6px; background: var(--site-ink); color: var(--site-bg); font-style: normal; font-weight: 700; }
.mock-hero { height: 58%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34%); align-items: center; gap: 4%; }
.mock-copy small { color: var(--site-accent); font-size: clamp(7px, .8vw, 11px); font-weight: 800; }
.mock-copy h2 { margin: .4em 0 .3em; font-size: clamp(21px, 3.2vw, 48px); line-height: 1.04; letter-spacing: -.065em; }
.mock-copy p { max-width: 31em; margin: 0 0 1.3em; color: color-mix(in srgb, var(--site-ink) 58%, transparent); font-size: clamp(7px, .82vw, 12px); }
.mock-copy button { padding: .7em 1.1em; border: 1px solid var(--site-accent); border-radius: 6px; background: var(--site-accent); color: white; font-size: clamp(6px, .7vw, 10px); font-weight: 700; }
.mock-copy .ghost { margin-left: 5px; background: transparent; color: var(--site-ink); border-color: color-mix(in srgb, var(--site-ink) 20%, transparent); }
.mock-visual { position: relative; width: 100%; aspect-ratio: 1.1; justify-self: end; overflow: hidden; padding: 10%; background: color-mix(in srgb, var(--site-accent) 13%, var(--site-bg)); border-radius: 10px; transform: none; transition: background .3s ease, border-color .3s ease, border-radius .3s ease; }
.mock-visual span { color: var(--site-accent); font-size: clamp(7px, .8vw, 12px); font-weight: 800; }
.mock-visual b { position: absolute; left: 10%; bottom: 10%; font-size: clamp(18px, 3vw, 44px); line-height: .85; letter-spacing: -.08em; }
.mock-visual i { position: absolute; width: 48%; aspect-ratio: 1; right: -11%; top: -11%; border: clamp(8px, 2vw, 28px) solid var(--site-accent); border-radius: 50%; opacity: .82; }
.mock-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; }
.mock-modules article { padding: 4%; border-top: 1px solid color-mix(in srgb, var(--site-ink) 16%, transparent); }
.mock-modules small { display: block; margin-bottom: 4px; color: var(--site-accent); font-size: clamp(6px, .6vw, 9px); }
.mock-modules b { font-size: clamp(7px, .8vw, 12px); }
.mock-feature-panel { height: 29%; padding: 3%; background: color-mix(in srgb, var(--site-accent) 8%, var(--site-bg)); border-radius: 9px; font-size: clamp(7px, .76vw, 11px); }

.browser-frame[data-theme="editorial"] .mock-site { --site-accent: #b43b24; --site-bg: #f2eee7; --site-ink: #1d1a17; }
.browser-frame[data-theme="editorial"] .mock-copy h2 { font-weight: 500; }
.browser-frame[data-theme="editorial"] .mock-visual { border-radius: 0; }
.browser-frame[data-theme="energetic"] .mock-site { --site-accent: #ed3d78; --site-bg: #fff8d7; --site-ink: #241c2b; }
.browser-frame[data-theme="energetic"] .mock-visual { border-radius: 24px; }
.browser-frame[data-theme="energetic"] .mock-copy button, .browser-frame[data-theme="energetic"] .mock-nav em { border-radius: 999px; }
.browser-frame[data-theme="tech"] .mock-site { --site-accent: #5bd6be; --site-bg: #101615; --site-ink: #edf5f2; }
.browser-frame[data-theme="tech"] .mock-visual { border: 1px solid #2d4440; }
.browser-frame[data-theme="tech"] .mock-modules article { background: #151d1b; padding: 5%; }
.browser-frame.mobile .mock-nav { flex-wrap: wrap; gap: 4px 8px; }
.browser-frame.mobile .mock-nav span { order: 3; display: block; width: 100%; max-width: 100%; color: var(--site-accent); font-size: 6px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.browser-frame.mobile .mock-hero { height: 40%; grid-template-columns: minmax(0, 1fr) 42%; grid-template-rows: 1fr; align-items: center; gap: 5px; }
.browser-frame.mobile .mock-copy h2 { font-size: clamp(18px, 4vw, 25px); }
.browser-frame.mobile .mock-copy p { font-size: 8px; }
.browser-frame.mobile .mock-visual { display: block; width: 100%; max-height: none; aspect-ratio: .8; justify-self: end; padding: 9%; }
.browser-frame.mobile .mock-visual b { font-size: clamp(14px, 3vw, 20px); }
.browser-frame.mobile .mock-visual i { border-width: 8px; }
.browser-frame.mobile .mock-modules { grid-template-columns: 1fr; }
.browser-frame.mobile .mock-modules article { padding: 3.5% 4%; }
.browser-frame.mobile .mock-feature-panel { height: 34%; padding: 5%; overflow: hidden; }
.browser-frame.mobile .mock-feature-panel p { margin: 8px 0; line-height: 1.5; }

.selection-ticker { display: flex; flex-wrap: wrap; gap: 7px; max-width: 920px; width: 100%; margin: 14px auto 0; }
.selection-ticker span { padding: 5px 9px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); border-radius: 7px; color: #59625e; font-size: 10px; }
.preview-disclaimer { max-width: 920px; width: 100%; margin: 8px auto 0; color: #7f8985; font-size: 9px; }

.config-panel { position: relative; overflow-y: auto; padding: 0 36px 105px; background: white; border-left: 1px solid var(--line); }
.panel-progress { position: sticky; top: 0; z-index: 5; height: 3px; margin-inline: -36px; background: #edf0ef; }
.panel-progress span { display: block; width: 17%; height: 100%; background: var(--accent); transition: width .3s ease; }
.panel-title { display: flex; justify-content: space-between; align-items: end; padding: 29px 0 20px; border-bottom: 1px solid var(--line); }
.panel-title p { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.panel-title strong { color: var(--muted); font-size: 11px; }
.config-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.config-section-head { display: grid; grid-template-columns: 28px 1fr; gap: 8px; margin-bottom: 17px; }
.config-section-head > span { color: var(--accent); font-size: 10px; font-weight: 800; }
.config-section-head h2 { margin: 0; font-size: 17px; }
.config-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.option-card, .style-card { position: relative; display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.option-card input, .style-card input, .chip-options input { position: absolute; opacity: 0; pointer-events: none; }
.option-card span, .style-card span { display: grid; }
.option-card strong, .style-card strong { font-size: 12px; }
.option-card small, .style-card small { color: var(--muted); font-size: 10px; }
.option-card.selected, .style-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.style-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.swatch { width: 31px; height: 31px; flex: none; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch.clean { background: linear-gradient(135deg, #fff 48%, #087f6d 49%); }
.swatch.editorial { background: linear-gradient(135deg, #f2eee7 48%, #b43b24 49%); }
.swatch.energetic { background: linear-gradient(135deg, #fff8d7 48%, #ed3d78 49%); }
.swatch.tech { background: linear-gradient(135deg, #101615 48%, #5bd6be 49%); }
.visual-more { width: 100%; margin-top: 10px; padding: 10px; border: 0; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 10px; }
.chip-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-options span { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; cursor: pointer; }
.chip-options input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.chip-options input:disabled + span { opacity: .72; cursor: default; }
.feature-options { display: grid; }
.feature-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0ef; }
.feature-row:last-child { border-bottom: 0; }
.feature-row label { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.feature-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.feature-row span { display: grid; }
.feature-row strong { font-size: 12px; }
.feature-row small { color: var(--muted); font-size: 10px; }
.feature-row button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--accent); font-size: 10px; font-weight: 700; }
.select-stack { display: grid; gap: 10px; }
.select-stack label, .notes-field { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
select, textarea, .lead-dialog input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); outline: none; }
select:focus, textarea:focus, .lead-dialog input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,109,.12); }
.third-party-note { margin: 12px 0 0; padding: 11px; background: #f7f8f7; border-radius: 8px; color: var(--muted); font-size: 10px; }
.schedule-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.schedule-options label { cursor: pointer; }
.schedule-options input { position: absolute; opacity: 0; }
.schedule-options span { display: grid; min-height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.schedule-options input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.notes-field textarea { resize: vertical; }
.finish-bar { position: fixed; right: 0; bottom: 0; z-index: 10; width: calc(46.8vw); min-width: 420px; display: flex; justify-content: space-between; align-items: center; padding: 14px 36px; background: rgba(255,255,255,.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.finish-bar div { display: grid; }
.finish-bar small { color: var(--muted); font-size: 9px; }
.finish-bar strong { font-size: 11px; }
.finish-bar button, .lead-dialog form button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--accent); color: white; font-weight: 800; }

dialog { border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.26); }
dialog::backdrop { background: rgba(15,20,18,.62); backdrop-filter: blur(5px); }
.demo-dialog { width: min(calc(100% - 30px), 620px); }
.dialog-close { position: absolute; right: 14px; top: 13px; z-index: 3; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
#demo-content { padding: 32px; }
.demo-title { margin-bottom: 20px; }
.demo-title p, .dialog-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 10px; font-weight: 800; }
.demo-title h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.demo-window { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f7f9f8; }
.demo-toolbar { padding: 10px 13px; background: white; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.login-demo { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 260px; }
.login-art { display: grid; align-content: end; padding: 23px; background: #14201d; color: white; }
.login-art b { font-size: 26px; line-height: 1; }
.login-form { display: grid; align-content: center; gap: 10px; padding: 25px; }
.fake-input, .fake-button { min-height: 37px; display: flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #8b9390; font-size: 10px; }
.fake-button { justify-content: center; background: var(--accent); color: white; border-color: var(--accent); font-weight: 800; }
.admin-demo { display: grid; grid-template-columns: 115px 1fr; min-height: 270px; }
.admin-side { padding: 15px; background: #18201e; color: #bac4c0; font-size: 9px; line-height: 3.3; }
.admin-main { padding: 17px; }
.mini-table { display: grid; gap: 7px; margin-top: 12px; }
.mini-table span { height: 33px; display: grid; grid-template-columns: 1.5fr 1fr .6fr; align-items: center; padding: 0 10px; background: white; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 9px; }
.approval-demo { padding: 23px; }
.flow-track { display: flex; align-items: center; justify-content: space-between; margin: 22px 0; }
.flow-track i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-style: normal; font-size: 9px; }
.flow-track b { height: 1px; flex: 1; background: #b9c9c3; }
.flow-card { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }
.agent-demo { display: grid; grid-template-columns: 1fr .8fr; min-height: 270px; }
.chat-pane { padding: 20px; background: white; }
.bubble { max-width: 86%; margin-bottom: 10px; padding: 10px; border-radius: 9px; background: #eef3f1; font-size: 10px; }
.bubble.reply { margin-left: auto; background: var(--accent); color: white; }
.tool-pane { padding: 18px; background: #17201e; color: white; }
.tool-pane small { color: #8da09a; }
.tool-step { margin-top: 11px; padding: 10px; border: 1px solid #34423e; border-radius: 7px; font-size: 9px; }
.dashboard-demo { padding: 20px; }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.metric-row article { padding: 12px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.metric-row small { color: var(--muted); font-size: 8px; }
.metric-row b { display: block; margin-top: 4px; font-size: 20px; }
.bar-chart { height: 120px; display: flex; align-items: end; gap: 8px; padding: 18px 12px 0; }
.bar-chart i { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .75; }
.visual-demo { min-height: 260px; display: grid; place-items: center; overflow: hidden; background: #101716; color: white; }
.visual-orbit { position: relative; width: 160px; height: 160px; border: 1px solid #46645d; border-radius: 50%; animation: spin 8s linear infinite; }
.visual-orbit::before, .visual-orbit::after { content: ""; position: absolute; inset: 23px; border: 1px solid #5bd6be; border-radius: 50%; }
.visual-orbit::after { inset: 52px; background: #5bd6be; box-shadow: 0 0 35px rgba(91,214,190,.55); }
@keyframes spin { to { transform: rotate(360deg); } }

.lead-dialog { width: min(calc(100% - 30px), 880px); }
.lead-layout { display: grid; grid-template-columns: 1.05fr .95fr; }
.lead-summary { padding: 38px; background: #15201d; color: white; }
.lead-summary h2 { margin: 0 0 8px; font-size: 30px; }
.lead-summary > p:nth-of-type(2) { color: #acb8b3; font-size: 12px; }
#final-summary { display: grid; gap: 8px; margin-top: 25px; }
#final-summary p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding-bottom: 7px; border-bottom: 1px solid #33413d; color: #aebbb6; font-size: 10px; }
#final-summary strong { color: white; text-align: right; }
.lead-dialog form { display: grid; align-content: center; gap: 14px; padding: 38px; }
.lead-dialog form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.lead-dialog form small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 10px 15px; border-radius: 8px; background: #151b19; color: white; font-size: 11px; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  body { overflow: auto; }
  .config-header { position: sticky; top: 0; z-index: 20; grid-template-columns: 1fr auto; height: 60px; padding: 0 14px; }
  .config-brand { display: none; }
  .config-layout { height: auto; grid-template-columns: 1fr; }
  .preview-stage { position: sticky; top: 60px; z-index: 8; height: 43dvh; min-height: 310px; padding: 15px 14px 10px; }
  .preview-heading { margin-bottom: 8px; }
  .preview-heading h1 { font-size: 18px; }
  .browser-frame { width: min(100%, 560px); }
  .browser-frame.mobile { width: min(42%, 220px); }
  .selection-ticker, .preview-disclaimer { display: none; }
  .config-panel { overflow: visible; padding: 0 16px 100px; border-left: 0; }
  .panel-progress { top: calc(43dvh + 60px); margin-inline: -16px; }
  .panel-title { padding-top: 24px; }
  .finish-bar { width: 100%; min-width: 0; padding: 12px 16px; }
}
@media (max-width: 520px) {
  .preview-stage { height: 39dvh; min-height: 285px; }
  .panel-progress { top: calc(39dvh + 60px); }
  .style-options, .option-grid { grid-template-columns: 1fr 1fr; }
  .option-card, .style-card { min-height: 58px; padding: 9px; }
  .schedule-options { grid-template-columns: 1fr; }
  .lead-layout { grid-template-columns: 1fr; max-height: 88dvh; overflow-y: auto; }
  .lead-summary, .lead-dialog form { padding: 27px; }
  #demo-content { padding: 27px 18px 20px; }
  .login-demo, .agent-demo { grid-template-columns: 1fr; }
  .login-art, .tool-pane { min-height: 105px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
