/* RepoCity RadarAuditor project page. Tokens follow app/src/theme/tokens.css. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #04060b;
  --raised: #0b1222;
  --glow: #163a7a;
  --gold: #dcb25c;
  --gold-light: #f0d492;
  --gold-deep: #a9803a;
  --text: #f3f1ea;
  --muted: #a9a79f;
  --ok: #4fbf7a;
  --warn: #e0a83a;
  --bad: #d8584d;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(220, 178, 92, 0.25);
  --border-quiet: rgba(243, 241, 234, 0.1);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --gutter: 16px;
  --measure: 64ch;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background-color: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 22% -8%, rgba(22, 58, 122, 0.95) 0%, rgba(22, 58, 122, 0) 70%),
    radial-gradient(50% 40% at 95% 30%, rgba(22, 58, 122, 0.35) 0%, rgba(22, 58, 122, 0) 70%),
    var(--night);
}

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

img {
  height: auto;
}

a {
  color: var(--gold-light);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  max-width: 20ch;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--night);
  border-radius: 10px;
  font-weight: 650;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

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

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name strong {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--gold);
}

.brand__name span {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--border-quiet);
  border-radius: 999px;
  padding: 0;
}

.lang a,
.lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}

.lang [aria-current="true"] {
  background: rgba(220, 178, 92, 0.14);
  color: var(--gold-light);
}

main {
  overflow-x: clip;
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-block: 40px 72px;
  align-items: center;
}

.hero__mark {
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 22px rgba(220, 178, 92, 0.28));
}

.hero h1 {
  font-size: clamp(2.6rem, 8.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 760;
}

.lead {
  margin-top: 24px;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  line-height: 1.45;
  max-width: 30ch;
  color: var(--text);
}

.hero__note {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button--primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #c99b45);
  color: #120d04;
  box-shadow: 0 10px 28px rgba(220, 178, 92, 0.25);
}

.button--primary:hover {
  color: #120d04;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(220, 178, 92, 0.34);
}

.button--quiet {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.button--quiet:hover {
  background: rgba(220, 178, 92, 0.08);
  color: var(--text);
}

.hero__device {
  position: relative;
  justify-self: center;
  width: min(250px, 70vw);
  margin-block: 8px 12px;
}

.hero__device::before {
  content: "";
  position: absolute;
  inset: -18% -40%;
  background: radial-gradient(closest-side, rgba(22, 58, 122, 0.9), rgba(22, 58, 122, 0));
  z-index: -1;
}

.device {
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #1a2233, #05070d 40%);
  border: 1px solid var(--border);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
}

.device img {
  width: 100%;
  border-radius: 31px;
}

/* Sections */
.section {
  padding-block: 72px;
  border-top: 1px solid var(--border-quiet);
}

.section__intro {
  margin-top: 18px;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.125rem;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Outputs */
.outputs {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.output {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.output__text {
  padding: 26px 24px 22px;
}

.output__text p {
  margin-top: 10px;
  color: var(--muted);
}

.output__shot {
  margin-top: auto;
  margin-inline: 24px;
  height: 260px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border-quiet);
  border-bottom: 0;
}

.output__shot img {
  width: 100%;
}

.output__shot--phone {
  width: 220px;
  align-self: center;
  margin-inline: auto;
  border-radius: 22px 22px 0 0;
}

.estimate {
  margin: auto 24px 26px;
  padding: 20px 18px;
  border-radius: 12px;
  background: rgba(4, 6, 11, 0.6);
  border: 1px solid var(--border-quiet);
}

.estimate__band {
  position: relative;
  height: 40px;
  margin-bottom: 10px;
}

.estimate__band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 2px;
  background: rgba(243, 241, 234, 0.12);
}

.estimate__range {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 8px;
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(220, 178, 92, 0.25), rgba(220, 178, 92, 0.6), rgba(220, 178, 92, 0.25));
  border: 1px solid rgba(240, 212, 146, 0.7);
}

.estimate__ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--muted);
  padding-inline: 4%;
}

.estimate ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-quiet);
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.estimate strong {
  color: var(--text);
  font-weight: 600;
}

.fineprint {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Flow */
.flow-stage {
  position: relative;
  margin-top: 40px;
  padding: 28px 12px;
  overflow: hidden;
}

.flow-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 45%, rgba(22, 58, 122, 0.55), rgba(22, 58, 122, 0));
  pointer-events: none;
}

