/* TinyAPP's focused presell flow, expanded into a blue/cyan, dual-theme system. */
:root {
  color-scheme: light;
  --background: #f4f7fc;
  --foreground: #10213b;
  --card: #ffffff;
  --muted: #edf2f9;
  --muted-foreground: #53657f;
  --primary: #145bdb;
  --primary-hover: #104bb8;
  --primary-foreground: #ffffff;
  --accent: #087e99;
  --accent-soft: #e8f5fa;
  --border: #dce5f1;
  --input: #7e90aa;
  --ring: #145bdb;
  --success: #14723d;
  --success-bg: #eaf8ef;
  --success-border: #bce4ca;
  --warning: #855700;
  --destructive: #b42336;
  --error-bg: #fff0f2;
  --error-border: #efbdc6;
  --shadow: 0 12px 36px rgba(26, 55, 99, .07);
  --radius: 14px;
  --bar-h: 88px;
  --font: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b1220;
  --foreground: #eef4ff;
  --card: #122038;
  --muted: #1a2c46;
  --muted-foreground: #adbed6;
  --primary: #84b4ff;
  --primary-hover: #a0c5ff;
  --primary-foreground: #0c2448;
  --accent: #77d6ed;
  --accent-soft: #163448;
  --border: #2b405e;
  --input: #617b9e;
  --ring: #84b4ff;
  --success: #92e3b0;
  --success-bg: #132e27;
  --success-border: #2d5b45;
  --warning: #f5ce79;
  --destructive: #ffa6b3;
  --error-bg: #351d2c;
  --error-border: #754052;
  --shadow: 0 12px 36px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--input) var(--background); }
