/* ─── Design tokens ──────────────────────────────────────────────────
   Light palette is defined in full on :root. The dark blocks redefine
   only tokens, so every component keeps working in both themes.        */

:root {
  --ground:      #f3f1f8;  /* neutral, biased violet toward the ink */
  --paper:       #ffffff;
  --ink:         #1b1436;
  --ink-soft:    #5a5175;
  --line:        #1b1436;
  --line-faint:  #d9d4e6;

  --accent:      #ff5a36;  /* tangerine — the one loud colour */
  --accent-ink:  #ffffff;
  --accent-deep: #e8431f;
  --aqua:        #0fb5c4;

  --shadow:      4px 4px 0 var(--ink);
  --shadow-lift: 6px 6px 0 var(--ink);

  --radius:      18px;
  --radius-sm:   12px;
  --border:      2px;

  --measure:     60ch;
  --gap:         clamp(1rem, 2.5vw, 1.75rem);
  --section-y:   clamp(3.5rem, 9vw, 6.5rem);

  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
          "Segoe UI Variable Display", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:     #141029;
    --paper:      #201a3d;
    --ink:        #f1eefa;
    --ink-soft:   #a79fc4;
    --line:       #3d3463;
    --line-faint: #2c2450;

    --accent:      #ff7350;
    --accent-ink:  #1b1436;
    --accent-deep: #ff8f72;
    --aqua:        #3ad3e0;

    --shadow:      4px 4px 0 var(--line);
    --shadow-lift: 6px 6px 0 var(--line);
  }
}

:root[data-theme="dark"] {
  --ground:     #141029;
  --paper:      #201a3d;
  --ink:        #f1eefa;
  --ink-soft:   #a79fc4;
  --line:       #3d3463;
  --line-faint: #2c2450;

  --accent:      #ff7350;
  --accent-ink:  #1b1436;
  --accent-deep: #ff8f72;
  --aqua:        #3ad3e0;

  --shadow:      4px 4px 0 var(--line);
  --shadow-lift: 6px 6px 0 var(--line);
}

/* ─── Base ───────────────────────────────────────────────────────────── */

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.05; text-wrap: balance; margin: 0 0 0.5em; }

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { color: var(--ink-soft); font-size: 1.075em; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Small caps label used above section headings. */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Layout ─────────────────────────────────────────────────────────── */

.site-header,
main > section,
.site-footer {
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section { padding-block: var(--section-y); }

/* ─── Header ─────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* The dot echoes the charm post the clip grips. */
.wordmark::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  border: var(--border) solid var(--line);
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.8125rem 1.625rem;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease,
              background-color 120ms ease;
}
.btn:hover {
  background: var(--accent-deep);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }

.btn-small { padding: 0.5rem 1.125rem; font-size: 0.9375rem; box-shadow: 3px 3px 0 var(--line); }
.btn-large { padding: 1.0625rem 2.5rem; font-size: 1.125rem; }

.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

.fineprint {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* Trademark mark: small, raised, and never as loud as the word it sits on. */
.tm {
  font-size: 0.5em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
}

/* ─── Rating ─────────────────────────────────────────────────────────── */

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
}
.rating .stars {
  color: var(--accent);
  font-size: 1.05em;
  letter-spacing: 0.05em;
}
.rating-center { justify-content: center; margin-top: 1.25rem; }

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem) var(--section-y);
}

@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.1fr 1fr; }
}

.hero h1 .pop { color: var(--accent); }

/* ─── Cards ──────────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.75rem;
  background: var(--paper);
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.9688rem; }

/* ─── Install steps ──────────────────────────────────────────────────── */

/* Numbered because installing genuinely is a sequence. */
.steps {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 3.25rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: var(--border) solid var(--line);
  border-radius: 50%;
  background: var(--aqua);
  color: #10102a;
  font-size: 1.0625rem;
  font-weight: 800;
}
.steps strong { display: block; color: var(--ink); font-size: 1.0625rem; }

/* ─── Pull quote ─────────────────────────────────────────────────────── */

.pullquote {
  max-width: var(--measure);
  margin: 2.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.625rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pullquote + p { margin-top: 1.5rem; color: var(--ink-soft); }

/* ─── Media ──────────────────────────────────────────────────────────── */

.video-figure { margin: 2.5rem 0 0; }

.video-frame {
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* Matches the render's own backdrop so the frame reads as one surface
     while the poster loads. */
  background: #c5c5c5;
}

.video-figure figcaption {
  max-width: var(--measure);
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.video-link {
  margin-top: 1.25rem;
  font-weight: 700;
}
.video-link a { color: var(--accent); text-decoration: none; }
.video-link a:hover { text-decoration: underline; }
.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* The hero render is cut out, so it needs no plate — it reads directly on
   either theme ground. */
.hero-product { display: block; }
.hero-product img { width: 100%; height: auto; }

/* ─── Story ──────────────────────────────────────────────────────────── */

.story {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .story { grid-template-columns: 0.75fr 1fr; }
}

.story-copy h2 { margin-top: 0; }
.story-copy p:last-child { margin-bottom: 0; }
.story-copy a { font-weight: 700; color: var(--accent); }

/* ─── Fit + closing ──────────────────────────────────────────────────── */

.panel {
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--paper);
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.closing { text-align: center; }
.closing p { margin-inline: auto; }
.closing .btn { margin-top: 1.25rem; }

/* ─── Contact form ───────────────────────────────────────────────────── */

.contact-form {
  max-width: 34rem;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: 0.9375rem;
  font-weight: 700;
}
.field .req { color: var(--accent); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 6rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
  border-color: var(--aqua);
}

.contact-form button { align-self: flex-start; }

.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.is-ok    { color: var(--aqua); }
.form-status.is-error { color: var(--accent); }
.form-status.is-error a { color: var(--accent); font-weight: 700; }

/* Accessible-hidden: off-screen for sighted users, still reachable by the
   honeypot check. Not display:none, so bots that skip hidden fields still
   trip it. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: var(--section-y);
  padding-block: 2.5rem;
  border-top: var(--border) solid var(--line-faint);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.site-footer p { margin: 0; }

.disclaimer {
  flex-basis: 100%;
  max-width: var(--measure);
  font-size: 0.8125rem;
  opacity: 0.85;
}

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