/* ==========================================================================
   The 45-Minute Builder — funnel styles
   Palette: cream / ink / flame
   Type: Bricolage Grotesque (display) · Inter (body) · JetBrains Mono (readouts)
   ========================================================================== */

:root {
  --cream:      #F7F3EA;
  --paper:      #FFFDF8;
  --ink:        #131010;
  --ink-soft:   #4A423C;
  --muted:      #7A716A;
  --flame:      #F24405;
  --flame-deep: #C93703;
  --rule:       #DED5C6;

  --measure: 34rem;
  --gap: clamp(1rem, 4vw, 2rem);

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.4rem);
}

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

/* The hidden attribute must win over any class that sets `display`
   (.btn is inline-block, .line is flex). Without this, hidden does nothing. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--flame-deep); }

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- layout ---------- */

.wrap {
  width: min(100% - 2.2rem, 62rem);
  margin-inline: auto;
}
.narrow { width: min(100% - 2.2rem, 42rem); margin-inline: auto; }

section { padding-block: clamp(3rem, 8vw, 5.5rem); }
section + section { border-top: 1px solid var(--rule); }

/* ---------- masthead ---------- */

.masthead {
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.masthead .brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  font-size: var(--step-0);
}
.masthead .brand span { color: var(--flame); }
.masthead .note { color: var(--muted); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 62em) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero p.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ---------- the session card (the one bold device) ---------- */

.card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.4rem 1.4rem 1.6rem;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.card-head .num { color: var(--flame-deep); font-weight: 700; }
.card-head .clock {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.card h3 { margin: 1rem 0 0.5rem; }
.card p { margin-bottom: 0.9rem; font-size: var(--step--1); color: var(--ink-soft); }
.card ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.card li { font-size: var(--step--1); margin-bottom: 0.35rem; color: var(--ink-soft); }

.timebar {
  height: 7px;
  background: var(--rule);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.timebar i { display: block; height: 100%; width: 62%; background: var(--flame); }
.stop {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

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

.btn {
  display: inline-block;
  background: var(--flame);
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn.wide { width: 100%; text-align: center; }

.buy { margin: 2rem 0 0.6rem; }
.buy-note { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* ---------- session map ---------- */

.map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}
.map div {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--flame);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
}
.map b {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.map span { font-size: var(--step--1); font-weight: 500; line-height: 1.3; }

/* ---------- contents list ---------- */

.contents { list-style: none; padding: 0; margin: 2rem 0 0; max-width: var(--measure); }
.contents li { padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.contents li:last-child { border-bottom: 1px solid var(--rule); }
.contents h3 { margin-bottom: 0.35rem; }
.contents p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- for / not for ---------- */

.fit { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 46em) { .fit { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.fit ul { list-style: none; padding: 0; margin: 0; }
.fit li {
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
  position: relative;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.5;
}
.fit li::before {
  position: absolute; left: 0; top: -0.05em;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}
.fit .yes li::before { content: "+"; color: var(--flame-deep); }
.fit .no  li::before { content: "–"; color: var(--muted); }
.fit h3 { font-size: var(--step-0); }

/* ---------- faq ---------- */

.faq { max-width: var(--measure); margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--flame); font-family: "JetBrains Mono", monospace; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.faq p { margin: 0.8rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- dark close ---------- */

.close { background: var(--ink); color: var(--cream); }
.close h2 { color: var(--paper); }
.close p { color: #BDB3A8; }
.close .price-big {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  color: var(--paper);
  line-height: 1;
  margin: 0.4rem 0 1.4rem;
}

/* ---------- checkout ---------- */

.panel {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(1.2rem, 4vw, 2rem);
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.line:first-of-type { padding-top: 0; }
.line .what { font-weight: 600; }
.line .sub { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
.line .amt { font-family: "JetBrains Mono", monospace; font-weight: 700; white-space: nowrap; }
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.1rem;
  gap: 1rem;
}
.total .lbl { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: var(--step-1); }
.total .amt {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}

.bump {
  border: 2px dashed var(--flame);
  border-radius: 2px;
  background: #FFF6F0;
  padding: 1.1rem 1.2rem;
  margin: 1.4rem 0;
}
.bump label { display: flex; gap: 0.8rem; align-items: flex-start; cursor: pointer; }
.bump input {
  width: 1.35rem; height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: var(--flame);
  flex: none;
  cursor: pointer;
}
.bump .hd {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  display: block;
  margin-bottom: 0.3rem;
}
.bump p { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 0.6rem; }
.bump ul { margin: 0; padding-left: 1.1rem; font-size: var(--step--1); color: var(--ink-soft); }
.bump li { margin-bottom: 0.25rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: 0.35rem; }
.field input {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--flame); outline-offset: 1px; border-color: var(--ink); }

.checkout-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 58em) { .checkout-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.trust { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.trust li {
  font-size: var(--step--1);
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.trust li::before {
  content: "✓"; position: absolute; left: 0; color: var(--flame-deep); font-weight: 700;
}

/* ---------- upsell ---------- */

.upsell-flag {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.strike { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.decline {
  display: block;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.decline:hover { color: var(--ink); }

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

footer {
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0 3rem;
  color: var(--muted);
  font-size: var(--step--1);
}
footer a { color: var(--muted); }
footer p { max-width: 46rem; }
