/* Premier Web USA — site styles
   Palette: ink black, electric chartreuse, cool light gray.
   Chartreuse is only ever used as a background under ink text,
   or as text/marks on ink. Never chartreuse text on gray. */

:root {
  --ink: #0d0e10;
  --ink-2: #1d1f24;
  --chart: #d6ff2e;
  --gray: #e7e9ec;
  --paper: #f4f5f7;
  --rule: #aeb3ba;
  --muted: #464b53;
  --muted-on-ink: #aab0b9;
  --focus: #0d0e10;

  --sans: "Helvetica Neue", "Arial Nova", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --step-4: clamp(2.75rem, 1.6rem + 5vw, 6rem);
  --step-5: clamp(3rem, 1.2rem + 7.6vw, 8.75rem);

  --space: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --wrap: 84rem;
}

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

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

body {
  margin: 0;
  background: var(--gray);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
  font-kerning: normal;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p { max-width: 38em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.on-ink { --focus: var(--chart); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--chart);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--space), var(--wrap));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--gray);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 2.5rem; height: 2.5rem; flex: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.625rem;
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}
.site-nav .nav-cta {
  background: var(--ink);
  color: var(--chart);
  margin-left: 0.25rem;
}
.site-nav .nav-cta:hover { background: var(--ink-2); }
.site-nav .nav-cta[aria-current="page"] { text-decoration-color: var(--chart); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-icon { width: 1.125rem; height: 0.75rem; position: relative; }
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
}
.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { bottom: 5px; transform: rotate(-45deg); }

/* Without JS the nav simply wraps under the brand on small screens. */
@media (max-width: 47.99em) {
  .site-nav { flex-basis: 100%; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--ink); padding-top: 0.5rem; }
  .js .site-nav a { display: block; padding: 0.875rem 0; font-size: var(--step-1); }
  .js .site-nav .nav-cta { margin: 0.5rem 0 0.25rem; padding-inline: 1rem; }
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--chart); }
.btn-primary:hover { background: var(--ink-2); text-decoration: underline; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); text-decoration: underline; }
.on-ink .btn-primary { background: var(--chart); color: var(--ink); border-color: var(--chart); }
.on-ink .btn-primary:hover { background: #e6ff78; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) 0; }

.hero h1 {
  font-size: var(--step-5);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 12.5em;
}
.page-hero h1 { font-size: var(--step-4); max-width: 13em; }

.hero-body {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 32em;
}

@media (min-width: 64em) {
  .hero-body {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--space);
    align-items: start;
  }
  .hero-copy { grid-column: 1 / 7; padding-top: 0.5rem; }
  .offer { grid-column: 8 / 13; }
}

/* Offer panel */
.offer {
  background: var(--ink);
  color: var(--gray);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.offer-price {
  display: block;
  color: var(--chart);
  font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums lining-nums;
}
.offer-title {
  display: block;
  margin-top: 0.75rem;
  font-size: var(--step-1);
  font-weight: 700;
}
.offer ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  border-top: 1px solid #4a4f58;
}
.offer li {
  padding-block: 0.625rem;
  border-bottom: 1px solid #4a4f58;
}
.offer .text-link { display: inline-block; margin-top: 1.25rem; font-weight: 700; }

/* ---------- The ruler (signature element) ---------- */

