/* ============================================================
   Atmosoft v2 SPACE layer  —  home page only  (Variation B)
   Loaded ONLY by index.html, AFTER css/v2.css.
   Everything is scoped under `.home-space` so the shared chrome
   (header / nav / footer / theme toggle / rail) that lives in
   css/v2.css is never touched. Nothing else on the site regresses.

   Source of truth: the approved manager artifact — Variation B
   (data-panel="B"): deep-space heroes, a big animated Atmobot,
   the four-product grid, the "Can't I just ask Claude?" contrast,
   and the closing moat band. Type: Jost / EB Garamond / JetBrains
   Mono (already loaded in the page head).
   ============================================================ */

/* ---- tokens (scoped): LIGHT is the default; space bands stay dark ---- */
.home-space{
  --bg:#F2F0FA; --surface:#FFFFFF; --surface-2:#F6F3FD;
  --ink:#171233; --ink-soft:#524D79; --ink-faint:#8B87A8;
  --line:rgba(70,42,181,.14); --line-2:rgba(70,42,181,.07);
  --indigo:#4A2CC4; --purple:#7A5FE6; --purple-2:#9C86FF; --purple-soft:#EDE8FC;
  --teal:#22B389; --coral:#F0603F; --gold:#F0C453; --sky:#7FE0FF;
  --space:#0C0824; --space-2:#150F35;
  --shadow:0 1px 2px rgba(23,18,51,.05), 0 10px 30px rgba(74,44,196,.09);
  --glow:0 0 40px rgba(122,95,230,.45);
  --r:16px;
  background:var(--bg); color:var(--ink);
}
/* explicit dark (toggle) — wins in both directions */
:root[data-theme="dark"] .home-space{
  --bg:#0E0A22; --surface:#171232; --surface-2:#1E1840;
  --ink:#EEEBF9; --ink-soft:#ADA8CC; --ink-faint:#726D95;
  --line:rgba(255,255,255,.11); --line-2:rgba(255,255,255,.05);
  --purple:#9C86FF; --purple-2:#B7A6FF; --indigo:#8163F0; --purple-soft:#241E44;
  --teal:#3ED4A6; --coral:#FF7757;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 34px rgba(0,0,0,.3);
}
/* system-dark fallback for no-JS users who have not explicitly chosen a theme */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="dark"]) .home-space{
  --bg:#0E0A22; --surface:#171232; --surface-2:#1E1840;
  --ink:#EEEBF9; --ink-soft:#ADA8CC; --ink-faint:#726D95;
  --line:rgba(255,255,255,.11); --line-2:rgba(255,255,255,.05);
  --purple:#9C86FF; --purple-2:#B7A6FF; --indigo:#8163F0; --purple-soft:#241E44;
  --teal:#3ED4A6; --coral:#FF7757;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 34px rgba(0,0,0,.3);
}}

/* ---- type helpers (override the generic v2.css equivalents inside home) ---- */
.home-space .h{font-family:"Jost",system-ui,sans-serif;line-height:1.04;
  letter-spacing:-.015em;text-wrap:balance;margin:0}
.home-space .label{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:12px;
  font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--purple);margin:0}
.home-space .eyebrow{margin:0 0 16px}
.home-space .h2{font-size:clamp(27px,3.6vw,42px);font-weight:800;max-width:18ch;
  letter-spacing:-.02em;line-height:1.04;color:var(--ink);margin:0}
.home-space .lead{font-size:19px;line-height:1.6;color:var(--ink-soft);max-width:56ch;margin:16px 0 0}

/* ---- sections (neutralise v2.css section padding/borders, apply artifact rhythm) ---- */
.home-space .sec{padding:clamp(56px,8vw,92px) 0;border-top:1px solid var(--line-2);position:relative}
.home-space .sec:first-of-type{border-top:0}
.home-space .sec > .inner{max-width:1140px;margin:0 auto;
  padding:0 clamp(20px,5vw,44px);position:relative;z-index:2}
.home-space .alt{background:var(--surface-2)}
.home-space #products{scroll-margin-top:92px}

