/* AgentCenter's page: the app's colours, Mona Sans set wide and heavy for headings (as on
   solarpowergenius.com), text at full contrast, and the orange cut-paper art behind the product. */

/* ---- dark: the app's dark Studio colours; a saved choice first, else the system setting */
html[data-theme="dark"], html[data-theme="dark"][data-ground] {
  color-scheme: dark;
  --p-bg: #0d0e10; --p-surface: #15171a; --p-ink: #f3f1ec; --p-muted: #a4a7ad;
  --p-accent: #ff8a3d; --p-accent-ink: #16181c; --p-action: #ff8a3d; --p-action-ink: #16181c;
  --p-inv-bg: #08090a; --p-inv-surface: #15171a; --p-inv-ink: #f3f1ec; --p-inv-muted: #a4a7ad;
  --p-inv-accent: #ff8a3d; --p-inv-accent-ink: #16181c; --p-inv-action: #ff8a3d; --p-inv-action-ink: #16181c;
  --ground-bg: #16181c; --ground-surface: #1b1d21; --ground-ink: #f3f1ec; --ground-muted: #a4a7ad; --ground-accent: #ff8a3d;
  --art: url(../img/art-dark.svg);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]), html:not([data-theme="light"])[data-ground] {
    color-scheme: dark;
    --p-bg: #0d0e10; --p-surface: #15171a; --p-ink: #f3f1ec; --p-muted: #a4a7ad;
    --p-accent: #ff8a3d; --p-accent-ink: #16181c; --p-action: #ff8a3d; --p-action-ink: #16181c;
    --p-inv-bg: #08090a; --p-inv-surface: #15171a; --p-inv-ink: #f3f1ec; --p-inv-muted: #a4a7ad;
    --p-inv-accent: #ff8a3d; --p-inv-accent-ink: #16181c; --p-inv-action: #ff8a3d; --p-inv-action-ink: #16181c;
    --ground-bg: #16181c; --ground-surface: #1b1d21; --ground-ink: #f3f1ec; --ground-muted: #a4a7ad; --ground-accent: #ff8a3d;
    --art: url(../img/art-dark.svg);
  }
}
:root { --art: url(../img/art-light.svg); }
/* the lit ground behind UI in light mode: neutral grey, never sand or blue */
html[data-ground="sky"] { --ground-bg: #e2e4e8; --ground-surface: #eceef1; --ground-ink: #16181c; --ground-muted: #52565e; --ground-accent: #c9560c; }

/* ---- smooth scrolling to the sections, under the fixed bar; none for reduced motion */
html:root { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html:root { scroll-behavior: auto; } }

/* ---- type: wide and heavy headings, everything people read in full ink */
:root { --display-weight: 650; --display-stretch: 112%; --display-tracking: -0.035em; --display-tracking-xl: -0.045em; }
:is(h1, h2) { font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
h2 .muted { font-weight: var(--display-weight); }
.t-lead, .hero__lead, .faq p, .tier__list li { color: var(--ink); }
.card h3, .t-card { font-weight: 600; letter-spacing: -0.012em; }

/* ---- the art */
.art { background: var(--art) center / cover no-repeat; }

/* ---- hero: the headline on the left, the lead and buttons on the right, then the whole app on the art */
.hero.hero--ac { height: auto; min-height: 0; padding-bottom: var(--s-9); }
.hero--ac .hero-text { display: block; }
.hero-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) 24px; align-items: end; }
.hero-head h1 { grid-column: 1 / span 8; margin: 0; font-size: clamp(46px, 6.1vw, 92px); line-height: .94; letter-spacing: -0.045em; text-wrap: balance; max-width: none; }
.hero-side { grid-column: 9 / -1; display: grid; gap: var(--s-6); padding-bottom: 6px; }
.hero-side .hero__lead { margin: 0; font-size: 18px; line-height: 1.5; max-width: none; }
.hero-side .btn-row { margin: 0; }
.hero-stage { position: relative; margin-top: var(--s-8); border-radius: 28px; padding: 72px 80px; overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, #000 8%, transparent); }
.hero-stage > .acw { max-width: 1120px; margin-inline: auto; }
.float { position: absolute; z-index: 2; }
.float--tl { left: 20px; top: 548px; width: 272px; }
.float--br { right: 28px; bottom: 120px; }
.float__ok { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: #16803c; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float-in .9s cubic-bezier(.2,.7,.2,1) both; }
  .float--tl { animation-delay: .9s; } .float--br { animation-delay: 1.6s; }
  @keyframes float-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
}
@media (max-width: 1279px) { .hero-stage { padding: 56px 48px; } .float--tl { left: 16px; } .float--br { right: 16px; } }
@media (max-width: 1023px) {
  .hero-head h1 { grid-column: 1 / -1; } .hero-side { grid-column: 1 / -1; max-width: 560px; }
  .hero-stage { padding: 40px 28px; } .float { display: none; }
}
@media (max-width: 639px) { .hero-stage { margin-top: var(--s-7); padding: 20px 16px; border-radius: 20px; } }
/* below desktop the windows keep their desktop layout and scale down whole, like a screenshot */
@media (max-width: 1279px) {
  .hero-stage > .acw, .win-wide > .acw { width: 1120px; max-width: none; }
  .hero-stage > .acw { zoom: .68; } .win-wide > .acw { zoom: .76; }
}
@media (max-width: 1023px) { .hero-stage > .acw { zoom: .54; } .win-wide > .acw { zoom: .6; } }
@media (max-width: 767px) { .hero-stage > .acw { zoom: .43; } .win-wide > .acw { zoom: .48; } }
@media (max-width: 639px) { .hero-stage > .acw { zoom: .275; } .win-wide > .acw { zoom: .305; } .fill.win-wide::after { height: 40px; } }

/* ---- the sections' windows */
.win-wide { margin-top: var(--s-7); }
.win-wide .acw { height: 100%; }
.fill.win-wide { min-height: 0; position: relative; }
.fill.win-wide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border-radius: 0 0 12px 12px; pointer-events: none;
  background: linear-gradient(transparent, var(--bg)); }
