/* =========================================================================
   Static to Signal — standalone landing page

   Self-contained: not linked from the main site and NOT sharing styles.css,
   so the palette and type scale are declared here in full.

   Palette:
     #0f0f0f  page background (near black)
     #161616  slight lift for alternating sections
     #000000  the full-bleed pull-quote breaks
     #DCFC74  lime — headings, emphasis, the note, buttons, hairlines
     #f8f4eb  off-white — body copy and pull quotes
     #c2bfcb  soft lavender-grey, secondary only

   Type: Fraunces for headings, pull quotes and emphasis. Poppins for body.
   ========================================================================= */

:root {
  --bg:        #0f0f0f;
  --bg-lift:   #161616;
  --black:     #000000;
  --lime:      #DCFC74;
  --lime-deep: #c5e650;
  --cream:     #f8f4eb;
  --muted:     #c2bfcb;

  --maxw: 40rem;    /* phone-first measure; this is a long read */
  --radius: 10px;

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  /* Film grain, baked to a 256px raster rather than generated with an SVG
     filter. Live feTurbulence filters are evaluated at paint time, and iOS
     Safari re-evaluates them per compositing tile on a tall element — each
     tile lands on a different filter origin, which left a hard full-width
     seam partway down long sections. A bitmap has nothing to re-evaluate,
     so every tile is byte-identical and no seam can appear. The tile is
     per-pixel noise, so it also repeats seamlessly by construction. */
  --grain: url("images/static-to-signal/grain.png");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--lime); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================================
   LAYER SCALE

       0   grain
      10   the reading layer — all text, always

   Every section isolates, so these are scoped and no grain layer can ever
   escape onto copy elsewhere. `position: relative` on the wrap is
   load-bearing: z-index is ignored on a static element, so removing it
   would silently drop text behind the texture.
   ========================================================================= */
.hero,
.section,
.break,
.site-footer {
  position: relative;
  isolation: isolate;
}

.hero > .wrap,
.section > .wrap,
.break > .wrap,
.site-footer > .wrap {
  position: relative;
  z-index: 10;
}

/* Grain sits behind the copy at a flat opacity — no gradients, nothing for
   a mobile browser to band. The footer keeps the baked grain tile. Content
   sections that carry a photographic static background use the .bg-* classes
   below instead; the testimonial breaks and the plain-black sections carry
   no texture at all. */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 256px 256px;
  opacity: 0.5;
}

/* =========================================================================
   SECTION BACKGROUNDS

   Five grainy static photographs, one per named section. Each sits on the
   ::before layer behind the copy, under a flat black scrim so the lime and
   cream text keeps its contrast over the lighter frames. The scrim is baked
   into the same declaration as a solid-colour gradient, so there is still
   nothing for a mobile browser to band. Image 1 is near-black already and
   takes a lighter scrim so its static reads; 2–5 are mid-grey and take a
   heavier one.
   ========================================================================= */
.bg-1::before,
.bg-2::before,
.bg-3::before,
.bg-4::before,
.bg-5::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.bg-1::before {
  background-image: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)),
    url("images/static-to-signal/bg-static-1.jpg");
}
.bg-2::before {
  background-image: linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.78)),
    url("images/static-to-signal/bg-static-2.jpg");
}
.bg-3::before {
  background-image: linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.78)),
    url("images/static-to-signal/bg-static-3.jpg");
}
.bg-4::before {
  background-image: linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.78)),
    url("images/static-to-signal/bg-static-4.jpg");
}
.bg-5::before {
  background-image: linear-gradient(rgba(0,0,0,0.76), rgba(0,0,0,0.76)),
    url("images/static-to-signal/bg-static-5.jpg");
}

/* Plain, textureless black — the testimonial breaks and the price/FAQ
   blocks. */
.section--black { background: var(--black); }

/* =========================================================================
   TYPE
   ========================================================================= */
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--lime);
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); }
h2 { font-size: clamp(2rem, 8vw, 2.9rem); }

.prose > p { margin-top: 1.4rem; }
.prose > p:first-child { margin-top: 0; }
.prose--after { margin-top: 1.6rem; }
.prose--center { margin-inline: auto; }

/* The lines the copy turns on. Serif and lime, so they read as a beat
   rather than as another paragraph. */
.emph {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  line-height: 1.3;
  color: var(--lime);
}

/* Highlighted lead-in on the bio. Ends mid-sentence on purpose — it marks
   the introduction, not the clause. */
.hl { color: var(--lime); }

/* The "what this is and isn't" note. */
.note {
  font-style: italic;
  color: var(--lime);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding: clamp(3.2rem, 12vw, 5.5rem) 0 clamp(3rem, 10vw, 4.5rem); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 1.1;
  color: var(--lime);
  text-align: center;
}
.hero__sub {
  margin-top: 0.7rem;
  text-align: center;
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.6;
}
.hero h1 { margin-top: clamp(2rem, 8vw, 3rem); }
.hero .prose { margin-top: 1.5rem; }

/* =========================================================================
   SECTIONS

   A thin lime hairline marks each section edge, as in the mockup.
   ========================================================================= */
.section {
  padding: clamp(3.2rem, 11vw, 5rem) 0;
  border-top: 1px solid rgba(220, 252, 116, 0.55);
}
.section--lift { background: var(--bg-lift); }
.section--center { text-align: center; }
.section--center .prose { max-width: 34rem; }

.section h2 + .prose,
.section h2 + .getlist,
.section h2 + .price { margin-top: 1.5rem; }

/* A photo sitting directly under its heading rather than closing the
   section — the bio uses this. Tighter above than a section-closing image,
   and the copy below it needs its own breathing room. */
