/* ==========================================================================
   Will's Website Design — lead-gen site
   Token-driven. Change the :root block to re-skin the whole thing.
   ========================================================================== */

:root {
  /* ---- Brand ---- */
  --ink:        #0a0c10;
  --ink-soft:   #141821;
  --ink-line:   #232936;

  --paper:      #ffffff;
  --paper-2:    #f6f7f9;
  --paper-3:    #eceef2;
  --line:       #dfe3ea;

  --text:       #14181f;
  --text-2:     #4d5665;
  --text-3:     #7b8494;

  --accent:     #ff6a13;
  --accent-dk:  #e2530a;
  --accent-lt:  #fff1e8;

  --good:       #0f9d58;
  --bad:        #d8412f;

  /* ---- Type ---- */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ---- Shape ---- */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;

  --shadow:    0 1px 2px rgb(10 12 16 / .06), 0 8px 24px -8px rgb(10 12 16 / .10);
  --shadow-lg: 0 2px 4px rgb(10 12 16 / .05), 0 24px 48px -16px rgb(10 12 16 / .18);

  /* ---- Layout ---- */
  --wrap: 1140px;
  --gut:  clamp(20px, 5vw, 40px);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 6.2vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

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

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--dark { background: var(--ink); color: #e9ecf2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--grey { background: var(--paper-2); }

.eyebrow {
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}
.section--dark .eyebrow { color: #ff9455; }

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--text-2);
  max-width: 62ch;
}
.section--dark .lede { color: #a9b2c2; }

.head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lede { margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: var(--r); z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 1.05em 1.6em;
  border: 2px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgb(255 106 19 / .55);
}
.btn--primary:hover { background: var(--accent-dk); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text-3); background: var(--paper-2); }

.section--dark .btn--ghost,
.hero .btn--ghost { border-color: #3a4456; color: #fff; }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: #6b7789; background: #171c26; }

.btn--lg { font-size: 1.075rem; padding: 1.2em 2em; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hdr.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgb(10 12 16 / .3);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}
.logo__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: .95rem;
  flex: none;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }

.hdr__cta { display: flex; align-items: center; gap: 14px; }
.hdr__phone {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;            /* tap target — never let this collapse */
  padding: 0 8px;
  border-radius: var(--r-sm);
}
.hdr__phone:hover { background: var(--paper-2); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.burger span::before,
.burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--paper-3); font-size: 1.05rem; }
  .burger { display: grid; }
  .hdr__cta .btn { display: none; }
}

/* Keep the phone reachable on every screen size — on mobile it's the only
   conversion path left in the header once the CTA button collapses. */
@media (max-width: 560px) {
  .hdr__phone { font-size: .92rem; padding: 0 4px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: #e9ecf2;
  padding-block: clamp(60px, 9vw, 104px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgb(255 106 19 / .17), transparent 66%);
  pointer-events: none;
}

.hero__in { position: relative; z-index: 1; max-width: 54rem; }
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  font-size: clamp(1.1rem, 2.1vw, 1.32rem);
  color: #a9b2c2;
  max-width: 44ch;
  margin-bottom: 2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ffb184;
  background: rgb(255 106 19 / .12);
  border: 1px solid rgb(255 106 19 / .28);
  padding: .5em 1em;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-line);
  font-size: .92rem;
  color: #8d97a8;
}
.hero__trust li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trust li::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  background: currentColor;
  color: var(--accent);
  -webkit-mask: var(--check) center/contain no-repeat;
  mask: var(--check) center/contain no-repeat;
}

:root {
  --check: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.6 14.6 3.4 10.4l1.4-1.4 2.8 2.8 7.6-7.6 1.4 1.4z"/></svg>');
}

.hero ul { padding: 0; margin: 0; }

/* ==========================================================================
   Teardown findings — the proof section
   ========================================================================== */

.findings {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 8px;
}

