/* "What's New" carousel on the homepage, above Getting Started.
   Flattened from the Claude Design source "Whats New v2.dc.html" (project
   2c4e662f-6cfe-471e-bd73-4d383a312334): the dc-runtime {{ }} bindings become
   classes and data attributes toggled by /whats-new.js, style-hover attributes
   become :hover rules, and <sc-for> becomes a list the same script renders.
   The design canvas centres on 1160px; this ships on the 1200px column that
   #how-it-works above it uses, so the two line up.
   The canvas @font-face block is dropped — index.html already loads Archivo
   and JetBrains Mono. */

#whats-new{padding:32px 40px 40px;background:#060708}
#whats-new .whats-new-inner{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}

/* --- header row: eyebrow and the prev/next pair --- */
#whats-new .whats-new-head{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:44px}
#whats-new .whats-new-eyebrow{font:500 12px/1.5 'JetBrains Mono',monospace;letter-spacing:.16em;color:#3ecfe0}
/* The arrows rest hidden and appear on hover, focus, or once autoplay stops.
   Focus still reveals them, so they stay keyboard reachable. */
#whats-new .whats-new-nav{display:flex;gap:8px;transition:opacity 90ms linear;opacity:0;pointer-events:none}
#whats-new[data-nav="show"] .whats-new-nav{opacity:1;pointer-events:auto}
#whats-new .whats-new-nav button{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid #23272d;background:#14171b;color:#9298a2;font-size:18px;cursor:pointer;transition:color 90ms linear,border-color 90ms linear}
#whats-new .whats-new-nav button:hover{border-color:#3ecfe0;color:#f2f3f4}

/* --- the track --- */
#whats-new .whats-new-window{position:relative;border-radius:8px;overflow:hidden;touch-action:pan-y}
#whats-new .whats-new-track{display:flex;align-items:stretch;transition:transform 180ms cubic-bezier(.2,0,0,1)}
#whats-new .whats-new-slide{flex:0 0 100%;min-width:0;border-radius:8px;padding:clamp(24px,3.4vw,40px);display:flex;flex-direction:column;justify-content:center}
#whats-new .whats-new-split{flex:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:clamp(32px,6vw,80px);align-items:center}
#whats-new .whats-new-copy{display:flex;flex-direction:column;gap:18px;max-width:500px}
#whats-new .whats-new-kicker{font:500 12px/1.5 'JetBrains Mono',monospace;letter-spacing:.16em}
#whats-new .whats-new-slide h2{margin:0;font-size:clamp(30px,3.4vw,42px);font-weight:800;line-height:1.1;letter-spacing:-.035em;text-wrap:balance}
#whats-new .whats-new-slide p{margin:0;font-size:17px;line-height:1.7;text-wrap:pretty}
/* user and root are system identifiers, so they are set in the terminal face
   the rest of the site uses for machine text. */
#whats-new code{font-family:'JetBrains Mono',monospace;font-size:.9em;letter-spacing:-.01em}

/* --- slide 1: Connect Claude --- */
#whats-new .whats-new-claude{background:#f4692e;color:#180a03}
#whats-new .whats-new-claude .whats-new-kicker{color:#10291f}
#whats-new .whats-new-claude h2,#whats-new .whats-new-claude p{color:#180a03}
#whats-new .whats-new-chat{display:flex;flex-direction:column;justify-content:flex-end;gap:12px;min-height:210px}
/* The history wrapper is transparent to layout so bubbles are flex items
   of the chat column and pick up its gap, as they were on the canvas. */
#whats-new .whats-new-history{display:contents}
#whats-new .whats-new-sent{align-self:flex-end;max-width:85%;padding:10px 14px;border-radius:8px;background:rgba(24,10,3,.12);border:1px solid rgba(24,10,3,.28);color:#180a03;font-size:14px;line-height:1.45}
#whats-new .whats-new-composer{display:flex;align-items:flex-end;gap:14px;padding:16px 16px 16px 20px;background:#060708;border:1px solid #060708;border-radius:8px}
#whats-new .whats-new-typed{flex:1;min-width:0;min-height:56px;font-size:clamp(17px,1.7vw,21px);line-height:1.4;color:#f2f3f4;letter-spacing:-.01em}
#whats-new .whats-new-send{flex:none;width:40px;height:40px;border-radius:8px;background:#f4692e;color:#180a03;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800}
@keyframes whats-new-caret{0%{opacity:1}50%{opacity:0}}
#whats-new .whats-new-caret{display:inline-block;width:7px;height:14px;margin-left:3px;vertical-align:-1px;background:#f4692e;animation:whats-new-caret 1.05s steps(1) infinite}

