/* Spin Registry House — CSS variables + native nesting */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap");

:root {
  --ink: #0b0b0b;
  --ink-soft: #2a2a2a;
  --muted: #5c635e;
  --paper: #f7f8f6;
  --paper-2: #eef5f0;
  --mint: #e8f7ef;
  --mint-deep: #d4efe0;
  --emerald: #00c853;
  --emerald-ink: #007a33;
  --white: #ffffff;
  --rule: #c9d4cc;
  --shadow: 0 10px 28px rgba(11, 11, 11, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --max: 1120px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --border: 2px solid var(--ink);
  --age-h: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  line-height: 1.6;
  padding-top: var(--age-h);
  padding-bottom: 72px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-3);
  max-width: 70ch;
}

.accent {
  color: var(--emerald-ink);
  background: linear-gradient(transparent 62%, rgba(0, 200, 83, 0.28) 62%);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.wrap {
  width: min(100% - 2 * var(--space-3), var(--max));
  margin-inline: auto;
}

.dash {
  border: 0;
  border-top: 2px dashed var(--rule);
  margin: var(--space-6) 0;
}

/* Age notice — persistent top bar */
.age-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--age-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  text-align: center;

  & a {
    color: var(--emerald);
  }
}

/* Double-deck header */
.utility {
  background: var(--mint);
  border-bottom: 2px solid var(--ink);
  font-size: 0.82rem;

  & .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 8px 0;
  }

  & .utility__note {
    color: var(--ink-soft);
  }

  & .utility__links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
  }
}

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: var(--age-h);
  z-index: 900;

  & .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 14px 0;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);

  & img {
    width: 40px;
    height: 40px;
  }

  & span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;

  & a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
  }

  & a:hover,
  & a[aria-current="page"] {
    color: var(--emerald-ink);
    text-decoration: underline;
  }
}

.nav-toggle {
  display: none;
  border: var(--border);
  background: var(--white);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

/* Hero — organic soft */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 248, 246, 0.88), rgba(247, 248, 246, 0.94)),
    url("/assets/hero-organic-bg.png") center / cover no-repeat;

  &::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.18), transparent 70%);
    top: -80px;
    right: -40px;
    pointer-events: none;
  }

  &::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 46% 54% 60% 40%;
    background: var(--mint);
    bottom: -60px;
    left: 8%;
    opacity: 0.7;
    pointer-events: none;
  }

  & .wrap {
    position: relative;
    z-index: 1;
    max-width: 720px;
  }

  & .hero__lede {
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    max-width: 58ch;
    color: var(--ink-soft);
  }

  & .hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
  }
}

.notice-strip {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0 0;
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  font-weight: 600;
}

.badge--fill {
  background: var(--emerald);
  border-color: var(--ink);
  color: var(--ink);
}

.badge--soft {
  background: var(--mint);
}

/* Credibility */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-5) 0;

  & article {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
  }

  & strong {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--emerald-ink);
    margin-bottom: 4px;
  }

  & span {
    font-size: 0.9rem;
    color: var(--muted);
  }
}

/* Section shells */
.section {
  padding: var(--space-5) 0;
}

.section--tint {
  background:
    linear-gradient(180deg, rgba(232, 247, 239, 0.75), rgba(238, 245, 240, 0.9)),
    url("/assets/section-band-bg.png") center / cover no-repeat;
  border-block: 2px dashed var(--rule);
  border-radius: 0 0 48px 48px;
  margin-bottom: var(--space-5);
}

.section__head {
  margin-bottom: var(--space-4);

  & h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 18ch;
  }
}

.display {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 14ch;
}

/* Showcase — full-width horizontal rows, two-column cards */
.showcase {
  display: grid;
  gap: var(--space-4);
}

.operator {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 0;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

.operator__facts {
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.operator__top {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.operator__logo {
  width: 72px;
  height: 72px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 8px;
  flex-shrink: 0;

  & img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
  }
}

.operator__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.operator__score {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--emerald-ink);
}

.operator__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operator__action {
  background: var(--mint);
  border-left: 2px dashed var(--rule);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.offer-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0;
}

.fine {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  text-decoration: none;
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 280px;
  font-family: var(--font-display);
  font-weight: 600;

  & .btn__label {
    background: var(--emerald);
    padding: 12px 16px;
    text-align: center;
  }

  & .btn__chev {
    background: var(--ink);
    color: var(--white);
    display: grid;
    place-items: center;
    padding: 0 14px;
    font-size: 1.1rem;
  }

  &:hover .btn__label {
    background: #14d866;
  }
}

.btn--ghost {
  & .btn__label {
    background: var(--white);
  }
}

.link-info {
  font-size: 0.9rem;
}

.disclosure {
  margin: var(--space-4) 0 0;
  padding: var(--space-3);
  border: 2px dashed var(--rule);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.9rem;
}

/* Table centrepiece */
.table-shell {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.92rem;

  & th,
  & td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: middle;
  }

  & th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--mint);
    border-bottom: var(--border);
  }

  & td:nth-child(n + 3) {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
  }

  & td:last-child {
    color: var(--emerald-ink);
    font-weight: 600;
  }

  & tbody tr:last-child td {
    border-bottom: 0;
  }

  & .tick {
    color: var(--emerald-ink);
    font-weight: 700;
  }

  & .cross {
    color: var(--muted);
  }
}

