/* Set & Pose public pages. Tokens follow the app's design system
   (docs/superpowers/specs/2026-10-10-two-appearance-restyle-design.md):
   one system, two appearances, plate red as the only accent, SF Pro via system fonts. */
:root {
  color-scheme: light dark;
  --ground: #f2f2f7;
  --surface: #ffffff;
  --text-primary: #000000;
  --text-secondary: #525256;
  --hairline: #c6c6c8;
  --accent: #b71c1c;
  --on-accent: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --surface: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --hairline: #3a3a3c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text-primary); line-height: 1.5; font-size: 17px; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
.preview { padding: .6rem 1rem; text-align: center; color: var(--text-secondary); font-size: .85rem; border-bottom: 1px solid var(--hairline); }

header, main, footer { width: min(100% - 2rem, 40rem); margin-inline: auto; }
header { padding: 1.5rem 0 .5rem; display: flex; flex-direction: column; gap: 1rem; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand::before {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border-radius: 50%;
  background: var(--accent); vertical-align: -.02em;
}

/* Segmented control, like the Mandatory / Other tabs in review. */
nav { display: flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); }
nav a { flex: 1; text-align: center; padding: .45rem .8rem; border-radius: 999px; color: var(--text-primary); font-size: .95rem; font-weight: 600; }
nav a[aria-current="page"] { background: var(--text-primary); color: var(--ground); }
nav a:hover { text-decoration: none; }

main { padding: 1rem 0 2rem; }
h1 { margin: 0 0 .35rem; font-size: clamp(2.1rem, 8vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.lead { margin: 0; color: var(--text-secondary); font-size: 1.05rem; }
.intro { padding: .5rem 0 .75rem; }
h2 { margin: 1.75rem 0 .4rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: .5rem 0; }
main > p { color: var(--text-primary); }

/* Floating opaque capsule bar, like the kept / Save bar. */
.contact { margin-top: 2rem; padding: .9rem 1rem; display: grid; gap: .3rem;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 1.5rem; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.contact h2 { margin: 0; font-size: 1rem; color: var(--text-secondary); font-weight: 600; }
.contact p { margin: 0; font-size: .95rem; }
.contact .button { display: block; margin-top: .4rem; padding: .8rem 1rem; border-radius: 999px; text-align: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.05rem; }
.contact .button:hover { text-decoration: none; filter: brightness(1.08); }

footer { padding: 1.25rem 0 2.5rem; color: var(--text-secondary); border-top: 1px solid var(--hairline); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