.section h2 + .shot { margin-top: clamp(1.6rem, 6vw, 2.2rem); }
.shot + .prose { margin-top: clamp(1.8rem, 7vw, 2.4rem); }

/* =========================================================================
   PULL-QUOTE BREAKS

   Full-bleed and pure black — no texture. These carry the section rhythm in
   place of decorative banners, and the testimonials read cleanest on flat
   black.
   ========================================================================= */
.break {
  background: var(--black);
  border-top: 1px solid rgba(220, 252, 116, 0.55);
  padding: clamp(3.5rem, 13vw, 6rem) 0;
}
.break blockquote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 7.2vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-wrap: pretty;
}
.break cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  color: var(--cream);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.cta { margin-top: clamp(2rem, 8vw, 2.6rem); }

.btn {
  display: block;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  /* Near-black on lime: 15.5:1. Light text on this lime would fail badly,
     so the dark label is not optional. */
  color: var(--bg);
  background: var(--lime);
  border: 1px solid var(--lime-deep);
  padding: 1.05rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Hover darkens the lime rather than changing colour. */
.btn:hover {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(197, 230, 80, 0.22);
}
.btn:active { transform: translateY(0); }

/* Visible keyboard focus. Buttons take a cream ring — a lime ring on a
   lime button is invisible. Links elsewhere keep the lime ring. */
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 999px;
}

/* =========================================================================
   WEEKS
   ========================================================================= */
.weeks {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 1.2rem;
}
.weeks li {
  padding-left: 1.1rem;
  border-left: 2px solid rgba(220, 252, 116, 0.45);
  line-height: 1.7;
}
.weeks__n {
  font-family: var(--display);
  font-weight: 700;
  color: var(--lime);
}

/* =========================================================================
   WHAT YOU GET
   ========================================================================= */
.getlist {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.getlist li {
  position: relative;
  padding-left: 1.7rem;
  line-height: 1.65;
}
.getlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
}

/* =========================================================================
   PRICE CARD

   A bordered lime box on flat black — no heading. The amount, the promise,
   the fine print, and the button, boxed together.
   ========================================================================= */
.pricecard {
  max-width: 30rem;
  margin-inline: auto;
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  padding: clamp(2rem, 8vw, 2.8rem) clamp(1.5rem, 6vw, 2.5rem)
           clamp(2.2rem, 8vw, 3rem);
  text-align: center;
}
.pricecard__amount {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  line-height: 1;
  color: var(--lime);
}
.pricecard__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-top: 0.9rem;
}
.pricecard__note {
  margin: 1.1rem auto 0;
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}
.pricecard .cta { margin-top: clamp(1.6rem, 6vw, 2.2rem); }

/* =========================================================================
   FAQ

   Native <details> accordion — accessible, keyboard-operable, no JS. A
   hand-drawn-feeling lime oval frames the heading. Each row is a lime
   hairline, a serif question, and a chevron that flips open.
   ========================================================================= */
.faq__title {
  text-align: center;
  margin-bottom: clamp(1.8rem, 7vw, 2.6rem);
}
.faq__title span {
  display: inline-block;
  padding: 0.35em 1.15em 0.45em;
  border: 2px solid var(--lime);
  border-radius: 50%;
  line-height: 1;
}

.faq__list { display: block; }

.faq__item {
  border-top: 1px solid rgba(220, 252, 116, 0.45);
}
.faq__item:last-child {
  border-bottom: 1px solid rgba(220, 252, 116, 0.45);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.3rem, 5vw, 1.7rem) 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 4.6vw, 1.5rem);
  line-height: 1.25;
  color: var(--lime);
}
.faq__item summary::-webkit-details-marker { display: none; }

/* Chevron drawn as a lime SVG so it matches the type colour exactly, then
   flipped when the row opens. */
.faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23DCFC74" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') center / contain no-repeat;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(180deg); }

.faq__a {
  padding: 0 0 clamp(1.4rem, 5vw, 1.8rem);
  color: var(--cream);
  line-height: 1.7;
  max-width: 44rem;
}
.faq__item summary:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   IMAGES
   ========================================================================= */
.shot {
  margin-top: clamp(2.2rem, 8vw, 3rem);
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(248, 244, 235, 0.14);
}
.shot--narrow { max-width: 22rem; margin-inline: auto; }
.shot img { width: 100%; }
/* A little grain over the artwork so it sits in the same world as the page.
   soft-light rather than normal: cream grain composited normally hazes the
   blacks toward grey, and over bright artwork a harder curve blows it out. */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 256px 256px;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

/* Full-bleed band */
.band {
  position: relative;
  background: var(--black);
  border-top: 1px solid rgba(220, 252, 116, 0.55);
}
.band img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

/* =========================================================================
   CLOSER + FOOTER
   ========================================================================= */
.closer { padding-bottom: clamp(3.5rem, 12vw, 5.5rem); }

/* The last line on the page, under the final button. Cream rather than
   muted — it is the closing statement, not supporting copy. */
.closing {
  margin: clamp(1.8rem, 7vw, 2.4rem) auto 0;
  max-width: 32rem;
  color: var(--cream);
  text-wrap: balance;
}

.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(220, 252, 116, 0.55);
  padding: clamp(2.6rem, 9vw, 3.5rem) 0 2.6rem;
  font-size: 0.87rem;
  line-height: 1.7;
}
.site-footer .disclaimer { color: var(--muted); }
.site-footer .copyright { margin-top: 1.3rem; color: var(--cream); }

/* =========================================================================
   RESPONSIVE — phone-first above; the measure simply widens
   ========================================================================= */
@media (min-width: 700px) {
  body { font-size: 18px; }
  :root { --maxw: 44rem; }
  .band img { max-height: 380px; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}
