/* Adapted from Quadstronaut/umbermark src/umbermark/web/static/styles.css @ 9ae8df4
   Starhold brand v2 (STAR-166 R14): /static/product-tokens.css loads first and owns the fleet palette
   (near-black neutrals, --text-muted #9aa3b5, the one amber action colour, --focus), radii, spacing, the
   self-hosted Plex stacks and the wordmark + lockup. This file maps Render's names onto those tokens. The danger
   colour now comes from the tokens too (--danger #ff6b6b, was a local #ef6b6b); only its hover shade is set here,
   lighter (#ff8a8a) because the tokens' danger is already bright on the dark surfaces. No private palette, no gradient. Self-hosted, no fonts or assets from other
   hosts (F9). No template needs an inline style. */
:root {
  --surface-solid: var(--surface);
  --text-head: var(--text);
  --text-link: var(--accent);
  --accent-text: var(--accent-ink);
  --danger-hover: #ff8a8a;
  --radius: var(--radius-sm);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 16px/1.55 var(--font-sans);
  background: var(--bg);
}
main { max-width: 860px; margin: 0 auto; padding: 1rem; }
h1, h2 { color: var(--text-head); line-height: 1.2; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.15rem; margin-top: 0; }
a { color: var(--text-link); }
.muted { color: var(--text-muted); }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin: 0 auto; padding: 1rem; }
.top nav { display: flex; gap: 1rem; align-items: center; }
/* Lockup: .brand/.mark/.wordmark from product-tokens.css; the product name sits behind a hairline. */
.brand .product-name { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-2); line-height: 1.25; letter-spacing: 0; color: var(--text); }
.brand .product-name.sep { padding-left: var(--sp-2); border-left: 1px solid var(--border-strong); }
.brand:hover .product-name { color: var(--accent); }
.card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0; }
/* Panels are hull plates (R6): a --chamfer off the top-right corner; ::after redraws the cut's hairline. No lift, no shadow. */
.card, .f-list li, details.snip { position: relative; clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }
.card::after, .f-list li::after, details.snip::after { content: ''; position: absolute; top: 0; right: 0; width: var(--chamfer); height: var(--chamfer);
  pointer-events: none; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--border) calc(50% - 1px), var(--border) calc(50% + 1px), transparent calc(50% + 1px)); }
.card.callout::after { background: linear-gradient(to top right, transparent calc(50% - 1px), var(--accent) calc(50% - 1px), var(--accent) calc(50% + 1px), transparent calc(50% + 1px)); }
@media (max-width: 520px) {
  .card, .f-list li, details.snip { clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%); }
  .card::after, .f-list li::after, details.snip::after { width: var(--chamfer-sm); height: var(--chamfer-sm); }
}
.card.narrow { max-width: 480px; margin: 2rem auto; }
.card.callout { border-color: var(--accent); }
label { display: block; margin: .9rem 0 .3rem; color: var(--text-muted); font-size: .9rem; }
input, select, textarea {
  width: 100%; padding: .65rem .75rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, .button-link {
  display: inline-block; margin-top: 1rem; padding: .6rem 1rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font: inherit; cursor: pointer; text-decoration: none;
}
button:hover, .button-link:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } /* R9: flat amber pill */
button.danger { background: var(--danger); color: var(--accent-text); border-color: var(--danger); font-weight: 600; }
button.danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
button.link { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; color: var(--text-link); text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.error { color: var(--danger); }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem; overflow-x: auto; }
code { font-family: var(--font-mono); font-size: .9rem; }
progress { width: 100%; height: .8rem; accent-color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; }
.preview { max-width: 100%; border-radius: var(--radius-sm); }
@media (max-width: 600px) { table { display: block; overflow-x: auto; } }

/* Public pages (Task 14). Same tokens, no new colours or hosts. */
/* Chrome links stay quiet; amber is for actions and inline links. */
.top nav a, .foot a, .top button.link { color: var(--text-muted); text-decoration: none; }
.top nav a:hover, .foot a:hover, .top button.link:hover { color: var(--text); text-decoration: none; }
.foot { max-width: 860px; margin: 2rem auto 0; padding: 1rem; border-top: 1px solid var(--border); }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 40rem; }
.summary { font-size: 1.05rem; color: var(--text-head); border-left: 3px solid var(--accent); padding-left: .9rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid .card { margin: 0; }
.grid img, .gallery img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.gallery { display: grid; gap: 1.25rem; }
.cta { display: inline-block; margin: .5rem .5rem .5rem 0; padding: .65rem 1.1rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); text-decoration: none; }
.cta:hover { border-color: var(--accent); }
.cta.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.cta.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
details.snip { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: .5rem 0; background: var(--surface-solid); }
details.snip summary { cursor: pointer; padding: .55rem .8rem; color: var(--text-head); }
details.snip pre { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.pricing th, .pricing td { vertical-align: top; }
.pricing td.num, .pricing th.num { text-align: right; white-space: nowrap; }
.legal h2 { margin-top: 1.6rem; }
.legal ol, .legal ul { padding-left: 1.25rem; }
.f-list { list-style: none; padding: 0; }
.f-list li { margin: 0 0 1rem; padding: .8rem 1rem; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); }
.f-list h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--text-head); }
.f-list p { margin: 0; }
/* Chips (R11): hairline frame, tiny leading square, Plex Mono, the small chamfer. Text verbatim. */
.tag { position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .75rem; font-weight: 400;
  line-height: 1.5; color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 2px; padding: 1px var(--sp-2);
  clip-path: polygon(0 0, calc(100% - var(--chip-cut)) 0, 100% var(--chip-cut), 100% 100%, 0 100%); }
.tag::before { content: ''; flex: none; width: 5px; height: 5px; background: currentColor; }
.tag::after { content: ''; position: absolute; top: -1px; right: -1px; width: var(--chip-cut); height: var(--chip-cut); pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--border-strong) calc(50% - 1px), var(--border-strong) calc(50% + 1px), transparent calc(50% + 1px)); }
@media (max-width: 600px) { .hero h1 { font-size: 1.7rem; } .top { flex-direction: column; align-items: flex-start; gap: .5rem; } }
