/* Reptiq website: one stylesheet, no external fonts, scripts or trackers.
   Dark first (docs/SPEC.md §7 palette); light colours follow prefers-color-scheme. */

:root {
  color-scheme: dark light;

  --bg: #0B0D10;
  --surface: #15181D;
  --surface-2: #1E2229;
  --border: #2B313B;
  --text: #F2F4F7;
  --muted: #A7AFBA;
  --link: #C6F432;
  --accent: #C6F432;
  --accent-ink: #0B0D10;
  --secondary: #4CC9F0;
  --error: #FF5A5F;
  --warning: #FFB020;
  --success: #2BD67B;
  --mark-bg: #0B0D10;
  --mark-fg: #C6F432;
  --focus: #4CC9F0;
  --todo-bg: rgba(255, 176, 32, 0.16);
  --todo-text: #FFD27A;

  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --surface-2: #EDEFF3;
    --border: #D5DAE1;
    --text: #0B0D10;
    --muted: #485160;
    --link: #3A5600;
    --accent: #C6F432;
    --accent-ink: #0B0D10;
    --secondary: #0A6A86;
    --error: #C4262C;
    --warning: #8A5A00;
    --success: #127A43;
    --focus: #0A6A86;
    --todo-bg: rgba(255, 176, 32, 0.22);
    --todo-text: #5C3B00;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.75rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 700;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------------------------------------------------------------- skip link */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-mark .mark-bg {
  fill: var(--mark-bg);
}

.brand-mark .mark-r {
  fill: var(--mark-fg);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li + li {
  margin-top: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-list a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0;
}

.footer-links a {
  color: var(--text);
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  filter: brightness(1.06);
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-2);
}

/* ---------------------------------------------------------------- landing */

.hero {
  padding: 56px 0 40px;
}

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

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem);
  color: var(--muted);
  max-width: 38em;
}

.accent-text {
  color: var(--link);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

/* Placeholders until the store listings are live (see the HTML comment in index.html). */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  min-height: 56px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text);
  line-height: 1.25;
}

.store-badge small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.store-badge span {
  font-weight: 750;
  font-size: 1.05rem;
}

.fine {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Phone illustration (pure CSS + inline SVG, decorative). */
.phone {
  width: min(300px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  background: #0B0D10;
  overflow: hidden;
}

.phone-screen svg {
  width: 100%;
  height: 100%;
}

.skeleton-bone {
  stroke: #F2F4F7;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

.skeleton-joint {
  fill: #C6F432;
}

.skeleton-joint-bad {
  fill: #FF5A5F;
}

.phone-hud-text {
  fill: #F2F4F7;
  font-family: var(--font);
  font-weight: 800;
}

.phone-hud-muted {
  fill: #A7AFBA;
  font-family: var(--font);
  font-weight: 600;
}

.phone-cue {
  fill: rgba(198, 244, 50, 0.14);
  stroke: #C6F432;
  stroke-width: 1;
}

.phone-cue-text {
  fill: #C6F432;
  font-family: var(--font);
  font-weight: 700;
}

.section {
  padding: 48px 0;
}

.section-head {
  max-width: 44em;
  margin-bottom: 28px;
}

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

.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li + li {
  margin-top: 0;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card > :last-child {
  margin-bottom: 0;
}

.steps .card {
  counter-increment: step;
}

.steps .card::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

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

.privacy-band {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

@media (min-width: 760px) {
  .privacy-band {
    grid-template-columns: auto 1fr;
    padding: 36px 40px;
  }
}

.privacy-band h2 {
  margin-bottom: 8px;
}

.privacy-band p {
  color: var(--muted);
  margin-bottom: 0.6em;
}

.shield {
  width: 72px;
  height: 72px;
}

.shield .shield-body {
  fill: var(--surface-2);
  stroke: var(--accent);
  stroke-width: 2;
}

.shield .shield-lens {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
}

.tiers {
  display: grid;
  gap: 16px;
}

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

.tier {
  display: flex;
  flex-direction: column;
}

.tier h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.tier-tag {
  color: var(--muted);
  margin-bottom: 16px;
}

.tier-featured {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.tier-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card .price {
  margin-bottom: 4px;
  color: var(--text);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card .price-alt {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--link);
  border-bottom: 2.5px solid var(--link);
  transform: rotate(-45deg);
}

.callout {
  border-left: 4px solid var(--warning);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 0 0 1.25em;
}

.callout > :last-child {
  margin-bottom: 0;
}

.h3-size {
  font-size: 1.15rem;
}

.callout .h3-size,
.contact-card .h3-size {
  margin-top: 0;
  padding-top: 0;
}

.callout-info {
  border-left-color: var(--secondary);
}

.callout-ok {
  border-left-color: var(--success);
}

/* ---------------------------------------------------------------- legal / prose pages */

.page {
  max-width: 820px;
  padding-top: 40px;
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.4em;
  scroll-margin-top: 16px;
}

.prose h3 {
  margin-top: 1.6em;
  scroll-margin-top: 16px;
}

.prose li {
  padding-left: 0.1em;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.summary-card h2 {
  margin-top: 0;
  padding-top: 0;
  font-size: 1.2rem;
}

.summary-card > :last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.toc h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc ol {
  margin: 0;
  columns: 2 16em;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
  margin: 0 0 0.3em;
}

.toc li + li {
  margin-top: 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.25em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0;
}

caption {
  text-align: left;
  padding: 12px 14px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

thead th {
  background: var(--surface-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

tbody th {
  font-weight: 700;
  background: var(--surface);
}

tbody td {
  background: var(--surface);
}

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

/* Narrow screens: each row becomes a card, so no table needs horizontal scrolling. */
@media (max-width: 640px) {
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .stack-table caption {
    display: block;
    padding-bottom: 8px;
  }

  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table th,
  .stack-table td {
    display: block;
    width: 100%;
  }

  .stack-table tr {
    border-bottom: 1px solid var(--border);
  }

  .stack-table tbody tr:last-child {
    border-bottom: 0;
  }

  .stack-table th,
  .stack-table td {
    border-bottom: 0;
    padding: 6px 16px;
  }

  .stack-table tbody th {
    padding-top: 14px;
  }

  .stack-table td:last-child {
    padding-bottom: 14px;
  }

  .stack-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

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

.steps-list > li {
  counter-increment: item;
  position: relative;
  padding-left: 44px;
  min-height: 32px;
}

.steps-list > li + li {
  margin-top: 0.7em;
}

.steps-list > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: -0.05em;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
}

.ui-label {
  font-weight: 700;
  white-space: nowrap;
}

.two-col {
  display: grid;
  gap: 16px;
  margin-bottom: 1.25em;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.two-col .card h3 {
  margin-top: 0;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style-position: outside;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.faq details > :last-child {
  margin-bottom: 16px;
}

.contact-card {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.contact-card p {
  margin: 0;
}

.contact-email {
  font-size: clamp(1.15rem, 2vw + 0.8rem, 1.5rem);
  font-weight: 800;
  word-break: break-all;
}

/* Text the owner must complete before publishing. Visible on purpose. */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 404 */

.not-found {
  padding: 80px 0 40px;
  text-align: center;
}

.not-found .big {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--link);
  margin-bottom: 12px;
}

.not-found .store-row {
  justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-header nav,
  .skip-link,
  .store-row {
    display: none;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  a {
    color: #000000;
  }
}

.not-found .lede {
  margin-left: auto;
  margin-right: auto;
}