body { margin: 0; min-height: 100dvh; background: var(--background); color: var(--foreground); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: var(--primary-foreground); }
button, select, input, textarea { font: inherit; }
button, select, a, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { accent-color: var(--primary); }
input, textarea { caret-color: var(--primary); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(32px, 7.7vw, 48px); }
h2 { font-size: clamp(26px, 6.5vw, 34px); }
h3 { font-size: 18px; }
.container { width: min(100% - 32px, 720px); margin-inline: auto; }
.muted, .hint, .small { color: var(--muted-foreground); }
.small, .hint { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 30; padding: 10px 14px; background: var(--card); color: var(--foreground); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] > .icon { margin-right: 8px; color: var(--accent); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Compact countdown remains visible in the sticky header. */
.top { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--border); }
.top-inner { width: min(100% - 32px, 960px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; padding: 9px 11px; background: #fff; border-radius: 10px; line-height: 0; }
.brand img { display: block; width: 112px; height: auto; }
.header-tools { display: flex; grid-row: 1; grid-column: 3; justify-self: end; gap: 8px; align-items: center; }
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--muted); }
.lang button { border: 0; border-radius: 7px; padding: 5px 9px; min-height: 32px; background: transparent; color: var(--muted-foreground); font-size: 12px; font-weight: 600; cursor: pointer; }
.lang button.active { color: var(--foreground); background: var(--card); }
.theme-control { display: flex; align-items: center; gap: 5px; height: 40px; padding-left: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.theme-control .icon { width: 16px; height: 16px; color: var(--muted-foreground); }
.theme-control select { max-width: 84px; padding: 5px 6px 5px 0; border: 0; border-radius: 7px; background: var(--card); color: var(--foreground); font-size: 12px; cursor: pointer; }
.progress-wrap { display: none !important; }
.mini-countdown { display: grid; grid-row: 1; grid-column: 2; justify-self: center; justify-items: center; width: max-content; padding: 7px 14px; border-radius: 10px; background: var(--error-bg); color: var(--destructive); }
.countdown-caption { margin-bottom: 4px; font-size: 11px; font-weight: 600; line-height: 1.3; }
.countdown-time { display: flex; gap: 12px; font-variant-numeric: tabular-nums; }
.time-unit { display: grid; min-width: 28px; text-align: center; line-height: 1.1; }
.time-unit strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.time-unit small { margin-top: 3px; font-size: 10px; }
.countdown-expired { font-size: 13px; font-weight: 600; }
.mini-countdown[data-expired="true"] { background: var(--muted); color: var(--muted-foreground); }

/* One focused surface per step, not a long scrolling landing page. */
.stage { display: none; padding: 40px 0 calc(var(--bar-h) + 36px + env(safe-area-inset-bottom, 0px)); min-height: calc(100dvh - 80px); }
.stage.active { display: block; }
.registration-status { margin-top: 24px; }
.stage > .container { padding: 32px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.hero h1 { margin-bottom: 16px; font-size: clamp(20px, 6.2vw, 42px); line-height: 1.35; }
.hero-title-line { display: block; }
.hero-premise { font-size: 20px; font-weight: 600; line-height: 1.6; }
.hero-copy { display: grid; gap: 14px; margin-top: 22px; font-size: 16px; line-height: 1.8; color: var(--muted-foreground); }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted-foreground); }
.hero-scene { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1672 / 941; margin: 24px 0 0; border-radius: 14px; background: #03081b; }
.hero-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-layers { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero-ready .hero-layers { opacity: 1; }
.hero-ready .hero-fallback { opacity: 0; }
.hero-environment, .hero-presenter { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-app-viewport { position: absolute; inset: 0; overflow: hidden; }
.hero-app-source { display: none; }
.hero-app-track { display: flex; width: 280%; height: 100%; animation: hero-carousel 56s linear infinite; animation-play-state: paused; }
.hero-app-set { display: flex; flex: 0 0 50%; width: 50%; height: 100%; align-items: center; }
.hero-app-card { display: grid; flex: 0 0 14.285714%; min-width: 0; height: 68%; grid-template-rows: 28px minmax(0, 1fr); gap: 6px; padding-inline: 4px; }
.hero-app-label { display: grid; min-width: 0; place-items: center; color: #eef4ff; font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; text-wrap: balance; }
.hero-app-illustration { display: block; background-image: url("hero-apps.png"); background-repeat: no-repeat; }
.hero-app-customer { background-size: 557.333% 179.238%; background-position: 3.499% 51.683%; }
.hero-app-sales, .hero-app-finance { background-size: 371.556% 198.105%; background-position: 50.082% 47.639%; }
.hero-app-operations { background-size: 539.355% 177.547%; background-position: 97.284% 52.311%; }
.hero-app-productivity { background-size: 597.143% 202.366%; background-position: 24.282% 51.471%; }
.hero-app-stock { background-size: 608% 200.213%; background-position: 75.734% 52.017%; }
.hero-app-hr { background-size: 557.333% 179.238%; background-position: 3.499% 51.683%; }
.hero-motion-running .hero-app-track { animation-play-state: running; }
.hero-motion-control { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 5px 10px; min-height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--foreground); font-size: 11px; font-weight: 600; cursor: pointer; }
.hero-motion-control:hover { background: var(--muted); }
@keyframes hero-carousel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.fact { padding: 13px 14px; background: var(--muted); border-radius: 12px; }
.fact-speaker { margin-top: 12px; }
.fact-k { display: flex; align-items: center; color: var(--muted-foreground); font-size: 12px; }
.fact-k .icon { width: 15px; height: 15px; }
.fact-v { margin-top: 5px; font-weight: 600; font-size: 15px; line-height: 1.5; }
.callout { padding: 16px; background: var(--accent-soft); color: var(--foreground); border-radius: 12px; font-size: 14px; }
.hero-invitation { margin-top: 12px; color: var(--muted-foreground); font-size: 13px; }
.stage-head { margin-bottom: 26px; }
.stage-head p { margin-top: 12px; color: var(--muted-foreground); }
.eyebrow { display: block; margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 600; }
.budget-context { margin-top: 10px; color: var(--muted-foreground); font-size: 12px; }
.value-card { margin: 24px 0; padding: 24px; border-radius: 14px; background: var(--muted); }
.value-card h3 { margin: 0 0 10px; font-size: 20px; }
.value-card p { font-size: 14px; color: var(--muted-foreground); }
.value-budget { margin: 16px 0 6px; font-size: clamp(26px, 6.5vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.value-local { font-size: 14px; font-weight: 500; }
.value-card .value-note { margin-top: 12px; font-size: 12px; }
.value-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.value-offer strong { color: var(--accent); font-size: 22px; white-space: nowrap; }
.step-list { display: grid; gap: 22px; margin: 28px 0; }
.step-row { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.step-no { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.step-row p { margin-top: 6px; color: var(--muted-foreground); font-size: 14px; }
.build-promise { padding-top: 20px; border-top: 1px solid var(--border); }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; font-size: 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check { display: inline-flex; align-items: center; flex: 0 0 auto; margin-top: 2px; color: var(--success); }
.check .icon { width: 18px; height: 18px; margin: 0; color: inherit; }
.pull-quote { margin: 28px 0 20px; font-size: 21px; line-height: 1.55; font-weight: 600; letter-spacing: -.025em; }
.highlight { color: var(--primary); }
.notice { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted-foreground); font-size: 13px; }
.registration-intent { min-width: 0; margin: 6px 0 24px; padding: 0; border: 0; }
.registration-intent legend { padding: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.registration-intent > p { margin-top: 7px; color: var(--muted-foreground); font-size: 13px; }
.saved-contact { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--success); font-size: 14px; }
.saved-contact .icon { flex: 0 0 auto; color: inherit; }
.intent-options { display: grid; gap: 10px; margin-top: 14px; }
.intent-option { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--input); border-radius: 12px; cursor: pointer; }
.intent-option:hover { background: var(--muted); }
.intent-option:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.intent-option input, .choice input { width: 18px; height: 18px; flex: 0 0 auto; margin: 4px 0 0; }
.intent-option strong { display: block; font-size: 14px; line-height: 1.5; }
.intent-option span span { display: block; margin-top: 4px; color: var(--muted-foreground); font-size: 13px; line-height: 1.6; }
.watcher-stamp { padding: 26px 22px; background: var(--accent-soft); border-radius: 16px; }
.watcher-stamp-label { display: block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.watcher-stamp h2 { margin: 18px 0 12px; }
.watcher-stamp p { color: var(--muted-foreground); }
.watcher-reasons { display: grid; gap: 15px; list-style: none; margin: 24px 0 0; padding: 0; }
.watcher-reasons li { display: flex; align-items: flex-start; color: var(--muted-foreground); font-size: 14px; }
.watcher-reasons .icon { margin-top: 2px; }
.name-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; min-width: 0; gap: 9px; margin-bottom: 22px; }
.label { display: flex; align-items: center; font-size: 14px; font-weight: 600; }
.label .icon { width: 17px; height: 17px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--input); border-radius: 10px; background: var(--card); color: var(--foreground); font-size: 16px; outline: none; }
.input, .select { height: 48px; padding: 0 13px; }
.textarea { min-height: 180px; padding: 13px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); opacity: 1; }
[aria-invalid="true"] { border-color: var(--destructive); }
.error { display: none; color: var(--destructive); font-size: 13px; line-height: 1.5; }
.error.show { display: block; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--input); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.choice strong { display: block; font-size: 14px; }
.choice span span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted-foreground); }
.form-alert { display: none; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--error-border); border-radius: 10px; background: var(--error-bg); color: var(--destructive); font-size: 14px; }
.form-alert.show { display: block; }
.problem-guide { margin: 0; padding: 16px 18px 16px 37px; background: var(--muted); border-radius: 12px; }
.problem-guide li { padding-left: 4px; margin-bottom: 14px; }
.problem-guide li:last-child { margin-bottom: 0; }
.problem-guide li::marker { color: var(--accent); font-size: 13px; font-weight: 600; }
.problem-guide strong { font-size: 14px; }
.problem-guide p { margin-top: 4px; color: var(--muted-foreground); font-size: 13px; line-height: 1.6; }
.problem-example { font-size: 13px; margin: 2px 0 4px; }
.problem-example summary { width: fit-content; max-width: 100%; padding: 10px 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.problem-example-body { display: grid; gap: 12px; padding: 4px 0 12px; color: var(--muted-foreground); }
.problem-example-body strong { display: block; margin-bottom: 3px; color: var(--foreground); }
#problemForm { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
#problemForm h2 { font-size: clamp(22px, 5.5vw, 28px); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-actions .btn { flex: 0 1 auto; text-align: center; }
.page-actions .btn-primary { min-width: 180px; }
#registrationForm > .page-actions { margin-top: 24px; }
.bar { position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; display: none; background: var(--card); border-top: 1px solid var(--border); padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
.bar.show { display: block; }
.bar-inner { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 11px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { flex: 1; background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary .icon { color: inherit; }
.btn[data-icon] > .icon { margin: 0; color: inherit; }
.btn-secondary { background: var(--card); color: var(--foreground); border-color: var(--input); }
.btn-secondary:hover { background: var(--muted); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn:active { transform: translateY(1px); }
.stage.done { padding-bottom: 48px; }
#done-title { overflow-wrap: anywhere; }
.success-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; color: var(--success); background: var(--success-bg); border-radius: 16px; }
.success-icon .icon { width: 28px; height: 28px; color: inherit; margin: 0; }
.card-pad { padding: 24px 0 0; }
.success-card { margin-top: 26px; border-top: 1px solid var(--border); }
.group-card { margin-top: 24px; padding: 24px; border: 1px solid var(--success-border); border-radius: 14px; background: var(--success-bg); }
.group-card h2 { margin: 0 0 12px; font-size: 25px; }
.group-card p { color: var(--muted-foreground); font-size: 14px; }
.group-card .btn { width: 100%; margin-top: 18px; text-align: center; }
.btn-whatsapp { background: #14723d; color: #fff; }
.btn-whatsapp:hover { background: #105f32; }
.group-card .group-note { margin-top: 14px; font-size: 12px; }
.group-preview { margin-top: 14px; padding: 12px; border: 1px dashed var(--success-border); border-radius: 8px; }
.automation-note { margin-top: 20px; color: var(--muted-foreground); font-size: 13px; }
.zoom-notice { margin-top: 16px; }
.preview { margin-top: 20px; color: var(--warning); text-align: center; font-size: 12px; }
@media (max-width: 700px) {
  .top-inner { grid-template-columns: auto 1fr; gap: 8px 10px; padding-block: 8px; }
  .brand { padding: 8px; }
  .brand img { width: 100px; }
  .header-tools { grid-column: 2; }
  .mini-countdown { grid-row: 2; grid-column: 1 / -1; padding: 6px 12px; }
  .countdown-caption { font-size: 10px; }
  .time-unit strong { font-size: 22px; }
  .hero-app-track { width: 350%; }
  .hero-app-card { padding-inline: 1px; grid-template-rows: 24px minmax(0, 1fr); gap: 3px; }
  .hero-app-label { font-size: 10px; }
  .countdown-time { gap: 10px; }
  .stage { padding-top: 20px; min-height: calc(100dvh - 112px); }
  .stage > .container { padding: 24px 20px; border-radius: 18px; }
  .lead { font-size: 16px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-premise { font-size: 17px; }
  .hero-copy { gap: 12px; margin-top: 18px; }
  .page-actions { margin-top: 18px; }
  .page-actions .btn-primary { flex: 1 1 100%; min-width: 0; }
  .page-actions .btn-secondary { flex: 1 1 100%; }
  .bar-inner .btn { padding: 8px 10px; font-size: 14px; line-height: 1.35; }
  .bar-inner .btn-primary { gap: 6px; }
  .bar-inner .btn-secondary { max-width: 40%; }
  .bar-inner .btn-secondary > .icon { display: none; }
  .value-card, .group-card { padding: 20px; }
  .fact { padding: 12px; }
  .fact-v { font-size: 14px; }
}
@media (max-width: 360px) {
  .hero-app-track { width: 400%; }
  .brand img { width: 88px; }
  .brand { padding-inline: 5px; }
  .header-tools { gap: 5px; }
  .theme-control { padding-left: 5px; }
  .lang button { padding-inline: 7px; }
  .stage > .container { padding-inline: 18px; }
  .event-facts { grid-template-columns: 1fr; }
  .name-fields { grid-template-columns: 1fr; gap: 0; }
  .bar-inner .btn { padding-inline: 8px; font-size: 13px; }
  .bar-inner .btn .icon { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-app-track { animation: none; }
  .hero-ready .hero-layers { display: block; }
  .hero-ready .hero-fallback { opacity: 0; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
