/* AIS website v1 (v2b direction). Plain CSS, no build step. */

:root {
  --ink-950: #070B14;
  --navy-900: #0B1428;
  --navy-800: #0E1A33;
  --warm-black: #111216;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(18, 28, 52, 0.82);
  --line: rgba(150, 175, 225, 0.18);
  --line-strong: rgba(150, 175, 225, 0.32);
  --text: #F3F6FC;
  --muted: #A6B1C6;
  --blue: #2D7CFF;
  --blue-hover: #4A8FFF;
  --blue-soft: #8DB6FF;
  --blue-on-light: #1F5FD6;
  --lime: #C6FF3D;
  --red: #FF4D4F;
  --red-on-light: #C4262A;
  --green-on-light: #0B7A43;
  --paper: #F4F6FA;
  --paper-card: #FFFFFF;
  --ink: #0B1222;
  --ink-muted: #4A5568;
  --line-light: #DCE2EC;
  --pill-light: #DCE8FF;
  --pill-light-text: #1747A8;
  --btn-text: #06101F;
  --radius: 14px;
  --radius-lg: 22px;
  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  --max: 1200px;
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--blue-on-light); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blue); color: var(--btn-text); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- small parts ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 14px; }
.light .eyebrow { color: var(--blue-on-light); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(45, 124, 255, 0.18); color: #C9DBFF; border: 1px solid rgba(45, 124, 255, 0.35); }
.light .tag { background: var(--pill-light); color: var(--pill-light-text); border-color: #BBD0FA; }
.src { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.light .src { color: var(--ink-muted); }
.hl { display: inline-block; padding: 0 0.28em; border-radius: 0.3em; background: rgba(45, 124, 255, 0.2); color: #CFE0FF; }
.light .hl { background: var(--pill-light); color: var(--pill-light-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 12px; border: 0;
  background: var(--blue); color: var(--btn-text); font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 28px rgba(45, 124, 255, 0.35);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.risk { font-size: 14px; color: var(--muted); margin-top: 10px; }
.light .risk { color: var(--ink-muted); }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: 0.01em; position: relative; line-height: 1; }
.brand-mark::after { content: ""; position: absolute; right: -9px; bottom: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.brand-name { font-size: 12px; line-height: 1.25; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 14px; margin-left: 6px; max-width: 150px; }
.nav { display: none; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text); opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.header-phone { font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.header-phone svg { width: 18px; height: 18px; }
.header-phone .num { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-950); min-height: 640px; display: flex; align-items: flex-end; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -2; }
.hero-scene svg { width: 100%; height: 100%; max-width: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 0.8s ease; }
.hero-photo.is-on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.35) 30%, rgba(7, 11, 20, 0.92) 68%, var(--ink-950) 100%); }
.scene-group { transition: opacity 0.9s ease; }
.hero[data-scene="exterior"] .scene-auto { opacity: 0; }
.hero[data-scene="auto"] .scene-ext { opacity: 0; }
.hero-inner { padding-top: 120px; padding-bottom: 44px; width: 100%; }
.hero h1 { font-size: clamp(52px, 15.5vw, 112px); font-weight: 700; line-height: 0.98; letter-spacing: -0.02em; }
.rot { display: block; color: var(--blue-soft); }
.rot-word { display: inline-block; transition: opacity 0.35s ease, transform 0.35s ease; }
.rot-word.is-out { opacity: 0; transform: translateY(0.2em); }
.hero-rule { width: 72px; height: 3px; background: var(--blue); border-radius: 2px; margin: 28px 0 18px; }
.hero-sub { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; max-width: 34ch; line-height: 1.35; }
.hero .src { margin-top: 10px; display: block; }
.hero-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero-trades { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); }

/* ---------- stat band ---------- */
.stats { background: linear-gradient(180deg, var(--navy-800) 0%, var(--ink-950) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
.stat { padding: 18px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat-num { font-family: var(--font-head); font-weight: 200; font-size: clamp(64px, 17vw, 96px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.55em; font-weight: 200; }
.stat .tag { margin-top: 14px; }
.stat .src { display: block; margin-top: 8px; }

/* ---------- AI flow (Podium style) ---------- */
.ai { background: radial-gradient(1200px 600px at 80% 10%, rgba(45, 124, 255, 0.08), transparent 60%), var(--warm-black); padding: 64px 0 72px; }
.ai-grid { display: grid; gap: 36px; }
.ai h2 { font-size: clamp(36px, 8vw, 60px); font-weight: 700; margin-bottom: 26px; }
.acc { display: grid; gap: 10px; }
.acc-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.acc-item.is-open { background: rgba(45, 124, 255, 0.07); border-color: rgba(45, 124, 255, 0.4); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; color: var(--text); padding: 16px 16px; min-height: 56px; font-weight: 600; font-size: 17px; cursor: pointer; border-radius: 12px; }
.acc-icon { flex: none; width: 22px; height: 22px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.2s ease; }
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-panel { padding: 0 16px 18px; color: var(--muted); }
.acc-panel[hidden] { display: none; }

.orbit-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, #141A2A 0%, #0D1220 100%); padding: 14px; overflow: hidden; }
.orbit-card > .tag { position: absolute; top: 14px; left: 14px; z-index: 3; }
.orbit { position: relative; width: 100%; aspect-ratio: 0.82; margin-top: 30px; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-ring { fill: none; stroke: rgba(150, 175, 225, 0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.flow { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.9; }
.flow.to-booked { stroke: var(--lime); opacity: 0.75; }
.node { position: absolute; z-index: 2; border-radius: 12px; border: 1px solid var(--line-strong); background: #17213A; padding: 9px 11px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.node b { display: block; font-size: 15px; line-height: 1.2; }
.node .time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.node-call { left: 3%; top: 4%; width: 44%; }
.node-text { right: 3%; top: 4%; width: 40%; }
.node-dm { left: 3%; top: 70%; width: 46%; }
.node-ai { left: 8%; right: 8%; top: 30%; background: #1C2B4D; border-color: rgba(45, 124, 255, 0.55); padding: 12px 14px; }
.node-ai .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #C9DBFF; display: flex; align-items: center; gap: 6px; }
.node-ai .who svg { width: 16px; height: 16px; }
.node-ai p { margin-top: 6px; font-size: 15px; line-height: 1.35; }
.node-booked { right: 3%; top: 86%; width: 52%; background: #1E2716; border-color: rgba(198, 255, 61, 0.55); }
.node-booked b { color: var(--lime); display: flex; align-items: center; gap: 7px; }
.node-booked b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.wave { display: inline-flex; gap: 2px; align-items: center; height: 18px; vertical-align: middle; margin-left: 8px; }
.wave i { width: 2px; height: 100%; background: var(--blue-soft); border-radius: 1px; transform-origin: center; }
.wave i:nth-child(2n) { height: 60%; } .wave i:nth-child(3n) { height: 35%; } .wave i:nth-child(5n) { height: 80%; }
.flow-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .flow { animation: dash 1.6s linear infinite; }
  .wave i { animation: wave 1.1s ease-in-out infinite; }
  .wave i:nth-child(2n) { animation-delay: -0.3s; } .wave i:nth-child(3n) { animation-delay: -0.6s; } .wave i:nth-child(4n) { animation-delay: -0.8s; }
  .node-call, .node-text, .node-dm, .node-ai, .node-booked { animation: pop 8s ease-in-out infinite; }
  .node-text { animation-delay: 1.2s; } .node-dm { animation-delay: 2.4s; } .node-ai { animation-delay: 3.6s; } .node-booked { animation-name: popLime; animation-delay: 4.8s; }
  .rot-word { will-change: opacity, transform; }
}
@keyframes dash { to { stroke-dashoffset: -14; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@keyframes pop { 0%, 12%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); } 6% { box-shadow: 0 0 0 2px rgba(45, 124, 255, 0.6), 0 10px 34px rgba(45, 124, 255, 0.35); } }
@keyframes popLime { 0%, 14%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); } 7% { box-shadow: 0 0 0 2px rgba(198, 255, 61, 0.6), 0 10px 34px rgba(198, 255, 61, 0.25); } }

/* ---------- light sections ---------- */
.light { background: var(--paper); color: var(--ink); }
.section { padding: 64px 0; }
.section-title { font-size: clamp(34px, 7.5vw, 56px); font-weight: 700; margin-bottom: 14px; }
.section-lead { font-size: 18px; color: var(--ink-muted); max-width: 60ch; }
.dark .section-lead, .section.dark .section-lead { color: var(--muted); }
.card-light { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(11, 18, 34, 0.04), 0 8px 24px rgba(11, 18, 34, 0.05); }

/* industry picker */
.industries { display: grid; gap: 18px; margin-top: 30px; }
.ind { padding: 22px; display: flex; flex-direction: column; gap: 16px; position: relative; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ind[aria-pressed="true"], .ind.is-picked { border-color: var(--blue-on-light); box-shadow: 0 0 0 2px var(--blue-on-light), 0 12px 30px rgba(31, 95, 214, 0.12); }
.ind-head { display: flex; align-items: center; gap: 14px; }
.ind-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.ind-icon svg { width: 30px; height: 30px; }
.ind h3 { font-size: 25px; font-weight: 700; }
.ind .who { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.ind h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; color: var(--ink-muted); font-weight: 600; }
.ind ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ind li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-size: 16px; line-height: 1.45; }
.ind li svg { width: 18px; height: 18px; margin-top: 3px; }
.pain svg { color: var(--red-on-light); }
.fix svg { color: var(--green-on-light); }
.ind .src { font-size: 11px; }
.pick-btn { align-self: flex-start; min-height: 48px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }
.pick-btn:hover { background: var(--ink); color: #fff; }
.ind.is-picked .pick-btn { background: var(--ink); color: #fff; }

/* pillars */
.pillars { display: grid; gap: 16px; margin-top: 28px; }
.pillar { padding: 22px; }
.pillar .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.pillar h3 { font-size: 24px; font-weight: 700; margin: 8px 0 8px; }
.pillar p { color: var(--ink-muted); }
.pillar ul { margin: 14px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line-light); display: grid; gap: 6px; font-size: 15px; }
.pillar li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-on-light); margin-right: 10px; vertical-align: middle; }

/* hub */
.hub { background: linear-gradient(180deg, var(--navy-800) 0%, var(--ink-950) 100%); padding: 64px 0 72px; }
.hub-title { font-size: clamp(48px, 12vw, 96px); font-weight: 700; letter-spacing: -0.02em; }
.hub .section-lead { color: var(--muted); margin-top: 10px; }
.dash { margin-top: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(170deg, rgba(23, 33, 58, 0.95), rgba(11, 17, 32, 0.95)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 124, 255, 0.08); overflow: hidden; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dash-top b { font-size: 15px; }
.dash-top .dots { display: flex; gap: 6px; }
.dash-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.dash-body { display: grid; }
.dash-side { display: none; padding: 16px; border-right: 1px solid var(--line); font-size: 14px; }
.dash-side span { display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); }
.dash-side span.on { background: rgba(45, 124, 255, 0.16); color: var(--text); font-weight: 600; }
.dash-main { padding: 16px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); }
.kpi span { font-size: 12px; color: var(--muted); display: block; }
.kpi b { font-family: var(--font-head); font-weight: 300; font-size: 26px; }
.kpi b.ok { color: var(--lime); }
.kpi b.miss { color: var(--red); }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.col { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.col h4 { margin: 0 0 8px; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.lead { background: #1A2540; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font-size: 13px; line-height: 1.35; }
.lead + .lead { margin-top: 8px; }
.lead b { display: block; font-size: 13px; }
.lead .meta { color: var(--muted); font-size: 12px; }
.lead .st { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.st.ok { background: rgba(198, 255, 61, 0.14); color: var(--lime); }
.st.miss { background: rgba(255, 77, 79, 0.14); color: #FF7A7C; }
.st.info { background: rgba(45, 124, 255, 0.18); color: #BFD5FF; }
.col-done { grid-column: 1 / -1; }
.hub-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* before / with table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 24px; font-size: 15px; }
.compare td, .compare th { padding: 11px 9px; }
.compare td:first-child { width: 28%; }
.compare th { text-align: left; font-size: 14px; background: var(--pill-light); color: var(--ink); }
.compare th:first-child { border-radius: 10px 0 0 10px; background: transparent; }
.compare th:last-child { border-radius: 0 10px 10px 0; }
.compare td { background: var(--paper-card); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); vertical-align: top; }
.compare td:first-child { border-left: 1px solid var(--line-light); border-radius: 10px 0 0 10px; font-weight: 600; }
.compare td:last-child { border-right: 1px solid var(--line-light); border-radius: 0 10px 10px 0; font-weight: 700; }
.compare .bad { color: var(--red-on-light); }
.compare .good::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px #8DBA1E; margin-right: 8px; vertical-align: 1px; }
.foot-note { margin-top: 10px; }

/* forms */
.form-dark { background: radial-gradient(900px 500px at 15% 0%, rgba(45, 124, 255, 0.14), transparent 60%), linear-gradient(180deg, var(--ink-950), var(--navy-800)); padding: 64px 0; }
.form-grid { display: grid; gap: 28px; align-items: start; }
.form-grid h2 { font-size: clamp(34px, 7.5vw, 54px); font-weight: 700; }
.form-grid .section-lead { margin-top: 12px; color: var(--muted); }
.steps-mini { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.steps-mini li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.steps-mini b { color: var(--text); font-weight: 600; }
.steps-mini .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(45, 124, 255, 0.2); color: #CFE0FF; font-size: 13px; font-weight: 700; display: grid; place-items: center; font-family: var(--font-mono); }
.form { display: grid; gap: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(8, 14, 28, 0.75); color: var(--text); font-size: 17px; }
.field input::placeholder { color: #7F8BA3; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 124, 255, 0.35); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .err { display: block; font-size: 14px; color: #FF8A8C; margin-top: 6px; min-height: 0; }
.field .err:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(198, 255, 61, 0.1); border: 1px solid rgba(198, 255, 61, 0.45); color: var(--text); }
.form-status.ok b { color: var(--lime); }
.form-status.bad { background: rgba(255, 77, 79, 0.1); border: 1px solid rgba(255, 77, 79, 0.5); }
.form-legal { font-size: 13px; color: var(--muted); }
.form-legal a { color: var(--blue-soft); }
.panel-glass { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; backdrop-filter: blur(6px); }

/* how it works */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; counter-reset: s; }
.step { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 6px 14px; align-items: start; }
.step .num { margin-top: 3px; }
.step .num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: var(--pill-light); color: var(--pill-light-text); border-radius: 6px; padding: 3px 7px; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { grid-column: 2; color: var(--ink-muted); font-size: 16px; }

/* pricing */
.pricing { background: linear-gradient(180deg, #E8EEF9, var(--paper)); }
.price-grid { display: grid; gap: 20px; align-items: center; }
.price-card { padding: 24px; }
.price-card h2 { font-size: clamp(36px, 8vw, 52px); font-weight: 700; }
.price { font-family: var(--font-head); font-size: clamp(26px, 6vw, 34px); font-weight: 600; margin: 10px 0 6px; }
.price small { font-size: 0.6em; font-weight: 500; color: var(--ink-muted); }
.price-card ul { padding-left: 20px; margin: 12px 0 0; color: var(--ink-muted); display: grid; gap: 4px; }
.price-side { font-size: 18px; color: var(--ink-muted); }
.price-side b { color: var(--ink); }

/* FAQ */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .acc-icon { color: var(--ink); }
.faq details[open] summary .acc-icon::after { transform: rotate(0deg); }
.faq details > div { padding: 0 18px 18px; color: var(--ink-muted); }
.faq details > div b { color: var(--ink); }

/* booking */
.book { padding: 64px 0 56px; }
.slots { margin-top: 20px; }
.slots-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.days, .times { display: flex; flex-wrap: wrap; gap: 8px; }
.times { margin-top: 10px; }
.slot { min-height: 44px; min-width: 56px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--blue); color: var(--btn-text); border-color: var(--blue); }
.slot small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; }
.or-call { margin-top: 14px; font-weight: 700; font-size: 18px; }
.or-call a { color: var(--blue-soft); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-950); padding: 30px 0 30px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .brand-mark { font-size: 26px; color: var(--text); justify-self: start; }
.site-footer a { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { min-height: 32px; display: inline-flex; align-items: center; }

/* sticky action bar */
.actionbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: rgba(8, 13, 26, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line-strong); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.actionbar .num-line { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.actionbar .num-line a { color: var(--text); font-weight: 600; text-decoration: none; }
.actionbar nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.actionbar nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text); }
.actionbar nav a svg { width: 18px; height: 18px; }
.actionbar nav a.primary { background: var(--blue); color: var(--btn-text); }
.actionbar nav a:not(.primary):hover { background: rgba(255, 255, 255, 0.07); }

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .stats .wrap { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--line); padding: 8px 28px; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .stat-num { font-size: clamp(56px, 8vw, 96px); }
  .industries { grid-template-columns: 1fr 1fr; }
  .compare { font-size: 16px; }
  .compare td, .compare th { padding: 12px 14px; }
  .compare td:first-child { width: 24%; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .col-done { grid-column: auto; }
  .header-phone .num { display: inline; }
  .brand-name { max-width: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --bar-h: 0px; }
  body { font-size: 17px; }
  .nav { display: flex; }
  .hero { min-height: min(100vh, 900px); align-items: center; }
  .hero::after { background: linear-gradient(90deg, rgba(7, 11, 20, 0.97) 0%, rgba(7, 11, 20, 0.86) 34%, rgba(7, 11, 20, 0.25) 62%, rgba(7, 11, 20, 0.15) 100%), linear-gradient(180deg, rgba(7, 11, 20, 0.5) 0%, transparent 25%, transparent 80%, rgba(7, 11, 20, 0.9) 100%); }
  .hero-inner { padding-top: 150px; padding-bottom: 110px; }
  .hero-copy { max-width: 720px; }
  .hero-cta { flex-direction: row; align-items: center; gap: 26px; }
  .ai { padding: 96px 0; }
  .ai-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
  .orbit { aspect-ratio: 1.12; margin-top: 20px; }
  .node-call { left: 6%; top: 10%; width: 30%; }
  .node-text { right: 6%; top: 10%; width: 28%; }
  .node-ai { left: 26%; right: 18%; top: 36%; }
  .node-dm { left: 8%; top: 64%; width: 30%; }
  .node-booked { right: 6%; top: 82%; width: 34%; }
  .section { padding: 96px 0; }
  .hub { padding: 96px 0 110px; }
  .dash-body { grid-template-columns: 190px 1fr; }
  .dash-side { display: block; }
  .dash-main { padding: 20px; }
  .form-dark { padding: 96px 0; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: auto 1fr; }
  .price-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .book { padding: 96px 0 80px; }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }

  .actionbar { left: auto; right: 24px; bottom: 24px; border: 1px solid var(--line-strong); border-radius: 16px; padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
  .actionbar .num-line { margin: 0 0 6px; }
  .actionbar nav { grid-template-columns: repeat(4, auto); gap: 4px; }
  .actionbar nav a { flex-direction: row; gap: 8px; min-height: 46px; padding: 0 18px; font-size: 15px; }
}

@media (min-width: 1280px) {
  .ind { padding: 28px; }
}

@media print {
  .actionbar, .hero-scene, .site-header .nav { display: none; }
  body { background: #fff; color: #000; padding: 0; }
}

/* ---------- legal pages ---------- */
.legal-page { background: var(--paper); color: var(--ink); padding-bottom: 0; }
.legal-top { background: var(--ink-950); color: var(--text); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.legal { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.legal h1 { font-size: clamp(34px, 7vw, 48px); font-weight: 700; margin-bottom: 8px; }
.legal h2 { font-size: 24px; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: #26314A; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--blue-on-light); }
.draft-banner { background: #FFF4CC; border: 1px solid #E9C649; color: #4A3A00; border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 14px 0 22px; font-size: 15px; }
.legal .meta { font-size: 14px; color: var(--ink-muted); }
.legal-page .site-footer { margin-top: 0; }

/* ==========================================================================
   v2 (11-24): shared chrome for every page, niche pages, guides, footer
   ========================================================================== */

/* header: language toggle + phone-size menu */
.head-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.lang-toggle a { min-width: 36px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.lang-toggle a[aria-current="true"] { background: rgba(45, 124, 255, 0.22); color: var(--text); }
.lang-toggle a:hover { color: var(--text); }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, 0.04); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: rgba(45, 124, 255, 0.18); border-color: rgba(45, 124, 255, 0.5); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: #0E1630; border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); display: grid; z-index: 60; }
.menu-panel a { padding: 10px 12px; min-height: 44px; border-radius: 10px; text-decoration: none; font-weight: 600; display: flex; align-items: center; }
.menu-panel a:hover { background: rgba(255, 255, 255, 0.06); }
.menu-panel .menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-panel a.menu-cta { background: var(--blue); color: var(--btn-text); justify-content: center; margin-top: 4px; }
@media (max-width: 479px) {
  .site-header .header-phone { display: none; }
  .brand-name { max-width: 108px; font-size: 11px; padding-left: 10px; margin-left: 4px; }
}

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }

/* niche page hero (same scene as the home page, calmer type) */
.hero.hero-page { min-height: 600px; }
.hero.hero-page h1 { font-size: clamp(38px, 9.6vw, 70px); line-height: 1.03; max-width: 16ch; }
.hero.hero-page .hero-sub { max-width: 42ch; font-weight: 500; color: #DDE5F4; }
.hero-chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* industry cards: links to the niche pages */
.ind-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ind-links a { color: var(--blue-on-light); font-weight: 700; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.ind-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* card grids (pains, fixes, guides) */
.cards { display: grid; gap: 14px; margin-top: 28px; }
.card-pain, .card-fix { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-pain h3, .card-fix h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.card-pain p, .card-fix p { color: var(--ink-muted); font-size: 16px; }
.card-pain .src { margin-top: auto; padding-top: 6px; }
.card-fix .tag { align-self: flex-start; }
.dark-cards .card-fix { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: var(--radius); }
.dark-cards .card-fix p { color: var(--muted); }
.remodel-fix-title { font-size: clamp(26px, 5vw, 34px); margin: 48px 0 0; }
.notfit { margin-top: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); }
.notfit b { color: var(--text); }
.notfit ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* guides */
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.guide-card:hover { border-color: var(--blue-on-light); transform: translateY(-2px); }
.guide-card .tag { align-self: flex-start; }
.guide-card h3 { font-size: 20px; font-weight: 700; line-height: 1.24; }
.guide-card p { color: var(--ink-muted); font-size: 15.5px; }
.guide-card .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue-on-light); font-size: 15px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 24px; }
.section-head .section-title { margin-bottom: 0; }
.section-head .link-arrow { color: var(--blue-on-light); }

/* dark title band for guides, legal and 404 pages */
.page-band { background: radial-gradient(900px 420px at 85% 0%, rgba(45, 124, 255, 0.16), transparent 60%), linear-gradient(180deg, var(--ink-950), var(--navy-800)); padding: 108px 0 40px; border-bottom: 1px solid var(--line); }
.page-band h1 { font-size: clamp(32px, 7.4vw, 56px); font-weight: 700; line-height: 1.08; max-width: 22ch; }
.page-band .dek { margin-top: 16px; font-size: clamp(18px, 2.2vw, 21px); color: #D5DDEC; max-width: 60ch; }
.byline { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }
.byline b { color: var(--text); font-weight: 600; }

/* article text */
.article-wrap { background: var(--paper); color: var(--ink); padding: 36px 0 60px; }
.prose { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); font-size: 18px; line-height: 1.7; color: #1E2940; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 4.6vw, 30px); font-weight: 700; line-height: 1.2; margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--blue-on-light); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0 0; padding: 14px 18px; border-left: 4px solid var(--blue-on-light); background: #EAF0FB; border-radius: 0 10px 10px 0; color: var(--ink); }
.prose .callout { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: 12px; padding: 16px 18px; }
.prose .callout b { color: var(--ink); }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line-light); padding: 9px 8px; text-align: left; vertical-align: top; }
.prose th { background: var(--pill-light); }
.author-box { max-width: 720px; margin: 44px auto 0; padding: 0 var(--gutter); }
.author-box > div { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 18px; }
.author-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.author-box b { font-size: 17px; }
.author-box p { color: var(--ink-muted); font-size: 15.5px; margin-top: 4px; }
.cta-box { max-width: 720px; margin: 24px auto 0; padding: 0 var(--gutter); }
.cta-box > div { background: linear-gradient(160deg, #0E1A33, #070B14); color: var(--text); border-radius: var(--radius-lg); padding: 24px 22px; }
.cta-box h2 { font-size: clamp(24px, 5vw, 30px); font-weight: 700; }
.cta-box p { color: var(--muted); margin-top: 8px; }
.cta-box .hero-cta { margin-top: 16px; }
.cta-box .link-arrow { color: var(--text); }
.related { background: var(--paper); padding: 0 0 72px; }
.related .wrap { max-width: calc(720px + var(--gutter) * 2); }

/* legal pages on the shared chrome */
.legal-page .page-band { padding-bottom: 30px; }
.legal-page .legal { padding-top: 8px; }

/* booking: calendar button + contact lines */
.book-cal { margin-top: 22px; }
.book-cal .btn { min-width: 240px; }
.contact-lines { margin-top: 18px; display: grid; gap: 6px; font-weight: 600; font-size: 17px; }
.contact-lines a { color: var(--blue-soft); overflow-wrap: anywhere; }

/* footer */
.site-footer { padding: 40px 0 28px; }
.site-footer .wrap.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; }
.foot-brand p { line-height: 1.6; }
.foot-brand a { overflow-wrap: anywhere; }
.foot-col { display: grid; gap: 0; align-content: start; }
.foot-h { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot-col a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .foot-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* phone: a little tighter */
@media (max-width: 719px) {
  .section { padding: 52px 0; }
  .ai, .hub { padding: 52px 0 58px; }
  .form-dark { padding: 52px 0; }
  .book { padding: 52px 0 44px; }
  .section-lead { font-size: 17px; }
  .hero-inner { padding-bottom: 36px; }
  .faq summary { padding: 14px 16px; font-size: 16.5px; }
  .ind { padding: 20px 18px; }
}

@media (min-width: 720px) {
  .cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .cards.c2 { grid-template-columns: repeat(2, 1fr); }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .author-box > div { grid-template-columns: 64px 1fr; padding: 22px; }
  .author-mark { width: 64px; height: 64px; }
  .cta-box > div { padding: 30px 32px; }
}
@media (min-width: 1024px) {
  .menu { display: none; }
  .nav { gap: 22px; }
  .head-right { gap: 18px; }
  .hero.hero-page { min-height: 660px; }
  .page-band { padding: 148px 0 58px; }
  .article-wrap { padding: 56px 0 72px; }
  .cards.c4 { grid-template-columns: repeat(4, 1fr); }
  .site-footer .wrap.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; align-items: start; }
}

/* article title band lines up with the text column */
.page-band.narrow .wrap { max-width: 720px; }
.page-band.narrow h1 { max-width: none; }
.foot-col a { line-height: 1.35; padding: 4px 0; }
.book .steps-mini { margin-top: 18px; }
@media (max-width: 479px) { .actionbar nav a { font-size: 13px; white-space: nowrap; } }

/* 1024-1279: keep the longer niche labels ("Exterior & remodeling") on one line */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header .brand-name { display: none; }
  .nav { gap: 18px; }
  .nav a { white-space: nowrap; }
}

/* Wide screens (Ivan 11-25: "use the whole screen why shrinking it if is not necessary"): the page grows with the window
   instead of stopping at 1200 px. Reading text keeps its own ch limits, so lines stay easy to read. */
@media (min-width: 1440px) { :root { --gutter: 48px; --max: calc(100vw - 96px); } }
@media (min-width: 1920px) { :root { --gutter: 72px; --max: min(calc(100vw - 144px), 2400px); } }
@media (min-width: 1920px) {
  .hero h1 { font-size: clamp(112px, 7vw, 176px); }
  .hero-copy { max-width: 1000px; }
  .hero-sub { font-size: 30px; }
}
