/* Spomr marketing site. Static HTML and CSS only, no JavaScript.
   The mobile menu is a checkbox toggle, so it works without script. */

:root {
  --ink: #13202b;
  --muted: #4a5a68;
  --bg: #ffffff;
  --surface: #f3f7f8;
  --line: #d6e1e5;
  --brand: #0e5f6b;
  --brand-dark: #0a4650;
  --brand-tint: #e3f0f2;
  --accent: #23734a;
  --focus: #b35c00;
  --radius: 10px;
  --max: 1080px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.container {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 68ch;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 10;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-dark);
  text-decoration: none;
}

/* Brand mark: the site favicon, shown to the left of the name on every page. */
.brand::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url("favicon.svg") center / contain no-repeat;
}

/* The checkbox stays focusable but is visually hidden; its label is the visible button. */
.nav-toggle,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.nav-button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.nav-toggle:focus-visible + .nav-button {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 4px;
  padding: 8px 0 16px;
}

.nav-toggle:checked ~ .site-nav {
  display: flex;
}

.site-nav a {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--brand);
}

.site-nav a.btn-primary {
  margin-top: 8px;
  border-bottom: 0;
  color: #fff;
  text-align: center;
}

@media (min-width: 820px) {
  .nav-button {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: auto;
    padding: 0;
  }

  .site-nav a {
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
  }

  .site-nav a:not(.btn):hover {
    background: var(--surface);
  }

  .site-nav a.btn-primary {
    margin: 0 0 0 8px;
    padding: 10px 16px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  border-color: var(--brand);
  background: transparent;
  color: var(--brand);
}

.btn-ghost:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.chips-label {
  margin: 32px 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* Illustrative ledger card in the hero */
.ledger {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(19, 32, 43, 0.08);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-row {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.ledger-row strong {
  display: block;
  font-size: 0.95rem;
}

.ledger-row code {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

.ledger-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 56px 0 48px;
  background: var(--brand-tint);
}

.page-hero .lead {
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 80px;
}

/* ---------- Cards and steps ---------- */

.cards,
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.card p {
  color: var(--muted);
}

.card .more {
  margin-top: auto;
  font-weight: 600;
}

.steps {
  counter-reset: step;
}

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.steps li::before {
  display: block;
  margin-bottom: 8px;
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.steps li p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (min-width: 1000px) {
  .steps-five {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- Module detail (platform page) ---------- */

.module {
  display: grid;
  gap: 16px 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.module h2 {
  margin-bottom: 0;
}

.module p {
  color: var(--muted);
}

@media (min-width: 900px) {
  .module {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

/* ---------- Notes and calls to action ---------- */

.note {
  margin-top: 32px;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--muted);
}

.note p {
  margin: 0;
}

.cta-band {
  padding: 56px 0;
  background: var(--brand-dark);
  color: #fff;
}

.cta-band h2 {
  margin-bottom: 8px;
  color: #fff;
}

.cta-band p {
  margin: 0 0 24px;
  color: #d4e7ea;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-dark);
}

.cta-band .btn-primary:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner a {
  color: var(--muted);
}

/* ---------- Sample package check (demo.html) ----------
   Radio buttons pick the scenario; :checked shows its panel. */

.demo {
  position: relative;
  display: grid;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(19, 32, 43, 0.06);
}

@media (min-width: 640px) {
  .demo {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo > label {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.demo > input:checked + label {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--brand);
}

.demo > input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.screen {
  display: none;
  grid-column: 1 / -1;
  padding: 24px;
}

#scn-match:checked ~ .screen-match,
#scn-serial:checked ~ .screen-serial,
#scn-expiry:checked ~ .screen-expiry {
  display: block;
}

.screen-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.scan-string {
  display: block;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.compare {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody th {
  font-weight: 600;
}

.compare code {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.status {
  font-weight: 700;
}

.status-ok {
  color: var(--accent);
}

.status-warn {
  color: #8a4b00;
}

.status-bad {
  color: #a32020;
}

.status-muted {
  color: var(--muted);
  font-weight: 600;
}

.result {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.result-ok {
  background: #e6f3ec;
  color: #173f2a;
}

.result-warn {
  background: #fdf1e0;
  color: #6b3d00;
}

.result-bad {
  background: #fbe9e9;
  color: #7a1717;
}

/* On phones each table row becomes a stacked block, labeled from data-label. */
@media (max-width: 639px) {
  .compare thead {
    display: none;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .compare th,
  .compare td {
    padding: 4px 0;
    border: 0;
  }

  .compare td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--muted);
  }
}

/* ---------- Sign-up form (signup.html) ---------- */

.form {
  display: grid;
  gap: 20px;
  max-width: 680px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #6b8590;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.req {
  color: #a32020;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.3em 0 0;
}

button.btn {
  font: inherit;
  cursor: pointer;
}

/* ---------- Legal text (privacy-policy.html) ---------- */

.policy hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.policy h3 {
  margin-top: 32px;
  font-size: 1.1rem;
}

.policy blockquote {
  margin: 0 0 32px;
  padding: 16px 20px;
  border-left: 4px solid var(--focus);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--muted);
}

.policy blockquote p {
  margin: 0;
}

/* Bracketed fields in the policy that still need a real value. */
.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: #fdf1e0;
  color: #6b3d00;
}
