/* Hero of the TMAI landing: one rounded photo cover of a real business, its live group chat floating on the right.
   Three scenes (Bakery, Shop, Office) play frame by frame: the owner asks, agents answer, a decision widget arrives,
   the owner taps, the widget folds into "Approved", agents finish the job, the owner says thanks. */
:root{
  --font:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out:cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:cubic-bezier(0.77, 0, 0.175, 1);

  /* page */
  --bg:#f8f9fb; --ink:#15131c; --ink-2:#4a4658; --line:rgba(21,19,28,.14); --pill:#ffffff;
  --accent:#7c3aed; --accent-hover:#6d28d9; --on-accent:#ffffff; --accent-ring:#cbb0f8;
  /* motion: one set for the hero chat and the phone block */
  --dur-press:.14s; --dur-fade:.25s; --dur-in:.5s; --dur-swap:.45s; --dur-theme:.7s;

  /* product UI (stays light in both themes, it sits on a photo) */
  --p-bg:#ffffff; --p-surface:#f7f8fa; --p-fg:#171717; --p-muted:#737373; --p-border:rgba(0,0,0,.07);
  --p-primary:#7c3aed; --p-btn:#6d28d9; --p-primary-press:#5b21b6; --p-tile:#efebfd; --p-icon-bg:#f3f0ff; --p-me:#eeeafe; --p-me-meta:#7c3aed;
  --p-name:#2563eb; --p-mention:#7c3aed;
  --p-success:#15803d; --p-success-bg:#dcf5e3; --p-success-soft:#effbf2;
  --p-warn:#d97706; --p-warn-2:#e59a4a; --p-warn-soft:#fdeee2;
  --p-destr:#d23a2f; --p-hatch:#ececf0; --p-green:#3f9b55;
  --p-chat:#fafafa;
  --p-shadow:0 14px 34px -16px rgba(20,14,50,.38), 0 2px 6px rgba(20,14,50,.07);
  color-scheme:light;
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
button{font-family:inherit}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:12px}
.page{padding-left:max(24px, env(safe-area-inset-left,0px));padding-right:max(24px, env(safe-area-inset-right,0px));max-width:1488px;margin-inline:auto}

/* ---------- nav ---------- */
/* the header sits on top when the page opens, slides away while the cover is being scrolled, and comes back down once the cover has left (same path both ways) */
.page{padding-top:84px}
.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:20px max(24px, calc((100% - 1440px) / 2));position:fixed;top:0;left:0;right:0;z-index:20;
  background:var(--bg);transform:translateY(-100%);visibility:hidden;
  transition:transform var(--dur-in) var(--ease-out), visibility 0s linear var(--dur-in), background-color var(--dur-theme) var(--ease-out)}
.nav.show{transform:none;visibility:visible;transition:transform var(--dur-in) var(--ease-out), visibility 0s, background-color var(--dur-theme) var(--ease-out)}
.ag-purple .nav{background:var(--accent)}
.ag-purple .nav .logo{color:#fff}
.ag-purple .nav .btn-pri{background:#fff;color:var(--accent)}
.logo{display:flex;color:var(--accent);text-decoration:none;justify-self:center}
.logo svg{height:34px;width:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:44px;padding:0 24px;border-radius:999px;
  font:500 15px/1 var(--font);text-decoration:none;border:1px solid transparent;white-space:nowrap;cursor:pointer;
  transition:transform .14s var(--ease-out), background-color .2s ease, border-color .2s ease}
.btn:active{transform:scale(.97)}
.btn-out{justify-self:start;background:transparent;border-color:var(--line);color:var(--ink)}   /* no fill: the page shows through */
.btn-pri{justify-self:end;background:var(--accent);color:var(--on-accent)}
@media (hover:hover) and (pointer:fine){
  .btn-pri:hover{background:var(--accent-hover)}
  .btn-out:hover{border-color:rgba(0,0,0,.05)}
}

/* ---------- hero cover ---------- */
.hero{--s:1;position:relative;isolation:isolate;overflow:hidden;border-radius:32px;background:#1b1726;color:#fff;
  height:clamp(630px, 57.2vw, 824px)}
.scene{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:60% 45%;opacity:0;transition:opacity .9s ease}
.scene.on{opacity:1}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg, rgba(14,10,26,.62) 0%, rgba(14,10,26,.34) 34%, rgba(14,10,26,0) 58%),
             linear-gradient(0deg, rgba(14,10,26,.42) 0%, rgba(14,10,26,0) 32%)}

.copy{position:absolute;left:80px;top:calc(80px * var(--s));bottom:calc(80px * var(--s));width:min(648px, 46%);display:flex;flex-direction:column;align-items:flex-start}
.place{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px 0 4px;border-radius:999px;
  background:rgba(255,255,255,.16);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-size:14px;font-weight:500}
.place img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.place span{transition:opacity .25s ease}
.copy h1{margin:calc(56px * var(--s)) 0 0;font-weight:500;font-size:min(clamp(64px, 7.4vw, 108px), calc(108px * var(--s)));line-height:1;letter-spacing:-.055em;text-wrap:balance}
.copy p{margin:16px 0 0;max-width:420px;font-size:clamp(17px, calc(20px * var(--s)), 20px);line-height:1.2;color:rgba(255,255,255,.9)}
.dl{margin-top:auto;display:inline-flex;align-items:center;gap:12px;height:clamp(56px, calc(68px * var(--s)), 68px);padding:0 32px;border-radius:999px;background:var(--accent);color:#fff;
  font:500 clamp(17px, calc(20px * var(--s)), 20px)/1 var(--font);text-decoration:none;transition:transform .14s var(--ease-out), background-color .2s ease}
.dl:active{transform:scale(.97)}
.dl svg{width:20px;height:20px}
@media (hover:hover) and (pointer:fine){ .dl:hover{background:var(--accent-hover)} }

/* ---------- chat column ---------- */
/* the chat keeps its design size and is scaled as one piece when the window is short */
.chatcol{position:absolute;top:calc(80px * var(--s));right:clamp(40px, 8.2vw, 114px);width:440px;height:calc((100% - 208px * var(--s)) / var(--s));
  transform:scale(var(--s));transform-origin:100% 0;display:flex;flex-direction:column;align-items:center;gap:24px;
  color:var(--p-fg);transition:opacity .3s ease}
