/* Northstar Business Systems
   Palette: steel #E8ECEF, canary carbon copy #F5E6A3, ballpoint #1E3FA8, graphite #1D2226, form red #B5372E */
:root {
  --steel: #e8ecef;
  --steel-deep: #d5dce1;
  --canary: #f5e6a3;
  --ink: #1e3fa8;
  --ink-deep: #172f7d;
  --graphite: #1d2226;
  --graphite-soft: #4a545b;
  --red: #b5372e;
  --white: #ffffff;
  --rule: #c9d2d8;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --hand: "Kalam", "Segoe Print", cursive;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--steel);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img, svg { display: block; }
a { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.005em; }

:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 50rem; }
.nowrap { white-space: nowrap; }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--steel); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--graphite);
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.brand-mark { width: 1.3rem; height: 1.3rem; fill: var(--ink); flex: none; }
.top-call { font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink); }
.top-call:hover { text-decoration: underline; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); font-weight: 800; max-width: 13ch; margin-bottom: 1.5rem; text-wrap: balance; }
.lede { font-size: 1.2rem; max-width: 34rem; color: var(--graphite); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.4rem;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; border-radius: 6px; border: 2px solid var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--white); }
.sig { font-size: .95rem; color: var(--graphite-soft); margin: 0; }

/* The estimate: the page's one loud element */
.estimate {
  position: relative;
  margin: 0;
  background-color: var(--canary);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 2.15rem, rgba(30, 63, 168, .13) 2.15rem, rgba(30, 63, 168, .13) calc(2.15rem + 1px));
  background-position: 0 7.2rem;
  padding: 1.9rem clamp(1.25rem, 3vw, 2rem) 1.6rem;
  transform: rotate(-1.4deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 40px -18px rgba(29, 34, 38, .45);
  border-radius: 2px;
  color: var(--graphite);
}
.perf { position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: radial-gradient(circle at 6px -1px, var(--steel) 4px, transparent 4.5px) 0 0 / 14px 10px repeat-x; }
.est-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  border-bottom: 3px double var(--red); padding-bottom: .6rem; margin-bottom: 1rem; }
.est-co { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0; line-height: 1.1; }
.est-co-sub { font-size: .78rem; margin: .15rem 0 0; color: var(--graphite-soft); }
.est-title { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--red); margin: 0; line-height: .9; }
.est-fields { margin: 0 0 1rem; display: grid; gap: .35rem; }
.est-fields div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; border-bottom: 1px solid rgba(181, 55, 46, .45); }
.est-fields dt { font-size: .8rem; color: var(--red); font-weight: 600; }
.est-fields dd { margin: 0; }
.est-lines { width: 100%; border-collapse: collapse; font-size: .8rem; table-layout: fixed; }
.est-lines thead th:last-child { width: 6.5rem; }
.est-lines th { text-align: left; color: var(--red); font-weight: 600; padding: .3rem 0; border-bottom: 1px solid var(--red); }
.est-lines thead th:last-child, .est-lines .amt { text-align: right; }
.est-lines td { padding: .25rem 0; border-bottom: 1px solid rgba(181, 55, 46, .3); vertical-align: baseline; }
.est-lines td.amt { padding-left: 1rem; white-space: nowrap; }
.est-lines tfoot th { border-bottom: 0; padding-top: .9rem; font-size: .9rem; }
.est-lines tfoot td { border-bottom: 0; padding-top: .6rem; }
.ink { font-family: var(--hand); color: var(--ink); font-size: 1.32rem; line-height: 1.35; }
.circled { position: relative; display: inline-block; font-weight: 700; font-size: 1.9rem; padding: 0 .55rem; }
.circled svg { position: absolute; inset: -18% -22%; width: 144%; height: 136%; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.est-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 1rem; }
.est-sign { margin: 0; border-top: 1px solid var(--graphite-soft); padding-top: .1rem; min-width: 9rem; }
.est-sign .ink { font-size: 1.5rem; }
.est-note { margin: 0; font-size: .72rem; color: var(--graphite-soft); max-width: 15rem; text-align: right; line-height: 1.4; }

/* One orchestrated moment: the estimate fills itself in on load */
@media (prefers-reduced-motion: no-preference) {
  .estimate .ink { clip-path: inset(0 100% 0 0); animation: write .55s steps(14, end) forwards; }
  .estimate .w1 { animation-delay: .35s; }
  .estimate .w2 { animation-delay: .8s; }
  .estimate .w3 { animation-delay: 1.25s; }
  .estimate .w4 { animation-delay: 1.7s; }
  .estimate .w5 { animation-delay: 2.15s; }
  .estimate .w6 { animation-delay: 2.7s; }
  .estimate .w7 { animation-delay: 3.15s; }
  .circled svg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: circle .6s ease-out 3.0s forwards; }
}
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes circle { to { stroke-dashoffset: 0; } }

/* Bands */
.band { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.band-white { background: var(--white); }
.band h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 2rem; }
.section-lede { max-width: 38rem; margin-top: -1rem; margin-bottom: 2.25rem; color: var(--graphite-soft); }

/* Steps are a real sequence, so they are numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--graphite); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--ink); margin-bottom: .6rem; }
.steps h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.steps p { font-size: 1rem; margin: 0; color: var(--graphite-soft); }

.features { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.features div { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.features dt { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-bottom: .35rem; }
.features dd { margin: 0; font-size: 1rem; color: var(--graphite-soft); max-width: 32rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 56rem; }
.plan { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--ink); padding: 1.75rem 1.75rem 1.5rem; }
.plan h3 { font-size: 1.9rem; margin-bottom: .75rem; }
.price { margin: 0; font-size: 1.1rem; }
.price .big { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--ink); margin-right: .15rem; }
.terms { color: var(--graphite-soft); font-size: 1rem; margin: .4rem 0 1.25rem; }
.plan ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.plan li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; font-size: 1rem; }
.plan li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: .7rem; height: .35rem;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.25rem; max-width: 40rem; color: var(--graphite-soft); }

/* Closing */
.closing { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 9vw, 6rem) 0; }
.closing h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.closing p { max-width: 34rem; font-size: 1.15rem; color: #dfe5f7; }
.phone-big { display: inline-block; margin-top: .5rem; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.5rem); line-height: 1; color: var(--canary); text-decoration: none; }
.phone-big:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.closing :focus-visible { outline-color: var(--canary); }

/* Footer */
.foot { padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--graphite-soft); }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .estimate { max-width: 34rem; width: 100%; transform: rotate(-1deg); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; padding-bottom: 4rem; }
  .top-call { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .lede { font-size: 1.1rem; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .est-note { text-align: left; }
  .est-foot { flex-direction: column; align-items: flex-start; }
  .estimate { transform: none; }
  .est-title { font-size: 1.9rem; }
  .est-co { font-size: 1rem; }
  .ink { font-size: 1.15rem; }
  .ink.circled { font-size: 1.6rem; }
  .est-fields div { grid-template-columns: 4.6rem 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    background: var(--graphite); padding: .5rem; gap: .5rem; padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 3rem; border-radius: 6px;
    font-weight: 600; text-decoration: none; color: var(--white); border: 2px solid #5b6670; }
  .callbar a:first-child { background: var(--ink); border-color: var(--ink); }
}
