/* PromptMax — design system v2 (18 okt 2026). One family, greys as hierarchy, no decoration. */
@font-face{font-family:"Hanken Grotesk";src:url(fonts/hanken-grotesk-latin.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  --ink:#111113;--ink-2:#3a3a40;--muted:#5f6068;--subtle:#8a8b92;
  --line:#e7e7ea;--line-2:#f0f0f2;--line-strong:#d2d2d7;
  --surface:#ffffff;--surface-2:#f7f7f8;--surface-3:#f1f1f3;
  --radius-s:8px;--radius:10px;--radius-m:12px;--radius-l:16px;
  --wrap:1180px;--gutter:32px;
  --ease:cubic-bezier(.2,.7,.2,1);
  --font:"Hanken Grotesk",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:24px}
body{margin:0;background:var(--surface);color:var(--ink);font:400 16px/1.5 var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
h1,h2,h3,p{margin:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
img,svg{display:block;max-width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus{outline:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}
.wrap{width:100%;max-width:calc(var(--wrap) + var(--gutter)*2);margin:0 auto;padding:0 var(--gutter)}
.icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* Private preview strip (prototype + ?pm_preview=1 only) */
.demo-strip{display:flex;align-items:center;justify-content:center;gap:8px;min-height:32px;padding:6px 16px;background:var(--surface-2);border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);text-align:center}
.demo-strip strong{color:var(--ink);font-weight:600}
.demo-dot{width:6px;height:6px;border-radius:50%;background:#d48a20;flex:none}

/* Header */
.site-header{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:16px;font-weight:650;letter-spacing:-.02em;white-space:nowrap}
.brand-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:var(--ink);color:#fff}
.brand-mark .icon{width:14px;height:14px;stroke-width:2}
.top-nav{display:flex;gap:4px}
.top-nav a{padding:8px 12px;border-radius:var(--radius-s);font-size:14px;font-weight:500;color:var(--muted);transition:color .15s,background-color .15s}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;border-radius:var(--radius);border:1px solid transparent;font-size:14px;font-weight:600;letter-spacing:-.005em;white-space:nowrap;transition:background-color .15s,border-color .15s,color .15s}
.btn-primary{background:var(--ink);color:#fff}
.btn-secondary{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
.btn .icon{width:15px;height:15px}

/* Hero */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);align-items:center;gap:72px;padding-top:64px;padding-bottom:80px}
.hero h1{font-size:clamp(40px,4.9vw,62px);line-height:1.02;font-weight:620;letter-spacing:-.045em;text-wrap:balance;max-width:12.5em}
.hero-lead{margin-top:20px;max-width:30em;font-size:18px;line-height:1.5;color:var(--muted);text-wrap:pretty}
.search{display:flex;align-items:center;gap:8px;margin-top:32px;max-width:600px;height:60px;padding:0 6px 0 16px;border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);box-shadow:0 1px 2px rgba(17,17,19,.04);transition:border-color .15s,box-shadow .15s}
.search:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px rgba(17,17,19,.08)}
.search>.icon{width:18px;height:18px;color:var(--subtle)}
.search input{flex:1;min-width:0;height:100%;border:0;background:transparent;font-size:16px;outline:none}
.search input::placeholder{color:var(--subtle)}
.search input::-webkit-search-cancel-button{-webkit-appearance:none}
.search .btn{height:46px;padding:0 18px}
.suggest{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;font-size:13px;color:var(--muted)}
.suggest>span{margin-right:2px}
.chip[hidden],.suggest[hidden],.topics[hidden]{display:none!important}
.chip{height:32px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface);font-size:13px;color:var(--ink-2);transition:border-color .15s,background-color .15s}

