/* Superb's product pages: one dark system for every page except the landing, which keeps its own scenes.
   True neutral greys on near-black, white for the primary action, two-tone headlines (the <em> half recedes),
   flat surfaces that answer the pointer, and Superb's glacier only where the brand speaks: the mark, focus rings
   and the current place in a list. Loaded after site.css and portfolio.css, so it wins without !important. */
:root{
  --ground:#0a0a0a;--surface:#111;--surface-2:#161616;--raise:#1c1c1c;
  --ink:#ededed;--ink-2:#a1a1a1;--faint:#737373;--line:#ffffff14;--line-2:#ffffff29;
  --accent:#ededed;--glacier:#c1c1c1;--ease:cubic-bezier(.23,1,.32,1);
  color-scheme:dark;
}
body:not(.landing-page){color:var(--ink);background:var(--ground)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body:not(.landing-page) main{position:relative}

/* Type */
/* Element defaults for the older pages, held to element specificity so the design system's classes (page/superb.css) win. */
:where(body:not(.landing-page)) :is(h1,h2,h3,h4){color:var(--ink);font-weight:500;letter-spacing:-.04em}
body:not(.landing-page) .subpage h1{font-size:clamp(44px,6.2vw,84px);line-height:1.02;letter-spacing:-.055em;max-width:16ch}
:where(body:not(.landing-page)) .site-section p,:where(body:not(.landing-page)) li,:where(body:not(.landing-page)) dd{color:var(--ink-2)}
body:not(.landing-page) .eyebrow{font:500 11.5px/1.4 'Geist Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
:where(body:not(.landing-page)) a{color:var(--ink)}
body:not(.landing-page) .text-link,body:not(.landing-page) .site-section p a,body:not(.landing-page) li a{color:var(--ink);text-underline-offset:4px;text-decoration-color:#ffffff4d;transition:text-decoration-color .16s}
body:not(.landing-page) :is(.text-link,.site-section p a,li a):hover{text-decoration-color:var(--ink)}
body:not(.landing-page) .small-note,body:not(.landing-page) .status-text{color:#8a8a8a}
body:not(.landing-page) code{background:#ffffff12;color:#e5e5e5;border-radius:4px;padding:1px 5px}
body:not(.landing-page) pre{background:var(--surface)!important;border:1px solid var(--line);color:#e5e5e5}
body:not(.landing-page) hr{border:0;border-top:1px solid var(--line)}

/* Actions */
body:not(.landing-page) .site-button{background:#ededed;color:#0a0a0a;border:1px solid #ededed;border-radius:10px;font-weight:600;min-height:46px;transition:background .16s,border-color .16s,transform .16s var(--ease)}
body:not(.landing-page) .site-button:hover{background:#fff;border-color:#fff;color:#0a0a0a}
body:not(.landing-page) .site-button:active{transform:scale(.96)}

/* Surfaces */
body:not(.landing-page) :is(.pricing-options section,.product-features article,.portfolio-card,.product-example,.kit-steps li,.challenge-tile,.prompt-card,.sample-page,.result-panel,.meaning-feature,.release-list>*,.lib-book,.suite-row){
  background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px;color:var(--ink);transition:border-color .2s,background-color .2s,transform .16s var(--ease)}
body:not(.landing-page) :is(.pricing-options section,.product-features article,.portfolio-card,.challenge-tile,.prompt-card):hover{border-color:var(--line-2)!important;background:var(--surface-2)!important}
body:not(.landing-page) :is(a.portfolio-card,a.challenge-tile,a.prompt-card):active{transform:scale(.99)}
body:not(.landing-page) .pricing-options section:nth-child(2){border-color:var(--line-2)!important}
body:not(.landing-page) .pricing-options section>span{font:500 11px/1 'Geist Mono',monospace;letter-spacing:.12em;color:var(--ink-2)}
body:not(.landing-page) .pricing-options h2{color:var(--ink)}
body:not(.landing-page) .pricing-options h2 small,body:not(.landing-page) .pricing-options p{color:var(--ink-2)}
body:not(.landing-page) .pricing-options li{color:#c7c7c7}
body:not(.landing-page) .portfolio-card .product-status,body:not(.landing-page) .product-status{color:var(--ink-2)}
body:not(.landing-page) .product-lockup{filter:invert(1) hue-rotate(180deg) brightness(1.15)}

/* Rules, lists, questions */
body:not(.landing-page) details{border-color:var(--line)!important}
:where(body:not(.landing-page)) summary{color:var(--ink);cursor:pointer}
body:not(.landing-page) .pricing-details details{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin:10px 0}
body:not(.landing-page) .pricing-nav a{color:var(--ink-2);text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:13px}
body:not(.landing-page) .pricing-nav a:hover{color:var(--ink);border-color:var(--line-2)}

/* Fields */
body:not(.landing-page) :is(input,textarea,select){background:#0f0f0f;color:var(--ink);border:1px solid var(--line-2);border-radius:10px}
body:not(.landing-page) :is(input,textarea)::placeholder{color:#6b6b6b}
body:not(.landing-page) :is(input,textarea,select):focus{outline:2px solid #c1c1c1aa;outline-offset:1px}
:where(body:not(.landing-page)) label{color:var(--ink-2)}

/* Header and footer */

/* Docs */
.docs-page{background:var(--ground)!important}
.docs-page .docs-sidebar,.docs-page .docs-toc a{border-color:var(--line)!important}
.docs-page .docs-navigation nav a,.docs-page .docs-toc a{color:var(--ink-2)}
.docs-page .docs-navigation nav a:hover,.docs-page .docs-results a:hover,.docs-page .docs-overview-grid>a:hover{background:#ffffff0d;color:var(--ink)}
.docs-page .docs-navigation nav a[aria-current],.docs-page .docs-toc a[aria-current]{background:#ffffff0f;color:var(--ink);border-left-color:var(--glacier)}
.docs-page .docs-content p,.docs-page .docs-content li{color:var(--ink-2)}
.docs-page .docs-content a{color:var(--ink);text-underline-offset:3px;text-decoration-color:#ffffff59}
.docs-page .docs-content th{background:var(--surface)}
.docs-page .docs-content :is(td,th),.docs-page .docs-overview-grid,.docs-page .docs-overview-grid>a{border-color:var(--line)!important}
.docs-page .docs-content blockquote{background:var(--surface);border-left-color:var(--line-2)}
.docs-page .docs-search input{background:#0f0f0f;border-color:var(--line-2);color:var(--ink)}

/* Shared SaaS pieces: a centered hero with the main action in it, and a framed product view. */
.saas-hero{text-align:center;display:flex;flex-direction:column;align-items:center;padding-top:40px}
.saas-hero h1{margin-left:auto;margin-right:auto;text-wrap:balance}
.saas-hero>p{max-width:60ch;font-size:clamp(16px,1.4vw,19px)!important;line-height:1.65!important}
.saas-frame{position:relative;margin:70px auto 0;max-width:1080px;border-radius:20px;padding:1px;background:var(--line-2);box-shadow:0 40px 120px -40px #000}
.saas-frame>div{border-radius:19px;background:#0d0d0d;overflow:hidden}
.saas-frame__bar{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);font:12px 'Geist Mono',monospace;color:#737373}
.saas-frame__bar i{width:9px;height:9px;border-radius:50%;background:#262626}
.saas-frame__bar span{margin-left:10px}
@media(prefers-reduced-motion:no-preference){.saas-frame{animation:frame-rise .9s cubic-bezier(.2,.8,.25,1) .15s both}@keyframes frame-rise{from{opacity:0;transform:translateY(24px) scale(.985)}to{opacity:1;transform:none}}}
.docs-page .docs-content :is(p,li,td) code{background:#ffffff12;color:#e5e5e5}
.docs-page .code-copy{background:#141414;border-color:var(--line-2);color:var(--ink-2)}

/* The ASCII field behind the top of product pages (saas-field.js). */
body:not(.landing-page) main{isolation:isolate}

/* Logos */
body:not(.landing-page) .product-lockup{filter:none;height:34px;width:auto;max-width:180px;object-fit:contain;object-position:left}
body:not(.landing-page) .product-name{display:inline-flex;align-items:center;gap:10px;font-size:24px;font-weight:600;letter-spacing:-.03em;color:var(--ink);height:auto;margin:14px 0}
body:not(.landing-page) .product-mark{width:28px;height:28px;object-fit:contain}
body:not(.landing-page) .product-mark--app{border-radius:7px}

/* Product screenshots in a hairline frame */
.product-shot{margin:0;border-radius:18px;padding:1px;background:var(--line-2);box-shadow:0 30px 90px -35px #000}
.product-shot>div{border-radius:17px;overflow:hidden;background:#0a0a0a}
.product-shot img{display:block;width:100%;height:auto}
.product-shot--phone{max-width:300px;margin-inline:auto;border-radius:34px}
.product-shot--phone>div{border-radius:33px}
.product-visual{display:grid;gap:12px;align-content:start}
.product-visual .small-note{text-align:center}
body:not(.landing-page) .product-intro{align-items:center;gap:clamp(32px,5vw,72px)}
.product-reading{margin:90px 0 10px;max-width:760px}
.product-reading blockquote{font:400 clamp(24px,3vw,34px)/1.35 Literata,Georgia,serif;margin:14px 0;color:var(--ink)}

/* Product family cards with screenshots */
.portfolio-grid--shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:64px}
body:not(.landing-page) .portfolio-card{display:flex;flex-direction:column;gap:6px;padding:22px;text-decoration:none;min-height:0}
.portfolio-card--shot .product-shot{margin:-8px -8px 14px;height:210px;box-shadow:none}
.portfolio-card--shot .product-shot>div{height:100%}
.portfolio-card--shot .product-shot img{height:100%;object-fit:cover;object-position:top center}
.portfolio-card--shot .product-shot--phone{max-width:none;border-radius:14px}
.portfolio-card--shot .product-shot--phone>div{border-radius:13px}
body:not(.landing-page) .portfolio-card p{font-size:14.5px!important;line-height:1.6!important;margin:6px 0 0!important}
body:not(.landing-page) .portfolio-arrow{margin-top:auto;align-self:flex-end;color:var(--ink-2);transition:transform .2s var(--ease),color .2s}
body:not(.landing-page) .portfolio-card:hover .portfolio-arrow{transform:translateX(3px);color:var(--ink)}
body:not(.landing-page) .portfolio-foundation{margin-top:110px;padding:56px;border-radius:24px;border:1px solid var(--line);background:var(--surface)}
@media(max-width:640px){.portfolio-grid--shots{grid-template-columns:1fr}body:not(.landing-page) .portfolio-foundation{padding:32px 22px}.product-reading{margin-top:60px}}

/* Padding: every surface keeps its text off its edges. */
body:not(.landing-page) :is(.product-features article,.release-list>*,.lib-book,.suite-row,.result-panel,.sample-page,.prompt-card,.challenge-tile){padding:24px 26px}
body:not(.landing-page) .product-features{gap:14px}
body:not(.landing-page) .product-features h2{font-size:24px;margin:14px 0 10px}
body:not(.landing-page) .product-features p{font-size:15px!important;line-height:1.65!important}
/* Buttons keep their own colours inside paragraphs. */
body:not(.landing-page) .site-section p a.site-button,body:not(.landing-page) p a.site-button{color:#0a0a0a;text-decoration:none}
/* A product without a screenshot spans the row instead of sitting alone. */
.portfolio-grid--shots .portfolio-card:not(.portfolio-card--shot){grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,.4fr) minmax(0,1fr) 30px;align-items:center;column-gap:30px}
.portfolio-grid--shots .portfolio-card:not(.portfolio-card--shot) .eyebrow{grid-column:1/-1}
.portfolio-grid--shots .portfolio-card:not(.portfolio-card--shot) .portfolio-arrow{margin:0}
body:not(.landing-page) .portfolio-foundation h2{max-width:none}
@media(max-width:700px){.portfolio-grid--shots .portfolio-card:not(.portfolio-card--shot){display:flex}}

/* Pricing, grouped by who it's for: a sticky switcher, each product's plans, a comparison table and an add-on row. */
body:not(.landing-page) .pricing-switch{position:sticky;top:12px;z-index:5;width:fit-content;margin:34px 0 0;padding:6px;border-radius:999px;background:#111111e6;border:1px solid var(--line);backdrop-filter:blur(10px)}
body:not(.landing-page) .pricing-switch a{border:0}
.pricing-group{margin-top:clamp(56px,7vw,96px);scroll-margin-top:90px}
.pricing-group__head{max-width:640px}
.pricing-group__head h2{font-size:clamp(28px,3.2vw,40px);line-height:1.12;letter-spacing:-.03em;margin:6px 0 10px}
.pricing-group__head>p:not(.eyebrow){color:var(--ink-2);line-height:1.65}
.pricing-table-wrap{overflow-x:auto;margin-top:8px;border:1px solid var(--line);border-radius:16px}
.pricing-table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:560px}
.pricing-table th,.pricing-table td{padding:13px 18px;text-align:left;border-bottom:1px solid var(--line)}
.pricing-table thead th{font:500 11px/1.4 'Geist Mono',monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2);background:var(--surface)}
.pricing-table tbody th{font-weight:500;color:var(--ink)}
.pricing-table td{color:var(--ink-2)}
.pricing-table tr:last-child>*{border-bottom:0}
.pricing-table thead th:nth-child(3),.pricing-table td:nth-child(3){background:#ffffff08;color:var(--ink)}
.pricing-addon{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 26px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.pricing-addon strong{display:block;margin-bottom:4px}
.pricing-addon span{color:var(--ink-2);font-size:14.5px;line-height:1.6}
.pricing-page .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:700px){.pricing-addon{flex-direction:column;align-items:flex-start}body:not(.landing-page) .pricing-switch{position:static;border-radius:16px}}

/* The full-bleed field is 100vw wide, which includes the scrollbar; clip it so pages never scroll sideways. */
body:not(.landing-page){overflow-x:clip}
