/* ══════════════════════════════════════════════════════════════
   SWARMATIC-ONE — landing page styles
   Loaded AFTER styles.css. Every rule is scoped under .s1 so the
   product's petrol/amber identity cannot leak into the rest of
   the site, and the site's tokens cannot overwrite it.
   Do not move these tokens to :root — styles.css already defines
   --ink and --muted with different values.
   ══════════════════════════════════════════════════════════════ */

.s1 {
  --paper:      #F6F3EC;
  --paper-card: #FBF9F4;
  --s1-ink:     #14343B;   /* display + body text */
  --petrol:     #1C5B60;   /* primary accent */
  --petrol-deep:#123E42;
  --amber:      #C98A1E;   /* highlight + CTA */
  --line:       #D9D0C2;   /* hairlines */
  --s1-muted:   #5E706F;   /* secondary text */

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --measure: 42rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);

  background: var(--paper);
  color: var(--s1-ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.18rem);
  line-height: 1.6;
  font-weight: 400;
}

.s1 * { box-sizing: border-box; }

.s1 .wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- generic section rhythm ---------- */
.s1 .band { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

/* ---------- hero (clears the fixed site nav) ---------- */
.s1 .s1-hero { padding-block: clamp(9rem, 16vw, 12rem) clamp(3rem, 8vw, 5rem); }
.s1 .s1-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 1.6rem + 4.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
  max-width: 20ch;
  color: var(--s1-ink);
}
.s1 .s1-hero .lede {
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  color: var(--s1-muted);
  max-width: 34ch;
  margin: 0;
}
.s1 .scrollcue {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--petrol);
  font-weight: 600; font-size: .85rem;
  letter-spacing: .04em;
  text-decoration: none;
}
.s1 .scrollcue span { display: inline-block; animation: s1-nudge 1.8s ease-in-out infinite; }
@keyframes s1-nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- pivot ---------- */
.s1 .pivot .kick {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.15rem);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 .35rem;
  color: var(--s1-muted);
}
.s1 .pivot .kick.turn { color: var(--s1-ink); margin-bottom: 1.6rem; }
.s1 .pivot .kick.turn b { color: var(--petrol); font-weight: 700; }
.s1 .pivot p { max-width: 40ch; color: var(--s1-ink); }

/* ---------- SIGNATURE: wrong vs right question ---------- */
.s1 .questions { background: var(--paper-card); border-block: 1px solid var(--line); }
.s1 .q-wrong {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2rem);
  line-height: 1.2;
  color: var(--s1-muted);
  margin: 0 0 2.6rem;
  max-width: 24ch;
}
.s1 .q-wrong .strike {
  position: absolute; left: -2%; top: 52%; width: 104%; height: auto;
  overflow: visible; pointer-events: none;
}
.s1 .q-wrong .strike path {
  fill: none; stroke: var(--amber); stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.05s cubic-bezier(.6,0,.2,1);
}
.s1 .in .q-wrong .strike path,
.s1 .questions.in .q-wrong .strike path { stroke-dashoffset: 0; }

.s1 .q-label {
  font-family: var(--body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .72rem; color: var(--petrol);
  margin: 0 0 1.2rem;
}
.s1 .q-right { list-style: none; margin: 0; padding: 0; }
.s1 .q-right li {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.05rem + 1.3vw, 1.95rem);
  line-height: 1.28;
  color: var(--s1-ink);
  padding-bottom: .9rem;
  margin-bottom: 1.6rem;
  max-width: 26ch;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.s1 .q-right li:last-child { margin-bottom: 0; }
.s1 .questions.in .q-right li { opacity: 1; transform: none; }
.s1 .questions.in .q-right li:nth-child(1) { transition-delay: .55s; }
.s1 .questions.in .q-right li:nth-child(2) { transition-delay: .75s; }
.s1 .questions.in .q-right li:nth-child(3) { transition-delay: .95s; }
.s1 .q-right li .uline {
  position: absolute; left: 0; bottom: .1rem; width: 100%; height: 10px;
  overflow: visible; pointer-events: none;
}
.s1 .q-right li .uline path {
  fill: none; stroke: var(--amber); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  transition: stroke-dashoffset .9s ease;
}
.s1 .questions.in .q-right li:nth-child(1) .uline path { transition-delay: .9s;  stroke-dashoffset: 0; }
.s1 .questions.in .q-right li:nth-child(2) .uline path { transition-delay: 1.1s; stroke-dashoffset: 0; }
.s1 .questions.in .q-right li:nth-child(3) .uline path { transition-delay: 1.3s; stroke-dashoffset: 0; }

.s1 .q-close {
  margin-top: 2.8rem;
  max-width: 38ch;
  color: var(--s1-muted);
  font-size: 1.02rem;
}

/* ---------- sketchnote slot ----------
   ONE image slot, at the emotional hinge. Drop the petrol/amber
   sketchnote into .sketch img and delete the .placeholder div. */
.s1 .sketch { margin-top: 3rem; }
.s1 .sketch figure { margin: 0; }
.s1 .sketch img { display: block; width: 100%; height: auto; border-radius: 6px; }
.s1 .sketch figcaption {
  margin-top: .7rem; font-size: .82rem; color: var(--s1-muted);
  text-align: center;
}
.s1 .sketch .placeholder {
  display: grid; place-items: center; min-height: 220px;
  border: 1.5px dashed var(--line); border-radius: 6px;
  color: var(--s1-muted); font-size: .85rem; text-align: center;
  padding: 1.5rem; background: rgba(255,255,255,.4);
}

/* ---------- what it is ---------- */
.s1 .what .beat-kick {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
  line-height: 1.12; margin: 0 0 1.6rem; letter-spacing: -.01em;
  color: var(--s1-ink);
}
.s1 .what p { max-width: 40ch; }
.s1 .beats {
  display: flex; align-items: stretch; gap: 1rem; margin-top: 2.6rem;
  flex-wrap: wrap;
}
.s1 .beat {
  flex: 1 1 12rem; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 1.4rem 1.4rem 1.5rem;
}
.s1 .beat .n {
  font-family: var(--body); font-weight: 800; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--petrol);
}
.s1 .beat h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.5rem;
  margin: .5rem 0 .4rem; color: var(--s1-ink);
}
.s1 .beat p { margin: 0; font-size: .98rem; color: var(--s1-muted); }
.s1 .beat.arrow {
  flex: 0 0 auto; align-self: center; border: none; background: none;
  padding: 0 .2rem; color: var(--petrol); font-size: 1.6rem;
}
@media (max-width: 33rem) {
  .s1 .beat.arrow { transform: rotate(90deg); align-self: center; }
}