/* Max */
.hero-art{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.hero-art-frame{width:100%}
.hero-art-frame{position:relative;height:340px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface-2);overflow:hidden}
.max-stage{position:relative;width:100%;height:100%;margin:0 auto}
.max-figure{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}
.max-widget{transform-box:fill-box;transform-origin:50% 70%}
@media(prefers-reduced-motion:no-preference){.max-intro .max-widget{animation:max-widget-in .8s var(--ease) backwards;animation-delay:calc(.45s + var(--i) * .42s)}}
@keyframes max-widget-in{from{opacity:0;transform:translateY(36px) scale(.93)}to{opacity:1;transform:none}}
.max-trigger{padding:0 16px 0 18px}
.max-trigger[aria-expanded="true"]{background:var(--ink-2)}

/* Collection */
.highlights{padding-bottom:56px}
.highlights-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}
.highlights-head h2{font-size:28px;line-height:1.15;font-weight:620;letter-spacing:-.03em}
.highlights-head span{font-size:12px;color:var(--subtle)}
.highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.highlight-card{display:flex;flex-direction:column;min-width:0;min-height:222px;padding:22px;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface-2)}
.highlight-kicker{align-self:flex-start;font-size:11px;line-height:1.35;font-weight:650;letter-spacing:.055em;text-transform:uppercase;color:var(--muted)}
a.highlight-kicker{text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.highlight-card h3{margin-top:15px;font-size:23px;line-height:1.18;font-weight:650;letter-spacing:-.035em;text-wrap:balance}
.highlight-card p{margin-top:9px;font-size:14px;line-height:1.4;color:var(--muted)}
.highlight-action{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;width:100%;margin-top:auto;padding:10px 0 0;border:0;border-top:1px solid var(--line-strong);background:transparent;text-align:left;font-size:13px;font-weight:650;color:var(--ink)}
.highlight-action span{font-size:17px;line-height:1}
.guide-dialog .card-dialog-body{max-height:calc(100dvh - 110px)}
.guide-block{margin-top:22px}
.guide-block + .guide-block{padding-top:22px;border-top:1px solid var(--line)}
.guide-block h3{font-size:18px;line-height:1.3;font-weight:650}
.guide-block p,.guide-block li{font-size:14px;line-height:1.55;color:var(--muted)}
.guide-block p,.guide-block ol{margin:9px 0 0}
.guide-block ol{padding-left:20px}
.guide-block a{display:inline-block;margin-top:12px;font-size:13px;font-weight:600;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.guide-block code{padding:1px 4px;border-radius:4px;background:var(--surface-2);font-size:13px}
.collection{padding-bottom:96px}
.collection-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-top:56px;border-top:1px solid var(--line)}
.collection-head h2{font-size:28px;line-height:1.15;font-weight:620;letter-spacing:-.03em}
.result-count{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.collection-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px}
.type-filters{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface-2)}
.type-filters button{height:36px;min-width:76px;padding:0 13px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:600}
.type-filters button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px rgba(17,17,19,.1)}
.collection-model{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}
.collection-model[hidden]{display:none}
.collection-model select{height:40px;padding:0 30px 0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--surface);color:var(--ink);font-size:14px;font-weight:600;cursor:pointer}
.collection-explainer{margin-top:10px;color:var(--muted);font-size:13px}
.collection-tools{display:flex;align-items:baseline;gap:14px}
.show-all{height:32px;padding:0 10px;border:0;border-radius:var(--radius-s);background:transparent;font-size:14px;font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:4px}
.show-all[hidden]{display:none}
.topics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:20px 0 28px}
.topic{display:flex;flex-direction:column;gap:10px;padding:6px 6px 12px;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface);text-align:left;transition:border-color .15s,box-shadow .15s}
.topic-art{display:grid;place-items:center;height:124px;border-radius:7px;background:var(--surface-2);overflow:hidden}
.topic-art img{width:auto;max-width:88%;height:104px;object-fit:contain;transition:transform .3s var(--ease)}
.topic-text{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 6px}
.topic-name{font-size:13.5px;line-height:1.3;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.topic-count{flex:none;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.topic[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.topic[aria-pressed="true"] .topic-art{background:var(--surface-3)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px}
.card{display:grid;grid-template-rows:16px 50px 43px 30px minmax(0,1fr) 44px;row-gap:8px;min-width:0;height:290px;padding:20px;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface);transition:border-color .15s}
.card-meta{font-size:11px;line-height:16px;font-weight:650;letter-spacing:.07em;color:var(--muted)}
.card-source-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;font-size:12px;line-height:18px;color:var(--muted)}
.card-source{display:inline-flex;align-items:center;gap:4px;flex:none;margin-left:auto;color:var(--muted);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px;transition:color .15s,text-decoration-color .15s}
.card-source span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-source .icon{width:12px;height:12px}
.card h3{margin:0;font-size:20px;line-height:1.18;font-weight:650;letter-spacing:-.028em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:balance;hyphens:auto}
.card-desc{margin:0;font-size:14.5px;line-height:1.42;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-preview-trigger{align-self:start;justify-self:start;height:30px;padding:0;border:0;background:transparent;color:var(--ink-2);font-size:13px;font-weight:600;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.card-actions{display:flex;gap:8px}
.card-actions .btn{flex:1;min-width:0;justify-content:space-between}
.card-actions .btn span{overflow:hidden;text-overflow:ellipsis}
.card-dialog{width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--line-strong);border-radius:var(--radius-l);background:var(--surface);color:var(--ink);box-shadow:0 24px 80px rgba(17,17,19,.18)}
.card-dialog::backdrop{background:rgba(17,17,19,.46);backdrop-filter:blur(3px)}
.card-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid var(--line)}
.card-dialog-head span{font-size:11px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.card-dialog-head button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--radius-s);background:transparent;color:var(--muted)}
.card-dialog-head button:hover{background:var(--surface-2);color:var(--ink)}
.card-dialog-body{padding:24px 24px 20px;overflow:auto}
.card-dialog-body h2{font-size:26px;line-height:1.15;font-weight:650;letter-spacing:-.035em}
.card-dialog-body>p{margin-top:10px;color:var(--muted);font-size:15px;line-height:1.5}
.card-dialog-content{max-height:min(42vh,380px);overflow:auto;margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface-2);font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.card-dialog-body>a{display:inline-block;margin-top:18px;color:var(--muted);font-size:13px;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.card-dialog-foot{display:flex;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--line)}
.model-select{position:relative;flex:none;width:112px}
.model-select[hidden]{display:none}
.model-select select{width:100%;height:44px;padding:0 30px 0 12px;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface);font-size:14px;font-weight:500;-webkit-appearance:none;appearance:none;cursor:pointer;transition:border-color .15s}
.model-select .icon{position:absolute;right:10px;top:50%;width:14px;height:14px;margin-top:-7px;color:var(--muted);pointer-events:none}
.load-more{display:flex;margin:32px auto 0}
.load-more[hidden]{display:none}
.empty-state{padding:48px 24px;border:1px dashed var(--line-strong);border-radius:var(--radius-m);text-align:center;color:var(--muted)}
.empty-state[hidden]{display:none}
.empty-state-message{display:block;max-width:54ch;margin-inline:auto;line-height:1.5}
.empty-state-action{margin:18px auto 0}

