/* Super Java Host - site styles.
   Idea: the product decision is memory, so the memory bar (heap / database / system) is the site's one motif:
   it is the logo mark, the hero control and the pricing ledger. Everything else stays quiet. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-600.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-display-700.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-display-800.woff) format("woff"); }

:root {
  color-scheme: light dark;
  --night: #0a1224;
  --night-2: #131d33;
  --night-line: #26334f;
  --night-ink: #eaf0fb;
  --night-muted: #9fb0cc;

  --paper: #f7f8fb;
  --surface: #ffffff;
  --ink: #0e1626;
  --muted: #4f5d72;
  --line: #dde2ea;
  --soft: #eef1f6;

  --heap: #4350f0;
  --db: #0fa896;
  --os: #8c98ab;
  --accent: #3441e6;
  --accent-ink: #ffffff;
  --code-bg: #0f1a2e;
  --code-ink: #dce6f8;

  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1220;
    --surface: #111a2c;
    --ink: #e9eef7;
    --muted: #9aa9bf;
    --line: #25324a;
    --soft: #162136;
    --heap: #7886ff;
    --db: #2fd0bd;
    --os: #5d6b82;
    --accent: #7886ff;
    --accent-ink: #0b1220;
    --night: #070d19;
    --night-2: #0f182a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--sans); font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--surface); color: var(--ink); border-radius: 6px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); color: inherit; letter-spacing: -0.022em; text-wrap: balance; }
h1 { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.04; letter-spacing: -0.032em; }
h2 { margin: 0 0 10px; font-weight: 700; font-size: clamp(1.55rem, 2.8vw, 2.1rem); line-height: 1.14; }
h3 { margin: 0 0 6px; font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 800 1.12rem/1 var(--display); letter-spacing: -0.02em; }
.mark { display: inline-flex; flex-direction: column; gap: 3px; width: 26px; }
.mark i { display: block; height: 6px; border-radius: 2px; }
.mark i:nth-child(1) { width: 100%; background: var(--heap); }
.mark i:nth-child(2) { width: 62%; background: var(--db); }
.mark i:nth-child(3) { width: 84%; background: var(--os); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--muted); text-decoration: none; font-size: .97rem; font-weight: 600; border-radius: 8px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.nav > a:hover, .nav summary:hover, .nav a[aria-current="page"], .nav details[open] summary { color: var(--ink); background: var(--soft); }
.nav .buy { margin-left: 8px; color: var(--accent-ink); background: var(--accent); }
.nav .buy:hover { color: var(--accent-ink); background: var(--accent); filter: brightness(1.1); }
.nav details { position: relative; }
.stack-menu { position: absolute; top: calc(100% + 8px); left: -8px; width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(8, 14, 30, .28); }
.stack-menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.stack-menu a:hover { background: var(--soft); }
.stack-menu b { display: block; font-weight: 600; }
.stack-menu span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; font: 600 .97rem var(--sans); color: var(--ink); background: var(--soft); border: 0; border-radius: 8px; cursor: pointer; }

@media (max-width: 920px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100vh - 66px); overflow: auto; }
  .js .nav.open { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav > a, .nav summary { min-height: 48px; }
  .nav .buy { margin: 8px 0 0; justify-content: center; }
  .stack-menu { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 6px 8px; background: transparent; }
  .head { flex-wrap: wrap; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 1rem/1 var(--sans); text-decoration: none; color: var(--accent-ink); background: var(--accent); border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: filter .15s, background-color .15s; }
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn.ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); filter: none; }
.on-night .btn { color: var(--night); background: #fff; }
.on-night .btn.ghost { color: var(--night-ink); background: transparent; border-color: var(--night-line); }
.on-night .btn.ghost:hover { background: var(--night-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero with memory control ---------- */
.on-night { background: var(--night); color: var(--night-ink); }
.hero { padding: 64px 0 56px; }
.hero h1 { max-width: 19ch; }
.hero .lede { max-width: 56ch; margin: 22px 0 0; color: var(--night-muted); font-size: 1.2rem; line-height: 1.55; }