.flow {
  position: relative;
  width: 100%;
  height: auto;
  margin-inline: auto;
  font-family: var(--font);
}

.flow--wide {
  display: none;
  max-width: 1100px;
}

.flow--narrow {
  max-width: 420px;
}

.d-track {
  fill: none;
  stroke: rgba(220, 178, 92, 0.2);
  stroke-width: 2;
}

.d-track-lit {
  fill: none;
  stroke: rgba(240, 212, 146, 0.55);
  stroke-width: 1;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.d-feed {
  fill: none;
  stroke: rgba(243, 241, 234, 0.16);
  stroke-width: 1.2;
}

.d-num {
  fill: var(--gold);
  font-weight: 700;
}

.d-title {
  fill: var(--text);
  font-weight: 650;
}

.d-sub,
.d-pill {
  fill: var(--muted);
}

.d-back {
  fill: var(--gold);
  font-weight: 500;
}

.steps {
  display: grid;
  gap: 22px 40px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  max-width: 60ch;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.steps strong {
  display: block;
  color: var(--text);
  font-weight: 650;
  margin-bottom: 2px;
}

/* Areas */
.areas {
  margin: 40px 0 0;
  padding: 26px 22px;
  list-style: none;
  display: grid;
  gap: 18px;
}

.area {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: center;
}

.area__name {
  grid-row: 1;
  grid-column: 1;
  font-weight: 550;
}

.area__weight {
  grid-row: 1;
  grid-column: 2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  text-align: right;
  min-width: 2ch;
}

.area__bar {
  grid-row: 2;
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 4px;
  background: rgba(243, 241, 234, 0.07);
  overflow: hidden;
}

.area__bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 70%, var(--gold-light));
}

.w4 { width: calc(4 / 14 * 100%); }
.w5 { width: calc(5 / 14 * 100%); }
.w6 { width: calc(6 / 14 * 100%); }
.w7 { width: calc(7 / 14 * 100%); }
.w8 { width: calc(8 / 14 * 100%); }
.w10 { width: calc(10 / 14 * 100%); }
.w12 { width: calc(12 / 14 * 100%); }
.w14 { width: 100%; }

.area__question {
  grid-row: 3;
  grid-column: 1 / -1;
  margin: 2px 0 6px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-deep);
  color: var(--muted);
  font-size: 0.98rem;
}

.areas__legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.875rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-quiet);
}

/* Limits */
.limits {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.limits .panel {
  padding: 26px 24px;
}

.limits ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.limits li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.limits__yes li::before {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(79, 191, 122, 0.5);
}

.limits__no li::before {
  background: transparent;
  border: 2px solid var(--warn);
}

.limits li strong {
  color: var(--text);
  font-weight: 600;
}

/* Facts */
.facts {
  margin-top: 40px;
  padding: 8px 24px;
  overflow: hidden;
}

.facts table {
  width: 100%;
  border-collapse: collapse;
}

.facts th,
.facts td {
  text-align: left;
  vertical-align: top;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-quiet);
}

.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: 0;
}

.facts th {
  width: 26%;
  padding-right: 16px;
  font-weight: 650;
  color: var(--text);
}

.facts td {
  color: var(--muted);
}

.facts td b {
  color: var(--gold-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  max-width: var(--measure);
}

.status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 12px rgba(224, 168, 58, 0.6);
}

/* Audience */
.audience {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

.audience p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 60ch;
}

.audience .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 14px;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-quiet);
  padding-block: 36px 48px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand svg {
  width: 28px;
  height: 28px;
}

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

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .flow--wide {
    display: block;
  }

  .flow--narrow {
    display: none;
  }

  .flow-stage {
    padding: 36px 28px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .limits,
  .audience {
    grid-template-columns: 1fr 1fr;
  }

  .areas {
    padding: 32px 36px;
  }

  .area {
    grid-template-columns: minmax(220px, 21rem) 1fr 3ch;
    gap: 6px 22px;
  }

  .area__bar {
    grid-row: 1;
    grid-column: 2;
  }

  .area__weight {
    grid-column: 3;
  }

  .area__question {
    grid-row: 2;
    grid-column: 2 / -1;
  }}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
    padding-block: 56px 96px;
  }

  .hero__device {
    width: 290px;
  }

  .outputs {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding-block: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .flow .signal {
    display: none;
  }
}