.chatcol.fade{opacity:0}
.island{display:flex;align-items:center;gap:12px;height:56px;padding:8px 8px 8px 8px;border-radius:40px;background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:var(--p-shadow);flex-shrink:0}
.island .stk{display:flex}
.island .stk img{width:40px;height:40px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fff}
.island .stk img+img{margin-left:-24px}
.island .stk img:nth-child(1){z-index:3;position:relative}.island .stk img:nth-child(2){z-index:2;position:relative}
.island .t{display:flex;flex-direction:column;min-width:0}
.island b{font-size:14px;line-height:20px;font-weight:600;white-space:nowrap}
.island .t span{font-size:12px;line-height:16px;color:var(--p-muted);white-space:nowrap}
.live{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;margin-left:12px;margin-right:8px;border-radius:999px;background:var(--p-success-bg);
  color:var(--p-success);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.live i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}

.viewport{position:relative;flex:1;min-height:0;align-self:stretch;overflow:hidden;margin-inline:-24px;padding:0 24px}
.viewport.scrolled{-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14px);mask-image:linear-gradient(to bottom, transparent 0, #000 14px)}
.feed{display:flex;flex-direction:column;gap:12px;padding-bottom:14px;transition:transform .6s var(--ease-out)}

.msg{display:flex;align-items:flex-end;gap:8px;transform-origin:0 100%;animation:msg-in .5s var(--ease-out) both}
.msg.me{justify-content:flex-end;transform-origin:100% 100%}
.msg.out{animation:none;opacity:0;transition:opacity .12s ease}
@keyframes msg-in{from{opacity:0;transform:translateY(12px) scale(.98)}}
.av{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0;box-shadow:0 0 0 2px rgba(255,255,255,.8)}
.bub{width:330px;max-width:calc(100% - 36px);background:var(--p-bg);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--p-shadow)}
.bub.wide{width:368px}
.me .bub{width:auto;max-width:280px;background:var(--p-me);padding:12px 16px}
.bub p{margin:0;font-size:14px;line-height:20px}
.mention{color:var(--p-mention)}
.author{display:flex;align-items:center;gap:4px;font-size:12px;line-height:16px}
.author b{font-weight:600;color:var(--p-name)}
.author span{color:var(--p-muted)}
.ai{display:inline-grid;place-items:center;height:14px;padding:0 3px;border-radius:4px;background:var(--p-primary);color:#fff;font:700 9px/1 var(--font);letter-spacing:.02em}
.meta{align-self:flex-end;display:flex;align-items:center;gap:4px;font-size:11px;line-height:16px;color:var(--p-muted);font-variant-numeric:tabular-nums}
.me .meta{color:var(--p-me-meta)}
.meta svg{width:14px;height:14px}
.typing{width:auto;flex-direction:row;gap:4px;padding:12px 14px}
.typing i{width:6px;height:6px;border-radius:50%;background:#a3a3a3;animation:dot 1s infinite ease-in-out}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}

/* ---------- decision widget (same skeleton in all three scenes) ---------- */
.w{background:var(--p-surface);border-radius:16px;padding:5px 4px}
.w-h{display:flex;align-items:center;gap:12px;padding:12px}
.w-ic{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:var(--p-icon-bg);color:var(--p-primary);flex-shrink:0}
.w-ic svg{width:18px;height:18px;stroke-width:1.5}
.w-t{display:flex;flex-direction:column;min-width:0}
.w-t b{font-size:14px;line-height:20px;font-weight:600;color:var(--p-fg)}
.w-t span{font-size:12px;line-height:16px;color:var(--p-muted)}
.w-p{margin-top:8px;background:var(--p-bg);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:24px}
.lead{margin:0;font-size:14px;line-height:20px;font-weight:600}
.acts{display:flex;gap:8px}
.acts button{position:relative;overflow:hidden;flex:1;height:36px;border-radius:999px;border:1px solid var(--p-border);background:var(--p-bg);color:var(--p-fg);
  font:500 14px/1 var(--font);cursor:default;transition:transform .14s var(--ease-out), background-color .14s ease}
.acts .ok{background:var(--p-btn);border-color:var(--p-btn);color:#fff}
.acts .ok.tap{transform:scale(.96);background:var(--p-primary-press)}
.ring{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(255,255,255,.45);pointer-events:none;
  animation:ring .55s var(--ease-out) both}
@keyframes ring{from{transform:scale(.3);opacity:1}to{transform:scale(2.4);opacity:0}}
.w .fx{animation:rise .45s var(--ease-out) both;animation-delay:var(--d,0ms)}
@keyframes rise{from{opacity:0;transform:translateY(6px)}}

/* heat scale (bakery) */
.scale{position:relative;padding-top:28px}
.ticks{display:grid;grid-template-columns:repeat(21,1fr);gap:1px;align-items:center;height:40px}
.ticks i{height:30px;border-radius:3px;transform-origin:50% 100%;animation:tick .38s var(--ease-out) both;animation-delay:calc(var(--i) * 24ms + 200ms)}
.ticks i.g{background:var(--p-green)}
.ticks i.o{background:var(--p-warn-2)}
.ticks i.now{height:40px;background:var(--p-warn)}
.ticks i.h{background:repeating-linear-gradient(135deg, var(--p-hatch) 0 3px, #f6f6f8 3px 6px)}
@keyframes tick{from{opacity:0;transform:scaleY(.25)}}
.chip{position:absolute;top:0;transform:translateX(-50%);height:22px;padding:0 8px;border-radius:999px;background:var(--p-warn);color:#fff;font:600 11px/22px var(--font);white-space:nowrap;
  animation:pop .4s var(--ease-out) both;animation-delay:820ms}
@keyframes pop{from{opacity:0;transform:translateX(-50%) translateY(4px) scale(.94)}}
.lbls{position:relative;height:16px;margin-top:6px;font-size:12px;line-height:16px;color:var(--p-muted);font-variant-numeric:tabular-nums}
.lbls span{position:absolute;top:0;transform:translateX(-50%)}
.lbls span:first-child{transform:none}.lbls span:last-child{transform:translateX(-100%)}

/* caprese set (shop) */
.set{display:flex;align-items:center;gap:6px}
.set .tile{flex:1;min-width:0;aspect-ratio:1;max-width:80px;border-radius:12px;background:var(--p-tile);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  font-size:12px;font-weight:500;animation:rise .45s var(--ease-out) both;animation-delay:var(--d)}
.set .tile svg{width:22px;height:22px;color:var(--p-fg);stroke-width:1.5}
.set em{font-style:normal;color:var(--p-muted);font-size:14px;animation:rise .45s var(--ease-out) both;animation-delay:var(--d)}
.price{display:flex;align-items:flex-start;gap:6px}
.price b{font-size:28px;line-height:32px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.price s{font-size:14px;line-height:18px;color:var(--p-muted)}

/* payment terms (office) */
.terms{display:flex;flex-direction:column;gap:16px}
.term .row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;line-height:18px;margin-bottom:8px}
.term .row b{font-weight:600}
.term .row span{color:var(--p-muted)}
.term .row strong{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.bar{height:8px;border-radius:4px;background:var(--p-warn-soft);overflow:hidden}
.bar i{display:block;height:100%;border-radius:4px;transform-origin:0 50%;animation:grow .9s var(--ease-out) both;animation-delay:var(--d)}
@keyframes grow{from{transform:scaleX(0)}}
.t-red strong{color:var(--p-destr)} .t-red .bar{background:#f8e3e1} .t-red .bar i{background:var(--p-destr);width:100%}
.t-or strong{color:var(--p-warn)} .t-or .bar i{background:var(--p-warn);width:66.6%}
.verdict{border-radius:12px;background:var(--p-success-soft);padding:16px;color:var(--p-success);display:flex;flex-direction:column;gap:8px}
.verdict span{font-size:13px;line-height:18px}
.verdict b{font-size:28px;line-height:30px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}

/* approved card (what the widget folds into) */
.apr{background:var(--p-surface);border-radius:14px;padding:4px;display:flex;flex-direction:column;gap:4px;animation:rise .35s var(--ease-out) both;animation-delay:120ms}
.apr-top{padding:8px 10px;display:flex;flex-direction:column}
.apr-top b{font-size:14px;line-height:20px;font-weight:600}
.apr-top span{font-size:12px;line-height:16px;color:var(--p-muted)}
.apr-ok{height:36px;border-radius:10px;background:var(--p-success-bg);color:var(--p-success);display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px;font-weight:600}
.apr-ok svg{width:16px;height:16px}

/* ---------- scene switch ---------- */
/* Figma «Landing / Scene Switch» (939:1197): the same pill as the scene tabs below, dark glass on the photo.
   Box 4px padding, 4px gap, 1px black 5% stroke; glass = ink 20% at 62% + blur 18 (CSS 9px).
   Tab 36px, 16px sides, 14/20 medium #fafafa; idle at 70%, active filled with the accent. Same at every width. */
.switch{position:absolute;right:calc(80px * var(--s));bottom:calc(80px * var(--s));display:flex;gap:4px;padding:4px;border-radius:999px;
  background:rgba(0,0,0,.02);border:1px solid rgba(0,0,0,.05);isolation:isolate;z-index:3}
.switch::before{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;background:rgba(10,10,10,.2);opacity:.62;
  backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.switch button{position:relative;display:inline-flex;align-items:center;height:36px;padding:0 16px;border:0;border-radius:999px;background:transparent;
  color:rgba(250,250,250,.7);font:500 14px/20px var(--font);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:color .3s ease, background-color .3s ease, transform var(--dur-press) var(--ease-out)}
.switch button::after{content:"";position:absolute;inset:-4px -2px}   /* 44px hit area on touch */
.switch button:active{transform:scale(.96)}
.switch button[aria-pressed="true"]{color:#fafafa;background:var(--accent)}
@media (hover:hover) and (pointer:fine){ .switch button:not([aria-pressed="true"]):hover{color:#fafafa} }

/* ---------- agentic messenger: the phone pins in the middle, callouts tell what happens (storyboard, Figma Section 3) ---------- */
.ag{position:relative;margin-inline:calc(50% - 50vw)}
.ag-intro{position:relative;z-index:2;text-align:center;padding:120px 24px 0}
.ag-intro h2{margin:0 auto;max-width:none;color:var(--accent);font-weight:500;font-size:clamp(52px, 8.34vw, 120px);line-height:.9;letter-spacing:-.055em}
.ag-intro p{margin:16px auto 0;max-width:420px;color:var(--p-muted);font-size:14px;line-height:1.2}
.ag-track{position:relative}
.ag-pin{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.ag-bg{position:absolute;inset:0;background:var(--bg);transition:background-color var(--dur-theme) var(--ease-out)}
.ag.is-dl .ag-bg{background:var(--accent)}
.ag-stage{position:absolute;left:50%;top:calc(50% + 42px);width:1440px;height:900px;margin:-450px 0 0 -720px;transform:scale(var(--k,1));transform-origin:50% 50%}
.ag-grid{position:absolute;left:252px;top:-56px;width:936px;height:936px;pointer-events:none;transition:opacity .5s ease}
.ag.is-dl .ag-grid{opacity:0}
.ag-phone{position:absolute;left:542px;top:50px;width:357px;height:724px}
.ag-phone>img.ph{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity var(--dur-swap) ease}
.ag-phone>img.ph.on{opacity:1}
/* live chat, laid out like the storyboard's chat list: bottom-anchored, 13.17 gap, 19.8 side inset */
.ag-chat{position:absolute;left:17.8px;top:103.2px;width:321px;height:501.3px;overflow:hidden;background:var(--p-chat);opacity:0;visibility:hidden;transition:opacity var(--dur-swap) ease, visibility 0s linear var(--dur-swap)}
.ag-chat.on{opacity:1;visibility:visible;transition:opacity var(--dur-swap) ease, visibility 0s}
.ag-stack{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;gap:13.17px;padding-bottom:19.9px;will-change:transform}
.ag-m{position:relative;flex:none;margin-left:19.8px}
.ag-m.c{align-self:center;margin-left:0}
.ag-m img{position:absolute;display:block;max-width:none}
.ag-typ .ag-dotty{position:absolute;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:50%;background:var(--p-muted);animation:agdot 1s infinite ease-in-out}
@keyframes agdot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}
.ag-tap{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:rgba(255,255,255,.35);border:1.5px solid rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(0,0,0,.12);pointer-events:none;opacity:0;z-index:2}
.ag-ov{position:absolute;left:17.8px;top:15.1px;width:321px;height:694.4px;border-radius:46px;overflow:hidden;pointer-events:none;visibility:hidden}
.ag-ov.on{visibility:visible}
.ag-notif{position:absolute;max-width:none;opacity:0;transform:translateY(-160%)}
.ag-lines{position:absolute;inset:0;width:1440px;height:900px;overflow:visible;pointer-events:none}
.ag-lines path.ln{fill:none;stroke:var(--accent);stroke-width:1;stroke-dasharray:4 4}
.ag-dot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-ring);pointer-events:none}
.ag-co{position:absolute;width:280px;height:auto;pointer-events:none}
.ag-tabs{position:absolute;left:457.5px;top:822px;width:525px;height:54px}
.ag-tabs img{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity var(--dur-fade) ease}
.ag-tabs img.on{opacity:1}
.ag-tabs button{position:absolute;top:5px;height:44px;border:0;padding:0;border-radius:999px;background:transparent;cursor:pointer}
.ag-dl{position:absolute;opacity:0;visibility:hidden;transition:opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;transform:translateY(6px)}
.ag.is-dl .ag-dl{opacity:1;visibility:visible;transform:none;transition-delay:.15s, .15s, 0s}
.ag-dl.left{left:122px;top:241px;width:340px}
.ag-dl.qr{left:978.5px;top:228px;width:283px}
.ag-dl.stores{left:122px;top:481px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}   /* Figma 1142:33276 vectors, on the stage like the rest of the block */
.ag-dl.stores svg{display:block;height:44px;width:auto}
.ag-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ag.m .ag-co,.ag.m .ag-dot,.ag.m .ag-lines,.ag.m .ag-dl,.ag.m .ag-tabs,.ag.m .ag-tc{display:none}

/* ---------- phones and upright tablets (Figma: Website / Mobile, 360 × 780) ----------
   Nothing is pinned here: the block reads top to bottom, 32px between the parts.
   1 title, 2 description, 3 scene tabs, 4 phone (×0.72 at 360), 5 the hint card, or the store buttons on Download.
   On Download the title and description change and the whole block turns purple. */
.ag-pbox{display:contents}
.ag-mtabs,.ag-mfoot,.ag-intro .dl-copy{display:none}
.ag.m{overflow:hidden;overflow:clip;margin-top:24px;transition:background-color var(--dur-theme) var(--ease-out)}
.ag.m .ag-intro{padding-top:72px}           /* 24 + 72 = the same 96 from the hero to the title as before */
@media (max-width:600px){ .ag.m{margin-top:12px} .ag.m .ag-intro{padding-top:52px} }   /* 12 + 52 = 64 */
.ag.m.is-dl{background:var(--accent)}
.ag.m .ag-track{height:auto !important;margin-top:0 !important}
.ag.m .ag-pin{position:relative;top:auto;height:auto;overflow:visible;display:flex;flex-direction:column;align-items:center;padding:0 0 24px}
.ag.m .ag-bg{display:none}
.ag.m .ag-pbox{display:block;position:relative;flex:none;width:calc(357px * var(--k));height:calc(724px * var(--k));margin-top:32px}
.ag.m .ag-stage{left:0;top:0;margin:0;transform-origin:0 0;transform:translate(calc(-542px * var(--k)), calc(-50px * var(--k))) scale(var(--k))}

/* title + description: the story copy and the download copy share one cell, so switching never moves the tabs */
.ag.m .ag-intro{display:grid;justify-items:center;align-items:start;height:var(--intro-h,auto);transition:height .4s var(--ease-out)}
.ag.m .ag-copy{grid-area:1/1;transition:opacity .35s var(--ease-out), visibility 0s linear .35s}
.ag.m .ag-copy.def{max-width:312px}
.ag.m .ag-intro h2{font-size:44px;line-height:40px;letter-spacing:-.055em}
.ag.m .ag-intro .def p{margin:12px auto 0;max-width:none;font-size:14px;line-height:1.2;color:var(--p-muted)}
.ag.m .ag-intro .dl-copy{display:block;max-width:342px;opacity:0;visibility:hidden;color:#fafafa}
.ag.m .dl-copy h3{margin:0;font-weight:600;font-size:36px;line-height:38px;letter-spacing:-.04em;text-wrap:balance}
.ag.m .dl-copy p{margin:12px 0 0;max-width:none;font-size:14px;line-height:1.2;color:#fafafa}
.ag.m.is-dl .ag-copy.def{opacity:0;visibility:hidden}
.ag.m.is-dl .ag-copy.dl-copy{opacity:1;visibility:visible;transition:opacity .35s var(--ease-out) .1s, visibility 0s}
/* upright tablets: same order, larger type (the 360 frame values above are for phones) */
@media (min-width:600px){
  .ag.m .ag-copy.def{max-width:660px}
  .ag.m .ag-intro h2{font-size:72px;line-height:66px}
  .ag.m .ag-intro .def p{margin-top:16px;max-width:440px;font-size:16px;line-height:1.2}
  .ag.m .ag-intro .dl-copy{max-width:620px}
  .ag.m .dl-copy h3{font-size:60px;line-height:60px}
  .ag.m .dl-copy p{margin:16px auto 0;max-width:440px;font-size:16px;line-height:1.2}
}

/* scene tabs · mobile: the active tab shows icon + label, the rest only the icon.
   They sit at the bottom of the block, 32px under the hint, and ride along the bottom edge of the screen
   while the block is scrolled, so a story can be switched from anywhere without scrolling back up. */
.ag.m .ag-mtabs{display:flex;position:sticky;bottom:calc(24px + env(safe-area-inset-bottom, 0px));z-index:3;margin-top:32px;align-items:center;gap:2px;padding:2px;border-radius:999px;
  /* Figma: fill black 2%, stroke black 5%, the same on the light and the purple state.
     The blur only softens the phone screen behind while the tabs float over it; it adds no colour. */
  background:rgba(0,0,0,.02);border:1px solid rgba(0,0,0,.05);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transition:background-color .25s ease}
/* while it floats over the phone or a card, the page colour goes under the 2% so nothing shows through;
   over the plain background it looks exactly like the docked one */
.ag.m .ag-mtabs.float{background:linear-gradient(rgba(0,0,0,.02), rgba(0,0,0,.02)) rgba(248,249,251,.88)}
.ag.m.is-dl .ag-mtabs.float{background:linear-gradient(rgba(0,0,0,.02), rgba(0,0,0,.02)) rgba(124,58,237,.88)}
.ag-mtabs button{position:relative;display:inline-flex;align-items:center;height:36px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--p-muted);
  font:500 14px/20px var(--font);cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color .3s ease, color .3s ease, padding .3s cubic-bezier(0.32, 0.72, 0, 1), transform var(--dur-press) var(--ease-out)}
.ag-mtabs button::after{content:"";position:absolute;inset:-4px -1px}   /* 44px tall hit area */
.ag-mtabs button:active{transform:scale(.96)}
.ag-mtabs svg{width:16px;height:16px;flex:none}
.ag-mtabs .lb{display:inline-block;max-width:0;margin-left:0;opacity:0;overflow:hidden;white-space:nowrap;
  transition:max-width .3s cubic-bezier(0.32, 0.72, 0, 1), margin-left .3s cubic-bezier(0.32, 0.72, 0, 1), opacity .2s ease}
.ag-mtabs button[aria-pressed="true"]{background:var(--accent);color:#fafafa;padding:0 12px}
.ag-mtabs button[aria-pressed="true"] .lb{max-width:200px;margin-left:4px;opacity:1}
.ag.is-dl .ag-mtabs button{color:rgba(255,255,255,.82)}
.ag.is-dl .ag-mtabs button[aria-pressed="true"]{background:#fff;color:var(--accent)}

/* scene tabs · desktop: Figma «Landing / Scene Tabs» (1129:31635) as real HTML instead of the storyboard picture,
   so the text stays 14/20 like the hero switch at every window size instead of scaling with the stage.
   Box 4px padding, 2px gap, black 2% / 5% stroke; item 44px, 16px sides, icon 16 + 8 gap;
   active medium #fafafa on the accent, idle regular #777974 at 72%. Sits where the picture was (stage y 822..876). */
.ag:not(.m) .ag-tabs{display:none}
.ag:not(.m) .ag-mtabs{display:flex;position:absolute;left:50%;top:min(calc(50% + 42px + 399px * var(--k, 1)), calc(100% - 43px));transform:translate(-50%, -50%);z-index:3;
  align-items:center;gap:2px;padding:4px;border-radius:999px;background:rgba(0,0,0,.02);border:1px solid rgba(0,0,0,.05);
  transition:background-color var(--dur-theme) var(--ease-out), border-color var(--dur-theme) var(--ease-out)}
.ag:not(.m) .ag-mtabs button{height:36px;padding:0 16px;font-weight:500;color:rgba(119,121,116,.72)}   /* 36 like the hero switch */
.ag:not(.m) .ag-mtabs button::after{inset:-4px 0}
.ag:not(.m) .ag-mtabs .lb{max-width:none;margin-left:8px;opacity:1}
.ag:not(.m) .ag-mtabs button[aria-pressed="true"]{padding:0 16px;font-weight:500;color:#fafafa;background:var(--accent)}
.ag:not(.m) .ag-mtabs button[aria-pressed="true"] .lb{margin-left:8px}
@media (hover:hover) and (pointer:fine){ .ag:not(.m) .ag-mtabs button:not([aria-pressed="true"]):hover{color:var(--ink)} }
.ag:not(.m).is-dl .ag-mtabs{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12)}   /* as the QR card: white 8% fill, white 12% stroke */
.ag:not(.m).is-dl .ag-mtabs button{color:rgba(255,255,255,.72)}
.ag:not(.m).is-dl .ag-mtabs button[aria-pressed="true"]{background:#fff;color:var(--accent)}
@media (hover:hover) and (pointer:fine){ .ag:not(.m).is-dl .ag-mtabs button:not([aria-pressed="true"]):hover{color:#fff} }

/* under the phone: the hint card(s), or the store buttons */
.ag.m .ag-mfoot{display:block;position:relative;z-index:2;flex:none;margin-top:32px;width:100%;height:var(--foot-h,154px);transition:height .4s var(--ease-out)}
.ag-cap{display:flex;justify-content:center;gap:16px;height:100%;transition:opacity var(--dur-fade) ease}
.ag-col{position:relative;flex:none;width:280px;height:100%}
.ag-col[data-side="r"]{display:none}
.ag-mfoot.two .ag-col[data-side="r"]{display:block}
.ag-card{position:absolute;left:0;top:0;width:100%;height:auto;max-width:none}
.ag.is-dl .ag-cap{opacity:0}
.ag-stores{position:absolute;top:0;left:50%;display:flex;flex-direction:column;align-items:center;gap:4px;
  opacity:0;visibility:hidden;transform:translate(-50%, 8px);transition:opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s}
.ag-stores svg{display:block;height:44px;width:auto}   /* vector badges from Figma (Website, node 1142:33276): text is outlined, no font needed */
.ag.is-dl .ag-stores{opacity:1;visibility:visible;transform:translate(-50%, 0);transition-delay:.15s, .15s, 0s}

/* ---------- smaller screens ---------- */
@media (max-width:1180px){
  .copy{width:44%}
  .chatcol{right:32px;width:420px}
}
@media (max-width:980px){
  /* stacked cover: copy on top, the live chat under it, the scene switch last */
  .hero{height:auto;padding:40px 40px 32px;display:flex;flex-direction:column;gap:40px}
  /* text now sits over the top of the photo and the chat over its middle: darken top and bottom instead of the left side */
  .hero::before{background:linear-gradient(180deg, rgba(14,10,26,.66) 0%, rgba(14,10,26,.38) 30%, rgba(14,10,26,.12) 55%, rgba(14,10,26,.18) 78%, rgba(14,10,26,.5) 100%)}
  .scene{object-position:58% 30%}
  .copy{position:static;width:auto;max-width:600px}
  .copy h1{margin-top:28px;font-size:clamp(48px, 10.4vw, 84px)}
  .copy p{font-size:18px;line-height:1.2;max-width:480px}
  .dl{margin-top:32px;height:56px;font-size:17px}
  .chatcol{position:static;width:100%;max-width:440px;height:560px;margin-inline:auto;transform:none}
  .switch{position:relative;right:auto;bottom:auto;align-self:center}   /* relative, not static: the glass ::before must stay inside the pill */
  .ag-intro{padding-top:96px}
}
@media (max-width:600px){
  .page{padding-top:68px;padding-left:max(12px, env(safe-area-inset-left,0px));padding-right:max(12px, env(safe-area-inset-right,0px))}
  .nav{padding:12px max(12px, env(safe-area-inset-right,0px)) 12px max(12px, env(safe-area-inset-left,0px))}
  .nav .btn-pri{padding:0 18px}
  .logo svg{height:28px}
  .hero{border-radius:24px;padding:24px 16px 16px;gap:32px}
  .copy h1{margin-top:28px;font-size:clamp(44px, 13vw, 60px);letter-spacing:-.05em}
  .copy p{margin-top:14px;font-size:16px;line-height:1.2}
  .dl{align-self:stretch;justify-content:center;margin-top:28px;padding:0 24px}
  .chatcol{height:540px;gap:20px}
  .bub.wide{width:100%}
  .w-p{padding:16px;gap:20px}
  .ag-intro{padding:64px 9px 0}

  /* ---- cover on a phone: Figma «Website / Section 6» (frames 15-17). One tall card:
     place chip on top, the face, then title / text / button centred, the group chat, the scene switch.
     All numbers below are the 408-wide frame; the card is the screen minus 16px each side. ---- */
  .page{padding-top:84px;padding-left:max(16px, env(safe-area-inset-left,0px));padding-right:max(16px, env(safe-area-inset-right,0px))}
  .nav{padding:20px clamp(12px, calc((100vw - 360px) / 2), 24px)}
  .nav .btn{height:44px;padding:0 24px;font-size:14px;line-height:20px}
  .logo svg{height:34px}
  .hero{padding:0 24px 22px;gap:0;border-radius:24px}
  .scene{object-position:50% 0}
  /* Figma: black 0 % from y 243 (20.7 %) -> 47 % at 54 % of the rest -> 100 % at the bottom */
  .hero::before{background:linear-gradient(180deg, rgba(0,0,0,0) 20.7%, rgba(0,0,0,.47) 63.6%, #000 100%)}
  .place{position:absolute;top:24px;left:50%;transform:translateX(-50%);padding:0 14px 0 4px}
  .copy{align-items:center;text-align:center;max-width:none;padding:calc((100vw - 32px) * .7128) 8px 0}   /* title at y 268 of a 376 card */
  .copy h1{margin:0;font-size:48px;line-height:48px;letter-spacing:-.055em}
  .copy p{margin:8px 0 0;max-width:none;font-size:17px;line-height:1.2;color:rgba(250,250,250,.88)}
  .dl{align-self:stretch;justify-content:center;gap:8px;margin-top:30px;height:56px;padding:0 32px;font-size:17px}   /* button at y 504 */
  .chatcol{margin-top:52px;height:468px;gap:32px;max-width:none}     /* island 56 + 32 + chat 380 */
  .msg:not(.me) .bub:not(.typing){flex:1 1 auto;width:auto}          /* agent bubbles take the row, like Landing / Bubble */
  .msg:not(.me) .bub{border-radius:16px 16px 16px 4px}
  .me .bub{border-radius:16px 16px 4px 16px;padding:16px}
  .switch{margin-top:24px}
}
@media (max-width:399px){   /* 360-399: the 408 frame's header does not fit, keep the same look a little tighter */
  .nav .btn{padding:0 18px}
  .logo svg{height:30px}
}
@media (prefers-reduced-motion: reduce){
  .ag-typ i{animation:none;opacity:.6}
  .msg{animation-name:fade}
  @keyframes fade{from{opacity:0}}
  .feed{transition:none}
  .ticks i,.bar i{animation:none}
  .w .fx,.set .tile,.set em,.chip,.apr{animation-name:fade}
  .ring{display:none}
  .scene{transition-duration:.4s}
  .nav,.nav.show{transition-property:visibility, background-color}
}


/* ======================================================================
   Shared additions: header switch, block engine parts, Business page
   ====================================================================== */

/* ---------- Personal / Business switch (header) ----------
   Built like the story tabs under the phone (Figma «Landing / Scene Tabs»): box 4px padding, 2px gap,
   black 2% fill and 5% stroke; item 36px, 16px sides, icon 16 + 8 gap; active medium #fafafa on the accent.
   On the purple closing screen it takes the tabs' purple look: white 8% / 12%, active white with accent text. */
.pswitch{justify-self:start;display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:rgba(0,0,0,.02);border:1px solid rgba(0,0,0,.05);
  transition:background-color var(--dur-theme) var(--ease-out), border-color var(--dur-theme) var(--ease-out)}
.pswitch a{position:relative;display:inline-flex;align-items:center;height:36px;padding:0 16px;border-radius:999px;text-decoration:none;
  color:rgba(119,121,116,.72);font:500 14px/20px var(--font);white-space:nowrap;-webkit-tap-highlight-color:transparent;
  transition:background-color .3s ease, color .3s ease, padding .3s cubic-bezier(0.32, 0.72, 0, 1), transform var(--dur-press) var(--ease-out)}
.pswitch a::after{content:"";position:absolute;inset:-4px 0}   /* 44px tall hit area */
.pswitch a:active{transform:scale(.96)}
.pswitch svg{width:16px;height:16px;flex:none}
.pswitch .lb{display:inline-block;margin-left:8px;overflow:hidden;
  transition:max-width .3s cubic-bezier(0.32, 0.72, 0, 1), margin-left .3s cubic-bezier(0.32, 0.72, 0, 1), opacity .2s ease}
.pswitch a[aria-current="page"]{background:var(--accent);color:#fafafa}
@media (hover:hover) and (pointer:fine){ .pswitch a:not([aria-current="page"]):hover{color:var(--ink)} }
.ag-purple .pswitch{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12)}
.ag-purple .pswitch a{color:rgba(255,255,255,.72)}
.ag-purple .pswitch a[aria-current="page"]{background:#fff;color:var(--accent)}
@media (hover:hover) and (pointer:fine){ .ag-purple .pswitch a:not([aria-current="page"]):hover{color:#fff} }
/* phones: the same rule as the story tabs at the bottom, the active side shows icon + label, the other only its icon */
@media (max-width:600px){
  .nav{grid-template-columns:auto 1fr auto;column-gap:8px}
  .pswitch{padding:2px}
  .pswitch a{padding:0 10px}
  .pswitch .lb{max-width:0;margin-left:0;opacity:0}
  .pswitch a[aria-current="page"]{padding:0 12px}
  .pswitch a[aria-current="page"] .lb{max-width:110px;margin-left:4px;opacity:1}
}

/* ---------- block engine parts ---------- */
/* typing: the speaker's avatar (cut from the bubble that follows) and a white pill with three dots */
.ag-typ .ag-tav{position:absolute;left:0;top:3.2px;width:19.8px;height:19.8px;border-radius:50%;background-repeat:no-repeat}
.ag-typ .ag-tpill{position:absolute;left:26.3px;top:0;width:44px;height:23px;border-radius:11.5px 11.5px 11.5px 4px;background:#fff;box-shadow:0 1px 2px rgba(20,14,50,.06)}
@media (prefers-reduced-motion: reduce){ .ag-typ .ag-dotty{animation:none;opacity:.6} }

/* per-story copy on the stage (left column of the storyboard), swapped with a fade */
.ag-tc{position:absolute;left:122px;width:340px;opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s}
.ag-tc.on{opacity:1;visibility:visible;transform:none;transition:opacity .45s var(--ease-out) .1s, transform .45s var(--ease-out) .1s, visibility 0s}
.ag-tc .cat{margin:0;font-size:18px;line-height:28px;color:var(--p-muted)}
.ag-tc h3{margin:16px 0 0;font-weight:600;font-size:44px;line-height:46px;letter-spacing:-.04em;color:var(--p-fg)}
.ag-tc .desc{margin:16px 0 0;font-size:18px;line-height:28px;color:var(--p-muted)}
/* «Connected to your organization»: a white plate under the mode copy (Figma 1371:49918) */
.ag-tc .conn{margin-top:40px;padding:32px;border-radius:24px;background:#fff;display:flex;flex-direction:column;gap:24px}
.ag-tc .conn b{display:block;font-weight:500;font-size:12px;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:var(--p-muted)}
.ag-tc .conn ul{margin:16px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.ag-tc .conn li{display:flex;align-items:center;gap:10px;font-size:15px;line-height:22px;color:#404040}
.ag-tc .conn li::before{content:"";flex:none;width:5px;height:5px;border-radius:1px;background:rgba(124,58,237,.4)}
.ag-tc .own{display:flex;align-items:center;gap:8px;margin:0;font-weight:600;font-size:15px;line-height:22px;color:var(--p-fg)}
.ag-tc .own svg{width:16px;height:16px}
/* the mode column (copy + plate) is centred on the phone, as in the storyboard */
.ag-tc.mid{top:414px;translate:0 -50%}

/* per-story copy on phones: under the block title, one cell for all stories so switching never moves the phone */
.ag-tcopy{display:none}
.ag.m .ag-tcopy{display:grid;grid-area:2/1;justify-items:center;margin-top:24px;max-width:342px}
.ag.m .ag-tcopy>div{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .35s var(--ease-out), visibility 0s linear .35s}
.ag.m .ag-tcopy>div.on{opacity:1;visibility:visible;transition:opacity .35s var(--ease-out) .1s, visibility 0s}
.ag.m .ag-tcopy .cat{margin:0;font-size:14px;line-height:20px;color:var(--p-muted)}
.ag.m .ag-tcopy h3{margin:4px 0 0;font-weight:600;font-size:28px;line-height:30px;letter-spacing:-.03em;color:var(--p-fg);text-wrap:balance}
.ag.m .ag-tcopy .desc{margin:8px 0 0;font-size:14px;line-height:1.3;color:var(--p-muted)}
.ag.m.is-dl .ag-tcopy{visibility:hidden}
@media (min-width:600px){ .ag.m .ag-tcopy{max-width:520px} .ag.m .ag-tcopy h3{font-size:36px;line-height:38px} .ag.m .ag-tcopy .desc{font-size:16px} }

/* the closing request block (Business), on the stage and on phones */
.ag-dl.cta{left:122px;top:207px;width:370px;color:#fafafa}
.ag-dl.cta h3{margin:0;font-weight:600;font-size:44px;line-height:46px;letter-spacing:-.04em}
.ag-dl.cta p{margin:16px 0 0;font-size:18px;line-height:28px}
.btn-req{display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 28px;border:0;border-radius:999px;background:#fff;color:var(--p-fg);
  font:500 16px/20px var(--font);cursor:pointer;white-space:nowrap;transition:transform var(--dur-press) var(--ease-out), background-color .2s ease}
.btn-req:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){ .btn-req:hover{background:#f3f0ff} }
.ag-dl.cta .btn-req{margin-top:48px}
.ag-dl.cta .sig{font-size:14px;line-height:20px;margin-top:16px}
.sig{margin:16px 0 0;font-size:14px;line-height:20px;color:rgba(255,255,255,.7)}
.ag-stores .btn-req{height:52px}
.ag-stores .sig{text-align:center}

/* ---------- Business: cover ---------- */
.hero.b2b .copy{width:min(720px, 52%)}
.hero.b2b .place{padding:0 12px}
.hero.b2b .copy h1{margin-top:calc(60px * var(--s));font-size:min(clamp(56px, 6.67vw, 96px), calc(96px * var(--s)));line-height:.917}
.hero.b2b .dl{font-size:clamp(17px, calc(18px * var(--s)), 18px)}
.hero.b2b .scene{object-position:50% 50%}
@media (max-width:980px){
  .hero.b2b{min-height:640px}
  .hero.b2b .copy{width:auto}
  .hero.b2b .copy h1{font-size:clamp(48px, 9vw, 80px)}
}
@media (max-width:600px){
  .hero.b2b{min-height:0;padding-bottom:24px}
  .hero.b2b .scene{object-position:50% 0}
  .hero.b2b .place{padding:0 12px}
  .hero.b2b .copy h1{font-size:44px;line-height:44px}
}

/* ---------- Business: request modal ---------- */
.rq{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px;visibility:hidden;pointer-events:none}
.rq.open{visibility:visible;pointer-events:auto}
.rq-ov{position:absolute;inset:0;background:rgba(10,8,20,.32);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:0;transition:opacity .25s ease}
.rq.open .rq-ov{opacity:1}
.rq-card{position:relative;width:min(520px, 100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;color:var(--p-fg);border-radius:24px;padding:32px;
  box-shadow:0 24px 60px -20px rgba(20,14,50,.45);opacity:0;transform:translateY(8px) scale(.98);transition:opacity .25s ease, transform .3s var(--ease-out)}
.rq.open .rq-card{opacity:1;transform:none}
.rq-card h2{margin:0;text-align:center;font-weight:600;font-size:28px;line-height:34px;letter-spacing:-.02em}
.rq-card .sub{margin:8px 0 0;text-align:center;font-size:14px;line-height:20px;color:var(--p-muted)}
.rq-form{display:flex;flex-direction:column;gap:16px;margin-top:24px}
.fld{display:flex;flex-direction:column;gap:8px}
.fld label{font-weight:500;font-size:14px;line-height:20px}
.fld input,.fld select{height:48px;width:100%;padding:0 16px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;color:var(--p-fg);font:400 16px/24px var(--font);
  appearance:none;-webkit-appearance:none;transition:border-color .15s ease, box-shadow .15s ease}
.fld input::placeholder{color:#a3a3a3}
.fld select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;background-size:16px;padding-right:44px}
.fld select:invalid{color:#a3a3a3}
.fld input:focus,.fld select:focus{outline:none;border-color:var(--accent-ring);box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.fld.bad input,.fld.bad select{border-color:#f0b4ae}
.fld .err{font-size:12px;line-height:16px;color:var(--p-destr)}
.chk{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:20px;color:var(--p-fg);cursor:pointer}
.chk input{appearance:none;-webkit-appearance:none;flex:none;width:16px;height:16px;margin:2px 0 0;border:1px solid #d4d4d4;border-radius:4px;background:#fff center/12px no-repeat;cursor:pointer}
.chk input:checked{background-color:var(--accent);border-color:var(--accent);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.chk.bad input{border-color:var(--p-destr)}
.chk a{color:var(--p-fg);text-underline-offset:2px}
.rq-acts{display:flex;justify-content:space-between;gap:8px;margin-top:8px}
.rq-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--p-border);background:#fff;color:var(--p-fg);
  font:500 14px/20px var(--font);cursor:pointer;transition:transform var(--dur-press) var(--ease-out), background-color .15s ease}
.rq-btn:active{transform:scale(.97)}
.rq-btn.pri{background:var(--accent);border-color:var(--accent);color:#fafafa}
.rq-btn[disabled]{opacity:.6;cursor:default}
@media (hover:hover) and (pointer:fine){ .rq-btn.pri:hover{background:var(--accent-hover)} .rq-btn:not(.pri):hover{background:#f7f7f8} }
.rq-sent{display:none;text-align:center}
.rq.sent .rq-sent{display:block}
.rq.sent .rq-main{display:none}
.rq-ok{display:grid;place-items:center;width:40px;height:40px;margin:0 auto 16px;border-radius:50%;background:var(--p-success-bg);color:var(--p-success)}
.rq-ok svg{width:20px;height:20px}
.rq-sent .rq-acts{margin-top:24px}
.rq-fail{margin:0;font-size:14px;line-height:20px;color:var(--p-destr)}
@media (max-width:600px){ .rq-card{padding:24px} .rq-card h2{font-size:24px;line-height:30px} }
@media (prefers-reduced-motion: reduce){ .rq-card{transition:opacity .2s ease} .rq-card,.rq.open .rq-card{transform:none} }

/* ---------- Privacy Policy ---------- */
.legal{display:grid;grid-template-columns:240px minmax(0, 720px);gap:120px;max-width:1196px;margin:0 auto;padding:96px 24px 120px}
.legal nav{position:sticky;top:104px;align-self:start}
.legal nav b{display:block;font-weight:500;font-size:12px;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:var(--p-muted)}
.legal nav ol{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.legal nav a{font-size:14px;line-height:20px;color:var(--ink-2);text-decoration:none}
.legal nav a:hover{color:var(--ink)}
.legal h1{margin:0;font-weight:600;font-size:56px;line-height:60px;letter-spacing:-.04em}
.legal .dates{margin:12px 0 0;font-size:14px;line-height:20px;color:var(--p-muted)}
.legal section{scroll-margin-top:104px}
.legal h2{margin:48px 0 0;font-weight:600;font-size:20px;line-height:28px}
.legal p,.legal li{font-size:16px;line-height:26px;color:var(--ink-2)}
.legal p{margin:12px 0 0}
.legal ul{margin:12px 0 0;padding-left:20px}
.legal li+li{margin-top:6px}
.foot{display:flex;justify-content:space-between;gap:16px;max-width:1196px;margin:0 auto;padding:24px;border-top:1px solid var(--line);font-size:14px;line-height:20px;color:var(--p-muted)}
.foot a{color:var(--ink);text-decoration:none;font-weight:500}
@media (max-width:900px){ .legal{grid-template-columns:1fr;gap:32px;padding-top:56px} .legal nav{position:static} .legal h1{font-size:40px;line-height:44px} }

/* background grid: grey on the white screens, the same grid in white on the purple closing screen (Figma 1337:45811) */
.ag-grid-white{opacity:0}
.ag.is-dl .ag-grid{opacity:0}
.ag.is-dl .ag-grid.ag-grid-white{opacity:1}

/* phones: no per-story copy under the block title, the block reads like the first page (title, text, phone) */
.ag.m .ag-tcopy{display:none}
/* phones: the header switch is icons only, the same width and height as the Download button next to it */
@media (max-width:600px){
  .pswitch{padding:3px}
  .pswitch a,.pswitch a[aria-current="page"]{width:44px;padding:0;justify-content:center}
  .pswitch .lb,.pswitch a[aria-current="page"] .lb{display:none}
  .nav .btn.btn-pri{width:98px;height:44px;padding:0}
}