/* --- slide 2: Referrals --- */
#whats-new .whats-new-referral{position:relative;overflow:hidden;background:#10291f;border:1px solid #1d3a2c;color:#f2f3f4}
#whats-new .whats-new-referral .whats-new-kicker{color:#f4692e}
#whats-new .whats-new-referral h2{color:#f2f3f4}
#whats-new .whats-new-referral p{color:#bfc5cd}
#whats-new .whats-new-referral a{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:15px;color:#f2f3f4;text-decoration:underline;text-decoration-color:#3ecfe0;text-underline-offset:6px}
/* The note bleeds out of the panel's padding on the right, so the art runs to
   the panel edge and the slide's own overflow clips it. */
#whats-new .whats-new-bill{position:relative;align-self:stretch;min-height:clamp(240px,38vw,300px);margin:calc(-1 * clamp(24px,3.4vw,40px)) calc(-1 * clamp(24px,3.4vw,40px)) calc(-1 * clamp(24px,3.4vw,40px)) 0}
#whats-new .whats-new-bill img{position:absolute;left:max(4%,calc(100% - 560px));top:50%;width:min(124%,630px);max-width:none;height:auto;border-radius:6px;box-shadow:10px 10px 0 #060708;transform-origin:30% 50%;transition:transform 760ms cubic-bezier(.34,1.56,.64,1) 120ms;transform:translateY(-50%) translateX(90%) rotate(-22deg)}
#whats-new .whats-new-slide[data-active="true"] .whats-new-bill img{transform:translateY(-50%) rotate(-5deg)}
/* If the note is missing, leave clean space rather than a broken-image icon. */
#whats-new .whats-new-bill img[data-missing]{display:none}

/* --- slide 3: Security and permissions --- */
#whats-new .whats-new-security{background:#3ecfe0;color:#06202a}
#whats-new .whats-new-security .whats-new-kicker{color:#060708}
#whats-new .whats-new-security h2,#whats-new .whats-new-security p{color:#06202a}
#whats-new .whats-new-scroll{overflow-x:auto}
/* Nine rows of labels need more room than the equal split the other two
   panels use; below 900px the panel stacks and this no longer applies. */
@media(min-width:900px){
  #whats-new .whats-new-security .whats-new-split{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
}
/* The tick and dash are glyphs; screen readers get the word instead. */
#whats-new .whats-new-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#whats-new .whats-new-security table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45;color:#06202a}
/* site-brand.css and site-components.css reach this table through bare
   thead/tbody selectors meant for the pricing comparison: they grey the row
   headers, fill them with the dark surface, and pin them sticky under 900px.
   None of that belongs on a panel that is already a solid colour. The rules
   below this one re-state the panel's own header and cell styling. */
#whats-new .whats-new-security th,#whats-new .whats-new-security td{background:transparent;position:static;color:#06202a;font-size:15px;font-family:inherit;overflow-wrap:normal;word-break:normal}
#whats-new .whats-new-security thead th{padding:0 12px 14px;border-bottom:1px solid #06202a;text-align:left;font:500 12px 'JetBrains Mono',monospace;letter-spacing:.1em}
#whats-new .whats-new-security thead th:first-child{width:36%;padding:0 12px 14px 0}
#whats-new .whats-new-security thead th:last-child{padding:0 0 14px 12px}
#whats-new .whats-new-security tbody th{padding:10px 12px 10px 0;border-bottom:1px solid rgba(6,32,42,.28);text-align:left;font-weight:700}
#whats-new .whats-new-security tbody td{padding:10px 12px;border-bottom:1px solid rgba(6,32,42,.28)}
#whats-new .whats-new-security tbody td:last-child{padding:10px 0 10px 12px}
#whats-new .whats-new-security tbody tr:last-child th{padding:14px 12px 0 0;border-bottom:0}
#whats-new .whats-new-security tbody tr:last-child td{padding:14px 12px 0;border-bottom:0}
#whats-new .whats-new-security tbody tr:last-child td:last-child{padding:14px 0 0 12px}

/* #how-it-works drops to a 16px safe-area gutter under 900px; match it so the
   two columns keep the same edges all the way down. */
@media(max-width:900px){
  #whats-new{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
}
@media(max-width:767px){
  #whats-new{padding-top:16px;padding-bottom:36px}
  #whats-new .whats-new-security th,#whats-new .whats-new-security td{font-size:13px}
  #whats-new .whats-new-security thead th{font-size:11px}
}
/* Without the controller, every panel remains readable in normal flow.
   Enhancement opts into the existing carousel; no content is clipped away. */
#whats-new:not([data-enhanced]) .whats-new-nav{display:none}
#whats-new:not([data-enhanced]) .whats-new-window{overflow:visible}
#whats-new:not([data-enhanced]) .whats-new-track{display:grid;gap:24px}
#whats-new:not([data-enhanced]) .whats-new-bill img{transform:translateY(-50%) rotate(-5deg)}

@media(prefers-reduced-motion:reduce){
  :where(html:not([data-ios-motion])) #whats-new .whats-new-track,:where(html:not([data-ios-motion])) #whats-new .whats-new-bill img,:where(html:not([data-ios-motion])) #whats-new .whats-new-nav{transition:none}
  :where(html:not([data-ios-motion])) #whats-new .whats-new-caret{animation:none}
}
