/* Formflow design system: flat, teal + amber, Plus Jakarta Sans.
   Flat means solid colour blocks and crisp borders; no gradients, no soft drop shadows. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
:root {
  --bg: #f3faf8; --surface: #ffffff; --line: #d3e5e1; --line-strong: #a8cdc6;
  --text: #0f2f2c; --muted: #4a6662;
  --brand: #0f766e; --brand-strong: #0b5d57; --brand-ink: #ffffff; --brand-soft: #dcf3ee; --brand-bright: #14b8a6;
  --accent: #f59e0b; --accent-soft: #fef0c7; --accent-ink: #6b4000;
  --ink: #0f2f2c; --danger: #b42318; --danger-soft: #fde8e6; --ok: #0b6b3a; --ok-soft: #d9f5e5;
  --radius: 14px; --radius-sm: 10px; --ease: 160ms ease;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
#app { min-height: 100%; display: flex; flex-direction: column; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; text-wrap: balance; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .pad { padding: 32px; }
.spacer { flex: 1; } .nowrap { white-space: nowrap; } .mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

.mascot { display: inline-block; width: 26px; height: 26px; flex: none; }
.mascot svg { display: block; width: 100%; height: 100%; }
.mascot.huge { width: 72px; height: 72px; }
.mascot.hero-mascot { width: 84px; height: 84px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .mascot.hero-mascot { animation: none; } * { transition: none !important; } }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.ticks.inline { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ticks.inline li { align-items: center; gap: 7px; }
.ticks.inline li::before { width: 16px; height: 16px; margin: 0; background-size: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo.big { font-size: 24px; margin-bottom: 20px; }
.logo.big .mascot { width: 32px; height: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; cursor: pointer; min-height: 40px;
  text-decoration: none; padding: 8px 16px; border-radius: var(--radius-sm); border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-strong); background: var(--bg); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn.small { padding: 4px 11px; font-size: 13px; min-height: 32px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #1c4a45; color: #fff; }
.btn.upgrade { background: var(--accent); color: #3d2500; }
.btn.upgrade:hover { background: #e08e00; color: #3d2500; }
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 12px; min-height: 52px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font: inherit; cursor: pointer;
  background: transparent; border: 0; border-radius: 8px; color: var(--muted); text-decoration: none; transition: background-color var(--ease), color var(--ease);
}
.icon-btn:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-strong); }
.icon-btn.tiny { width: 28px; height: 28px; border-radius: 6px; }
.icon-btn:disabled { opacity: .3; cursor: default; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.inp {
  width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px;
  transition: border-color var(--ease);
}
.inp:hover { border-color: var(--line-strong); }
.inp:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.inp::placeholder { color: #8aa29e; }
.inp:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
textarea.inp { resize: vertical; }
select.inp { cursor: pointer; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.lbl .inp { font-weight: 400; font-size: 14px; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); margin: 0; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* auth */
.auth-page { flex: 1; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.auth-side { background: var(--brand); color: #fff; margin: 12px; border-radius: 22px; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--brand-strong); right: -120px; top: -120px; }
.auth-side::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 34px; background: var(--accent); right: 52px; bottom: -64px; transform: rotate(18deg); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .mascot.huge { width: 84px; height: 84px; background: #fff; border-radius: 22px; padding: 12px; }
.auth-side h2 { font-size: 34px; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; margin: 24px 0 22px; max-width: 12em; text-wrap: balance; }
.auth-side .ticks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.auth-main { display: grid; place-items: center; padding: 24px; }
@media (max-width: 800px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-card { width: 100%; max-width: 380px; padding: 8px; }
.auth-card h1 { font-size: 28px; }
.auth-card > p.muted { margin-bottom: 22px; }
.auth-card .inp { padding: 11px 12px; }
.form-err { color: var(--danger); font-size: 14px; font-weight: 500; min-height: 22px; margin-bottom: 6px; }
.auth-card .btn { margin-bottom: 16px; min-height: 46px; }
.auth-card .forgot { margin: -6px 0 8px; text-align: right; }

/* layout */
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface); border-bottom: 1.5px solid var(--line); flex: none; min-height: 60px; }
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 36px 24px 72px; }
.page.narrow { max-width: 740px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 30px; }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.empty { text-align: center; padding: 64px 20px; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: 20px; grid-column: 1 / -1; }
.empty .mascot { width: 64px; height: 64px; margin-bottom: 8px; }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row .inp { flex: 1; min-width: 200px; }

/* dashboard */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.form-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; transition: border-color var(--ease), transform var(--ease); }
.form-card::before { content: ""; height: 8px; background: var(--brand-soft); transition: background-color var(--ease); }
.form-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.form-card:hover::before { background: var(--brand); }
.form-card-main { padding: 16px 18px 8px; text-decoration: none; color: inherit; flex: 1; }
.form-card-main:hover { color: inherit; }
.form-card-main h3 { margin: 12px 0 6px; font-size: 17px; overflow-wrap: anywhere; }
.form-card-main p { margin: 0; }
.form-card-actions { display: flex; gap: 6px; padding: 12px 18px 16px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; background: #e6efed; color: var(--muted); }
.pill.published { background: var(--ok-soft); color: var(--ok); }
.pill.published::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pro { background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; margin-left: 6px; }

/* modal + toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 47, 44, .55); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade .16s ease both; }
.modal { background: var(--surface); border-radius: 20px; width: 100%; max-width: 460px; max-height: 86vh; overflow: auto; padding: 24px; animation: pop .18s ease both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-wrap { animation: none; } }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 60; }
.toast.bad { background: var(--danger); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; color: inherit; transition: border-color var(--ease), background-color var(--ease); }
.tpl strong { font-weight: 700; }
.tpl span { font-size: 13px; color: var(--muted); }
.tpl:hover { border-color: var(--brand); background: var(--bg); }
.tpl.scratch { background: var(--brand); border-color: var(--brand); color: #fff; }
.tpl.scratch span { color: #c9ece6; }
.tpl.scratch:hover { background: var(--brand-strong); }
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 16px; }
.add-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; font: inherit; font-weight: 500; text-align: left; cursor: pointer; background: transparent; border: 0; border-radius: 10px; padding: 6px; color: inherit; transition: background-color var(--ease); }
.add-item:hover { background: var(--brand-soft); }
.add-item .pill { margin-left: auto; }

/* editor */
.ed-top { padding: 8px 16px; flex-wrap: wrap; }
.title-inp { font: inherit; font-weight: 700; border: 1.5px solid transparent; border-radius: 8px; padding: 6px 8px; width: 210px; background: transparent; color: inherit; transition: border-color var(--ease); }
.title-inp:hover, .title-inp:focus { border-color: var(--line); background: var(--surface); outline: 0; }
.title-inp:focus { border-color: var(--brand); }
.tabs { display: flex; gap: 2px; margin-left: 8px; background: var(--bg); padding: 4px; border-radius: 12px; }
.tab { padding: 6px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; transition: background-color var(--ease), color var(--ease); }
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface); color: var(--brand); }
.ed-main { flex: 1; min-height: 0; }
.ed-main.build { flex: none; display: grid; grid-template-columns: 272px minmax(0, 1fr) 328px; height: calc(100vh - 61px); grid-template-rows: minmax(0, 1fr); max-width: none; padding: 0; }
.ed-left, .ed-panel { background: var(--surface); padding: 16px; overflow-y: auto; }
.ed-left { border-right: 1.5px solid var(--line); }
.ed-panel { border-left: 1.5px solid var(--line); }
.ed-center { padding: 28px; overflow: hidden; display: flex; background-color: var(--bg); background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 18px 18px; }
.preview-frame { flex: 1; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line-strong); display: flex; background: var(--surface); }
.preview-frame > .ff-root { flex: 1; min-height: 0; }

