/* Tema Field Ops (valori da design/themes/field-ops.json) */
:root {
  --background: #ECE6D9;
  --surface: #F7F3EA;
  --surface-secondary: #DED6C5;
  --text-primary: #1D1B17;
  --text-secondary: #5A5346;
  --primary: #C93A22;
  --on-primary: #FFFFFF;
  --positive: #1F6E67;
  --highlight: #E8A92E;
  --separator: rgba(40, 32, 20, .14);
  --livery-hairline: #F7F3EA;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17171A;
    --surface: #222226;
    --surface-secondary: #2E2E33;
    --text-primary: #EFE9DC;
    --text-secondary: #A79F8E;
    --primary: #F0603F;
    --on-primary: #17171A;
    --positive: #45B5A9;
    --highlight: #F2B84B;
    --separator: rgba(255, 255, 255, .12);
    --livery-hairline: #0A0A0C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--background);
  color: var(--text-primary);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }

.display {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .9;
  margin: 0;
}

.label {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  margin: 0;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 96px 28px 24px;
  background: var(--primary);
  color: var(--on-primary);
}

.card .label { color: inherit; opacity: .85; }
.card h1 { font-size: 44px; margin-top: 8px; overflow-wrap: anywhere; }
.card p { margin: 8px 0 0; font-weight: 600; opacity: .9; }

.livery {
  position: absolute;
  top: -12px;
  bottom: -12px;
  right: 22px;
  display: flex;
  gap: 3px;
  padding: 0 3px;
  background: var(--livery-hairline);
  transform: skewX(-18deg);
}
.livery span { width: 10px; }
.livery span:nth-child(1) { background: var(--primary); }
.livery span:nth-child(2) { background: var(--highlight); }
.livery span:nth-child(3) { background: var(--positive); }

.button {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 15px 20px;
  font-weight: 700;
  background: var(--text-primary);
  color: var(--background);
}
.button.secondary { background: var(--surface-secondary); color: var(--text-primary); }
.button[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.note { color: var(--text-secondary); font-size: 15px; margin: 0; text-align: center; }
.note a { color: inherit; }

/* Pagine di testo (privacy) */
body.doc { place-items: start center; }
body.doc main { max-width: 680px; gap: 20px; }
body.doc h1 { font-size: 56px; }
body.doc h2 { font-size: 19px; margin: 0 0 6px; }
body.doc section p, body.doc li { color: var(--text-secondary); }
body.doc ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
body.doc a { color: var(--primary); }
.note.left { text-align: left; }
.footer { margin-top: 8px; }