.finding {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--bad);
  border-radius: var(--r);
  padding: 22px 24px;
}
.finding__what {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 .45em;
  line-height: 1.3;
}
.finding__cost {
  font-size: .92rem;
  color: #98a2b3;
  margin: 0;
}
.finding__tag {
  display: inline-block;
  font-family: var(--f-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ff8a5c;
  margin-bottom: .7em;
}

.findings-note {
  margin-top: 28px;
  font-size: .95rem;
  color: #7d8698;
  max-width: 60ch;
}

/* ==========================================================================
   Cards / services
   ========================================================================== */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
}
.section--grey .card { background: var(--paper); }

.card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent-lt);
  color: var(--accent-dk);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card p { color: var(--text-2); font-size: .97rem; margin: 0; }
.card h3 { margin-bottom: .4em; }

/* ---- Numbered steps ---- */

.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--text-2); font-size: .97rem; margin: 0; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan--feature {
  border-color: var(--ink);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__badge {
  position: absolute;
  top: -12px; left: 28px;
  font-family: var(--f-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: .45em .9em;
  border-radius: 999px;
}

.plan__name {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 .2em;
}
.plan__for {
  font-size: .92rem;
  color: var(--text-3);
  margin: 0 0 22px;
  min-height: 2.9em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-display);
  margin-bottom: 2px;
}
.plan__price b {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.plan__price span { font-size: .95rem; color: var(--text-3); font-weight: 500; }

.plan__then {
  font-size: .95rem;
  color: var(--text-2);
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.plan__then b { font-family: var(--f-display); color: var(--text); }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 11px;
  font-size: .95rem;
  color: var(--text-2);
}
.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
}
.plan li::before {
  content: "";
  width: 16px; height: 16px;
  margin-top: .28em;
  background: var(--good);
  -webkit-mask: var(--check) center/contain no-repeat;
  mask: var(--check) center/contain no-repeat;
}
.plan .btn { margin-top: auto; }

.plans-note {
  text-align: center;
  margin-top: 34px;
  font-size: .95rem;
  color: var(--text-2);
}

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

.faq { max-width: 780px; margin-inline: auto; }

.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .15s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-dk); }
.qa summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -7px;
  border-right: 2.5px solid var(--text-3);
  border-bottom: 2.5px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa__a {
  padding: 0 8px 24px 0;
  color: var(--text-2);
  font-size: 1rem;
  max-width: 65ch;
}

/* ==========================================================================
   Contact / form
   ========================================================================== */

.contact {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.05fr; align-items: start; }
}

.contact__aside .lede { margin-bottom: 2rem; }

.direct {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.direct a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  text-decoration: none;
  background: var(--ink-soft);
  transition: border-color .15s ease, background-color .15s ease;
}
.direct a:hover { border-color: #3b4456; background: #191e29; }
.direct__ico {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgb(255 106 19 / .13);
  color: #ff9455;
}
.direct__ico svg { width: 19px; height: 19px; }
.direct__k {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d8698;
}
.direct__v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: #fff;
}

.form {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--f-display);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text);
}
.field .req { color: var(--bad); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 13px 15px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%237b8494"><path d="M5.5 7.5 10 12l4.5-4.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--paper);
  border-color: var(--accent);
  outline: none;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--bad); }

.field__err {
  display: none;
  font-size: .85rem;
  color: var(--bad);
  margin-top: 6px;
}
.field__err.is-shown { display: block; }

.form__fine {
  font-size: .87rem;
  color: var(--text-3);
  margin: 14px 0 0;
  text-align: center;
}

.form__ok {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form__ok.is-shown { display: block; }
.form__ok h3 { color: var(--good); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */

.ftr {
  background: var(--ink);
  color: #8d97a8;
  padding-block: 56px 40px;
  font-size: .92rem;
}
.ftr__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-line);
}
.ftr .logo { color: #fff; }
.ftr__blurb { max-width: 34ch; margin-top: 14px; }
.ftr__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  list-style: none;
  padding: 0; margin: 0;
}
.ftr__links a { color: #a9b2c2; text-decoration: none; }
.ftr__links a:hover { color: #fff; }
.ftr__btm {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: .87rem;
  color: #6b7486;
}
.ftr__btm p { margin: 0; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