.block-list { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.block-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; cursor: pointer; border: 1.5px solid transparent; flex-wrap: wrap; transition: background-color var(--ease), border-color var(--ease); }
.block-item:hover { background: var(--bg); }
.block-item.on { background: var(--brand-soft); border-color: var(--brand); }
.block-icon { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); }
.block-item.on .block-icon { background: var(--brand); color: #fff; }
.block-num { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 12px; font-variant-numeric: tabular-nums; }
.block-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-actions { display: flex; gap: 2px; width: 100%; justify-content: flex-end; }

.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg-btn { flex: 1; font: inherit; font-weight: 700; font-size: 13px; border: 0; background: transparent; padding: 7px; border-radius: 8px; cursor: pointer; color: var(--muted); transition: background-color var(--ease), color var(--ease); }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: var(--surface); color: var(--brand); }
.panel-type { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin-bottom: 16px; }
.field-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: flex; align-items: center; gap: 6px; }
.field-row .chk { margin: 0; font-size: 12px; white-space: nowrap; }
.field-row .inp { padding: 6px 9px; font-size: 13px; }
.logic { border-top: 1.5px solid var(--line); margin-top: 18px; padding-top: 16px; }
.logic .lbl { margin-bottom: 4px; }
.rule { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; margin: 10px 0; }
.rule .inp { font-size: 13px; padding: 6px 9px; }
.color-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.color-row input { width: 44px; height: 32px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.theme-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.theme-chip { font: inherit; font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 9px; border: 2px solid; cursor: pointer; transition: transform var(--ease); }
.theme-chip:hover { transform: translateY(-1px); }

/* results */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.stat:first-child { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat:first-child .muted { color: #c9ece6; }
.stat-value { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; }
.table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 320px; overflow-wrap: anywhere; }
.table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.table tbody tr:hover td { background: #f8fcfb; }
.table tr:last-child td { border-bottom: 0; }
.file-link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; display: inline-block; margin: 0 4px 4px 0; }

@media (max-width: 900px) {
  .ed-main.build { flex: 1; grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .ed-left, .ed-panel { border: 0; border-bottom: 1.5px solid var(--line); }
  .ed-center { height: 520px; padding: 12px; }
  .stats { grid-template-columns: 1fr; }
}

/* landing */
.landing { background: var(--bg); flex: 1; }
.land-nav { display: flex; align-items: center; gap: 10px; padding: 16px 24px; max-width: 1160px; margin: 0 auto; }
.land-nav nav { display: flex; gap: 26px; margin-left: 32px; }
.land-nav nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; transition: color var(--ease); }
.land-nav nav a:hover { color: var(--brand); }
.hero { text-align: center; padding: 56px 20px 44px; max-width: 880px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); margin: 14px 0 16px; }
.hero .eyebrow { background: var(--brand-soft); padding: 6px 14px; border-radius: 99px; margin: 18px 0 20px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 74px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--brand); background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 100% .16em; background-position: 0 92%; }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 33em; margin: 0 auto 28px; text-wrap: pretty; }
.lead.left { margin-left: 0; margin-right: 0; }
.hero-cta { margin-bottom: 18px; }
.try { display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--text); }
.demo { padding: 20px 20px 56px; scroll-margin-top: 20px; background-image: linear-gradient(to bottom, transparent 42%, var(--brand) 42%); }
.browser { max-width: 960px; margin: 0 auto; background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; padding: 0 10px 10px; }
.browser-bar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 8px; }
.browser-bar span:first-child { letter-spacing: 3px; opacity: .4; }
.browser-bar .live { color: var(--ok); }
.browser-body { height: 520px; border-radius: 12px; overflow: hidden; display: flex; border: 1.5px solid var(--line); }
.browser-body > .ff-root { flex: 1; min-height: 0; }
.land-section { max-width: 1120px; margin: 0 auto; padding: 84px 24px 10px; scroll-margin-top: 10px; }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow, .band .eyebrow { margin: 0 0 12px; }
.sec-head h2, .band h2, .final h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; margin: 0 0 14px; text-wrap: balance; }
.sec-head h2 em, .band h2 em, .final h2 em { font-style: normal; color: var(--brand); }
.sec-head.center h2 { text-align: center; }
.land-section.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.facts, .land-section.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; max-width: none; padding: 8px max(24px, calc((100% - 960px) / 2)) 48px; margin: 0; border: 0; background: var(--brand); color: #fff; }
.facts .muted { color: #c9ece6; }
.fact-num { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature-grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.feature-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature-grid.bare { margin-top: 28px; gap: 28px; }
.feature { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 24px; text-decoration: none; color: inherit; transition: border-color var(--ease), transform var(--ease); }
.feature h3 { font-size: 18px; }
.feature p { margin: 0; }
.feature.tall { padding: 30px; }
.feature.tall h3 { font-size: 21px; }
.feature.link:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; margin-bottom: 16px; }
.feature:nth-child(2) > .step-num { background: var(--accent); color: #3d2500; }
.feature:nth-child(3) > .step-num { background: var(--ink); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.type { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.look { background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; }
.look-preview { height: 300px; display: flex; }
.look-preview > .ff-root { flex: 1; min-height: 0; }
.look-preview .ff-footer { display: none; }
.look-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; border-top: 1.5px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; min-height: 34px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); transition: border-color var(--ease), background-color var(--ease); }
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line-strong); cursor: pointer; padding: 0; transition: transform var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2.5px var(--ink); }
.band { background: var(--accent-soft); border-radius: 28px; padding: clamp(28px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; }
.band h2 { color: var(--ink); }
.band .eyebrow { color: var(--accent-ink); }
.infinity { font-size: clamp(90px, 16vw, 210px); line-height: .8; color: var(--accent); font-weight: 800; }
.stats-mock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats-mock p { grid-column: 1 / -1; margin: 0; text-align: right; }
.code { background: var(--ink); color: #d7efe9; padding: 20px; border-radius: 18px; overflow-x: auto; font: 13px/1.6 ui-monospace, Menlo, monospace; margin: 0; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 350px)); gap: 18px; justify-content: center; }
.price { background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.price.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.price.on .muted { color: #c9ece6; }
.price.on .ticks li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d2500' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.price.on .btn.primary { background: var(--accent); color: #3d2500; }
.price.on .btn.primary:hover { background: #ffb629; }
.price.on a:not(.btn) { color: #fff; }
.price h3 { margin: 0; font-size: 18px; }
.price-num { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.price-num .per { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price.on .price-num .per { color: #c9ece6; }
.faq details { border-bottom: 1.5px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1.5px solid var(--line); }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: color var(--ease); }
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; background: var(--brand); color: #fff; }
.faq p { margin: 10px 0 0; max-width: 46em; }
.final { margin-top: 88px; background: var(--brand); color: #fff; padding: 72px 20px; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; text-align: center; }
.final h2 { margin: 0 0 24px; max-width: 13em; color: #fff; }
.final h2 em { color: var(--accent); }
.final .small { margin: 14px 0 0; color: #c9ece6; }
.final .eyebrow { color: #c9ece6; margin: 0 0 12px; }
.final .btn.dark { background: var(--accent); color: #3d2500; }
.final .btn.dark:hover { background: #ffb629; }
.final-mascot { position: relative; padding-top: 48px; }
.final-mascot .mascot.full { background: #fff; border-radius: 28px; padding: 14px 10px 0; }
.mascot.full { width: 150px; height: 188px; }
.mascot.full .wave { transform-origin: 94px 66px; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 50% { transform: rotate(-16deg); } }
@media (prefers-reduced-motion: reduce) { .mascot.full .wave { animation: none; } }
.bubble { position: absolute; top: 0; left: 50%; transform: translateX(-30%); white-space: nowrap; background: var(--accent); color: #3d2500; border-radius: 14px 14px 14px 4px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
.sticky-cta { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); transition: transform .3s ease; width: min(1000px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 12px 16px; z-index: 20; }
.sticky-cta.show { transform: translate(-50%, 0); }
.sticky-cta > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sticky-cta .mascot { width: 36px; height: 36px; }
.land-foot { text-align: center; padding: 28px 24px 100px; background: var(--brand); color: #c9ece6; }
.land-foot a { color: #fff; }
@media (max-width: 800px) {
  .land-section { padding-top: 60px; }
  .land-section.split { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .infinity { display: none; }
  .sticky-cta span { display: none; }
}
@media (max-width: 700px) { .land-nav nav { display: none; } .browser-body { height: 460px; } .look-controls { grid-template-columns: 1fr; } }
.hero .mascot.hero-mascot { display: block; margin: 0 auto; }
.drop-row { display: grid; grid-template-columns: minmax(0, 220px) 1fr 48px; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.drop-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.drop-bar { height: 12px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.drop-bar > div { height: 100%; background: var(--brand); border-radius: 99px; }
.rule .lbl { margin: 0; }
.trk-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.trk-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.trk-dot.ok { background: #16a34a; }
.trk-dot.bad { background: #dc2626; }

.demo-pick { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.demo-switch { gap: 6px; }
#layouts .feature-grid { margin-top: 0; }

.ai-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line, #d5e3e1); display: grid; gap: 8px; }
.ai-box textarea { width: 100%; resize: vertical; }
.ai-row { display: flex; gap: 8px; }

/* ---------- landing product tour ---------- */
.tour-pause { margin: -8px 0 20px; }
.tour-rows { display: grid; gap: clamp(40px, 7vw, 80px); }
.tour-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.tour-row.flip .tour-copy { order: 2; }
.tour-n { font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: .08em; margin-bottom: 8px; }
.tour-copy h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; text-wrap: balance; }
.tour-copy p { margin: 0; max-width: 30em; }
.tour-screen { background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; padding: 0 10px 10px; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--text); }
.tour-bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 6px; }
.tour-dots { letter-spacing: 3px; opacity: .4; }
.tour-tag { background: var(--brand-soft); color: var(--brand-strong); border-radius: 99px; padding: 2px 10px; }
.tour-body { position: relative; height: 340px; overflow: hidden; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); padding: 12px; transition: opacity .4s ease; contain: layout paint; }
.tour-body.out { opacity: 0; }
.tour-screen.still *, .tour-screen.still *::before, .tour-screen.still *::after { transition: none !important; animation: none !important; }
.tour-screen.still .t-cursor, .tour-screen.still .t-caret, .tour-screen.still .t-toast.in { display: none; }

/* shared pieces: everything hidden until `.in`, reveal with opacity + transform only */
.t-bub, .t-cheer, .t-row.new, .t-field, .t-prev, .t-pop, .t-tr, .t-stat, .t-rows .t-row, .t-status, .t-stage, .t-toast, .t-backdrop, .t-popup, .t-cursor, .t-bar > i { opacity: 0; }
.t-bub, .t-cheer, .t-row.new, .t-field, .t-prev, .t-tr, .t-stat, .t-rows .t-row, .t-toast { transform: translateY(8px); }
.t-bub.in, .t-cheer.in, .t-row.new.in, .t-field.in, .t-prev.in, .t-pop.in, .t-tr.in, .t-stat.in, .t-rows .t-row.in, .t-status.in, .t-stage.in, .t-toast.in, .t-backdrop.in, .t-popup.in, .t-bar > i.in { opacity: 1; transform: none; }
.t-cursor.in { opacity: 1; }
.t-bub, .t-cheer, .t-row.new, .t-field, .t-prev, .t-pop, .t-tr, .t-stat, .t-rows .t-row, .t-status, .t-stage, .t-toast, .t-backdrop, .t-popup, .t-bar > i { transition: opacity .35s ease, transform .35s ease; }
.t-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.t-input, .t-area { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; min-height: 36px; }
.t-caret { display: inline-block; width: 2px; height: 1em; background: var(--brand); vertical-align: text-bottom; margin-left: 1px; animation: t-blink 1s steps(2) infinite; }
@keyframes t-blink { 50% { opacity: 0; } }
.t-btn { display: inline-block; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 7px 12px; font-weight: 700; transition: transform .15s ease; }
.t-btn.solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.press { transform: scale(.92); }
.t-cursor { position: absolute; left: 0; top: 0; width: 12px; height: 12px; z-index: 5; transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .3s ease; pointer-events: none; will-change: transform; }
.t-cursor i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, .3); }
.t-pill { background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.t-prog { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 12px; }
.t-prog > i { display: block; height: 100%; background: var(--brand); transform-origin: left; transition: transform .5s ease; }

/* 1 chat */
.t-chat-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.t-thread { display: flex; flex-direction: column; gap: 8px; }
.t-bub { position: relative; max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 14px; }
.t-bub.bot { align-self: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-bottom-left-radius: 4px; }
.t-bub.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.t-typing { position: absolute; left: 12px; top: 0; bottom: 0; display: none; align-items: center; gap: 4px; }
.t-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: t-dot 1s infinite ease-in-out; }
.t-typing i:nth-child(2) { animation-delay: .15s; } .t-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes t-dot { 50% { transform: translateY(-3px); opacity: .5; } }
.t-bub.typing .t-txt { opacity: 0; }
.t-bub.typing .t-typing { display: flex; }
.t-cheer { align-self: flex-start; display: flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; border-radius: 14px; padding: 6px 12px 6px 8px; }
.t-dock { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; }
.t-dock .t-input { flex: 1; min-width: 0; }
.t-send { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; transition: transform .15s ease; }

/* 2 build */
.t-build { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; height: 100%; }
.t-list { display: flex; flex-direction: column; gap: 6px; }
.t-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 8px; font-weight: 600; min-width: 0; }
.t-row b { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; }
.t-row.new { border-color: var(--brand); }
.t-list .t-btn { margin-top: 4px; text-align: center; color: var(--brand-strong); border-style: dashed; }
.t-edit { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t-prev { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; justify-items: start; }
.t-prev-q { font-size: 16px; font-weight: 800; letter-spacing: -.02em; min-height: 2.7em; }
.t-prev-title { min-height: 2.7em; font-size: 16px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.t-prev-input { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; border-bottom: 2px solid var(--line-strong); padding: 4px 0; color: var(--muted); }
.t-ok { background: var(--brand); color: #fff; font-weight: 700; border-radius: 8px; padding: 4px 12px; }
.t-pop { position: absolute; left: 12px; bottom: 56px; width: min(250px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 8px; z-index: 3; transform: translateY(6px); }
.t-chip-add { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px; font-weight: 600; }
.t-chip-add b { color: var(--brand-strong); }

/* 3 ai */
.t-ai { display: grid; gap: 8px; align-content: start; }
.t-ai-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-area { height: 62px; overflow: hidden; }
.t-ai-row { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.t-status { color: var(--muted); }
.t-rows { display: grid; gap: 6px; }
.t-row.big { padding: 8px; }
.t-row.big .t-q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row.big em { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 600; flex: none; }

/* 4 logic */
.t-logic { display: grid; gap: 12px; align-content: start; }
.t-nodes { position: relative; display: grid; gap: 20px; padding-right: 44px; }
.t-node { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px; transition: opacity .35s ease; }
.t-node::after { content: ""; position: absolute; inset: -1.5px; border: 2px solid var(--brand); border-radius: 12px; opacity: 0; transition: opacity .35s ease; }
.t-node.on::after { opacity: 1; }
.t-node.skip { opacity: .4; }
.t-n-t { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.t-n-t b { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; }
.t-chips { display: flex; gap: 8px; margin-top: 8px; }
.t-chipx { position: relative; flex: 1; text-align: center; border: 1.5px solid var(--line-strong); border-radius: 99px; padding: 4px 0; font-weight: 700; background: var(--surface); transition: transform .15s ease, color .2s ease; }
.t-chipx::before { content: ""; position: absolute; inset: -1.5px; border-radius: 99px; background: var(--brand); opacity: 0; transition: opacity .25s ease; z-index: 0; }
.t-chipx.sel { color: #fff; }
.t-chipx.sel::before { opacity: 1; }
.t-chipx { isolation: isolate; }
.t-chipx::before { z-index: -1; }
.t-node::before { content: ""; position: absolute; left: 20px; top: 100%; width: 2px; height: 20px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.t-node.go::before { transform: scaleY(1); }
.t-jump { position: absolute; right: 8px; top: 38px; bottom: 20px; width: 36px; border: 2.5px solid var(--accent); border-left: 0; border-radius: 0 14px 14px 0; transform: scaleY(0); transform-origin: top; transition: transform .5s ease; }
.t-jump.in { transform: scaleY(1); }
.t-rule { position: relative; background: var(--accent-soft); border-radius: 12px; padding: 9px 10px; color: var(--accent-ink); transition: transform .3s ease; }
.t-rule.on { transform: scale(1.02); }

/* 5 results */
.t-results { display: grid; gap: 8px; align-content: start; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.t-stat .stat-value { font-size: 20px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.t-drops { display: grid; gap: 4px; }
.t-drop { display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 8px; }
.t-drop b { text-align: right; font-variant-numeric: tabular-nums; }
.t-bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.t-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transform-origin: left; transition: transform .6s ease, opacity .3s ease; opacity: 1; }
.t-table { display: grid; gap: 3px; }
.t-tr { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; background: var(--surface); border-radius: 8px; padding: 4px 8px; }
.t-tr.head { opacity: 1; transform: none; background: none; color: var(--muted); font-weight: 700; font-size: 11px; padding: 0 8px; }
.t-tr span:last-child { color: var(--accent); }
.t-tr.head span:last-child { color: var(--muted); }

/* 6 share */
.t-share { height: 100%; }
.t-stage { position: absolute; inset: 0; padding: 12px; transform: none; }
.t-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.t-card.dim { opacity: .75; }
.t-card h4 { margin: 0 0 8px; font-size: 14px; }
.t-copy-row { display: flex; gap: 8px; align-items: center; }
.t-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 8px; color: var(--muted); }
.t-code { font: 11px/1.5 ui-monospace, Menlo, monospace; background: var(--ink); color: #d7efe9; border-radius: 8px; padding: 8px; overflow: hidden; white-space: nowrap; }
.t-toast { position: absolute; left: 50%; bottom: 14px; margin-left: -34px; background: var(--ink); color: #fff; font-weight: 700; border-radius: 99px; padding: 6px 16px; }
.t-site { background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; height: 100%; padding: 8px 12px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.t-site-bar { justify-self: stretch; text-align: center; color: var(--muted); font-size: 11px; border-bottom: 1.5px solid var(--line); padding-bottom: 6px; }
.t-ph { height: 10px; border-radius: 99px; background: var(--line); }
.t-ph.w60 { width: 60%; } .t-ph.w75 { width: 75%; } .t-ph.w90 { width: 90%; }
.t-backdrop { position: absolute; inset: 0; background: rgba(15, 47, 44, .45); }
.t-popup { position: absolute; left: 50%; top: 50%; width: min(260px, 80%); margin: -70px 0 0 calc(min(260px, 80%) / -2); background: var(--surface); border-radius: 14px; padding: 14px; display: grid; gap: 10px; justify-items: start; transform: translateY(14px) scale(.96); }
.t-popup .t-prog { align-self: stretch; margin: 0; }
.t-popup.in { transform: none; }

@media (max-width: 800px) {
  .tour-row { grid-template-columns: 1fr; gap: 16px; }
  .tour-row.flip .tour-copy { order: 0; }
}
@media (max-width: 420px) { .tour-body { padding: 10px; } .t-build { grid-template-columns: 1fr 1.2fr; } .t-drop { grid-template-columns: 62px 1fr 26px; } }

/* tour: springier motion, tinted stage and floating stickers */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }
.tour-stage { position: relative; isolation: isolate; }
.tour-stage::before { content: ""; position: absolute; inset: 14px -10px -12px 10px; border-radius: 28px; background: var(--brand-soft); transform: rotate(2deg); z-index: -1; }
.tour-stage.t1::before { background: var(--accent-soft); transform: rotate(-2deg); inset: 14px 10px -12px -10px; }
.tour-stage.t2::before { background: #c9ece6; }
.tour-screen { box-shadow: 5px 5px 0 var(--ink); }
.tour-sticker { position: absolute; z-index: 6; font-size: 30px; line-height: 1; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(15, 47, 44, .15)); }
.tour-sticker.s0 { top: -16px; right: 8px; transform: rotate(10deg); }
.tour-sticker.s1 { bottom: -10px; left: 6px; transform: rotate(-12deg); font-size: 26px; }
.tour-screen.live .tour-sticker.s0 { animation: t-float 3.4s ease-in-out infinite; }
.tour-screen.live .tour-sticker.s1 { animation: t-float 4.1s ease-in-out -1.3s infinite; }
@keyframes t-float { 50% { transform: translateY(-7px) rotate(-6deg) scale(1.08); } }
.tour-copy .tour-n { display: inline-block; background: var(--accent); color: #3d2500; border-radius: 99px; padding: 2px 10px; }

/* spring entrances, a different direction per kind of element */
.t-bub, .t-cheer, .t-row.new, .t-field, .t-prev, .t-tr, .t-stat, .t-rows .t-row, .t-toast, .t-pop, .t-popup { transition-timing-function: var(--spring); transition-duration: .45s; }
.t-bub.bot { transform: translateY(10px) scale(.85); transform-origin: left bottom; }
.t-bub.me { transform: translateY(10px) scale(.85); transform-origin: right bottom; }
.t-cheer { transform: scale(.7); transform-origin: left center; }
.t-row.new { transform: translateY(-22px) scale(.95); }
.t-rows .t-row { transform: translateX(-22px); }
.t-tr { transform: translateX(22px); }
.t-stat { transform: scale(.8); }
.t-pop { transform: translateY(10px) scale(.9); transform-origin: left bottom; }
.t-popup { transform: translateY(18px) scale(.85); }
.t-bub.in, .t-cheer.in, .t-row.new.in, .t-rows .t-row.in, .t-tr.in, .t-stat.in, .t-pop.in, .t-popup.in { transform: none; }
.t-node { transition: opacity .35s ease, transform .4s var(--spring); }
.t-node.on { transform: scale(1.03); }
.t-node.skip { transform: scale(.97); }
.t-chipx.sel { transform: scale(1.06); }
.t-react { position: absolute; right: 14px; bottom: 62px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; border-radius: 99px; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); opacity: 0; pointer-events: none; }
.t-react.in { animation: t-react 1.5s var(--spring) both; }
@keyframes t-react { 0% { opacity: 0; transform: translateY(10px) scale(.7); } 18% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.t-btn.solid.press, .t-send.press { transform: scale(.88); }
.tour-screen.still .t-react { display: none; }
@media (max-width: 800px) { .tour-sticker.s0 { right: 4px; } .tour-sticker.s1 { left: 2px; } .tour-stage::before { inset: 12px -4px -8px 4px; } .tour-stage.t1::before { inset: 12px 4px -8px -4px; } .tour-stage { margin-right: 4px; } }

/* more scenes */
.t-segs { display: inline-flex; gap: 4px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 99px; padding: 3px; margin-bottom: 12px; }
.t-seg { position: relative; isolation: isolate; padding: 5px 16px; border-radius: 99px; font-weight: 700; transition: transform .15s ease, color .2s ease; }
.t-seg::before { content: ""; position: absolute; inset: 0; border-radius: 99px; background: var(--brand); opacity: 0; transition: opacity .25s ease; z-index: -1; }
.t-seg.sel { color: #fff; } .t-seg.sel::before { opacity: 1; }
.t-panes { position: relative; height: 240px; }
.t-pane { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: flex-start; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s ease, transform .45s var(--spring); }
.t-pane.in { opacity: 1; transform: none; }
.t-prev-q.big { font-size: 20px; margin: 4px 0 2px; min-height: 0; }
.t-opt { width: 100%; box-sizing: border-box; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 9px 10px; font-weight: 600; }
.t-opt b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; }
.t-chips.wrap { flex-wrap: wrap; }
.t-layout .t-chips { margin-top: 0; }
.t-types-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; min-height: 24px; }
.t-types-head .t-lbl { margin: 0; }
.t-stars { display: flex; gap: 6px; }
.t-star { font-style: normal; font-size: 34px; line-height: 1; color: var(--line-strong); transition: transform .4s var(--spring), color .2s ease; }
.t-star.on { color: var(--accent); transform: scale(1.18) rotate(-8deg); }
.t-npsrow { display: flex; gap: 3px; width: 100%; }
.t-nps { flex: 1; font-style: normal; text-align: center; padding: 8px 0; border: 1.5px solid var(--line-strong); border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--surface); transition: transform .3s var(--spring), background-color .2s ease, color .2s ease; }
.t-nps.on { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.25); }
.t-slider { width: 100%; padding: 14px 0; --kx: 180px; }
.t-track { position: relative; height: 8px; background: var(--line); border-radius: 99px; }
.t-knob { position: absolute; left: 0; top: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--brand); transition: transform 1s cubic-bezier(.3, .8, .3, 1); }
.t-score { background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 3px 12px; font-weight: 700; transition: transform .4s var(--spring); }
.t-score.pop { transform: scale(1.2); }
.t-end { align-items: center; text-align: center; justify-content: center; }
.t-end-e { font-size: 44px; line-height: 1; }
.t-end-n { font-size: 22px; color: var(--brand); }
.t-route { display: grid; gap: 12px; }
.t-newresp { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 10px; opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .35s ease, transform .45s var(--spring); }
.t-newresp.in { opacity: 1; transform: none; }
.t-dest .t-pill { flex: none; }
.t-tick { position: relative; font-style: normal; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; font-size: 12px; font-weight: 800; transform: scale(0); transition: transform .45s var(--spring); }
.t-dest.done .t-tick { transform: scale(1); }
@media (max-width: 420px) { .t-nps { padding: 8px 0; font-size: 10px; } .t-slider { --kx: 150px; } .t-prev-q.big { font-size: 18px; } }

.sticker-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.sticker-add { font-size: 20px; line-height: 1; padding: 6px 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; transition: transform var(--ease); }
.sticker-add:hover { transform: scale(1.12); }
.sticker-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px 8px; align-items: center; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.sticker-row .sticker-ctl { grid-column: 1 / -1; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; }
.sticker-em { font-size: 22px; line-height: 1; }

.t-stickers { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 10px; height: 100%; }
.t-tray { display: grid; gap: 6px; align-content: start; }
.t-tray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.t-chip-add.big { justify-content: center; font-size: 22px; padding: 8px 0; transition: transform .15s ease; }
.t-formcard { position: relative; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 14px; display: grid; gap: 10px; align-content: center; justify-items: start; min-height: 230px; }
.t-stk { position: absolute; line-height: 1; opacity: 0; transform: scale(0) rotate(-30deg); transition: opacity .3s ease, transform .55s var(--spring); }
.t-stk.in { opacity: 1; transform: none; }
.t-chip-add.press { transform: scale(.88); }
