/* Landing and sign-in pages (marketing layout only). */

/* Hero ---------------------------------------------------------------- */
.hero { padding-block: var(--s5) var(--s6); }

.hero__grid {
  display: grid;
  gap: var(--s5);
  align-items: start;
}

.hero__title {
  max-width: 17ch;
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero__lede {
  margin-top: var(--s3);
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  margin-top: var(--s4);
}

@media (min-width: 64rem) {
  .hero { padding-block: var(--s6) var(--s7); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); }
  .hero__copy { padding-top: var(--s4); }
}

/* Sample report excerpt: the one floating object on the page ------------ */
.sample {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 0 1px 2px rgba(14, 23, 38, 0.04), 0 12px 32px -12px rgba(14, 23, 38, 0.18);
  overflow: hidden;
  scroll-margin-top: var(--s3);
  max-width: 42rem;
}

.sample__bar {
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: 0.625rem var(--s3);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.sample__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.sample__flag::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.sample__body { padding: var(--s3); }

.sample__cover {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  align-items: flex-start;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}

.sample__business { font-size: var(--text-lg); letter-spacing: -0.015em; }
.sample__url { margin-top: 0.25rem; color: var(--muted); }

.sample__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s2); font-size: var(--text-sm); }
.sample__meta dt { color: var(--muted); }
.sample__meta dd { margin: 0; font-weight: 600; }

.sample .score-ring { width: 6.25rem; height: 6.25rem; }
.sample .score-ring__num { font-size: 1.75rem; }

@media (max-width: 30rem) {
  .sample__bar { padding-inline: var(--s2); }
  .sample__body { padding: var(--s2); }
  .sample__cover { gap: var(--s2); }
  .sample__url { font-size: 0.8125rem; }
  .sample .score-ring { width: 5rem; height: 5rem; }
  .sample .score-ring__num { font-size: 1.375rem; }
  .sample .score-ring__of { font-size: 0.75rem; }
  .sample__finding { padding: 0.75rem; }
}

.sample__label {
  margin-top: var(--s3);
  margin-bottom: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted);
}

.sample__finding {
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.sample__finding.sev-rule { border-left: 4px solid var(--sev-rule); border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.sample__more { margin-top: var(--s1); }
.sample__finding .finding__title { margin-top: 0.75rem; font-size: 1.0625rem; font-weight: 700; }
.sample__finding .finding__facts { gap: 0.75rem; margin-top: 0.75rem; }
.sample__finding .fix { font-size: 0.9375rem; }
.sample__finding .evidence { font-size: 0.8125rem; }

/* The page's one load moment: score bars and ring fill in. */
@media (prefers-reduced-motion: no-preference) {
  .sample .score-bar__track rect + rect {
    transform-box: fill-box;
    transform-origin: left center;
    animation: bar-fill 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms both;
  }

  .sample .score-bar:nth-child(2) .score-bar__track rect + rect { animation-delay: 330ms; }
  .sample .score-bar:nth-child(3) .score-bar__track rect + rect { animation-delay: 410ms; }
  .sample .score-ring__value { animation: ring-fill 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both; }
}

@keyframes bar-fill { from { transform: scaleX(0); } }
@keyframes ring-fill { from { stroke-dasharray: 0 100; } }

/* Bands and the asymmetric split --------------------------------------- */
.band { padding-block: var(--s6); border-top: 1px solid var(--line); }

.split { display: grid; gap: var(--s4); }
.split__intro { margin-top: var(--s2); color: var(--muted); max-width: 30rem; }

@media (min-width: 64rem) {
  .band { padding-block: var(--s7); }
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s6); }
  .split__head { position: sticky; top: 6.5rem; align-self: start; }
}

.band h2 { font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.15; }

/* Services: a ruled index, not cards ---------------------------------- */
.service-index { list-style: none; display: grid; border-top: 1px solid var(--ink); }

.service-index__item {
  padding-block: var(--s2) 1.25rem;
  border-bottom: 1px solid var(--line);
}

.service-index__name { font-size: 1.0625rem; font-weight: 700; }
.service-index__desc { margin-top: 0.25rem; color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 34rem; }

@media (min-width: 48rem) {
  .service-index { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
}

/* Pitch: the three signal groups as a ruled list ---------------------- */
.pitch { display: grid; gap: var(--s2); max-width: 46rem; }
.pitch__lede { font-size: var(--text-md); line-height: 1.55; }
.pitch__note { color: var(--muted); padding-left: var(--s2); border-left: 3px solid var(--violet); }

.signals { display: grid; margin-top: var(--s2); border-top: 1px solid var(--ink); }
.signals__item { padding-block: var(--s2); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 0.25rem; }
.signals__item dt { display: flex; align-items: center; gap: 0.625rem; font-size: var(--text-md); font-weight: 700; }
.signals__item dt::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 2px; background: var(--sig); flex: none; }
.signals__item dd { margin: 0; color: var(--muted); }
.signals__item--quality { --sig: var(--accent); }
.signals__item--trust { --sig: var(--good); }
.signals__item--findable { --sig: var(--teal); }