.ruler {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 2px solid var(--ink);
  position: relative;
}
.ruler::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 18px;
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 0.75rem) top left / 100% 8px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 3rem) top left / 100% 14px no-repeat;
  transform-origin: left;
}
.ruler ol {
  list-style: none;
  padding: 0;
  display: grid;
  counter-reset: none;
}
.ruler li {
  position: relative;
  padding: 1.75rem 0 1.5rem 1rem;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
}
.ruler li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 3.25rem;
  background: var(--ink);
}
.ruler-note {
  color: var(--muted);
  font-size: var(--step--1);
  padding: 0 0 2rem;
}
@media (min-width: 40em) {
  .ruler ol { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 39.99em) {
  .ruler li { padding-block: 1.25rem 0.75rem; }
  .ruler li::before { height: 2.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .ruler::before { animation: measure 1.1s cubic-bezier(.2,.7,.2,1) both 0.15s; }
  .ruler li::before { animation: tick 0.5s ease-out both; }
  .ruler li:nth-child(1)::before { animation-delay: 0.3s; }
  .ruler li:nth-child(2)::before { animation-delay: 0.6s; }
  .ruler li:nth-child(3)::before { animation-delay: 0.9s; }
  @keyframes measure { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes tick { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .ruler li::before { transform-origin: top; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section) 0; }
.section:last-of-type { padding-bottom: var(--section); }

.section-head {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-num {
  display: inline-block;
  justify-self: start;
  align-self: start;
  background: var(--chart);
  color: var(--ink);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 0.4rem 0.5rem 0.35rem;
}
.section-head h2 { font-size: var(--step-3); max-width: 14em; }
.section-head p { margin-top: 1rem; color: var(--muted); }

@media (min-width: 48em) {
  .section-head { grid-template-columns: 3fr 9fr; column-gap: var(--space); }
}

.split { display: grid; gap: 2rem; }
@media (min-width: 64em) {
  .split { grid-template-columns: 3fr 9fr; column-gap: var(--space); }
  .split > :first-child { grid-column: 1; }
  .split > .split-main { grid-column: 2; }
  .indent { margin-left: calc(25% + var(--space) / 4); }
}

/* Spec list: term / description rows with precision rules */
.spec {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.spec li,
.spec > div {
  display: grid;
  gap: 0.375rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}
.spec h3,
.spec dt {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.spec p, .spec dd { color: var(--muted); }
@media (min-width: 48em) {
  .spec li, .spec > div { grid-template-columns: 5fr 7fr; column-gap: var(--space); }
}

/* Process steps — a real sequence */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 0 1.75rem 4.25rem;
  border-top: 1px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1.25rem;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.015em; }
.steps p { margin-top: 0.5rem; color: var(--muted); }
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: var(--space); }
  .steps li { padding: 5.5rem 0 0; }
  .steps li::before { top: 1.25rem; font-size: 3.5rem; }
}

/* Three-column facts separated by vertical rules */
.facts {
  display: grid;
  border-top: 1px solid var(--ink);
}
.facts > div { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.facts h3 { font-size: var(--step-2); line-height: 1.1; }
.facts p { margin-top: 0.75rem; color: var(--muted); }
@media (min-width: 64em) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div { padding: 1.75rem var(--space) 0; border-bottom: 0; border-left: 1px solid var(--rule); }
  .facts > div:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Ink band CTA ---------- */

.band {
  background: var(--ink);
  color: var(--gray);
  margin-top: var(--section);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem);
}
.band-inner { display: grid; gap: 1.5rem; }
.band h2 { font-size: var(--step-4); max-width: 11em; letter-spacing: -0.05em; }
.band p { color: var(--muted-on-ink); font-size: var(--step-1); }
.band .actions { margin-top: 0.5rem; }
.band a:not(.btn) { color: var(--gray); }
@media (min-width: 64em) {
  .band-inner { grid-template-columns: 7fr 5fr; column-gap: var(--space); align-items: end; }
}

/* ---------- Trades (websites page) ---------- */

.trades { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.trades > div { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.trades h3 { font-size: var(--step-2); line-height: 1.1; }
.trades p { margin-top: 0.75rem; color: var(--muted); }
@media (min-width: 48em) {
  .trades { grid-template-columns: repeat(2, 1fr); column-gap: var(--space); }
}

/* Anatomy of a project post */
.anatomy {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
.anatomy-caption {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1rem;
}
.anatomy ol {
  list-style: none;
  padding: 0;
  counter-reset: part;
}
.anatomy li {
  counter-increment: part;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.25rem 0.75rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.anatomy li::before {
  content: counter(part, decimal-leading-zero);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  grid-row: span 2;
}
.anatomy strong { font-size: var(--step-1); line-height: 1.3; }
.anatomy span { color: var(--muted); grid-column: 2; }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: var(--space); }
@media (min-width: 64em) {
  .plans { grid-template-columns: 7fr 5fr; align-items: stretch; }
}
.plan { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.plan-build { background: var(--ink); color: var(--gray); }
.plan-care { background: var(--paper); border: 1px solid var(--ink); }
.plan h3 { font-size: var(--step-2); line-height: 1.15; }
.plan-kicker { margin-top: 0.5rem; color: var(--muted); }
.plan-build .plan-kicker { color: var(--muted-on-ink); }
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: 1.5rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.price b {
  font-size: clamp(4rem, 2.6rem + 6vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.plan-build .price b { color: var(--chart); }
.plan-care .price b { font-size: clamp(3.25rem, 2.4rem + 3.6vw, 5.25rem); }
.price span { font-weight: 700; font-size: var(--step-1); }
.price-alt { margin-top: 0.75rem; font-weight: 700; font-size: var(--step-1); }
.plan ul { list-style: none; padding: 0; margin-top: 2rem; }
.plan li { padding-block: 0.75rem; border-top: 1px solid var(--rule); }
.plan-build li { border-top-color: #4a4f58; }
.plan li:last-child { border-bottom: 1px solid var(--rule); }
.plan-build li:last-child { border-bottom-color: #4a4f58; }
.plan .btn { margin-top: 2rem; }

.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare caption { text-align: left; color: var(--muted); padding-bottom: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; border-bottom: 2px solid var(--ink); font-size: var(--step-1); line-height: 1.25; }
.compare tbody th { font-weight: 700; width: 30%; }
.compare .col-care { background: var(--paper); padding-left: 1rem; }
.compare thead .col-care { background: var(--chart); }
.compare thead .col-care { border-bottom-color: var(--ink); }

@media (max-width: 47.99em) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare caption { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { border-top: 1px solid var(--ink); padding-block: 1rem; }
  .compare tbody th { width: 100%; border: 0; padding: 0 0 0.5rem; font-size: var(--step-1); }
  .compare td { border: 0; padding: 0.5rem 0.75rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; }
  .compare td::before { content: attr(data-label); font-weight: 700; }
  .compare .col-care { padding-left: 0.75rem; }
}

.note { color: var(--muted); margin-top: 1.25rem; font-size: var(--step--1); max-width: 44em; }

/* FAQ */
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  font-weight: 800;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--chart); }
.faq details p { padding-bottom: 1.5rem; color: var(--muted); }

/* ---------- Contact ---------- */

.email-block { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.email-big {
  display: inline-block;
  font-size: clamp(1.625rem, 0.6rem + 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-decoration: none;
  border-bottom: 0.08em solid var(--chart);
  box-shadow: inset 0 -0.08em 0 var(--chart);
  overflow-wrap: anywhere;
  max-width: 100%;
}
.email-big:hover { background: var(--chart); }
.email-help { margin-top: 1.25rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.checklist li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule);
}
.checklist li::before {
  content: "";
  width: 1.25rem; height: 3px;
  margin-top: 0.7rem;
  background: var(--ink);
}
.checklist strong { display: block; }
.checklist span { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { padding-block: var(--section); }
.notfound h1 { font-size: var(--step-4); max-width: 10em; }
.notfound .code {
  display: inline-block;
  background: var(--chart);
  font-weight: 800;
  padding: 0.4rem 0.5rem 0.35rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--ink); padding-block: 3rem 2.5rem; }
.band + .site-footer { border-top: 0; }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand p { margin-top: 1rem; color: var(--muted); max-width: 26em; }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: 0.25rem; }
.footer-nav a { display: inline-block; padding-block: 0.25rem; }
.footer-contact a { font-weight: 700; font-size: var(--step-1); }
.footer-small { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--step--1); }
@media (min-width: 48em) {
  .footer-inner { grid-template-columns: 6fr 3fr 3fr; column-gap: var(--space); }
}

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

@media print {
  .site-header .menu-toggle, .skip-link { display: none; }
  .band, .offer, .plan-build { background: #fff; color: #000; }
}
main:focus { outline: none; }

/* Compact mobile masthead keeps the brand and menu on one row. */
@media (max-width: 30em) {
  .header-inner { gap: 0.75rem; }
  .site-header .brand { font-size: 0.9375rem; gap: 0.5rem; }
  .site-header .brand svg { width: 2rem; height: 2rem; }
  .menu-toggle { padding-inline: 0.625rem; font-size: 1rem; }
}
@media (min-width: 64em) {
  .trades { grid-template-columns: repeat(3, 1fr); }
}
