/* ==========================================================================
   REGO Collars — site stylesheet
   Palette is drawn from the product itself: gunmetal hardware, bone-coloured
   paper, veg-tan strap, and the dark scorch the laser leaves behind.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --gunmetal:        #2B3336;
  --gunmetal-deep:   #1E2426;
  --bone:            #EFE9DE;
  --paper:           #FBF8F3;
  --tan:             #C58B4F;
  --tan-light:       #DDB07A;
  --scorch:          #43291A;
  --nickel:          #9AA4A6;
  --ink:             #23282A;
  --muted:           #5F6A6D;
  --rule:            #D8CFC0;
  --rule-dark:       #3D4649;

  --font-ui:      "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-engrave: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 68rem;
  --gap: 1.5rem;
  --radius: 4px;
  --radius-lg: 10px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  color: var(--scorch);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 62ch; }

a { color: var(--scorch); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tan); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--scorch); color: var(--bone);
  padding: 0.7rem 1.1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.band { padding-block: clamp(3rem, 7vw, 4.75rem); }
.band--paper { background: var(--paper); border-block: 1px solid var(--rule); }
.band--dark { background: var(--gunmetal); color: var(--bone); }
.band--dark h2, .band--dark h3 { color: var(--bone); }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.band--dark .lede { color: var(--tan-light); }

/* ---------- 4. Header & nav ---------- */
.masthead {
  background: var(--gunmetal-deep);
  color: var(--bone);
  border-bottom: 1px solid var(--rule-dark);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px; flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center;
  margin-right: auto; text-decoration: none;
  border-radius: 3px;
}
.wordmark img { height: 30px; width: auto; display: block; }
.wordmark:hover img { opacity: 0.85; }

.nav { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.nav a {
  color: var(--bone); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--tan-light); border-bottom-color: var(--tan); }
.nav a[aria-current="page"] { border-bottom-color: var(--tan); color: var(--tan-light); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--tan); color: var(--gunmetal-deep); }
.btn--primary:hover { background: var(--tan-light); color: var(--gunmetal-deep); }
.btn--dark { background: var(--scorch); color: var(--bone); }
.btn--dark:hover { background: var(--gunmetal); color: var(--bone); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--nickel); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: var(--bone); border-color: var(--tan); }
.btn--ghost-dark { background: transparent; color: var(--scorch); border-color: var(--rule); }
.btn--ghost-dark:hover { background: var(--paper); border-color: var(--scorch); color: var(--scorch); }

/* ---------- 6. Hero ---------- */
.hero {
  background: var(--gunmetal);
  color: var(--bone);
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 3.75rem);
}
.hero h1 { color: var(--bone); margin-bottom: 0.5rem; }
.hero__sub {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: var(--tan-light);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

.namer { max-width: 34rem; margin-bottom: 1.25rem; }
.namer__label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--bone); margin-bottom: 0.45rem;
}
.namer input {
  width: 100%; font-family: inherit; font-size: 1.05rem;
  padding: 0.8rem 1rem;
  background: var(--gunmetal-deep);
  border: 1px solid var(--nickel);
  border-radius: var(--radius);
  color: var(--bone);
}
.namer input::placeholder { color: var(--nickel); }
.namer input:focus { border-color: var(--tan); }
.namer__hint { font-size: 0.85rem; color: var(--nickel); margin: 0.45rem 0 0; }

.strap-stage { margin: 1.5rem 0 1.6rem; max-width: 44rem; }
.strap-stage svg { width: 100%; height: auto; display: block; }
.strap-stage img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
}
.hero .hero__promise { margin-top: 1rem; }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; align-items: center;
}
.hero__promise {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; color: var(--tan-light); margin: 0;
}
.hero__promise svg { flex: none; }

/* ---------- 7. Breadcrumbs ---------- */
.crumbs { background: var(--paper); border-bottom: 1px solid var(--rule); }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.45rem; margin: 0; padding: 0.7rem 0;
  font-size: 0.88rem; color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--scorch); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--scorch); font-weight: 600; }