.mem-ctl { margin-top: 48px; padding: 26px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; }
.mem-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.mem-top h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--night); border: 1px solid var(--night-line); border-radius: 10px; }
.seg button { min-width: 58px; min-height: 40px; padding: 0 12px; font: 600 .97rem var(--sans); color: var(--night-muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--night-ink); }
.seg button[aria-pressed="true"] { color: var(--night); background: #fff; }
.mem-toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--night-muted); font-size: .95rem; cursor: pointer; }
.mem-toggle input { width: 18px; height: 18px; accent-color: #7886ff; }

.bar { display: flex; height: 64px; margin-top: 24px; border-radius: 10px; overflow: hidden; background: var(--night); }
.bar span { display: flex; align-items: center; min-width: 0; padding: 0 14px; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .9rem; color: #04101f; transition: width .55s cubic-bezier(.3, .8, .2, 1); font-variant-numeric: tabular-nums; }
.bar .h { background: #7886ff; }
.bar .d { background: #2fd0bd; }
.bar .o { background: #8c98ab; }
.bar-grow { animation: grow 1s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left center; }
@keyframes grow { from { transform: scaleX(.04); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }

.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; margin: 22px 0 0; }
.readouts div { padding-top: 12px; border-top: 2px solid var(--night-line); }
.readouts .rh { border-color: #7886ff; }
.readouts .rd { border-color: #2fd0bd; }
.readouts .ro { border-color: #8c98ab; }
.readouts dt { color: var(--night-muted); font-size: .9rem; }
.readouts dd { margin: 2px 0 0; font: 700 1.55rem/1.15 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readouts dd small { display: block; margin-top: 3px; font: 400 .88rem/1.3 var(--sans); letter-spacing: 0; color: var(--night-muted); }
.mem-foot { margin: 22px 0 0; color: var(--night-muted); font-size: .95rem; }
.mem-foot a { color: #fff; }
@media (max-width: 760px) {
  .hero { padding: 40px 0 36px; }
  .mem-ctl { padding: 18px; margin-top: 36px; }
  .bar { height: 52px; }
  .bar span { padding: 0 8px; font-size: .8rem; }
  .bar .d { font-size: 0; padding: 0; }
  .readouts { grid-template-columns: 1fr 1fr; }
  .seg button { min-width: 48px; padding: 0 8px; }
}

/* ---------- sections ---------- */
.band { padding: 72px 0; }
.band.tight { padding: 48px 0; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head-2 { max-width: 62ch; margin-bottom: 34px; }
.head-2 p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* ruled list of benefits */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.rules > div { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.rules dt { font: 700 1.14rem/1.3 var(--display); letter-spacing: -0.012em; }
.rules dd { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }

/* stack index */
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.index li { display: grid; grid-template-columns: 230px minmax(0, 1fr) 170px; gap: 8px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.index a.name { color: var(--ink); font: 700 1.22rem/1.25 var(--display); letter-spacing: -0.014em; text-decoration: none; }
.index a.name:hover { color: var(--accent); text-decoration: underline; }
.index p { margin: 0; color: var(--muted); font-size: 1rem; }
.index .ver { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 780px) { .index li { grid-template-columns: 1fr; } .index .ver { text-align: left; } .rules { grid-template-columns: 1fr; } }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); display: block; margin-bottom: 10px; font: 800 1.9rem/1 var(--display); color: var(--accent); }
.steps b { display: block; margin-bottom: 4px; font: 700 1.1rem/1.3 var(--display); }
.steps span { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl th, .tbl td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.tbl tbody th { font-weight: 600; width: 28%; }
.tbl td { color: var(--muted); }
.tbl td strong { color: var(--ink); }
.scroll { overflow-x: auto; margin: 1.4em 0; }
.scroll .tbl { min-width: 560px; margin: 0; }

/* cta band */
.cta { padding: 64px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta h2 { margin: 0; max-width: 22ch; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta p { margin: 8px 0 0; color: var(--night-muted); }

/* ---------- article pages ---------- */
.page-head { padding: 44px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-head .lede { max-width: 62ch; margin: 18px 0 0; color: var(--muted); font-size: 1.18rem; line-height: 1.55; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-block: 52px 24px; align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { margin: 2.1em 0 .45em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .3em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
.prose code { padding: .12em .38em; font: .9em var(--mono); background: var(--soft); border-radius: 5px; }
.prose pre { margin: 1.3em 0; padding: 18px 20px; overflow-x: auto; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; font: .9rem/1.6 var(--mono); }
.prose pre code { padding: 0; color: inherit; background: none; font: inherit; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--db); color: var(--muted); }
.note { margin: 1.5em 0; padding: 16px 18px; background: var(--soft); border-left: 3px solid var(--heap); border-radius: 0 8px 8px 0; }
.note p:last-child { margin: 0; }
.aside { position: sticky; top: 90px; display: grid; gap: 20px; }
.buybox { padding: 22px; background: var(--night); color: var(--night-ink); border-radius: 14px; }
.buybox .from { color: var(--night-muted); font-size: .92rem; }
.buybox .amt { display: block; margin: 2px 0 2px; font: 800 2.3rem/1.05 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.buybox .amt small { font: 400 .95rem var(--sans); letter-spacing: 0; color: var(--night-muted); }
.buybox ul { margin: 14px 0 18px; padding: 0; list-style: none; color: var(--night-muted); font-size: .95rem; }
.buybox li { padding: 7px 0; border-top: 1px solid var(--night-line); }
.buybox .btn { width: 100%; color: var(--night); background: #fff; }
.facts { margin: 0; padding: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.aside h2 { margin: 0 0 6px; font: 700 .98rem var(--display); letter-spacing: 0; }
.rel { margin: 0; padding: 0; list-style: none; }
.rel li { border-top: 1px solid var(--line); }
.rel a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: .97rem; }
.rel a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; } .aside { position: static; grid-template-columns: minmax(0, 1fr); } }
.layout > * { min-width: 0; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; max-width: 66ch; color: var(--muted); }
.faq-wrap { margin-top: 48px; }

/* guides list */
.guides { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guides li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.guides a { color: var(--ink); font: 700 1.3rem/1.25 var(--display); letter-spacing: -0.016em; text-decoration: none; }
.guides a:hover { color: var(--accent); text-decoration: underline; }
.guides p { margin: 6px 0 0; max-width: 66ch; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { margin-top: 72px; padding: 56px 0 36px; background: var(--night); color: var(--night-muted); font-size: .96rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.site-foot .brand { color: var(--night-ink); }
.site-foot p { margin: 14px 0 0; max-width: 36ch; }
.site-foot h2 { margin: 0 0 12px; font: 700 .98rem var(--display); letter-spacing: 0; color: var(--night-ink); }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: var(--night-muted); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: .9rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ledger ---------- */
.plans { width: 100%; border-collapse: collapse; }
.plans caption { position: absolute; left: -9999px; }
.plans thead th { padding: 0 16px 14px; text-align: left; vertical-align: bottom; font-weight: 700; }
.plans thead th small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: .9rem; }
.plans tbody tr { border-top: 1px solid var(--line); }
.plans tbody tr:last-child { border-bottom: 1px solid var(--line); }
.plans tbody th, .plans tbody td { padding: 24px 16px; vertical-align: top; text-align: left; }
.plans tbody th { width: 46%; font-weight: 400; }
.plans tr.rec th { box-shadow: inset 3px 0 0 var(--accent); }
.size-name { display: block; font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; }
.size-spec { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.size-for { display: block; margin-top: 6px; max-width: 44ch; color: var(--muted); font-size: .95rem; }
.size-rec { display: block; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.mem { display: flex; height: 14px; margin-top: 16px; min-width: 56px; width: calc(var(--ram) / var(--max) * 100%); border-radius: 3px; overflow: hidden; transform-origin: left center; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
.mem .seg-h { background: var(--heap); } .mem .seg-d { background: var(--db); } .mem .seg-o { background: var(--os); }
.mem span { display: block; height: 100%; }
.mem-note { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.price { display: block; font: 800 2rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.per { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; }
.sub { margin-top: 14px; min-height: 46px; padding: 0 22px; font: 600 1rem/1 var(--sans); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 9px; cursor: pointer; transition: filter .15s; }
.sub:hover { filter: brightness(1.12); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.legend-note { margin: 10px 0 0; max-width: 70ch; color: var(--muted); font-size: .92rem; }
.inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 56px; }
.inc h3 { font-size: 1.3rem; }
.inc .tag { margin: 0 0 12px; color: var(--muted); }
.inc ul { margin: 0; padding-left: 1.15em; max-width: 52ch; }
.inc li { margin-bottom: 8px; }
.db-note { margin: 22px 0 0; max-width: 62ch; color: var(--muted); }
.stacks-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 56px; margin: 0; }
.stacks-dl dt { font: 700 1.1rem/1.3 var(--display); }
.stacks-dl dd { margin: 2px 0 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 780px) {
  .plans thead { position: absolute; left: -9999px; }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: auto; }
  .plans tbody th { width: auto; padding: 22px 0 4px 16px; }
  .plans tbody td { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0 12px 16px; }
  .plans tbody td::before { content: attr(data-label); flex: 1 0 100%; color: var(--muted); font-size: .92rem; }
  .plans tbody td:last-child { padding-bottom: 22px; }
  .sub { margin-top: 0; }
  .inc, .stacks-dl { grid-template-columns: 1fr; }
}

/* checkout dialog */
dialog { width: calc(100% - 32px); max-width: 460px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(5, 10, 20, .65); }
.co { padding: 24px; }
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.co h2 { margin: 0; font-size: 1.4rem; }
.co-close { flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; font-size: 1.6rem; line-height: 1; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.co-close:hover { color: var(--ink); }
.co-summary { margin: 0 0 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.co label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.co select, .co input[type="text"] { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: 400 1rem/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.co .hint { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); font-size: .88rem; }
.co label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.co label.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.co-msg { min-height: 1.5em; margin: 0 0 10px; color: #b3261e; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .co-msg { color: #ff9a92; } }
.co-fine { margin: 14px 0 0; color: var(--muted); font-size: .88rem; }
.co-done h2 { margin-bottom: 10px; }
.co-done p { margin: 0 0 12px; }

/* contact form */
.form { max-width: 560px; }
.form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.sent { padding: 16px 18px; margin-bottom: 24px; background: var(--soft); border-left: 3px solid var(--db); border-radius: 0 8px 8px 0; }
.err { padding: 16px 18px; margin-bottom: 24px; background: var(--soft); border-left: 3px solid #c0392b; border-radius: 0 8px 8px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar span { transition: none; }
  .bar-grow, .mem { animation: none; }
}