@media (min-width: 48rem) {
  .signals { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; column-gap: var(--s3); }
  .signals__item { border-top: 3px solid var(--sig); border-bottom: 0; padding-top: var(--s2); }
}

.service-index__tier { margin-top: 0.375rem; color: var(--teal-strong); font-size: 0.8125rem; font-weight: 600; }
.service-index__tier--growth { color: var(--accent-strong); }
.service-index__tier--complete { color: var(--violet-strong); }

/* Packages: a ruled comparison, three columns on wide screens ---------- */
.packages__head { max-width: 46rem; }
.packages { list-style: none; display: grid; margin-top: var(--s4); gap: var(--s3); }

/* One colour per package: Essentials teal, Growth cobalt, Complete violet. The name also carries
   a swatch and the text label, so colour is never the only signal. */
.package--essentials { --tier: var(--teal); --tier-strong: var(--teal-strong); --tier-tint: var(--teal-tint); }
.package--growth { --tier: var(--accent); --tier-strong: var(--accent-strong); --tier-tint: var(--accent-tint); }
.package--complete { --tier: var(--violet); --tier-strong: var(--violet-strong); --tier-tint: var(--violet-tint); }

.package {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tier);
  border-radius: var(--radius-panel);
}

.package__name { display: flex; align-items: center; gap: 0.625rem; font-size: var(--text-lg); color: var(--tier-strong); }
.package__name::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 2px; background: var(--tier); flex: none; }
.package__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; }
.package__price .num { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.package__per { color: var(--muted); font-size: var(--text-sm); }
.package__tagline { font-weight: 600; }
.package__count { color: var(--muted); font-size: 0.9375rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.package__count .num { color: var(--ink); font-weight: 500; }
.package__lead { margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 600; }
.package__list { list-style: none; display: grid; gap: 0.375rem; font-size: 0.9375rem; }
.package__list li { position: relative; padding-left: 1.125rem; }
.package__list li::before { content: "+"; position: absolute; left: 0; color: var(--tier-strong); font-weight: 700; }
.package__extra { font-weight: 600; }
.package__cta { margin-top: auto; align-self: stretch; background: var(--tier-strong); border-color: var(--tier-strong); }
.package__cta:hover { background: var(--ink); border-color: var(--ink); }
.package__list + .package__cta { margin-top: var(--s2); }

@media (min-width: 64rem) {
  .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .package__list + .package__cta { margin-top: auto; }
  .package__list { margin-bottom: var(--s3); }
}

.packages__note { margin-top: var(--s3); color: var(--muted); font-size: var(--text-sm); max-width: 46rem; }

/* Illustrative charts -------------------------------------------------- */
.charts__flag {
  display: inline-flex;
  margin-top: var(--s2);
  padding: 0.25rem 0.625rem;
  border-left: 3px solid var(--medium);
  background: var(--medium-tint);
  color: var(--medium-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.charts { display: grid; gap: var(--s3); margin-top: var(--s4); }

@media (min-width: 64rem) {
  .charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.chart {
  padding: var(--s2) var(--s2) var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  min-width: 0;
}

.chart__title { font-size: 1.0625rem; }
.chart__unit { color: var(--muted); font-size: 0.8125rem; }
.chart__svg { display: block; width: 100%; height: auto; margin-top: var(--s1); overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { stroke: var(--line-strong); stroke-width: 1; }
.chart__tick { fill: var(--muted); font-family: var(--font-sans); font-size: 11px; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart__dot--last { fill: var(--good); stroke: var(--good); }
.chart__bar { fill: var(--accent); }
.chart__bar--last { fill: var(--good); }
.chart__value { fill: var(--ink); font-family: var(--font-mono); font-size: 11px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart__value--last { fill: var(--good); font-weight: 500; }
.chart__caption { margin-top: var(--s1); color: var(--muted); font-size: 0.875rem; }

.chart__data summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.chart__data table { width: 100%; font-size: 0.875rem; font-variant-numeric: tabular-nums; border-collapse: collapse; }
.chart__data th, .chart__data td { padding: 0.25rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.chart__data thead th { color: var(--muted); font-weight: 600; }
.chart__data td { text-align: right; font-family: var(--font-mono); }

.charts__note { margin-top: var(--s3); font-weight: 600; max-width: 46rem; }

@media (prefers-reduced-motion: no-preference) {
  .chart__line { stroke-dasharray: 1; animation: line-draw 1200ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both; }
}

@keyframes line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Night band: the trust commitments ----------------------------------- */
.band--night {
  background: var(--night);
  color: var(--night-text);
  border-top: 0;
}

.band--night h2, .band--night h3 { color: var(--surface); }
.band--night .split__intro { color: var(--night-muted); }

.commitments { list-style: none; display: grid; border-top: 1px solid var(--night-line); }

.commitments li { padding-block: var(--s3); border-bottom: 1px solid var(--night-line); }
.commitments h3 { font-size: var(--text-md); }
.commitments p { margin-top: var(--s1); color: var(--night-text); max-width: 32rem; }

@media (min-width: 48rem) {
  .commitments { grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
  .commitments li { padding-block: var(--s4); }
}

/* Process: a true sequence, so numbered ------------------------------- */
.steps { list-style: none; display: grid; gap: var(--s4); counter-reset: none; }
.steps__item { position: relative; padding-top: var(--s2); border-top: 2px solid var(--ink); }

.steps__num {
  display: block;
  margin-bottom: var(--s2);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
}

.steps__item h3 { font-size: var(--text-md); }
.steps__item p { margin-top: var(--s1); color: var(--muted); }

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
}

/* Package picker: selectable cards inside the request form. Own tier classes, so the Complete glow in the packages section does not apply here. */
.pkgpick { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.pkgpick legend { padding: 0; margin-bottom: var(--s2); }
.pkgpick__grid { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .pkgpick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pkgpick__option {
  position: relative; display: grid; align-content: start; gap: 0.25rem;
  padding: var(--s3) var(--s3) var(--s3) 2.75rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-panel); background: var(--surface);
  cursor: pointer; min-width: 0;
}
.pkgpick__option--essentials { --tier: var(--teal); --tier-strong: var(--teal-strong); --tier-tint: var(--teal-tint); }
.pkgpick__option--growth { --tier: var(--accent); --tier-strong: var(--accent-strong); --tier-tint: var(--accent-tint); }
.pkgpick__option--complete { --tier: var(--violet); --tier-strong: var(--violet-strong); --tier-tint: var(--violet-tint); }
.pkgpick__option--unsure { --tier: var(--muted); --tier-strong: var(--ink); --tier-tint: var(--paper); }
.pkgpick__option:hover { border-color: var(--tier); }
.pkgpick__option:has(.pkgpick__input:checked) { border-color: var(--tier); background: var(--tier-tint); box-shadow: inset 0 0 0 1px var(--tier); }
.pkgpick__option:has(.pkgpick__input:focus-visible) { box-shadow: var(--focus); }
.pkgpick__input {
  appearance: none; position: absolute; left: 1rem; top: 1.0625rem; margin: 0;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer;
}
.pkgpick__input:checked { border-color: var(--tier); background: radial-gradient(circle, var(--tier) 0 38%, transparent 42%), var(--surface); }
.pkgpick__input:focus-visible { outline: none; }
.pkgpick__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.pkgpick__name { font-weight: 700; color: var(--tier-strong); }
.pkgpick__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pkgpick__tagline { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-snug); }
.pkgpick__meta { color: var(--muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.pkgpick + .field { margin-top: 0; }

/* Request form -------------------------------------------------------- */
.band--request { background: var(--surface); }
.request { max-width: 38rem; display: grid; gap: var(--s3); }
.request__form { padding-top: var(--s1); }
.request .notice ul { margin-top: var(--s1); }
.request .notice a { font-weight: 600; }

.request__consent { margin-top: var(--s3); color: var(--muted); font-size: var(--text-sm); }
.request__consent + .form-actions { margin-top: var(--s2); }

.website-confirm { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Header and footer details for this layout --------------------------- */
.site-footer { margin-top: 0; }
.site-footer__brand { display: grid; gap: var(--s1); }
.site-footer__tagline { color: var(--muted); }

@media (max-width: 30rem) {
  .site-nav__cta { display: none; }
}

/* Sign in ------------------------------------------------------------- */
.auth { padding-block: var(--s6) var(--s7); }
.auth__col { max-width: 28rem; }
.auth__title { font-size: var(--text-xl); letter-spacing: -0.02em; }
.auth__lede { margin-top: var(--s2); color: var(--muted); }
.auth__form { margin-top: var(--s4); }
.auth__form .btn { width: 100%; }
.auth__note { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); }