.crumbs svg { color: var(--rule); flex: none; }

/* ---------- 8. Feature row ---------- */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.features li { display: flex; gap: 0.9rem; }
.features h3 { margin-bottom: 0.3rem; }
.features p { margin: 0; font-size: 0.97rem; color: var(--muted); }
.icon-badge {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--scorch);
}
.band--dark .icon-badge { background: var(--gunmetal-deep); border-color: var(--rule-dark); color: var(--tan); }
.band--dark .features p { color: var(--tan-light); }

/* ---------- 9. Product cards ---------- */
.products {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 2rem;
}
.product {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.product__media { background: var(--bone); border-bottom: 1px solid var(--rule); }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { margin-bottom: 0.35rem; }
.product__meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.product__price {
  font-size: 1.28rem; font-weight: 700; color: var(--scorch);
  margin: auto 0 0.25rem;
}
.product__price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.product__note { font-size: 0.87rem; color: var(--muted); margin: 0.35rem 0 0; }

.flag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  background: var(--scorch); color: var(--bone);
  margin-bottom: 0.6rem; align-self: flex-start;
}
.flag--soon { background: var(--gunmetal); }

.swatches { display: flex; gap: 0.5rem; margin: 0.2rem 0 0.9rem; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
}

/* ---------- 10. Price table ---------- */
.pricing {
  width: 100%; border-collapse: collapse; margin-top: 1.5rem;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
}
.pricing caption { text-align: left; font-size: 0.92rem; color: var(--muted); padding-bottom: 0.7rem; }
.pricing th, .pricing td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); }
.pricing thead th { background: var(--bone); font-size: 0.88rem; color: var(--scorch); }
.pricing tbody tr:last-child th, .pricing tbody tr:last-child td { border-bottom: 0; }
.pricing td:last-child { font-weight: 700; color: var(--scorch); white-space: nowrap; }

/* ---------- 11. FAQ ---------- */
.faq { margin-top: 1.75rem; border-top: 1px solid var(--rule); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-weight: 600; font-size: 1.05rem; color: var(--scorch);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 1.45rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--tan); border-bottom: 2px solid var(--tan);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.65rem; }
.faq .faq__answer { padding-bottom: 1.1rem; }
.faq .faq__answer p:last-child { margin-bottom: 0; }
.faq .faq__answer p { color: var(--muted); }

/* ---------- 12. Form ---------- */
.signup { max-width: 34rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.band--dark .field label { color: var(--bone); }
.band--dark .field input, .band--dark .field textarea, .band--dark .field select {
  background: var(--gunmetal-deep); border-color: var(--nickel); color: var(--bone);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--tan); }
.field__hint { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }
.band--dark .field__hint { color: var(--nickel); }
.hp { position: absolute; left: -9999px; }

.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; }
.consent input { width: auto; margin-top: 0.25rem; flex: none; }
.consent label { font-weight: 400; }

/* ---------- 13. Callout ---------- */
.callout {
  border-left: 3px solid var(--tan);
  background: var(--paper);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }

/* ---------- 14. Prose (privacy, long copy) ---------- */
.prose h2 { margin-top: 2.3rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { max-width: 62ch; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose__meta { font-size: 0.9rem; color: var(--muted); }

/* ---------- 15. Related links ---------- */
.next-links {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  list-style: none; margin: 1.75rem 0 0; padding: 0;
}
.next-links a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.1rem; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; color: var(--scorch);
}
.next-links a:hover { border-color: var(--tan); color: var(--scorch); }
.next-links svg { flex: none; color: var(--tan); }

/* ---------- 16. Footer ---------- */
.footer {
  background: var(--gunmetal-deep); color: var(--bone);
  padding-block: 2.75rem 2rem; margin-top: 0;
}
.footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer h2 { font-size: 0.95rem; color: var(--tan-light); margin-bottom: 0.75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: var(--bone); text-decoration: none; font-size: 0.95rem; }
.footer a:hover { color: var(--tan-light); text-decoration: underline; }
.footer p { color: var(--nickel); font-size: 0.92rem; max-width: 34ch; }
.footer__base {
  margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.88rem; color: var(--nickel);
}
.footer__base p { margin: 0; }
.social { display: flex; gap: 0.8rem; align-items: center; }
.social a { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- 17. Status pages (404 / thanks) ---------- */
.status {
  background: var(--gunmetal); color: var(--bone);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.status h1 { color: var(--bone); }
.status p { color: var(--tan-light); font-size: 1.12rem; max-width: 48ch; }
.status__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.status__art { margin-bottom: 1.75rem; max-width: 38rem; }
.status__art svg { width: 100%; height: auto; }

/* ---------- 18. Small screens ---------- */
@media (max-width: 40rem) {
  .masthead__inner { min-height: 0; padding-block: 0.7rem; }
  .nav { gap: 1rem; width: 100%; }
  .wordmark { margin-right: 0; width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__promise { justify-content: center; }
  .pricing th, .pricing td { padding: 0.7rem 0.6rem; font-size: 0.94rem; }
}

/* ---------- 19. Artwork sizing ---------- */
.status__art { max-width: 20rem; }
@media (max-width: 40rem) {
  .strap-stage { margin-block: 1.25rem 1.4rem; }
}

/* ---------- 20. Coming-soon flag on the dark hero ---------- */
.hero .flag { background: var(--tan); color: var(--gunmetal-deep); margin-bottom: 0.9rem; }

/* ---------- 21. Brand badge ---------- */
.footer__logo { width: 132px; height: auto; margin-bottom: 0.9rem; }

/* ---------- 22. Links on dark bands ----------
   The global link colour is scorch, which is invisible against the dark
   sections. Buttons keep their own colours. */
.band--dark a:not(.btn),
.status a:not(.btn) { color: var(--tan-light); }
.band--dark a:not(.btn):hover,
.status a:not(.btn):hover { color: var(--bone); }

/* ---------- 23. Spacing utilities ----------
   These replace inline style attributes so the site can run a strict
   Content-Security-Policy without style-src 'unsafe-inline'. */
.mt-sm  { margin-top: 0.75rem; }
.mt-sm2 { margin-top: 0.9rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-md2 { margin-top: 1.75rem; }
.mt-lg  { margin-top: 2.5rem; }
.mt-lg2 { margin-top: 2.75rem; }
.icon-inline { vertical-align: -3px; }
.products--wide { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

/* ---------- Signature colour swatches ---------- */
.swatches {
  list-style: none; margin: 1.3rem 0 0; padding: 0;
  display: grid; gap: 1.1rem 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.swatches li { display: flex; align-items: center; gap: 0.8rem; }
.swatches .chip {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--rule);
}
.swatches h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.swatches p { font-size: 0.87rem; color: var(--muted); margin: 0; }
.chip--saddle-tan    { background: #A9702F; }
.chip--spanish-brown { background: #7A3B22; }
.chip--dark-brown    { background: #3E2519; }
.chip--green         { background: #2E4632; }

/* ---------- Horizontal product rail (Ancol range) ---------- */
.rail__hint {
  font-size: 0.9rem; color: var(--muted);
  margin: 0.6rem 0 0; display: flex; align-items: center; gap: 0.4rem;
}
.products--rail {
  display: flex; gap: 1.1rem;
  margin-top: 1.2rem; padding-bottom: 0.9rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.products--rail .product {
  flex: 0 0 72%; max-width: 20rem;
  scroll-snap-align: start;
}
.products--rail .product__media img { aspect-ratio: 4 / 3; }
@media (min-width: 46rem) {
  .rail__hint { display: none; }
  .products--rail {
    display: grid; gap: 1.75rem; overflow: visible;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    margin-top: 2rem; padding-bottom: 0;
  }
  .products--rail .product { flex: initial; max-width: none; }
}