/* ---------- capture ---------- */
.s1 .capture { background: var(--petrol-deep); color: #EEF3F1; }
.s1 .capture h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.1; margin: 0 0 1rem; color: #FBF9F4;
  max-width: 20ch;
}
.s1 .capture .sub { color: #B6C9C6; max-width: 34ch; margin: 0 0 2rem; }
.s1 .datebox {
  display: inline-flex; flex-direction: column; gap: .15rem;
  border-left: 3px solid var(--amber);
  padding: .1rem 0 .1rem 1rem; margin-bottom: 2rem;
}
.s1 .datebox .dlabel {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--amber);
}
.s1 .datebox .dval {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  color: #FBF9F4;
}

.s1 form.signup { display: flex; flex-wrap: wrap; gap: .7rem; max-width: 34rem; }
.s1 .signup .field { flex: 1 1 16rem; display: flex; flex-direction: column; }
.s1 .signup input[type="email"] {
  font-family: var(--body); font-size: 1.02rem;
  padding: .95rem 1.1rem; border-radius: 7px;
  border: 1px solid #2F5A5E; background: #0E3438; color: #FBF9F4;
  outline: none;
}
.s1 .signup input[type="email"]::placeholder { color: #7F9997; }
.s1 .signup input[type="email"]:focus-visible {
  border-color: var(--amber); box-shadow: 0 0 0 3px rgba(201,138,30,.35);
}
.s1 .signup button {
  font-family: var(--body); font-weight: 700; font-size: 1.02rem;
  padding: .95rem 1.6rem; border: none; border-radius: 7px; cursor: pointer;
  background: var(--amber); color: #241a06;
  transition: transform .12s ease, filter .12s ease;
  flex: 0 0 auto;
}
.s1 .signup button:hover { filter: brightness(1.06); }
.s1 .signup button:active { transform: translateY(1px); }
.s1 .signup button:focus-visible { outline: 3px solid #FBF9F4; outline-offset: 2px; }
.s1 .microtrust { margin: 1rem 0 0; font-size: .85rem; color: #8FA7A4; }
.s1 .formerror { margin: .6rem 0 0; font-size: .88rem; color: #F0B44B; min-height: 1.1em; }
/* honeypot */
.s1 .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* success state */
.s1 .success { display: none; }
.s1 .success.show { display: block; }
.s1 .success h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.6rem;
  margin: 0 0 .5rem; color: #FBF9F4;
}
.s1 .success p { color: #B6C9C6; margin: 0; max-width: 36ch; }

/* ---------- straight-to-product (secondary CTA) ----------
   Deliberately placed AFTER the capture band and styled quieter
   than the amber button, so it serves the ready-to-act visitor
   without competing with the primary email capture. */
.s1 .direct { background: var(--paper-card); border-bottom: 1px solid var(--line); }
.s1 .direct .eyebrow {
  font-family: var(--body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .72rem; color: var(--petrol);
  margin: 0 0 1rem;
}
.s1 .direct h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.2rem);
  line-height: 1.15; margin: 0 0 .9rem; color: var(--s1-ink);
  max-width: 24ch;
}
.s1 .direct p { max-width: 40ch; color: var(--s1-muted); margin: 0 0 1.6rem; }
.s1 .prodlink {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  color: var(--petrol); text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: .18rem;
  transition: gap .18s ease, color .18s ease;
}
.s1 .prodlink:hover { gap: .95rem; color: var(--petrol-deep); }
.s1 .prodlink:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

/* ---------- trust ---------- */
.s1 .trust { text-align: center; }
.s1 .trust .badge {
  font-family: var(--body); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .75rem; color: var(--petrol);
  margin-bottom: 1.4rem;
}
.s1 .trust .person {
  font-family: var(--display); font-weight: 600; font-size: 1.25rem;
  margin: 0; color: var(--s1-ink);
}
.s1 .trust .role { color: var(--s1-muted); font-size: .92rem; margin: .2rem 0 0; }

/* ---------- reveal ----------
   Accepts .in (this page's observer) and .visible (site main.js),
   so whichever fires first, content becomes visible. */
.s1 .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.s1 .reveal.in,
.s1 .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .s1 *, .s1 .scrollcue span { animation: none !important; }
  .s1 .reveal, .s1 .q-right li { opacity: 1 !important; transform: none !important; transition: none; }
  .s1 .q-wrong .strike path, .s1 .q-right li .uline path { stroke-dashoffset: 0 !important; transition: none; }
}
