/* Spin Map House — tokens + utility composition */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --c-bg: #f4f7f6;
  --c-surface: #ffffff;
  --c-ink: #14201e;
  --c-muted: #5a6b67;
  --c-teal: #0d8a7c;
  --c-teal-deep: #0a6b60;
  --c-tangerine: #ff7a3d;
  --c-tangerine-deep: #e85f22;
  --c-line: rgba(20, 32, 30, 0.12);
  --c-line-strong: rgba(20, 32, 30, 0.22);
  --c-chip: rgba(13, 138, 124, 0.1);
  --c-chip-accent: rgba(255, 122, 61, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --shadow-soft: 0 8px 24px rgba(13, 138, 124, 0.08);
  --shadow-btn: 0 4px 14px rgba(255, 122, 61, 0.28);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --max: 1120px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --lh: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: var(--lh);
  color: var(--c-ink);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 138, 124, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 122, 61, 0.16), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%230d8a7c' stroke-opacity='0.045' stroke-width='1'%3E%3Cpath d='M12 18l4 8 8 2-6 6 2 8-8-4-8 4 2-8-6-6 8-2z'/%3E%3Ccircle cx='52' cy='48' r='3'/%3E%3Cpath d='M48 20h8M52 16v8'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-tangerine);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-tangerine-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--space-4);
  max-width: 70ch;
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.2rem;
}

/* —— utilities —— */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cluster-between {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-safety {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .grid-safety {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .grid-safety {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow > * + * {
  margin-top: var(--space-4);
}

.rule {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--space-7) 0;
}

.rule-tight {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--space-5) 0;
}

.heading-rule {
  display: inline-block;
  padding-bottom: var(--space-2);
  border-bottom: 3px solid var(--c-tangerine);
  margin-bottom: var(--space-5);
}

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-teal-deep);
}

.muted {
  color: var(--c-muted);
}

.small {
  font-size: 0.9rem;
}

.tiny {
  font-size: 0.78rem;
  line-height: 1.45;
}

.mono {
  font-family: var(--mono);
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.surface {
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: var(--space-5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--c-chip);
  color: var(--c-teal-deep);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-accent {
  background: var(--c-chip-accent);
  color: var(--c-tangerine-deep);
}

.score {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--c-teal-deep);
  background: var(--c-chip);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--c-tangerine);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--c-tangerine-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--c-teal-deep);
  border-color: var(--c-teal);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--c-chip);
  color: var(--c-teal-deep);
}

/* —— age bar —— */
.age-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-ink);
  color: #f4f7f6;
  font-size: 0.82rem;
  padding: 0.55rem 0;
}

.age-bar a {
  color: #ffb08a;
  font-weight: 600;
}

.age-bar a:hover {
  color: #fff;
}

/* —— header —— */
.site-header {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--c-line);
  background: rgba(244, 247, 246, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 34px;
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--c-ink);
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--c-tangerine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:hover {
  color: var(--c-tangerine-deep);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: var(--space-3);
  }

  .nav.is-open {
    display: flex;
  }
}

/* —— hero —— */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  overflow: hidden;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 30%, rgba(13, 138, 124, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(255, 122, 61, 0.24), transparent 55%),
    url("/assets/images/hero-aurora.png") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  max-width: 14ch;
  margin-bottom: var(--space-5);
}

.hero__title .accent {
  color: var(--c-tangerine);
}

.hero__lede {
  font-size: 1.15rem;
  max-width: 52ch;
  color: var(--c-ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  max-width: 640px;
}

.stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat__num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c-teal-deep);
  display: block;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--c-muted);
}

@media (max-width: 560px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.notice {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  max-width: 70ch;
}

/* —— showcase —— */
.section {
  padding: var(--space-7) 0;
}

.section-band {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13, 138, 124, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.45);
}

.operator {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--c-line);
}

.operator:last-child {
  border-bottom: 0;
}

.operator__top {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-4);
  align-items: start;
}

@media (max-width: 640px) {
  .operator__top {
    grid-template-columns: 64px 1fr;
  }

  .operator__score {
    grid-column: 1 / -1;
  }
}

.operator__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.operator__name {
  margin: 0 0 var(--space-2);
  font-size: 1.35rem;
}

.operator__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-3);
}

.operator__note {
  margin: var(--space-3) 0 0;
  color: var(--c-muted);
  font-size: 0.78rem;
  max-width: none;
}

.showcase-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.aff-note {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-left: 3px solid var(--c-tangerine);
  background: rgba(255, 122, 61, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
}

/* —— table —— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

.compare th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: rgba(13, 138, 124, 0.06);
  font-weight: 600;
}

.compare td.num,
.compare th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare tbody tr:hover td {
  background: rgba(13, 138, 124, 0.04);
}

/* —— safety cards —— */
.safety-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 140px;
}

.safety-card:hover {
  border-color: var(--c-teal);
  color: var(--c-ink);
  box-shadow: var(--shadow-soft);
}

.safety-card img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.safety-card strong {
  font-size: 1rem;
}

/* —— FAQ —— */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-list li {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--c-line);
}

.faq-list li:last-child {
  border-bottom: 0;
}

.faq-list h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

/* —— figure —— */
.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.figure figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 0.85rem;
  color: var(--c-muted);
}

.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split-rev {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* —— prose pages —— */
.page-hero {
  padding: var(--space-7) 0 var(--space-5);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: var(--space-6);
}

.prose h2.heading-rule {
  margin-top: var(--space-6);
}

.form {
  display: grid;
  gap: var(--space-4);
  max-width: 520px;
}

.form label {
  display: grid;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line-strong);
  background: #fff;
  color: var(--c-ink);
  box-shadow: inset 0 1px 2px rgba(20, 32, 30, 0.04);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

/* —— footer —— */
.site-footer {
  margin-top: var(--space-7);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.55);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 18%;
  width: 120px;
  height: 120px;
  background: url("/assets/brand-mark.svg") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--c-teal-deep);
  font-weight: 600;
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--c-muted);
  max-width: none;
}

/* —— cookie —— */
.cookie {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(20, 32, 30, 0.16);
  display: none;
}

.cookie.is-visible {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
