/* Homepage styles, loaded on the homepage only (front matter `css: home`).
   The stage, app, rail and iPhone come from _includes/site/css/home-v/; the rest is in _includes/site/css/home/. */
/* The homepage prototype stage (chapter bar, browser frame, the app), placed by site/home/hero.html. */

.hv-stage{position:relative;isolation:isolate;max-width:1232px;margin-inline:auto;padding:clamp(10px,1.6vw,22px) clamp(10px,2.4vw,32px) clamp(14px,2.6vw,36px);border-radius:calc(var(--r-lg) + 6px);
  background:radial-gradient(55% 60% at 50% 0%,rgba(221,246,82,.42),transparent 70%),radial-gradient(70% 80% at 10% 100%,var(--tint-b),transparent 70%),radial-gradient(70% 80% at 95% 85%,color-mix(in srgb,var(--dark-glow) 38%,var(--tint-b)),transparent 70%),linear-gradient(160deg,var(--tint-c),var(--tint-a));
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 40px 80px -50px rgba(29,42,36,.5)}
.hv-stage::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;opacity:.45;mix-blend-mode:multiply;background-image:var(--grain);pointer-events:none}

/* Bar: chapters centre, play/pause right */
.hv-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:clamp(10px,1.4vw,18px)}
.hv-chs{grid-column:2;display:flex;gap:2px;padding:4px;border-radius:999px;background:rgba(249,250,247,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.7);box-shadow:0 1px 2px rgba(29,42,36,.08),0 10px 24px -14px rgba(29,42,36,.35)}
.hv-chs button{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:0;background:none;padding:8px 15px 8px 13px;border-radius:999px;font-size:14px;font-weight:550;color:var(--ink-2);transition:color .2s,background-color .25s var(--ease)}
.hv-chs button .i{width:16px;height:16px;flex:none}
.hv-chs button:hover{color:var(--ink);background:rgba(29,42,36,.05)}
.hv-chs button[aria-pressed="true"]{background:var(--dark);color:var(--on-dark)}
.hv-chs button>i{position:absolute;left:14px;right:14px;bottom:3px;height:2px;border-radius:2px;background:var(--accent);transform:scaleX(0);transform-origin:0 50%;opacity:0}
.hv-stage.is-auto .hv-chs [aria-pressed="true"]>i{opacity:1;animation:hvfill var(--dur,15s) linear forwards}
.hv-stage.is-paused .hv-chs i{animation-play-state:paused}
@keyframes hvfill{to{transform:none}}
.hv-pp{grid-column:3;justify-self:end;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.7);background:rgba(249,250,247,.82);color:var(--ink);display:grid;place-items:center;transition:transform .16s var(--ease),background-color .2s}
.hv-pp:hover{background:var(--surface)}.hv-pp:active{transform:scale(.92)}
.hv-pp svg{width:16px;height:16px}
.hv-pp .py,.hv-pp .pr{display:none}
.hv-stage.is-paused .hv-pp .pz{display:none}.hv-stage.is-paused .hv-pp .py{display:block}
.hv-stage.is-live .hv-pp .pz,.hv-stage.is-live .hv-pp .py{display:none}.hv-stage.is-live .hv-pp .pr{display:block}
.hv-chs button:focus-visible,.hv-pp:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Browser frame */
.hv-win{border-radius:16px;overflow:hidden;background:#F4F5F1;box-shadow:0 0 0 1px rgba(29,42,36,.08),0 2px 4px rgba(29,42,36,.06),0 36px 70px -36px rgba(29,42,36,.55)}
.hv-chrome{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:38px;padding:0 14px;border-bottom:1px solid #E1E4DE;background:#F7F8F5}
.hv-dots{display:flex;gap:6px}.hv-dots i{width:10px;height:10px;border-radius:50%;background:#D9DDD4}
.hv-url{display:inline-flex;align-items:center;gap:6px;padding:4px 14px;border-radius:8px;background:#ECEEE9;font-size:12px;color:var(--ink-2);letter-spacing:.01em}
.hv-url svg{width:12px;height:12px}

@media (max-width:900px){
  .hv-bar{grid-template-columns:1fr auto;row-gap:10px}
  .hv-chs{grid-column:1;justify-self:start;max-width:100%;overflow-x:auto;scrollbar-width:none}
  .hv-chs button{flex:none}
  .hv-pp{grid-column:2}
  .hv-chs::-webkit-scrollbar{display:none}
}
@media (max-width:560px){
  .hv-stage{border-radius:var(--r-lg);margin-inline:-8px}
  /* Phones: the playing chapter keeps its label, the others show their icon */
  .hv-chs button{flex:none;padding:8px 11px;font-size:13px;gap:7px}
  .hv-chs button:not([aria-pressed="true"]) span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .hv-chs button>i{left:10px;right:10px}
  .hv-chrome{height:30px}.hv-url{font-size:11px;padding:2px 10px}.hv-dots i{width:8px;height:8px}
  .hv-pp{width:34px;height:34px}
  .hv-win{border-radius:12px}
}

/* The onAI app inside the homepage stage. Copied from the homepage demo (css/home/demo.css) and extended: real buttons, a live composer, the Image Studio view. Drawn at a fixed size (stage.js) and scaled to fit. */
:where(.dm) button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;text-align:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dm-fit{position:relative;height:0;overflow:hidden}
.dm{position:absolute;left:0;top:0;width:1280px;height:780px;transform-origin:0 0;display:grid;grid-template-columns:280px minmax(0,1fr);gap:10px;padding:10px;background:#EEF0EC;color:#262A25;font-size:15px;line-height:1.5}
.dm.compact{grid-template-columns:minmax(0,1fr)}.dm.compact .dm-side{display:none}
.dm svg{display:block}
.dm-side{display:flex;flex-direction:column;gap:8px;padding:8px 6px;min-width:0}
.dm-brand{display:flex;align-items:center;gap:9px;font-weight:650;font-size:19px;letter-spacing:-.03em;padding:2px 6px 8px}
.dm-brand svg{width:30px;height:auto}
.dm-ws,.dm-srch,.dm-user{background:#F7F8F5;border:1px solid #E1E4DE;border-radius:12px}
.dm-ws{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:14.5px}
.dm-ws span,.dm-user>span{display:grid;place-items:center;background:#DDEBD9;color:#3D6B3A;font-weight:700}
.dm-ws span{width:22px;height:22px;border-radius:6px;font-size:11px}
.dm-newr{display:flex;gap:8px;margin:2px 0 8px}
.dm-new{flex:1;display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:12px;background:#22302A;color:#fff;font-weight:600}
.dm-new svg,.dm-srch svg{width:17px;height:17px}.dm-new small{margin-left:auto;font-size:10.5px;opacity:.7;font-weight:500}
.dm-srch{width:42px;display:grid;place-items:center}
.dm-nav,.dm-hist{padding:7px 12px;border-radius:10px;transition:background-color .2s,box-shadow .2s}
.dm-nav{display:flex;align-items:center;gap:11px;color:#3B4039}.dm-nav svg{width:18px;height:18px}
.dm-lbl{font-size:13px;color:#7A8076;padding:14px 12px 2px}
.dm-hist{font-size:14.5px;color:#4A5047;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-nav.on,.dm-hist.on{background:#F7F8F5;box-shadow:0 0 0 1px #E1E4DE;color:#262A25;font-weight:550}
.dm-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px 12px}
.dm-user>span{width:32px;height:32px;border-radius:50%;font-size:12px}
.dm-user b{display:block;font-size:14px;font-weight:600}.dm-user small{font-size:12px;color:#7A8076}
.dm-main{position:relative;display:flex;flex-direction:column;border-radius:14px;background:#FBFBF9;border:1px solid #E1E4DE;overflow:hidden;min-width:0}
.dm-top{display:flex;justify-content:space-between;align-items:center;padding:16px 22px 10px}.dm-title{font-weight:500}.dm-share{font-size:13.5px;color:#4A5047}
.dm-chat{flex:1;display:flex;flex-direction:column;min-height:0}
.dm-thread{flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:18px;padding:12px 0;width:min(760px,88%);margin:0 auto;overflow:hidden}
.dm-hello{text-align:center;font-family:var(--serif);font-size:34px;font-weight:500;letter-spacing:-.02em;line-height:1.15;color:#262A25;animation:dmin .5s var(--ease)}
.dm-hello small{display:block;margin-top:6px;font-family:var(--sans);font-size:15px;letter-spacing:0;color:#7A8076}
.dm-u{align-self:flex-end;max-width:76%;padding:12px 16px;border-radius:16px;background:#E7EAE4;font-size:15.5px}
.dm-b{display:grid;gap:10px}
.dm-u,.dm-b,.dm-srcs span,.dm-tbl tr,.dm-fr p,.dm-tr{animation:dmin .35s var(--ease)}
.dm-bh{display:flex;align-items:center;gap:10px;font-weight:600}
.dm-bh>svg{width:26px;height:auto}
.dm-st{display:inline-flex;align-items:center;gap:7px;font-weight:400;font-size:13.5px;color:#62685F}
.dm-st .spin{width:13px;height:13px;border-radius:50%;border:2px solid #C9CFC3;border-top-color:#22302A;animation:spin .8s linear infinite}
.dm-st .ok{width:15px;height:15px;border-radius:50%;background:#DDF652;box-shadow:0 0 0 1px rgba(29,42,36,.2);display:grid;place-items:center;font-size:9px;color:#1D2A24;animation:pop .3s var(--ease-morph)}
.dm-srcs{display:flex;flex-wrap:wrap;gap:6px}
.dm-srcs span{display:inline-flex;align-items:center;gap:7px;padding:5px 10px 5px 7px;border-radius:8px;border:1px solid #E1E4DE;background:#fff;font-size:13px}
.dm-srcs svg{width:16px;height:16px}
.dm-ans{font-size:15.5px;line-height:1.6}
.dm-ans sup{display:inline-grid;place-items:center;min-width:16px;height:16px;margin-left:3px;border-radius:4px;background:#EBF3FC;color:#0F6CBD;font-size:10px;font-weight:600;vertical-align:3px}
.dm-tbl{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #E1E4DE}
.dm-tbl th{text-align:left;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:550;background:#F2F4EF;padding:8px 12px}
.dm-tbl td{padding:8px 12px;border-top:1px solid #E7EAE4}
.dm-comp{position:relative;width:min(780px,90%);margin:0 auto;border:1px solid #DADFD5;border-radius:18px;background:#fff;box-shadow:0 2px 6px rgba(29,42,36,.05)}
.dm-in{position:relative;display:flex;align-items:center;min-height:56px;padding:14px 18px 6px;font-size:16px}
.dm-ph{position:absolute;color:#9AA096}.dm-in.has .dm-ph,.dm-imp.has .dm-ph{display:none}
.dm-caret{width:1.5px;height:20px;background:#262A25;margin-left:1px;animation:blink 1s steps(1) infinite}
.dm-row{display:flex;align-items:center;gap:8px;padding:6px 12px 12px}
.dm-ic{width:34px;height:34px;border-radius:10px;border:1px solid #DADFD5;display:grid;place-items:center;font-size:18px}
.dm-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:10px;border:1px solid #DADFD5;font-size:13.5px}.dm-chip svg{width:15px;height:15px}
.dm-chip.m{background:#EEF4FB;border-color:#CFE0F5}
.dm-sp{flex:1}
.dm-model{padding:6px 10px;border-radius:10px;font-size:14px;font-weight:550;transition:background-color .15s}.dm-model.on{background:#F2F4EF}
.dm-send{width:36px;height:36px;border-radius:50%;background:#C9CFC3;color:#fff;display:grid;place-items:center;font-size:17px;transition:background-color .2s,transform .16s var(--ease)}
.dm-in.has~.dm-row .dm-send{background:#22302A}
.dm-menu{position:absolute;right:46px;bottom:calc(100% - 44px);z-index:3;width:300px;padding:8px;border-radius:14px;background:#fff;border:1px solid #DADFD5;box-shadow:0 20px 40px -12px rgba(29,42,36,.3);display:grid;gap:2px;opacity:0;transform:translateY(6px) scale(.98);transform-origin:100% 100%;transition:opacity .18s,transform .25s var(--ease-morph);pointer-events:none}
.dm-menu.show{opacity:1;transform:none}
.dm-menu small{font-size:12px;color:#7A8076;padding:4px 10px 6px}
.dm-menu span{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;border-radius:9px;font-size:13px;color:#62685F;transition:background-color .12s}
.dm-menu b{font-size:14.5px;color:#262A25;font-weight:550}
.dm-menu span.on{background:#F2F4EF}
.dm-foot{text-align:center;font-size:12.5px;color:#7A8076;padding:10px 0 12px}
.dm-tr{flex:1;display:flex;flex-direction:column;gap:14px;padding:6px 22px 22px}
.dm-trbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dm-trbar>span{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:10px;border:1px solid #DADFD5;background:#fff;font-size:13.5px}
.dm-trbar svg{width:17px;height:17px}.dm-lang b{color:#7A8076;font-weight:400}
.dm-tog i{width:28px;height:16px;border-radius:999px;background:#22302A;position:relative}.dm-tog i::after{content:"";position:absolute;right:2px;top:2px;width:12px;height:12px;border-radius:50%;background:#DDF652}
.dm-trbar>.dm-gl{background:#F4F8E2;border-color:#E2EBB8}
.dm-trbar>.dm-sp{border:0;background:none;padding:0}
.dm-trbar>.dm-go{background:#22302A;color:#fff;border-color:#22302A;font-weight:600;padding:8px 18px}
.dm-prog{height:3px;border-radius:3px;background:#E7EAE4;overflow:hidden}.dm-prog i{display:block;height:100%;width:100%;background:#22302A;transform:scaleX(0);transform-origin:0 50%}
.dm-panes{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:14px;min-height:0}
.dm-panes>div{border:1px solid #E1E4DE;border-radius:14px;background:#fff;padding:18px 20px;display:grid;gap:10px;align-content:start;line-height:1.6}
.dm-panes small{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#7A8076}
.dm-fr p{margin:0 0 10px}
.dm-note{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#4A5047;opacity:0;transition:opacity .3s}.dm-note.show{opacity:1}.dm-note svg{width:16px;height:16px;color:#3D6B3A}
.dm-cur{position:absolute;left:0;top:0;z-index:9;width:26px;height:26px;pointer-events:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.dm-cur svg{width:26px;height:26px}
.dm-cur.click::after{content:"";position:absolute;left:-10px;top:-10px;width:30px;height:30px;border-radius:50%;background:rgba(221,246,82,.65);animation:click .45s ease-out forwards}
@keyframes dmin{from{opacity:0;transform:translateY(6px)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes blink{50%{opacity:0}}
@keyframes pop{from{transform:scale(.4)}}
@keyframes click{from{transform:scale(.3);opacity:1}to{transform:scale(1.4);opacity:0}}

/* Additions for the live stage */
.dm-new{text-align:left}
.dm-nav{width:100%;text-align:left}
.dm-nav:hover{background:#F2F4EF}
.dm-nav.on:hover{background:#F7F8F5}
.dm-new:hover{background:#2B3B33}
.dm button:focus-visible,.dm .dm-field:focus-visible{outline:3px solid #9DB03A;outline-offset:2px}
.dm-home{margin-block:auto;display:grid;gap:22px;justify-items:center;animation:dmin .5s var(--ease)}
.dm-sugg{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:640px}
.dm-sugg button{padding:8px 14px;border-radius:999px;border:1px solid #DADFD5;background:#fff;font-size:14px;color:#3B4039;transition:border-color .2s,background-color .2s,transform .16s var(--ease)}
.dm-sugg button:hover{border-color:#9AA096;color:#262A25}
.dm-sugg button:active{transform:scale(.97)}
.dm-sugg button:first-child{background:#EEF4FB;border-color:#CFE0F5}

/* Composer: the scripted text shows in the span; once live, the real input takes over */
.dm-in,.dm-imp{position:relative}
.dm-field{position:absolute;inset:0;width:100%;padding:inherit;border:0;background:none;font:inherit;color:transparent;caret-color:transparent;outline:0}
.dm.live .dm-field{color:#262A25;caret-color:#262A25}
.dm.live .dm-txt,.dm.live .dm-caret,.dm.live .dm-ph{display:none}
.dm-field::placeholder{color:#9AA096}
.dm:not(.live) .dm-field::placeholder{color:transparent}
.dm .dm-field:focus-visible{outline:0}
.dm-comp:focus-within,.dm-imp:focus-within{border-color:#9AA096;box-shadow:0 0 0 3px rgba(221,246,82,.45)}
.dm:not(.live) .dm-caret{display:none}
.dm:not(.live) .dm-in.has .dm-caret,.dm:not(.live) .dm-imp.has .dm-caret{display:block}
.dm-in{border-radius:18px 18px 0 0}
.dm-chip{transition:background-color .2s,border-color .2s,color .2s}
.dm-chip[aria-pressed="false"]{background:none;border-color:#DADFD5;color:#62685F}
.dm-chip[aria-pressed="true"]:not(.m){background:#F4F8E2;border-color:#E2EBB8;color:#262A25}
.dm-chip:hover{border-color:#9AA096}
.dm-model:hover{background:#F2F4EF}
.dm-send{cursor:pointer}
.dm.live .dm-in.has~.dm-row .dm-send:hover{transform:scale(1.06)}
.dm-menu button{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;border-radius:9px;font-size:13px;color:#62685F;transition:background-color .12s}
.dm-menu button:hover,.dm-menu button.on{background:#F2F4EF}
.dm-menu button[aria-checked="true"] b::after{content:" ✓";color:#3D6B3A}
.dm-menu.show{pointer-events:auto}
.dm-cta{display:inline-flex;align-items:center;gap:8px;justify-self:start;padding:9px 16px;border-radius:999px;background:#22302A;color:#fff;font-size:14px;font-weight:600;text-decoration:none;transition:background-color .2s}
.dm-cta:hover{background:#16211C}
.dm-tog{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:10px;border:1px solid #DADFD5;background:#fff;font-size:13.5px}
.dm-tog i::after{transition:transform .25s var(--ease-morph)}
.dm-tog[aria-pressed="false"] i{background:#C9CFC3}.dm-tog[aria-pressed="false"] i::after{transform:translateX(-12px);background:#fff}
.dm-go{display:inline-flex;align-items:center;padding:8px 18px;border-radius:10px;background:#22302A;color:#fff;font-size:13.5px;font-weight:600;transition:background-color .2s,transform .16s var(--ease)}
.dm-go:hover{background:#16211C}.dm-go:active{transform:scale(.97)}
.dm-go[aria-busy="true"]{background:#62685F;pointer-events:none}

/* Image Studio */
.dm-img{flex:1;display:flex;flex-direction:column;gap:14px;padding:6px 22px 22px;min-height:0;animation:dmin .35s var(--ease)}
.dm-imp{display:flex;align-items:center;min-height:54px;padding:14px 18px;border:1px solid #DADFD5;border-radius:16px;background:#fff;font-size:16px}
.dm-imopts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dm-imm,.dm-ratio{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:10px;border:1px solid #DADFD5;background:#fff;font-size:13.5px;transition:border-color .2s,background-color .2s,color .2s}
.dm-imm small{font-size:12px;color:#7A8076}
.dm-imm i{width:14px;height:14px;border-radius:4px;border:1.5px solid #9AA096;display:grid;place-items:center;transition:background-color .15s,border-color .15s}
.dm-imm[aria-pressed="true"] i{background:#22302A;border-color:#22302A}
.dm-imm[aria-pressed="true"] i::after{content:"";width:6px;height:3px;border:solid #DDF652;border-width:0 0 1.5px 1.5px;transform:translateY(-1px) rotate(-45deg)}
.dm-imm[aria-pressed="false"]{color:#7A8076}
.dm-imm:hover{border-color:#9AA096}
.dm-ratio i{width:11px;height:13px;border:1.5px solid #62685F;border-radius:3px}
.dm-imgrid{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-height:0;align-content:start}
.dm-imgrid figure{margin:0;display:grid;gap:8px;transition:opacity .3s}
.dm-imgrid figure.off{opacity:.35}
.dm-pic{position:relative;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:#E7EAE4}
.dm-pic>svg{position:absolute;inset:0;width:100%;height:100%;opacity:0;transform:scale(1.08);filter:blur(16px) saturate(.5)}
.dm-pic::before{content:"";position:absolute;inset:0;z-index:1;background:radial-gradient(60% 50% at 78% 22%,rgba(255,255,255,.4),transparent 70%),linear-gradient(to top,rgba(0,0,0,.18),transparent 45%);opacity:0;transition:opacity .8s var(--ease) .3s}
.dm-pic::after{content:"";position:absolute;inset:0;z-index:1;background-image:var(--grain);opacity:.3;mix-blend-mode:overlay}
.dm-pic i{position:absolute;inset:0;z-index:2;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%) 0 0/250% 100%;opacity:0}
.dm-imgrid .busy .dm-pic i{opacity:1;animation:shim 1.4s linear infinite}
.dm-imgrid .done .dm-pic>svg{opacity:1;transform:none;filter:none;transition:opacity .5s var(--ease),transform 1.4s var(--ease-morph),filter 1.4s var(--ease)}
.dm-imgrid .done .dm-pic::before{opacity:1}
.dm-imgrid figure:nth-child(2) .dm-pic>svg use{transform:scaleX(-1);transform-origin:50% 50%}
.dm-imgrid figure:nth-child(3) .dm-pic>svg use{transform:scale(1.25);transform-origin:40% 100%}
.dm-imgrid figcaption{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:#62685F}
.dm-imgrid figcaption b{color:#262A25;font-weight:600}
@keyframes shim{from{background-position:100% 0}to{background-position:-150% 0}}

/* Narrow drawing sizes (chat only, no sidebar) */
.dm.compact .dm-panes{grid-template-columns:1fr}
.dm.compact .dm-panes>div:first-child p:not(:first-of-type){display:none}
.dm.compact .dm-gl,.dm.compact .dm-ratio{display:none}
.dm.compact .dm-thread,.dm.compact .dm-comp{width:calc(100% - 28px)}
.dm.compact .dm-imgrid{gap:10px}
.dm.compact .dm-imgrid figcaption{flex-direction:column;gap:0;font-size:12px}
.dm.live .dm-cur{display:none}
/* The thread scrolls once a live conversation outgrows it; short threads still sit at the bottom */
.dm-thread{justify-content:flex-start;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
.dm-thread::-webkit-scrollbar{display:none}
.dm-thread>:first-child{margin-top:auto}
.dm-chip,.dm-model{white-space:nowrap}
.dm.compact .dm-ic{display:none}
.dm.compact .dm-row{gap:6px}

/* Feature rail: cards scroll sideways, aligned to the content column on the left and bleeding off the right edge. */
.hv-rail{--inset:max(24px,calc((100vw - var(--w)) / 2 + 24px))}
@media (max-width:640px){.hv-rail{--inset:16px}}
.hv-track{list-style:none;margin:0;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--inset);padding:4px var(--inset) 24px;scrollbar-width:none;overscroll-behavior-x:contain}
.hv-track::-webkit-scrollbar{display:none}
.hv-track li{flex:none;width:min(380px,82vw);scroll-snap-align:start}
.hv-card{position:relative;isolation:isolate;overflow:hidden;height:100%;display:flex;flex-direction:column;gap:28px;padding:28px 28px 0;border-radius:var(--r-lg);text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--line);transition:transform .45s var(--ease-morph),box-shadow .45s var(--ease)}
.hv-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.hv-card:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.hv-card-tx{display:grid;gap:8px;justify-items:start}
.hv-card-ic{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;background:var(--bg);border:1px solid var(--line);margin-bottom:10px}
.hv-card-ic .i{width:18px;height:18px}
.hv-card .hv-card-bot{background:none!important;border:0!important;border-radius:0;overflow:visible}
.hv-card-bot .bot{width:48px;height:48px;margin:-5px;flex:none}
.hv-card-h{font-family:var(--serif);font-size:24px;font-weight:400;letter-spacing:-.02em;line-height:1.1}
.hv-card-p{font-size:15px;line-height:1.5;color:var(--ink-2);max-width:30ch}
.hv-card-go{margin-top:12px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line-2);transition:background-color .25s var(--ease),border-color .25s,color .25s}
.hv-card-go .i{width:16px;height:16px;transition:transform .3s var(--ease)}
.hv-card:hover .hv-card-go{background:var(--btn);border-color:var(--btn);color:var(--btn-ink)}
.hv-card:hover .hv-card-go .i{transform:translateX(2px)}
/* The mock sits at the bottom edge, cropped by the card */
.hv-card-vis{display:block;margin:auto -6px 0;height:236px;overflow:hidden;transform:translateY(10px);transition:transform .6s var(--ease-morph)}
.hv-card:hover .hv-card-vis{transform:translateY(2px)}
.hv-card .app{display:grid;align-content:start;min-height:100%;padding:16px 16px 24px;border-radius:8px 8px 0 0;font-size:13px;box-shadow:0 20px 40px -18px rgba(16,24,20,.35);border-color:var(--line)}
.hv-card .app .fld,.hv-card .app .app-pane{display:block}
.hv-card .app-q{display:block}
.hv-card .app-imgs .fig{display:grid;gap:6px}
.hv-card .app-imgs .ph{display:block}
.hv-card .app-imgs .cap{display:grid;gap:0;font-size:11px;color:var(--ink-2);line-height:1.3}
.hv-card .app-imgs .cap b{font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-card .budget>span{display:block}

/* Tones, in turn: dark panel, green texture, plain surface */
.hv-card.t-0{background:var(--dark);color:var(--on-dark);border-color:transparent}
.hv-card.t-0::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(70% 55% at 85% 0%,color-mix(in srgb,var(--dark-glow) 80%,transparent),transparent 70%),linear-gradient(160deg,var(--dark),var(--dark-2))}
.hv-card.t-0 .hv-card-p{color:var(--on-dark-2)}
.hv-card.t-0 .hv-card-ic{background:rgba(255,255,255,.06);border-color:var(--dark-line);color:var(--on-dark)}
.hv-card.t-0 .hv-card-go{border-color:var(--dark-line)}
.hv-card.t-0:hover .hv-card-go{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.hv-card.t-1{border-color:transparent;background:radial-gradient(70% 80% at 20% 15%,var(--tint-c),transparent 60%),radial-gradient(60% 70% at 90% 90%,var(--tint-b),transparent 65%),linear-gradient(135deg,var(--tint-a),var(--tint-b))}
.hv-card.t-1 .hv-card-ic{background:rgba(255,255,255,.5);border-color:rgba(255,255,255,.6)}
.hv-card.t-1 .hv-card-p{color:var(--ink)}

.hv-rail-nav{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.hv-rb{width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);display:grid;place-items:center;transition:background-color .2s,border-color .2s,opacity .2s,transform .16s var(--ease)}
.hv-rb svg{width:20px;height:20px}
.hv-rb:hover:not(:disabled){border-color:var(--ink-3)}
.hv-rb:active:not(:disabled){transform:scale(.94)}
.hv-rb:disabled{opacity:.4;cursor:default}
.hv-rb:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.hv-card .app-q{max-width:92%}
@media (max-width:640px){.hv-card{padding:24px 22px 0}.hv-card-vis{height:210px}.hv-card-h{font-size:23px}.hv-rail-nav{display:none}}
@media (hover:none){.hv-card:hover{transform:none;box-shadow:none}.hv-card:hover .hv-card-vis{transform:translateY(10px)}}

/* Bot identity (shot/bot.html): the hand moves, the identity never does */
.bot .bot-blink{transform-box:fill-box;transform-origin:center;animation:botblink 4.2s infinite}
.bot .bot-fast{animation-duration:1.8s}
.bot .bot-sweep{transform-box:view-box;transform-origin:24px 24px;animation:botsweep 3s linear infinite}
.bot .bot-swing{transform-box:view-box;transform-origin:24px 24px;animation:botswing 3.6s ease-in-out infinite}
.bot .bot-pulse{transform-box:fill-box;transform-origin:center;animation:botpulse 1.6s ease-in-out infinite}
.bot .bot-land{transform-box:view-box;transform-origin:24px 24px;animation:botland 3.4s var(--ease) infinite}
@keyframes botblink{0%,90%,100%{transform:scaleY(1)}94%{transform:scaleY(.12)}}
@keyframes botsweep{0%{transform:rotate(0)}80%,100%{transform:rotate(360deg)}}
@keyframes botswing{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(14deg)}}
@keyframes botpulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.7}}
@keyframes botland{0%{transform:rotate(0)}30%,100%{transform:rotate(360deg)}}

/* The iPhone prototype and the "onAI auf dem iPhone" section on the homepage. */

/* The phone iframe: the prototype draws the device on a transparent page, scaled to fit (426 × 898 with bezel) */
.hb-phone iframe{display:block;width:100%;aspect-ratio:426/898;border:0;background:transparent;color-scheme:normal;filter:drop-shadow(0 30px 40px rgba(29,42,36,.28)) drop-shadow(0 6px 10px rgba(29,42,36,.14))}
.hb-phone iframe:focus-visible{outline:2px solid var(--ink);outline-offset:6px;border-radius:56px}

/* "onAI auf dem iPhone": copy and three tappable points, a live iPhone on a soft panel */
.hb-ios-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(32px,5vw,80px);align-items:center}
.hb-ios-tx{display:grid;justify-items:start;gap:22px}
.hb-ios-tx h2{max-width:20ch}
.hb-ios-tx .lead{max-width:48ch;text-wrap:pretty}
/* The points: hairline rows. The active row shows its sentence and its top line fills as a 7 s progress bar (phone.js
   restarts it per row and pauses it on hover, focus or off screen). No bar and no auto-advance with reduced motion. */
.hb-pts{list-style:none;margin:10px 0 4px;padding:0;width:100%;max-width:520px}
.hb-pts li{position:relative;border-top:1px solid var(--line-2)}
.hb-pts li:last-child{border-bottom:1px solid var(--line-2)}
.hb-pt{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:14px;width:100%;padding:18px 0;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hb-pt .i{width:18px;height:18px;margin-top:5px;color:var(--ink-3);transition:color .3s var(--ease)}
.hb-pt-t{font-family:var(--serif);font-size:21px;line-height:1.3;letter-spacing:-.01em;color:var(--ink-3);transition:color .3s var(--ease);text-wrap:pretty}
.hb-pt-d{grid-column:2;display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--ease-morph)}
.hb-pt-d>span{overflow:hidden}
.hb-pt-d>span>span{display:block;padding-top:8px;max-width:44ch;font-size:15px;line-height:1.55;color:var(--ink-2);text-wrap:pretty}
.hb-pt:hover .hb-pt-t,.hb-pt[aria-pressed="true"] .hb-pt-t,.hb-pt[aria-pressed="true"] .i{color:var(--ink)}
.hb-pt[aria-pressed="true"] .hb-pt-d{grid-template-rows:1fr}
.hb-pt:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:4px}
.hb-pt-bar{position:absolute;left:0;top:-1px;width:100%;height:1px;background:var(--ink);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}
.hb-pts.is-auto .hb-pt[aria-pressed="true"] .hb-pt-bar{animation:hbPtFill 7s linear forwards}
.hb-pts.is-held .hb-pt-bar{animation-play-state:paused!important}
@keyframes hbPtFill{to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){
  .hb-pt-bar{display:none}
  .hb-pt-d,.hb-pt .i,.hb-pt-t{transition:none}
}
@media (max-width:600px){
  .hb-pt{padding:16px 0}
  .hb-pt-t{font-size:19px}
}
.hb-ios-vis{position:relative;isolation:isolate;display:grid;place-items:center;padding:clamp(28px,4vw,56px) clamp(20px,3vw,40px);border-radius:var(--r-lg);
  background:radial-gradient(60% 50% at 50% 10%,rgba(221,246,82,.38),transparent 70%),radial-gradient(70% 70% at 90% 100%,color-mix(in srgb,var(--dark-glow) 38%,var(--tint-b)),transparent 70%),linear-gradient(160deg,var(--tint-c),var(--tint-a))}
.hb-ios-vis::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;opacity:.45;mix-blend-mode:multiply;background-image:var(--grain);pointer-events:none}
.hb-phone-ios{width:min(320px,100%)}
@media (max-width:900px){
  .hb-ios-grid{grid-template-columns:1fr}
  .hb-ios-vis{order:-1}
  .hb-phone-ios{width:min(300px,76vw)}
}

/* Homepage hero (Cursor-style): short left-aligned copy, the buttons with a 2x2 list of trust facts beside them,
   then the prototype stage on a painted ground with the window running to its lower edge, and the Manor line. */
.hp-hero{padding-top:clamp(48px,7vw,96px)}
.hp-copy{display:grid;justify-items:start}
.hp-copy h1{font-size:clamp(34px,4.2vw,56px);line-height:1.08;max-width:26ch;-webkit-hyphens:manual;hyphens:manual}
@media (max-width:719px){.hp-copy h1 br.br-lg{display:none}.hp-copy h1{text-wrap:balance}}
.hp-copy .lead{margin-top:22px;max-width:54ch}
.hp-act{margin-top:34px;display:flex;flex-wrap:wrap;align-items:center;gap:20px 36px}

/* Trust facts: 2x2 beside the buttons, set off by a hairline; monochrome line icons, small type, no badges */
.hp-facts{list-style:none;margin:0;padding:2px 0 2px 36px;border-left:1px solid var(--line);display:grid;grid-template-columns:auto auto;gap:9px 28px;font-size:13px;line-height:1.35;color:var(--ink-2)}
.hp-facts li{display:flex;align-items:center;gap:8px}
.hp-facts .i{flex:none;width:14px;height:14px;color:var(--ink);opacity:.75}

/* Painted ground behind the stage (from the concepts' "Produkt" hero) */
.hp-paint{position:relative;isolation:isolate;overflow:hidden;margin-top:clamp(40px,5vw,64px);padding:clamp(16px,4vw,56px) clamp(10px,5.5vw,88px) clamp(14px,3vw,40px);border-radius:var(--r-xs);
  background:
    radial-gradient(45% 55% at 12% 22%,rgba(248,246,232,.95),transparent 70%),
    radial-gradient(40% 50% at 88% 12%,rgba(236,229,205,.85),transparent 70%),
    radial-gradient(60% 45% at 30% 88%,#6F8459,transparent 70%),
    radial-gradient(55% 50% at 80% 92%,#4F6440,transparent 72%),
    radial-gradient(70% 40% at 55% 60%,#A7B58F,transparent 70%),
    linear-gradient(180deg,#DCE0CF 0%,#C8CFB4 40%,#9AA983 72%,#6E7F5A 100%)}
.hp-paint::before{content:"";position:absolute;inset:-10%;z-index:-1;filter:blur(6px);background:
  radial-gradient(18% 10% at 22% 46%,rgba(255,255,255,.5),transparent 70%),
  radial-gradient(24% 9% at 70% 36%,rgba(255,252,240,.55),transparent 70%),
  radial-gradient(30% 12% at 46% 70%,rgba(60,78,46,.35),transparent 70%)}
.hp-paint::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.22;mix-blend-mode:multiply;background-image:var(--grain);pointer-events:none}
/* The stage brings its own panel (css/home-v/stage.css); here the paint is the panel */
.hp-paint .hv-stage{max-width:1100px;padding:0;background:none;box-shadow:none;border-radius:0}
.hp-paint .hv-stage::after{display:none}
.hp-paint .hv-win{border-radius:8px;box-shadow:0 0 0 1px rgba(29,42,36,.08),0 30px 60px -28px rgba(16,24,20,.45)}

/* Scroll delight: the painted stage grows to full size as it scrolls into view (anthropic.com-style).
   Transform only, so it stays on the compositor; at rest it is scale(1) and fully interactive. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .hp-paint{transform-origin:50% 0;animation:hp-grow linear both;animation-timeline:view();animation-range:entry 0% cover 45%}
  }
}
@keyframes hp-grow{from{transform:scale(.92)}to{transform:none}}

/* Manor line under the stage, links to the story */
.hp-proof{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 18px;padding-block:32px 8px;font-size:14.5px;color:var(--ink-2);text-decoration:none;text-align:center}
.hp-proof img{height:19px;width:auto}
.hp-proof-go{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:550;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .3s var(--ease)}
.hp-proof-go .i{transition:transform .3s var(--ease)}
.hp-proof:hover .hp-proof-go{background-size:100% 1px}
.hp-proof:hover .hp-proof-go .i{transform:translateX(3px)}

/* Below this the facts sit under the buttons: hairline on top instead */
@media (max-width:1000px){.hp-facts{padding:18px 0 0;border-left:0;border-top:1px solid var(--line)}}
@media (max-width:560px){
  .hp-act{display:grid;width:100%;gap:22px}
  .hp-copy .btn-row{display:grid;grid-template-columns:1fr;width:100%;max-width:360px}
  .hp-copy .btn-row .btn{justify-content:center}
  .hp-facts{grid-template-columns:1fr;gap:10px;width:100%;max-width:360px}
  .hp-paint{margin-inline:-8px}
  .hp-paint .hv-stage{margin-inline:0;border-radius:0}
}

/* Homepage sections ported from the concepts' "Produkt" page: the Manor quote, Made in Europe, the closing call to action. */

/* Manor: quote left, figures right, aligned on their lower edge */
/* Half a section more room above and below than the plain-section rhythm gives */
.sec.hp-story,.sec:not(.band):not(.full-dark)+.sec.hp-story:not(.band){padding-top:calc(var(--sec)*.5);padding-bottom:calc(var(--sec)*1.5)}
.hp-story-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:clamp(28px,5vw,72px);align-items:end}
.hp-quote{margin:0;display:grid;gap:24px;justify-items:start}
.hp-quote img{height:24px;width:auto}
.hp-quote blockquote{margin:0;font-family:var(--serif);font-size:clamp(24px,2.6vw,34px);line-height:1.3;letter-spacing:-.01em;text-wrap:pretty}
.hp-quote figcaption{display:flex;align-items:center;gap:14px;font-size:14.5px;color:var(--ink-2)}
.hp-quote figcaption b{display:block;color:var(--ink);font-weight:550}
.hp-quote .av{width:44px;height:44px;border-radius:50%;background:var(--tint-a);border:1px solid var(--line-2);display:grid;place-items:center;font-weight:600;font-size:14px;color:var(--ink)}
.hp-kpis{display:grid;border-top:1px solid var(--ink)}
.hp-kpis p{padding:18px 0;border-bottom:1px solid var(--line)}
.hp-kpis b{display:block;font-family:var(--serif);font-size:40px;font-weight:400;letter-spacing:-.02em;line-height:1.1}
.hp-kpis span{color:var(--ink-2);font-size:14.5px}
.hp-kpis .link{margin-top:22px;justify-self:start}
@media (max-width:900px){.hp-story-grid{grid-template-columns:1fr}}

/* Made in Europe: the dark panel, four facts in a ruled row */
.hp-eu{padding:clamp(36px,6vw,80px) clamp(22px,5vw,72px)}
.hp-eu h2{max-width:18ch}
.hp-eu .lead{margin-top:22px;max-width:56ch}
.hp-eu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:52px;border-top:1px solid var(--dark-line)}
.hp-eu-grid>div{padding:22px 22px 0 0}
.hp-eu-grid>div+div{padding-left:22px;border-left:1px solid var(--dark-line)}
.hp-eu-grid small{display:block;font-size:13px;color:var(--accent)}
.hp-eu-grid b{display:block;margin-top:8px;font-weight:550;color:var(--on-dark)}
.hp-eu-grid p{margin-top:6px;font-size:14px;line-height:1.5}
.hp-eu-links{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:40px}
@media (max-width:900px){
  .hp-eu-grid{grid-template-columns:1fr 1fr}
  .hp-eu-grid>div:nth-child(3){padding-left:0;border-left:0}
  .hp-eu-grid>div:nth-child(n+3){border-top:1px solid var(--dark-line);margin-top:22px}
}
@media (max-width:520px){
  .hp-eu-grid{grid-template-columns:1fr}
  .hp-eu-grid>div,.hp-eu-grid>div+div{padding:20px 0;border-left:0;margin-top:0}
  .hp-eu-grid>div+div{border-top:1px solid var(--dark-line)}
}

/* Closing call to action */


/* Compare: three cards, onAI first and raised */
.sc{display:grid;grid-template-columns:minmax(0,1.1fr) repeat(2,minmax(0,1fr));gap:10px;align-items:center}
.sc-c{padding:24px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.sc-c h3{font-family:var(--serif);font-size:21px;font-weight:400;letter-spacing:-.02em;padding-bottom:14px}
.sc-c dl{margin:0}
.sc-r{display:grid;gap:1px;padding:12px 0;border-top:1px solid var(--line)}
.sc-r dt{font-size:12.5px;color:var(--ink-2);line-height:1.3}
.sc-r dd{margin:0;display:flex;gap:7px;align-items:center;font-weight:550;font-size:15px;line-height:1.3}
.sc-c.us{padding:34px 30px;border:0;box-shadow:var(--shadow-lg)}
.sc-c.us h3{font-size:28px;color:var(--on-dark)}
.sc-c.us .sc-r{border-color:var(--dark-line)}
.sc-c.us dt{color:var(--on-dark-2)}
.sc-note{margin-top:18px;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
/* The date note and the link sit back: smaller and lighter than the table */
.sc-note{font-size:13px;color:var(--ink-3)}
.sc-note .link{font-size:13px;font-weight:450;color:var(--ink-2)}
.sc-note .link:hover{color:var(--ink)}
.sc-note .link .i{width:13px;height:13px}
@media (max-width:980px){.sc{grid-template-columns:1fr}}