.fill.win-wide .acw { max-height: 100%; }
/* split frames and card panels stand on the art */
:is(#sessions, #config) .frame--split, #disk .panel { background: var(--art) center / cover no-repeat !important; box-shadow: inset 0 0 0 1px color-mix(in oklab, #000 8%, transparent); }
:is(#sessions, #config) .frame--split .stage::before, #disk .panel::before { display: none; }
#sessions .frame--split { background-position: 30% 80% !important; }
#config .frame--split { background-position: 80% 40% !important; }
#disk .card:nth-child(2) .panel { background-position: 70% 90% !important; }
#disk .grid:last-child .card:nth-child(1) .panel { background-position: 10% 60% !important; }
#disk .grid:last-child .card:nth-child(2) .panel { background-position: 55% 30% !important; }
#disk .grid:last-child .card:nth-child(3) .panel { background-position: 95% 75% !important; }

#disk .panel { --p-h: 336px; }
/* the bottom row's mocks are small, so their panels stay short and hold the mock in the middle */
@media (min-width: 1024px) {
  #disk .group + .grid .panel { --p-h: 280px; }
  html #disk.section { min-height: 0; height: auto; }
  #disk .card--open > .panel { flex: 0 0 auto; height: var(--p-h); }
  #disk .group + .grid .stage > .at-corner { top: 50%; transform: translateY(-50%); }
}
@media (min-width: 640px) and (max-width: 1023px) { #sessions .frame--split, #config .frame--split { --ratio: 64%; } #disk .panel { --p-h: 240px; } #pricing, #config { --h: 2; } }
@media (max-width: 1023px) { #disk .card--weekly { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) { #disk .panel { --p-h: 240px; } #disk :is(.card--weekly, .card--build) { display: none; } #disk .card--wide { grid-column: 1 / -1; } }
@media (max-width: 639px) { #disk .panel { --p-h: 200px; } #pricing { --hm: 2; } }

#ports .names { margin-top: var(--s-7); }
#ports .names h3 { margin: 0 0 4px; } #ports .names p { margin: 0; }
@media (max-width: 639px) { #ports { --hm: 2; } #ports .names { grid-template-columns: repeat(2, minmax(0, 1fr)); } #ports .names > * { grid-column: auto; } }

.tools-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: var(--s-7); }
.tools-row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.tools-row img { width: 18px; height: 18px; display: inline-block; }
#config .tab { padding-inline: 14px; }
#config [role="tabpanel"] p { margin: var(--s-5) 0 0; }

.statement .mo-wh__text { font: var(--display-weight) clamp(32px, 3.7vw, 54px)/1.1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); max-width: 25ch; margin: 0; }
#statement .t-small { margin-top: var(--s-6); }

/* ---- pricing */
.pricing-intro { display: flex; flex-direction: column; gap: var(--s-5); }
.pricing-intro h2 { margin: 0; }
.pricing-facts { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.pricing-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pricing-facts span { color: var(--muted); } .pricing-facts b { font-weight: 500; }
.card.tier { display: flex; flex-direction: column; gap: 0; padding: 28px; border-radius: 20px; }
.card.tier > * { margin: 0; }
.card.tier > .tier__for { margin-top: 6px; }
.card.tier > .tier__price { margin: 28px 0 22px; }
.card.tier > .tier__inc { margin: 26px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.card.tier .tier__price span { font: 400 15px/1.3 var(--font-text); font-stretch: 100%; letter-spacing: 0; }
.tier h3 { margin: 0; font-size: 20px; }
.tier__for { margin: 6px 0 0; }
.tier__price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 20px; }
.tier__price b { font: 650 52px/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.04em; }
.tier__price span { color: var(--muted); }
.tier .btn { width: 100%; }
.tier__inc { margin: 28px 0 6px; font-weight: 600; font-size: 15px; }
.tier__list { list-style: none; margin: 0; padding: 0; }
.tier__list li { position: relative; padding: 9px 0 9px 26px; font-size: 15.5px; line-height: 1.45; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 9%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2316181c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* Pro: the inverted card */
.card.tier--pro { background: #16181c; color: #f3f1ec; border-color: #16181c;
  --ink: #f3f1ec; --muted: #a4a7ad; --line: rgb(255 255 255 / .1);
  box-shadow: 0 32px 64px -40px rgb(201 86 12 / .16), 0 24px 48px -32px rgb(0 0 0 / .28), 0 0 0 1px rgb(255 255 255 / .04) inset; position: relative; overflow: hidden; }
.card.tier--pro::before { content: ""; position: absolute; inset: 0 0 auto; height: 220px; background: radial-gradient(80% 100% at 50% 0%, rgb(255 138 61 / .08), transparent 70%); pointer-events: none; }
.card.tier--pro > * { position: relative; }
.card.tier--pro .btn--primary { --action: #ff8a3d; --action-ink: #16181c; background: #ff8a3d; color: #16181c; }
.tier--pro .tier__list li::before { background: rgb(255 138 61 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23ff8a3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
html[data-theme="dark"] .card.tier--pro { background: #1d2024; border-color: rgb(255 138 61 / .2); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .card.tier--pro { background: #1d2024; border-color: rgb(255 138 61 / .2); } }
html[data-theme="dark"] .tier:not(.tier--pro) .tier__list li::before { filter: invert(1); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .tier:not(.tier--pro) .tier__list li::before { filter: invert(1); } }

/* ---- footer switch */
.theme-switch { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-top: var(--s-5); padding: 0; border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s; }
.theme-switch:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); border-color: color-mix(in oklab, var(--ink) 28%, transparent); }
.theme-switch:active { transform: scale(.94); }
.theme-switch svg { grid-area: 1 / 1; transition: opacity .2s, transform .3s; }
/* the moon offers dark mode on a light page; the sun offers light mode on a dark one */
.theme-switch .ts-sun, html[data-tone="dark"] .theme-switch .ts-moon { opacity: 0; transform: rotate(-30deg) scale(.8); }
html[data-tone="dark"] .theme-switch .ts-sun { opacity: 1; transform: none; }

/* scaled windows take their own height, not the section's */
@media (max-width: 1279px) { .win-wide > .acw { height: auto; } .fill.win-wide { flex: 0 0 auto; } }
/* a tablet's hero fills its first screen, so the next heading never peeks in under it */
@media (min-width: 640px) and (max-width: 1023px) { .hero.hero--ac { min-height: 100svh; } }

/* the app icon in the bar, a little larger than the kit's 24px */
.nav .nav__logo { gap: 10px; }
.nav .nav__logo img { width: 34px; height: 34px; border-radius: 8px !important; }
@media (max-width: 639px) { .nav .nav__logo img { width: 30px; height: 30px; border-radius: 7px !important; } }

/* the privacy statement is a short band, sized to its words with even space above and below */
html #statement.section { min-height: 0; height: auto; padding-block: clamp(96px, 10vw, 144px) 0; display: block; }
html #statement .mo-wh__text { max-width: 30ch; font-size: clamp(32px, 4.3vw, 64px); }
@media (max-width: 639px) { html #statement.section { padding-block: 72px 0; } }
@media (min-width: 1024px) { #disk .group + .grid .stage { -webkit-mask: none; mask: none; } }

/* Sessions and Config: the window sits whole inside its art frame, no fade and no cut edge;
   the frame takes the window's height, and Config's four screens share one spot so a tab never jumps */
:is(#sessions, #config) .frame--split { --ratio: 0px; display: block; padding: 0; }
:is(#sessions, #config) .frame--split::before { display: none; }
:is(#sessions, #config) .frame--split > .stage { position: relative; inset: auto; height: auto; display: grid; padding: 44px 40px; -webkit-mask: none; mask: none; }
:is(#sessions, #config) .frame--split > .stage > :not(.at-over, .at-over-l) { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; }
:is(#sessions, #config) .frame--split > .stage > :not(.at-over, .at-over-l) > .ui { width: 100% !important; height: auto; }
#config .frame--split > .stage > [hidden] { display: block; visibility: hidden; }
@media (max-width: 639px) { :is(#sessions, #config) .frame--split > .stage { padding: 20px 16px; } }

/* the footer logo: the app icon and name at a calm size, not a heading */
.footer .footer__mark { gap: 10px; }
.footer .footer__mark img { width: 34px; height: 34px; border-radius: 8px; }

/* Sessions: the readouts are narrower inside the frame, so the label gets the row and the sign sits small */
#sessions .a-ro small { letter-spacing: .05em; padding-right: 22px; }
#sessions .a-ro .viz { width: 18px; } #sessions .a-ro .viz:has(svg path) { display: none; }
/* the notification hangs off the window's bottom edge, over the art, not over the window's buttons */
#sessions .frame--split > .stage { padding-bottom: 92px; }

/* the close: the heading on the left, one normal-size Download button on the far right */
.footer .closing__cta.close--type { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.footer .closing__cta.close--type > .closing__btn { align-self: flex-end; width: auto; flex: none; }
@media (max-width: 639px) { .footer .closing__cta.close--type { flex-direction: column; align-items: stretch; } .footer .closing__cta.close--type > .closing__btn { align-self: stretch; } }

/* the footer is as tall as what it holds: the close, then the links, with no screen-high gap above */
html footer.closing { min-height: 0; height: auto; padding-top: clamp(80px, 9vw, 128px); }
html footer.closing > .wrap { grid-template-rows: auto auto; row-gap: clamp(72px, 8vw, 112px); height: auto; }

/* ---------------------------------------------------------------- inner pages: privacy, terms, refunds, contact */
html[data-page="inner"] main > .section.doc-page { min-height: 0; height: auto; padding-block: clamp(64px, 8vw, 112px) clamp(80px, 9vw, 128px); }
.doc { max-width: 720px; }
.doc__head { display: grid; gap: var(--s-4); padding-bottom: var(--s-7); margin-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.doc-page h1 { font: var(--display-weight) clamp(44px, 5.4vw, 76px)/.98 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking-xl); margin: 0; }
.doc__lede { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 56ch; margin: 0; }
.doc__date { font-size: var(--t-small); color: var(--muted); margin: 0; }
.doc h2 { font: 600 21px/1.3 var(--font-display); font-stretch: 105%; letter-spacing: -0.015em; margin: var(--s-7) 0 var(--s-3); }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--ink); }
.doc p { margin: 0 0 var(--s-4); max-width: 64ch; }
.doc ul { margin: 0 0 var(--s-4); padding-left: 1.2em; display: grid; gap: var(--s-2); }
.doc li::marker { color: var(--muted); }
.doc a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 30%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.doc a:not(.btn):hover { text-decoration-color: currentColor; }
.doc code { font: 500 .88em var(--font-mono); padding: 1px 6px; border-radius: 6px; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.doc .btn + .btn { margin-left: var(--s-3); }

/* contact: the words on the left, the form in a card on the right */
.contact-page__intro { display: grid; gap: var(--s-5); align-content: start; }
.contact-page__facts { margin: var(--s-3) 0 0; border-top: 1px solid var(--line); }
.contact-page__facts > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-page__facts dt { color: var(--muted); }
.contact-page__facts dd { margin: 0; text-align: right; }
.contact-page__facts a { color: var(--ink); }
.contact-page__card { padding: clamp(24px, 3vw, 36px); border-radius: 20px; }
.contact-form .field :is(input, select, textarea) { font-size: 16px; }
.contact-form .btn-row .btn { min-width: 160px; }
.contact-form .form__status:empty { display: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1023px) { .contact-page .grid > * { grid-column: 1 / -1; } .contact-page .grid { row-gap: var(--s-7); } }
@media (max-width: 639px) { .contact-form { grid-template-columns: minmax(0, 1fr); } }

/* one logo, top and bottom: the same text weight and size beside each icon */
.nav .nav__logo, .footer .footer__mark { font: 750 25px/1 "Bricolage Grotesque", var(--font-display); font-variation-settings: "opsz" 48; font-stretch: 100%; letter-spacing: -0.035em; }
@media (max-width: 639px) { .nav .nav__logo, .footer .footer__mark { font-size: 22px; } }

/* Config grows with its window instead of letting it spill into Pricing; Pricing gets room above it */
html main > #config.section { height: auto; min-height: 0; padding-bottom: clamp(88px, 9vw, 128px); }
html main > #pricing.section { padding-top: clamp(112px, 11vw, 160px); }

/* Questions: the heading and the Contact link stay in view while the answers scroll past */
@media (min-width: 1024px) {
  #questions .grid > .stack-5:first-child { position: sticky; top: calc(var(--nav-h, 72px) + 40px); align-self: start; }
  html main > #questions.section { overflow: visible; }
}
html[data-page="inner"] main > section.section.doc-page { padding-top: clamp(80px, 9vw, 128px); }
.doc ul { list-style: disc; }
.doc__head { gap: var(--s-3); padding-bottom: var(--s-6); }
.doc__date { margin-top: var(--s-2); }
.doc h2:first-of-type { margin-top: 0; }
@media (min-width: 1024px) { #pricing .pricing-intro { padding-right: clamp(32px, 4vw, 64px); } }

/* Disk: its two rows take their own heights, not two equal halves, so no gap opens under the short bottom row */
html main > #disk.section { height: auto; min-height: 0; }
html main > #disk.section > .wrap { grid-template-rows: auto auto; height: auto; row-gap: clamp(48px, 5vw, 72px); }
html main > #disk.section { padding-bottom: 32px; }

/* privacy, terms, and refunds: one centred column */
.doc-page .doc { margin-inline: auto; }
.doc-page .doc p { max-width: none; }
html[data-page="inner"] main > section.section.contact-page { padding-top: clamp(104px, 11vw, 160px); }

/* nav: a quiet Download free link beside the Buy button */
.nav__actions { display: flex; align-items: center; gap: var(--s-5); }
.nav__actions .nav__free { white-space: nowrap; }
@media (max-width: 1023px) { .nav__actions .nav__free { display: none; } }
.footer .closing__btn { gap: var(--s-3); flex-wrap: nowrap; }
@media (max-width: 639px) { .footer .closing__btn { flex-direction: column-reverse; } .footer .closing__btn .btn { width: 100%; } }

/* the select draws its own chevron, 16px in from the right edge, instead of the browser's */
.contact-form .field select { -webkit-appearance: none; appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2352565e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
html[data-theme="dark"] .contact-form .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23a4a7ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .contact-form .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23a4a7ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.nav__get { gap: 9px; }
.nav__get-i { flex: none; margin-left: -2px; }

/* the hero h1's entrance masks (one per word, while it runs) get room for this face's tight tracking and long
   descenders: room on every side, given back with negative margins so the words sit exactly where they rest */
.hero[data-enter] h1 .m-w { padding: .08em .12em .3em; margin: -.08em -.12em -.3em; }

/* ---------------------------------------------------------------- docs: a sticky contents list beside the reading column */
.docs-page .docs { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(40px, 6vw, 96px); justify-content: center; }
.docs__toc { position: sticky; top: calc(var(--nav-h, 72px) + 32px); align-self: start; max-height: calc(100vh - var(--nav-h, 72px) - 64px); overflow: auto; }
.docs__toc p { font: 600 13px/1 var(--font-text); color: var(--muted); margin: 0 0 var(--s-4); }
.docs__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.docs__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.docs__toc a:hover { color: var(--ink); }
.docs__toc a.is-on { color: var(--ink); border-left-color: var(--accent); }
.docs .doc { max-width: none; margin: 0; }
.docs .doc > section { scroll-margin-top: calc(var(--nav-h, 72px) + 24px); padding-top: var(--s-7); margin-top: var(--s-7); border-top: 1px solid var(--line); }
.docs .doc > section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.docs .doc > section > h2 { font: var(--display-weight) clamp(28px, 2.6vw, 36px)/1.1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-5); }
.docs .doc h3 { font: 600 18px/1.35 var(--font-display); letter-spacing: -0.01em; margin: var(--s-6) 0 var(--s-2); }
.docs .doc dl { margin: 0 0 var(--s-4); display: grid; gap: var(--s-4); }
.docs .doc dt { font-weight: 600; font-size: 17px; }
.docs .doc dd { margin: 4px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink); }
.docs .doc pre { margin: 0 0 var(--s-4); padding: 16px 18px; border-radius: 12px; overflow: auto; background: color-mix(in oklab, var(--ink) 6%, transparent); font: 400 14px/1.6 var(--font-mono); }
.docs .doc pre code { padding: 0; background: none; font-size: inherit; }
.docs .doc kbd { font: 500 .85em var(--font-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; }
.docs .doc table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-4); font-size: 16px; }
.docs .doc th, .docs .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs .doc th { font-weight: 600; color: var(--muted); font-size: 14px; }
.docs .doc .pro { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 600 11px/1.6 var(--font-text); letter-spacing: .02em; vertical-align: 3px; color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); }
@media (max-width: 1023px) { .docs-page .docs { grid-template-columns: minmax(0, 1fr); } .docs__toc { position: static; max-height: none; } .docs__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs__head { max-width: none; border-bottom: 0; margin-bottom: var(--s-8); padding-bottom: 0; text-align: left; }
@media (min-width: 1024px) { .docs__head { padding-left: calc((100% - 220px - 720px - clamp(40px, 6vw, 96px)) / 2); } }

/* thanks: the key in a card, easy to select and copy */
.key-card { margin: 0 0 var(--s-7); padding: clamp(20px, 3vw, 28px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.key-card p { margin: 0; }
.key-card__label { font: 600 13px/1 var(--font-text); color: var(--muted); margin-bottom: var(--s-3) !important; }
.key-card__key { font: 500 14px/1.6 var(--font-mono); word-break: break-all; user-select: all; padding: 14px 16px; border-radius: 10px; background: color-mix(in oklab, var(--ink) 5%, transparent); margin-bottom: var(--s-5) !important; }
.key-card__wait { color: var(--muted); }
.doc .steps { list-style: decimal; padding-left: 1.3em; display: grid; gap: var(--s-2); margin: 0 0 var(--s-5); }
.find-note { margin-top: var(--s-5) !important; }
.find-form { grid-template-columns: minmax(0, 1fr); }

/* a command wraps on a phone instead of scrolling sideways, so nothing needs a keyboard scroll */
.docs .doc pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* a long path in running text breaks too, so it never widens the column past the screen */
.docs .doc :not(pre) > code { overflow-wrap: anywhere; }
/* the Pro tag: the accent darkened toward the text colour, so 11px text passes 4.5:1 in both themes */
.docs .doc .pro { color: color-mix(in oklab, var(--accent) 68%, var(--ink)); background: color-mix(in oklab, var(--accent) 9%, transparent); }

/* the maker's link in the footer's legal line */
.footer__legal a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.footer__legal a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- phones: content-height sections, readable windows */
@media (max-width: 767px) {
  /* every section as tall as its content, one even gap between them (:not(#_) outranks the id rules above) */
  html main > :is(section, .section):not(.hero, .section--hero, #_) { min-height: 0; height: auto; padding-block: 56px; }
  html main > #statement.section:not(#_) { padding-block: 56px 0; }
  html footer.closing { padding-top: 56px; }
  .hero.hero--ac { padding-bottom: 56px; }
  main > :is(section, .section) > .wrap > .fill.win-wide { flex: 0 0 auto; height: auto; }
  .fill.win-wide::after { display: none; }
}
@media (max-width: 639px) {
  /* full windows: the screen without the app sidebar, laid out a little narrower and scaled less (zoom stays fixed,
     the layout width follows the screen) */
  .win-wide > .acw, .hero-stage > .acw { zoom: .55; grid-template-columns: minmax(0, 1fr); height: auto; }
  .win-wide > .acw { width: calc((100vw - 48px) / .55) !important; }
  .hero-stage > .acw { width: calc((100vw - 64px) / .55) !important; }
  :is(.win-wide, .hero-stage) > .acw > .acw__side { display: none; }
  /* the small windows in Sessions, Config, and Disk keep their desktop shape, scaled to fit */
  :is(#sessions, #config) .frame--split > .stage > :not(.at-over, .at-over-l) > .ui { zoom: .74; width: calc((100vw - 82px) / .74) !important; }
  #sessions .frame--split > .stage { padding-bottom: 20px; }
  .hero-stage > .acw { zoom: .48; width: calc((100vw - 82px) / .48) !important; }
  /* Disk: each card's window whole, no fade, no fixed panel height */
  #disk .panel { height: auto; --p-h: auto; }
  #disk .panel .stage { position: relative; inset: auto; height: auto; padding: 16px; -webkit-mask: none; mask: none; }
  html #disk .panel .stage > .at-corner { position: relative; inset: auto; top: auto; transform: none; width: 100%; }
  #disk .panel .acw { zoom: .66; width: calc((100vw - 80px) / .66); height: auto; }
}
@media (max-width: 374px) {
  :is(#sessions, #config) .frame--split > .stage > :not(.at-over, .at-over-l) > .ui { zoom: .66; width: calc((100vw - 82px) / .66) !important; }
}
