/* ============================================
   Full Diary Toolkit - shared styles
   Design read: trust-first local-trade landing page for cold Meta-ad
   mobile traffic. Tree surgeon's work-diary language: forest green,
   sawdust cream, one hi-vis accent. Native CSS, no framework (static
   deploy constraint). Dials: variance 5, motion 3, density 4 - a
   commerce page asking a stranger for a card number gets restraint,
   not spectacle.
   ============================================ */

:root {
  --forest-900: #16281b;
  --forest-700: #1f3d2b;
  --forest-500: #2f5b3e;
  --forest-300: #4d7a5c;
  --cream: #f3ebda;
  --chalk: #fffcf6;
  --bark: #4a3728;
  --ink: #211d17;
  --ink-soft: #4a4438;

  /* Accent scale: bright is for large text/icons on the dark green
     surfaces (passes WCAG large-text 3:1); darker is for small text
     and buttons on light surfaces (passes 4.5:1). Same hue throughout,
     picked per background, not two competing accents. */
  --hivis: #e8600c;
  --hivis-mid: #c24e08;
  --hivis-dark: #9c3f06;
  --hivis-darkest: #7a3204;

  --line: rgba(33, 29, 23, 0.14);
  --shadow: 0 12px 30px -14px rgba(22, 40, 27, 0.35);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius: 10px;
  --wrap: 640px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 3px;
}

/* ---------- Hazard rule (used once, as a single section divider) ---------- */
.hazard-rule {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--forest-700),
    var(--forest-700) 10px,
    var(--hivis) 10px,
    var(--hivis) 20px
  );
}

/* ---------- Eyebrow / stamp label (rationed: hero + scarcity only) ---------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-700);
  background: rgba(31, 61, 43, 0.09);
  border: 1px solid rgba(31, 61, 43, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
}

.stamp--hivis {
  color: #fff;
  background: var(--hivis-dark);
  border-color: var(--hivis-darkest);
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--forest-900);
  color: var(--cream);
  padding: 12px 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  line-height: 1;
}

.wordmark span {
  color: var(--hivis);
}

.topbar__slots {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(243, 235, 218, 0.75);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--forest-700);
  color: var(--cream);
  padding: 40px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.07), transparent 55%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 18px 0 14px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--hivis);
}

.hero__sub {
  font-size: 17px;
  color: rgba(243, 235, 218, 0.88);
  max-width: 46ch;
  margin: 0 0 28px;
}

/* ---------- CTA button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 17px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--hivis-dark);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(156, 63, 6, 0.55);
  width: 100%;
}

.btn--primary:hover {
  background: var(--hivis-darkest);
  transform: translateY(-1px);
}

.btn__price {
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 14px;
}

.btn-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(243, 235, 218, 0.65);
  text-align: center;
}

/* ---------- Diary grid (reused in the scarcity section) ---------- */
.diary__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bark);
}

.diary__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.diary__day {
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(74, 55, 40, 0.04);
}

.diary__day-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.diary__slot {
  display: block;
  height: 20px;
  border-radius: 4px;
  background: rgba(74, 55, 40, 0.1);
}

.diary__day--booked .diary__slot {
  background: var(--forest-500);
  transform-origin: left;
  animation: fillIn 0.6s ease both;
}

.diary__day--booked:nth-child(1) .diary__slot { animation-delay: 0.05s; }
.diary__day--booked:nth-child(2) .diary__slot { animation-delay: 0.2s; }
.diary__day--booked:nth-child(3) .diary__slot { animation-delay: 0.35s; }
.diary__day--booked:nth-child(4) .diary__slot { animation-delay: 0.5s; }

@keyframes fillIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* ---------- Section rhythm ---------- */
section {
  padding: 46px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.12;
  color: var(--forest-700);
  margin: 0;
}

.section-head p {
  color: var(--ink-soft);
  margin: 10px 0 0;
  max-width: 52ch;
}

/* ---------- Problem section: plain statement + pill list, deliberately
   not another icon-card row, so it reads differently from the offer
   stack below it ---------- */
.problem {
  background: var(--chalk);
}

.problem__lede {
  font-size: 19px;
  color: var(--ink);
  max-width: 46ch;
  margin: 0 0 22px;
}

.problem__lede strong {
  color: var(--forest-700);
}

.problem__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem__pills li {
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 3px solid var(--hivis-mid);
  padding: 4px 0 4px 14px;
}

/* ---------- Offer stack ---------- */
.stack {
  display: grid;
  gap: 12px;
}

.ticket {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  box-shadow: 0 8px 20px -14px rgba(22, 40, 27, 0.3);
}

.ticket__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ticket__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--forest-700);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16.5px;
  margin: 2px 0 5px;
  color: var(--ink);
}

.ticket p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.stack__anchor {
  margin-top: 6px;
  text-align: center;
  padding: 18px;
  background: var(--forest-700);
  color: var(--cream);
  border-radius: var(--radius);
}

.stack__anchor .was {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(243, 235, 218, 0.6);
  display: block;
}

.stack__anchor .now {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: #fff;
  display: block;
  margin-top: 4px;
}

.stack__anchor .now em {
  font-style: normal;
  color: var(--hivis);
}

.stack__anchor small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(243, 235, 218, 0.7);
}

.stack__diy {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(243, 235, 218, 0.25);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(243, 235, 218, 0.75);
  text-align: left;
}

/* ---------- How it works (a real sequence, numbering earns its place) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 14px;
}

.step__num {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--hivis-dark);
  width: 40px;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}

.step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Guarantee seal ---------- */
.guarantee {
  background: var(--forest-700);
  color: var(--cream);
}

.guarantee__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}

.guarantee__seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--hivis);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hivis);
}

.guarantee__card h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: #fff;
}

.guarantee__card p {
  margin: 0 auto;
  max-width: 42ch;
  color: rgba(243, 235, 218, 0.88);
  font-size: 15px;
}

.guarantee__card .fine {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(243, 235, 218, 0.55);
}

/* ---------- Scarcity ---------- */
.scarcity {
  background: var(--chalk);
}

.scarcity__card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scarcity__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.scarcity__count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--hivis-dark);
}

.scarcity p.note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Credibility ---------- */
.credibility {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.credibility__photo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--forest-700);
  background: var(--forest-700);
}

.credibility p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.credibility strong {
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--hivis-dark);
  font-size: 20px;
  flex: none;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--forest-900);
  color: var(--cream);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  color: #fff;
  margin: 0 0 20px;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--chalk);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 24px -12px rgba(22, 40, 27, 0.3);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  padding: 13px 20px;
  font-size: 15px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--forest-900);
  color: rgba(243, 235, 218, 0.55);
  padding: 26px 0 96px;
  font-size: 12.5px;
}

footer a {
  color: rgba(243, 235, 218, 0.8);
}

footer .wordmark {
  margin-bottom: 10px;
}

/* ---------- Intake / thank-you page ---------- */
.confirm {
  background: var(--forest-700);
  color: var(--cream);
  padding: 44px 0 40px;
  text-align: center;
}

.confirm__check {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--hivis);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.confirm h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  color: #fff;
  margin: 0 0 12px;
}

.confirm p {
  color: rgba(243, 235, 218, 0.85);
  max-width: 44ch;
  margin: 0 auto;
}

.timeline {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .wrap {
    max-width: 760px;
  }
  .stack {
    grid-template-columns: 1fr 1fr;
  }
  .stack .ticket:last-child {
    grid-column: 1 / -1;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
  }
}