/* Toast after a successful copy + open */
.status-toast{position:fixed;left:50%;bottom:24px;z-index:50;display:flex;align-items:center;gap:10px;max-width:min(460px,calc(100vw - 32px));padding:12px 16px;border-radius:var(--radius-m);background:var(--ink);color:#fff;font-size:14px;font-weight:500;line-height:1.4;box-shadow:0 10px 30px rgba(17,17,19,.22);transform:translateX(-50%);pointer-events:none}
.status-toast[hidden]{display:none}
.status-toast .icon{width:16px;height:16px;stroke-width:2.2}
@media(prefers-reduced-motion:no-preference){.status-toast{animation:toast-in .22s var(--ease) both}}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translateX(-50%)}}

/* Footer */
.site-footer{border-top:1px solid var(--line)}
.footer-help{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:40px;padding-bottom:40px}
.footer-help h2{font-size:25px;line-height:1.2;font-weight:650;letter-spacing:-.025em}
.footer-help p{margin-top:6px;color:var(--muted);font-size:15px}
.footer-help .btn{flex:none}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:72px;font-size:13px;color:var(--muted)}
.footer-inner .brand{font-size:14px}
.footer-inner .brand-mark{width:22px;height:22px;border-radius:6px}

/* Destination (after a card action) */
.destination{position:fixed;inset:0;z-index:30;overflow:auto;background:var(--surface-2)}
.destination[hidden]{display:none}
.destination-shell{max-width:760px;min-height:100%;margin:0 auto;padding:0 24px 64px}
.destination-top{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;border-bottom:1px solid var(--line)}
.back-button{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 10px 0 6px;margin-left:-6px;border:0;border-radius:var(--radius-s);background:transparent;font-size:14px;font-weight:600}
.destination-demo{font-size:12px;font-weight:500;color:var(--muted);text-align:right}
.destination-body{margin-top:56px}
.destination-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:24px;border-radius:var(--radius-m);background:var(--ink);color:#fff}
.destination-icon .icon{width:20px;height:20px}
.destination-eyebrow{margin-bottom:10px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.destination-body h2{font-size:clamp(30px,4vw,42px);line-height:1.08;font-weight:620;letter-spacing:-.035em;text-wrap:balance}
.destination-note{margin-top:14px;max-width:36em;font-size:16px;line-height:1.55;color:var(--muted)}
.skill-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:24px}
.skill-facts[hidden]{display:none}
.skill-facts>div{padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.skill-facts span{display:block;margin-bottom:4px;font-size:12px;color:var(--muted)}
.skill-facts strong{display:block;font-size:13.5px;line-height:1.35;font-weight:600}
.destination-source{margin-top:20px;font-size:13px;line-height:1.6;color:var(--muted)}
.destination-source a:not(.btn){color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.destination-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.destination-composer{margin-top:24px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface);overflow:hidden}
.composer-label{padding:12px 18px;border-bottom:1px solid var(--line-2);font-size:12px;font-weight:600;color:var(--muted)}
.composer-text{min-height:160px;padding:20px 18px 24px;font-size:15.5px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 18px;border-top:1px solid var(--line-2);font-size:12.5px;color:var(--muted)}
.fake-send{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:var(--radius-s);background:var(--ink);color:#fff}
.fake-send .icon{width:15px;height:15px}

/* Max collection guide: dark panel, site shifts left */
.max-chat{grid-column:2;position:sticky;top:0;z-index:40;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;background:#121215;color:#f4f4f6;border-left:1px solid #2a2a30}
.max-chat[hidden]{display:none}
.max-chat-head{display:flex;align-items:center;gap:12px;height:64px;padding:0 12px 0 20px;border-bottom:1px solid #2a2a30;background:#16161a}
.max-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:#f4f4f6;color:#111113;font-size:14px;font-weight:650}
.max-chat-head>div:nth-child(2){display:flex;flex-direction:column;min-width:0;line-height:1.25}
.max-chat-head strong{font-size:15px;font-weight:620;letter-spacing:-.01em}
.max-chat-head span{font-size:12.5px;color:#a3a3ad}
.max-close{display:grid;place-items:center;margin-left:auto;width:40px;height:40px;border:0;border-radius:var(--radius-s);background:transparent;color:#b4b4bd}
.max-close .icon{width:18px;height:18px}
.max-close:focus-visible,.max-chat-form button:focus-visible{outline-color:#f4f4f6}
.max-chat-content{flex:1;min-height:0;overflow:auto;padding:28px 20px}
.max-chat-content h2{font-size:26px;line-height:1.15;font-weight:650;letter-spacing:-.03em}
.max-chat-content>p{margin-top:8px;color:#b8b8c0;font-size:15px;line-height:1.5}
.max-examples{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}
.max-examples button{min-height:34px;padding:5px 11px;border:1px solid #3a3a42;border-radius:8px;background:#202025;color:#e3e3e7;font-size:12.5px}
.max-results{display:grid;gap:10px;margin-top:28px}
.max-results-label,.max-result-type{font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:#a7a7b0}
.max-result{padding:16px;border:1px solid #33333a;border-radius:var(--radius-m);background:#1e1e23}
.max-result h3{margin-top:8px;font-size:18px;line-height:1.25;font-weight:650;letter-spacing:-.02em}
.max-result p{margin-top:6px;font-size:13.5px;line-height:1.45;color:#b8b8c0}
.max-result-action{min-height:38px;margin-top:12px;padding:0 12px;border:1px solid #777780;border-radius:8px;background:transparent;color:#fff;font-size:13px;font-weight:600}
.max-empty{padding:14px;border:1px solid #33333a;border-radius:var(--radius-m);background:#1e1e23;color:#c5c5cc;font-size:14px;line-height:1.5}
.max-chat-form{display:flex;align-items:flex-end;gap:8px;margin:0 16px;padding:8px;border:1px solid #3a3a42;border-radius:var(--radius-m);background:#1b1b20;transition:border-color .15s,box-shadow .15s}
.max-chat-form:focus-within{border-color:#f4f4f6;box-shadow:0 0 0 3px rgba(244,244,246,.12)}
.max-chat-form textarea{flex:1;min-width:0;min-height:44px;max-height:160px;padding:10px 6px;border:0;background:transparent;color:#f4f4f6;resize:none;font-size:15px;line-height:1.45;outline:none}
.max-chat-form textarea::placeholder{color:#8e8e98}
.max-chat-form button{display:grid;place-items:center;flex:none;width:40px;height:40px;border:0;border-radius:var(--radius-s);background:#f4f4f6;color:#111113}
.max-chat-form button .icon{width:16px;height:16px}
.max-chat-note{padding:10px 20px 16px;font-size:12px;line-height:1.4;color:#a3a3ad}
body.max-chat-open{display:grid;grid-template-columns:minmax(0,1fr) min(520px,40vw);align-items:start}
body.max-chat-open .site-shell{grid-column:1;min-width:0}
body.max-chat-open .demo-strip{grid-column:1}
body.max-chat-open .hero{grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:40px}
body.max-chat-open .hero h1{font-size:clamp(36px,3.3vw,48px)}
body.max-chat-open .hero-art-frame{height:300px}
body.max-chat-open .topics{grid-template-columns:repeat(3,minmax(0,1fr))}
body.max-chat-open .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(prefers-reduced-motion:no-preference){.max-chat{animation:max-chat-in .24s var(--ease) both}}
@keyframes max-chat-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}

/* Hover only where hover exists */
@media(hover:hover){
  .top-nav a:hover{color:var(--ink);background:var(--surface-3)}
  .btn-primary:hover{background:#2a2a2f}
  .btn-secondary:hover{background:var(--ink);border-color:var(--ink);color:#fff}
  .chip:hover{border-color:var(--line-strong);background:var(--surface-2)}
  .topic:hover{border-color:var(--line-strong)}
  .topic:hover .topic-art img{transform:scale(1.04)}
  .topic[aria-pressed="true"]:hover{border-color:var(--ink)}
  .show-all:hover{text-decoration-color:var(--ink)}
  .card:hover{border-color:var(--line-strong)}
  .card-source:hover{color:var(--ink);text-decoration-color:currentColor}
  .model-select select:hover{border-color:var(--subtle)}
  .back-button:hover{background:var(--surface-3);color:var(--ink)}
  .max-close:hover{background:#26262c;color:#fff}
  .max-chat-form button:hover{background:#fff}
}
.btn:active,.chip:active,.topic:active{transform:translateY(.5px)}

/* Short laptop screens: keep a glimpse of the collection above the fold */
@media(min-width:861px) and (max-height:820px){
  .hero{padding-top:36px;padding-bottom:48px}
  .hero h1{font-size:clamp(40px,4.4vw,54px)}
  .search{margin-top:26px}
  .hero-art-frame{height:290px}
  .collection-head{padding-top:40px}
}

/* Responsive */
@media(max-width:1100px){
  .highlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:48px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .topic-art{height:116px}
  .topic-art img{height:96px}
  body.max-chat-open .hero{grid-template-columns:1fr}
  body.max-chat-open .hero-art{max-width:440px}
}
@media(max-width:860px){
  .hero{grid-template-columns:1fr;gap:40px;padding-top:40px;padding-bottom:56px}
  .hero-art{max-width:520px}
  body.max-chat-open .cards{grid-template-columns:1fr}
}
@media(max-width:800px){
  body.max-chat-open{display:block}
  body.max-chat-open .site-shell,body.max-chat-open .demo-strip{display:none}
  .max-chat{position:fixed;inset:0}
}
@media(max-width:640px){
  :root{--gutter:18px}
  .site-header{height:56px}
  .hero{padding-top:28px}
  .hero h1{font-size:clamp(36px,10.4vw,44px);letter-spacing:-.04em}
  .hero-lead{margin-top:14px;font-size:16.5px}
  .search{margin-top:24px;height:56px}
  .search .btn{height:42px;padding:0 14px}
  .hero-art-frame{height:250px}
  .hero-art-frame .max-stage{width:80%}
  .demo-strip span:last-child{display:none}
  .highlights{padding-bottom:40px}
  .highlights-head{align-items:flex-start;flex-direction:column;gap:4px}
  .highlights-head h2{font-size:24px}
  .highlight-grid{grid-template-columns:1fr;gap:12px}
  .highlight-card{min-height:202px;padding:20px}
  .collection{padding-bottom:64px}
  .collection-head{padding-top:40px}
  .collection-head h2{font-size:24px}
  .collection-controls{align-items:flex-start;flex-direction:column;gap:12px}
  .type-filters{width:100%}
  .type-filters button{flex:1}
  .collection-model{width:100%;justify-content:space-between}
  .topics{display:flex;gap:10px;margin:16px calc(var(--gutter)*-1) 20px;padding:2px var(--gutter);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--gutter);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .topics::-webkit-scrollbar{display:none}
  .topic{flex:0 0 152px;scroll-snap-align:start}
  .topic-art{height:88px}
  .topic-art img{height:72px}
  .cards{grid-template-columns:minmax(0,1fr);gap:12px}
  .card{height:290px}
  .card-dialog-body{padding:20px}
  .card-dialog-foot{padding:14px 20px}
  .footer-help{align-items:flex-start;flex-direction:column;gap:20px}
  .footer-help h2{font-size:23px}
  .skill-facts{grid-template-columns:1fr}
  .destination-body{margin-top:36px}
  .destination-demo{display:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Standard WordPress pages (index.php) */
.pm-standard-page{padding-top:56px;padding-bottom:96px;max-width:calc(720px + var(--gutter)*2)}
.pm-standard-page h1{font-size:clamp(32px,4vw,44px);line-height:1.08;font-weight:620;letter-spacing:-.035em;margin-bottom:24px}
.pm-standard-page p,.pm-standard-page li{font-size:17px;line-height:1.65;color:var(--ink-2)}
.pm-standard-page p+p{margin-top:1em}
.pm-standard-page a{text-decoration:underline;text-underline-offset:3px}
.pm-standard-page a.btn{text-decoration:none;color:#fff}