/* Category picks */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.category {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  &:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  & h3 {
    font-size: 1.2rem;
  }

  & ol {
    margin: 0;
    padding-left: 1.2rem;
  }

  & li {
    margin-bottom: 8px;
  }
}

.method,
.glossary,
.faq,
.prose {
  & h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  }
}

.method__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4);
  align-items: start;
}

.figure {
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mint);

  & img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  & figcaption {
    padding: var(--space-2) var(--space-3);
    font-size: 0.82rem;
    color: var(--muted);
  }
}

.glossary__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);

  & dt {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0;
  }

  & dd {
    margin: 0 0 var(--space-3);
    color: var(--ink-soft);
  }
}

.faq__item {
  border-bottom: 2px dashed var(--rule);
  padding: var(--space-3) 0;

  & h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  & p {
    margin: 0;
    color: var(--ink-soft);
  }
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 2px dashed var(--rule);
  padding-top: var(--space-4);
  margin-top: var(--space-5);
}

/* Footer with safety column */
.site-footer {
  background: var(--ink);
  color: #e8ece9;
  padding: var(--space-6) 0 var(--space-5);
  margin-top: var(--space-6);
  border-radius: 48px 48px 0 0;

  & a {
    color: #b7f0c9;
  }

  & a:hover {
    color: var(--white);
  }

  & .brand span {
    color: var(--white);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
}

.footer-col {
  & h2,
  & h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-3);
  }

  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  & li {
    margin-bottom: 8px;
  }

  & p {
    color: #c5ccc8;
    font-size: 0.9rem;
  }
}

.safety-links {
  display: grid;
  gap: 10px;

  & a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--white);
  }

  & a:hover {
    border-color: var(--emerald);
  }

  & img {
    width: 36px;
    height: 28px;
    object-fit: contain;
    background: var(--white);
    border-radius: 4px;
    padding: 2px;
  }
}

.brand-strip {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: #aab2ad;
}

/* Cookie banner */
.cookie {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 1100;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: none;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin-inline: auto;

  &.is-visible {
    display: grid;
  }

  & p {
    margin: 0;
    font-size: 0.9rem;
  }
}

/* Interior pages */
.page-hero {
  padding: var(--space-6) 0 var(--space-4);
  background:
    linear-gradient(180deg, rgba(247, 248, 246, 0.9), rgba(247, 248, 246, 0.95)),
    url("/assets/about-bg.png") center / cover no-repeat;
  border-bottom: 2px dashed var(--rule);

  & h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    max-width: 16ch;
  }
}

.content {
  padding: var(--space-5) 0 var(--space-6);

  & .stack > * + * {
    margin-top: var(--space-4);
  }
}

.panel {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.form {
  display: grid;
  gap: var(--space-3);
  max-width: 520px;

  & label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 0.92rem;
  }

  & input,
  & textarea {
    border: var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font: inherit;
    background: var(--paper);
  }

  & button {
    justify-self: start;
    border: var(--border);
    background: var(--emerald);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: start;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;

  & li {
    position: relative;
    padding-left: 56px;
    margin-bottom: var(--space-4);
    counter-increment: step;
  }

  & li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--emerald-ink);
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  .stats,
  .categories,
  .footer-grid,
  .glossary__list,
  .method__grid,
  .split {
    grid-template-columns: 1fr;
  }

  .operator {
    grid-template-columns: 1fr;
  }

  .operator__action {
    border-left: 0;
    border-top: 2px dashed var(--rule);
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: var(--space-3);
  }

  .site-header .wrap {
    flex-wrap: wrap;
  }

  .nav.is-open {
    display: flex;
  }

  .cookie {
    grid-template-columns: 1fr;
  }

  .btn {
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .operator:hover,
  .category:hover {
    transform: none;
  }
}