/* ---- buttons (artifact p/g variants; override generic v2.css .btn) ---- */
.home-space .btnrow{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.home-space .btn{font-family:"Jost",sans-serif;font-weight:600;font-size:15px;text-decoration:none;
  padding:13px 22px;border-radius:999px;display:inline-block;border:1px solid transparent;transition:.15s}
.home-space .btn.p{background:linear-gradient(120deg,var(--indigo),var(--purple));color:#fff;
  box-shadow:0 6px 18px rgba(74,44,196,.28)}
.home-space .btn.p:hover{transform:translateY(-2px);color:#fff}
.home-space .btn.g{border:1px solid var(--line);color:var(--ink);background:transparent}
.home-space .btn.g:hover{border-color:var(--purple);color:var(--purple)}

/* ---- SPACE STAGE (Atmobot's world — dark dramatic band in BOTH themes) ---- */
.home-space .space{position:relative;color:#EDEAFB;overflow:hidden;
  background:radial-gradient(120% 100% at 70% 20%,#241a58 0%,var(--space-2) 45%,var(--space) 100%)}
.home-space .space .label{color:var(--purple-2)}
.home-space .space .h2{color:#EDEAFB}
.home-space .space .lead{color:#C7BEEA}
.home-space .space .btn.g{border-color:rgba(255,255,255,.25);color:#EDEAFB}
.home-space .space .btn.g:hover{border-color:var(--purple-2);color:#fff}
.home-space .stars{position:absolute;inset:0;pointer-events:none;z-index:1}
.home-space .star{position:absolute;width:2px;height:2px;border-radius:50%;background:#fff;opacity:.7}
.home-space .nebula{position:absolute;border-radius:50%;filter:blur(60px);opacity:.5;pointer-events:none;z-index:0}
@media (prefers-reduced-motion:no-preference){
  .home-space .star{animation:home-tw 3s ease-in-out infinite}
}
@keyframes home-tw{0%,100%{opacity:.2}50%{opacity:.9}}

/* ---- hero ---- */
.home-space .hero{display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:center;
  position:relative;z-index:2;overflow:visible}
.home-space .hero::before{content:none}   /* kill the v2.css .hero glow pseudo */
.home-space .hero.center{grid-template-columns:1fr;text-align:center;justify-items:center;gap:14px}
.home-space .hero.center .lead{margin-inline:auto}
.home-space .hero.center .btnrow{justify-content:center}
.home-space .hero .h2.big{font-size:clamp(32px,4.6vw,58px);max-width:20ch}
.home-space .stage{position:relative;min-height:250px;display:flex;align-items:center;justify-content:center}
.home-space .stage.big{min-height:308px;margin-bottom:4px}

/* ---- Atmobot (approved refined character, mounted by v2-space.js) ---- */
.home-space .bot-wrap{position:relative;display:inline-block}
.home-space .bot-svg{width:clamp(230px,34vw,340px);height:auto;display:block;overflow:visible}
@media (prefers-reduced-motion:no-preference){
  .home-space .bot-float{animation:home-float 5.5s ease-in-out infinite}
}
@keyframes home-float{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-12px) rotate(1.5deg)}}
.home-space .bubble{position:absolute;top:6%;left:100%;transform:translateX(-30px);
  background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;
  border-bottom-left-radius:3px;padding:9px 13px;font-family:"JetBrains Mono",monospace;font-size:12.5px;
  white-space:nowrap;box-shadow:var(--shadow);z-index:5}
.home-space .readout{margin-top:16px;font-family:"JetBrains Mono",monospace;font-size:12px;
  letter-spacing:.12em;text-transform:uppercase;display:inline-flex;align-items:center;gap:8px;color:#C7BEEA}
.home-space .readout .rdot{width:9px;height:9px;border-radius:50%;background:var(--teal);
  box-shadow:0 0 8px var(--teal);transition:background .4s,box-shadow .4s}

/* ---- products grid (four cards, real anchors) ---- */
.home-space .grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:10px}
.home-space .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:22px;box-shadow:var(--shadow);position:relative;overflow:hidden;transition:.18s;
  display:block;text-decoration:none;color:inherit}
.home-space .card:hover{transform:translateY(-4px);border-color:var(--purple)}
.home-space .alt .card{background:var(--bg)}
.home-space .card .rail{width:30px;height:4px;border-radius:2px;margin-bottom:15px}
.home-space .card .label{margin-bottom:11px}
.home-space .card h3{font-family:"Jost",sans-serif;font-size:20px;font-weight:700;margin:0 0 8px;color:var(--ink)}
.home-space .card p{margin:0;font-size:16px;color:var(--ink-soft)}
.home-space .card .go{display:inline-block;margin-top:14px;font-family:"JetBrains Mono",monospace;
  font-size:12.5px;letter-spacing:.04em;color:var(--purple);font-weight:600}
.home-space .card .retic{position:absolute;right:12px;top:12px;width:16px;height:16px;
  border-top:2px solid var(--line);border-right:2px solid var(--line);opacity:.6}

/* ---- "Can't I just ask Claude?" — two columns ---- */
.home-space .why{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:12px}
.home-space .why .col{border-radius:var(--r);padding:24px;border:1px solid var(--line)}
.home-space .why .col.dim{background:var(--surface-2)}
.home-space .why .col.win{background:linear-gradient(160deg,rgba(34,179,137,.1),transparent);border-color:var(--teal)}
.home-space .why h3{font-family:"Jost",sans-serif;font-size:19px;font-weight:700;margin:0 0 12px;
  display:flex;align-items:center;gap:8px;color:var(--ink)}
.home-space .why .win h3{color:var(--teal)}
.home-space .why ul{margin:0;padding-left:18px;color:var(--ink-soft)}
.home-space .why li{margin-bottom:8px}
.home-space .why b{color:var(--ink);font-weight:700}

/* ---- responsive ---- */
@media (max-width:900px){
  .home-space .hero,.home-space .why{grid-template-columns:1fr}
  .home-space .grid4{grid-template-columns:1fr 1fr}
  .home-space .bubble{display:none}
}
@media (max-width:560px){
  .home-space .grid4{grid-template-columns:1fr}
}

/* ============================================================
   SUB-PAGE space heroes (contact.html + services.html)
   The same .home-space system reused on the sub-pages via a
   `.home-space.sub` wrapper. The hero is a SPLIT layout (text +
   featured Atmobot) — a deliberate variation on home's centered
   flagship — and the bot is a touch smaller so home stays the
   showcase. Scoped to `.sub`, so index.html (no `.sub`) is untouched.
   ============================================================ */
.home-space.sub .stage.big{min-height:280px;margin-bottom:0}
.home-space.sub .bot-svg{width:clamp(200px,26vw,290px)}
.home-space.sub .hero .h2.big{font-size:clamp(30px,4.4vw,50px);max-width:16ch}
.home-space.sub .herostage{display:flex;flex-direction:column;align-items:center;gap:6px}
@media (max-width:900px){
  .home-space.sub .hero .herostage{order:-1}
}

/* 3-up service grid (Services page), styled like home's product cards */
.home-space .grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:10px}
@media (max-width:900px){.home-space .grid3{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.home-space .grid3{grid-template-columns:1fr}}

/* ============================================================
   PRODUCT-PAGE helpers — the four product pages (Atmobot /
   Workflows / Atmoware / AtmoSuite) reskinned onto this same
   .home-space.sub space system. Extends the vocabulary above;
   invents no new system, stays scoped to .home-space.
   ============================================================ */
.home-space .grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:10px}
@media (max-width:760px){.home-space .grid2{grid-template-columns:1fr}}

/* highlighted card (e.g. the Atmoware price row that wins) */
.home-space .card.win{background:linear-gradient(160deg,rgba(34,179,137,.1),transparent);border-color:var(--teal)}
.home-space .card.win h3{color:var(--teal)}

/* mono chips (Yes / Never, Security / Correctness) */
.home-space .chip{display:inline-flex;align-items:center;font-family:"JetBrains Mono",monospace;
  font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;border-radius:999px;
  padding:5px 12px;background:rgba(34,179,137,.14);color:var(--teal)}
.home-space .chip.warn{background:rgba(240,96,63,.14);color:var(--coral)}

/* bullet lists inside cards / columns */
.home-space .ul{list-style:none;margin:12px 0 0;padding:0}
.home-space .ul li{position:relative;padding:5px 0 5px 24px;color:var(--ink-soft);font-size:16px}
.home-space .ul li::before{content:"";position:absolute;left:2px;top:12px;width:7px;height:7px;border-radius:2px;background:var(--purple)}
.home-space .ul.crit li::before{background:var(--coral)}
.home-space .ul.ok li::before{background:var(--teal)}

/* proof — Atmobot's dark mono readout panel (stays dark in both themes) */
.home-space .proof{background:#120E2E;border:1px solid rgba(122,95,230,.28);border-radius:var(--r);
  padding:26px;color:#EDE9F8;font-family:"JetBrains Mono",monospace;font-size:13.5px;line-height:1.9;overflow-x:auto}
.home-space .proof .row{display:block;white-space:nowrap}
.home-space .proof .c{color:#8B87A8}
.home-space .proof .ok{color:#6FD3B4}
.home-space .proof .cr{color:#FF8A78}
.home-space .proof .k{color:#B7A6FF}

/* small caption under a panel */
.home-space .cap{margin-top:14px;font-family:"JetBrains Mono",monospace;font-size:12px;color:var(--ink-faint)}

/* ============================================================
   PER-PRODUCT DISTINCTION (Seb-feedback round)
   Each product page gets its own accent identity (Seb: "every
   product page shows the same robot"). A `prod-*` modifier on
   <main class="home-space prod-x"> sets --accent/--accent-2; the
   hero glow, the product badge+glyph and the space-band CTA read
   in that color, so each page is its own product while Atmobot
   ties the family together. Scoped to .home-space — no bleed.
   ============================================================ */
.home-space.prod-atmobot{--accent:#462AB5;--accent-2:#8B72E8}
.home-space.prod-workflows{--accent:#6F55D7;--accent-2:#B7A6FF}
.home-space.prod-atmoware{--accent:#2E8B73;--accent-2:#3ED4A6}
.home-space.prod-suite{--accent:#D65648;--accent-2:#FF8A6B}

/* product badge (icon + label) on the space hero — always on the dark band */
.home-space .pbadge{display:inline-flex;align-items:center;gap:9px;margin:0 0 4px;
  padding:7px 15px 7px 11px;border-radius:999px;border:1px solid var(--accent-2);
  background:rgba(255,255,255,.05)}
.home-space .hero.center .pbadge{margin-left:auto;margin-right:auto}
.home-space .pbadge .pglyph{width:22px;height:22px;flex:0 0 auto;fill:none;
  stroke:var(--accent-2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-space .pbadge .ptxt{font-family:"JetBrains Mono",monospace;font-size:12px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;color:var(--accent-2)}

/* per-product hero + closing CTA lean into the accent */
.home-space[class*="prod-"] .space .btn.p{background:linear-gradient(120deg,var(--accent),var(--accent-2))}

/* distinct icon on each home product-card (sits above the color rail) */
.home-space .card .picon{width:30px;height:30px;margin-bottom:12px;display:block;fill:none;
  stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* per-product glyph colors — used by the home cards AND the Products dropdown.
   Light-theme values (work-order accents); lightened under dark for contrast. */
.ico-bot{color:#462AB5}.ico-flow{color:#6F55D7}.ico-ware{color:#2E8B73}.ico-suite{color:#D65648}
:root[data-theme="dark"] .ico-bot{color:#8B72E8}
:root[data-theme="dark"] .ico-flow{color:#B7A6FF}
:root[data-theme="dark"] .ico-ware{color:#3ED4A6}
:root[data-theme="dark"] .ico-suite{color:#FF8A6B}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="dark"]) .ico-bot{color:#8B72E8}
  :root:not([data-theme="light"]):not([data-theme="dark"]) .ico-flow{color:#B7A6FF}
  :root:not([data-theme="light"]):not([data-theme="dark"]) .ico-ware{color:#3ED4A6}
  :root:not([data-theme="light"]):not([data-theme="dark"]) .ico-suite{color:#FF8A6B}}

/* Products dropdown gets the same distinct glyph per product (NOT scoped to
   .home-space — the dropdown lives in the shared header; loaded on every
   new-look page). Glyph inherits the .ico-* color. */
.drop a{display:flex;align-items:center;gap:9px}
.drop a .dico{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;
  stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ============================================================
   PORTED PAGES (Seb-feedback round) — the deeper service sub-pages
   and the legal pages, reskinned onto this same .home-space system.
   Service pages get a text-only space hero (no featured bot — keeps
   Atmobot the product/home showcase, not a repeat on every page).
   Legal pages get a clean readable long-form body, no space hero.
   All scoped under .home-space — no global bleed.
   ============================================================ */
.home-space .h1{font-family:"Jost",system-ui,sans-serif;font-weight:800;letter-spacing:-.02em;
  line-height:1.05;font-size:clamp(30px,4.6vw,52px);max-width:20ch;margin:0;color:var(--ink)}
.home-space .space .h1{color:#EDEAFB}
.home-space .pagehero .lead{max-width:62ch}
.home-space .hbadges{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.home-space .hbadges span{font-family:"JetBrains Mono",monospace;font-size:11.5px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;color:var(--purple-2);border:1px solid rgba(255,255,255,.22);
  border-radius:999px;padding:5px 12px}
.home-space .space .hbadges span{color:var(--purple-2)}

/* numbered/timeline rows (reused for "three weeks", process steps, etc.) */
.home-space .rows{margin-top:20px;border-top:1px solid var(--line)}
.home-space .rowitem{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:start;
  padding:20px 0;border-bottom:1px solid var(--line)}
.home-space .rowitem .rn{font-family:"JetBrains Mono",monospace;font-weight:700;font-size:12.5px;
  letter-spacing:.06em;text-transform:uppercase;color:#fff;background:var(--indigo);
  min-width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 6px}
.home-space .rowitem h3{font-family:"Jost",sans-serif;font-size:19px;font-weight:700;margin:0 0 5px;color:var(--ink)}
.home-space .rowitem p{margin:0;font-size:16px;line-height:1.6;color:var(--ink-soft)}

/* small square icon tile for content cards (line SVG inside) */
.home-space .itile{width:42px;height:42px;border-radius:11px;background:var(--purple-soft);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:var(--purple)}
.home-space .itile svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-space .card.tealtile .itile{background:rgba(34,179,137,.16);color:var(--teal)}
.home-space .card.coraltile .itile{background:rgba(240,96,63,.14);color:var(--coral)}

/* long-form legal / readable body */
.home-space .prose{max-width:760px}
.home-space .prose > p:first-child{margin-top:0}
.home-space .prose h2{font-family:"Jost",sans-serif;font-size:clamp(20px,2.3vw,26px);font-weight:700;
  color:var(--ink);margin:34px 0 10px;line-height:1.2}
.home-space .prose h3{font-family:"Jost",sans-serif;font-size:18px;font-weight:700;color:var(--ink);margin:22px 0 8px}
.home-space .prose p,.home-space .prose li{font-size:16.5px;line-height:1.72;color:var(--ink-soft)}
.home-space .prose ul,.home-space .prose ol{margin:10px 0;padding-left:22px}
.home-space .prose li{margin-bottom:7px}
.home-space .prose a{color:var(--purple)}
.home-space .prose strong{color:var(--ink)}
.home-space .prose .updated{display:inline-block;font-family:"JetBrains Mono",monospace;font-size:12.5px;
  color:var(--ink-faint);letter-spacing:.04em;margin-bottom:6px}

/* pricing / plan cards (pricing.html + Advisory.html) */
.home-space .pricecard{display:flex;flex-direction:column}
.home-space .pricecard .pctop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.home-space .pricecard .amt{font-family:"Jost",sans-serif;font-weight:800;font-size:2.3rem;color:var(--ink);margin:12px 0 4px;line-height:1}
.home-space .pricecard.win .amt{color:var(--teal)}
.home-space .pricecard .amt .per{font-size:1rem;font-weight:400;color:var(--ink-faint)}
.home-space .pricecard .subline{font-family:"JetBrains Mono",monospace;font-size:12px;letter-spacing:.04em;color:var(--ink-faint);margin:0 0 4px}
.home-space .pricecard .desc{font-size:15px;line-height:1.6;color:var(--ink-soft);margin:0}
.home-space .pricecard .ul{margin-top:14px;flex:1}
.home-space .pricecard .ul.off li{opacity:.5}
.home-space .pricecard .ul.off li::before{background:var(--ink-faint)}
.home-space .pricecard .btn{margin-top:20px;text-align:center;justify-content:center}
/* step badge for the advisory "journey" cards */
.home-space .stepnum{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-family:"Jost",sans-serif;font-weight:700;font-size:1.1rem;margin-bottom:14px;background:var(--purple-soft);color:var(--purple)}
.home-space .card.win .stepnum{background:rgba(34,179,137,.18);color:var(--teal)}
