/* Wattle Analytics: static site styles
   Palette comes from the subject: wattle blossom (gold) against gum leaf (green). */

:root {
  --gold: #f2be1b;
  --gold-soft: #f8d766;
  --gold-deep: #e0a800;
  --ink: #112a21;
  --gum: #17342b;
  --gum-2: #1f4538;
  --gum-3: #2a5a47;
  --sage: #9dc1ae;
  --mist: #f3f6f0;
  --paper: #ffffff;
  --line: #d3ddd4;
  --muted: #3f5247;
  --muted-on-gold: #2b4136;
  --muted-on-dark: #bcd1c5;
  --text-on-dark: #e6f0ea;
  --radius: 12px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
}

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

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.on-dark :focus-visible,
.band--gum :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: var(--gum-3);
  border-color: var(--gum-3);
}

.btn--line {
  background: transparent;
  color: var(--ink);
}

.btn--line:hover {
  background: rgba(17, 42, 33, 0.1);
}

.btn--small {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 0.97rem;
}

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

.header {
  position: relative;
  z-index: 5;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__name strong {
  font-weight: 800;
}

.brand__name span {
  font-weight: 500;
}

.nav__toggle {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__list a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 550;
}

.nav__list a:not(.btn):hover {
  background: rgba(17, 42, 33, 0.1);
}

.nav__list .btn {
  margin-left: 0.5rem;
}

@media (max-width: 959px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list .btn {
    margin: 0.25rem 0 0;
  }
}

.header .wrap {
  position: relative;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding-block: 2.5rem 9rem;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: 3.5rem;
    padding-block: 3.5rem 8rem;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted-on-gold);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.97rem;
  color: var(--muted-on-gold);
}

.hero__visual {
  position: relative;
}

/* ---------- Sample dashboard (decorative) ---------- */

.mock {
  position: relative;
  padding: 1.25rem;
  background: var(--gum);
  color: var(--text-on-dark);
  border-radius: 16px;
  box-shadow: 0 24px 40px -24px rgba(17, 42, 33, 0.65);
}

.mock__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 1rem;
}

.mock__title {
  font-size: 1.05rem;
  font-weight: 650;
}

.mock__tag {
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.kpi {
  padding: 0.7rem 0.75rem;
  background: var(--gum-2);
  border-radius: 10px;
}

.kpi__label {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--muted-on-dark);
}

.kpi__value {
  margin-top: 0.2rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.kpi__delta {
  font-size: 0.76rem;
  color: var(--sage);
}

.mock__chart {
  margin-top: 1rem;
  padding: 0.85rem 0.5rem 0.25rem 0.85rem;
  background: var(--gum-2);
  border-radius: 10px;
}

.mock__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  font-size: 0.8rem;
  color: var(--muted-on-dark);
}

.mock__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mock__legend i {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 3px solid var(--gold);
}

.mock__legend i.is-dashed {
  border-top: 2px dashed var(--sage);
}

.mock__svg {
  width: 100%;
  height: auto;
  margin-top: 0.4rem;
}

.mock__svg text {
  font-family: var(--font);
  font-size: 13px;
  fill: var(--muted-on-dark);
}

.line-now {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .line-now {
    animation: draw 1.6s cubic-bezier(0.3, 0.6, 0.2, 1) 0.3s both;
  }

  .line-then,
  .dot-now,
  .label-now,
  .label-then {
    animation: fade-in 0.6s ease 1.7s both;
  }
}

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

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- Bands (page sections) ---------- */

.band {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.band--mist {
  background: var(--mist);
}

.band--gum {
  background: var(--gum);
  color: var(--text-on-dark);
}

.band--gold {
  background: var(--gold);
}

.band__head {
  max-width: 44rem;
}

.band__head h2,
.split__head h2,
.contact__intro h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.band__head p,
.split__head p,
.contact__intro p {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.band--gum .band__head p {
  color: var(--muted-on-dark);
}

/* ---------- Services ---------- */

.svc-list {
  margin-top: 3rem;
  border-bottom: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 3rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .svc {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.svc h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.svc__body > p {
  max-width: 38rem;
  font-size: 1.12rem;
}

.svc__work {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 2rem;
  margin-top: 1.1rem;
  color: var(--muted);
}

@media (min-width: 560px) {
  .svc__work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.svc__work li {
  position: relative;
  padding-left: 1.15rem;
}

.svc__work li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* ---------- Analytics ladder ---------- */

.ladder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 1.25rem;
  }

  .step--1 {
    min-height: 19rem;
  }

  .step--2 {
    min-height: 24.5rem;
  }

  .step--3 {
    min-height: 30rem;
  }
}

.step {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 14px;
}

.step--1 {
  background: var(--gum-2);
}

.step--2 {
  background: var(--gum-3);
}

.step--3 {
  background: var(--gold);
  color: var(--ink);
}

.step__q {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.step__name {
  margin-top: 0.5rem;
  font-weight: 650;
  color: var(--sage);
}

.step--3 .step__name {
  color: var(--muted-on-gold);
}

.step__text {
  margin-top: 1rem;
}

.step__eg {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.98rem;
  color: var(--muted-on-dark);
}

.step--3 .step__eg {
  color: var(--muted-on-gold);
}

.step__eg b {
  font-weight: 650;
  color: inherit;
}

/* ---------- Approach (split) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.promises {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.promise {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.promise h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.promise p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.fit {
  margin-top: 2rem;
  max-width: 38rem;
  color: var(--muted);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.process li {
  position: relative;
  padding-top: 4rem;
  counter-increment: step;
}

.process li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
}

.process h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.process p {
  margin-top: 0.4rem;
  color: var(--muted);
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

.contact__intro p {
  color: var(--muted-on-gold);
}

.contact__details {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.contact__details dt {
  font-size: 0.92rem;
  color: var(--muted-on-gold);
}

.contact__details dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.contact__details a {
  text-underline-offset: 3px;
}

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border-radius: 16px;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 650;
  font-size: 0.97rem;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #5b6f64;
  border-radius: 10px;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.field--trap {
  position: absolute;
  left: -9999px;
}

.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form__status {
  min-height: 1.5rem;
  font-weight: 600;
}

.form__status.is-error {
  color: #8a1c1c;
}

.form__status.is-ok {
  color: var(--gum-3);
}

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

.footer {
  padding-block: 3rem 2.5rem;
  background: var(--ink);
  color: var(--text-on-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.footer .brand {
  color: var(--gold);
}

.footer__tag {
  margin-top: 0.75rem;
  max-width: 24rem;
  color: var(--muted-on-dark);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}

.footer__legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(188, 209, 197, 0.3);
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page .wrap {
  max-width: 46rem;
}

.page h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.page p,
.page ul {
  margin-top: 0.75rem;
}

.page ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.page .updated {
  margin-top: 0.75rem;
  color: var(--muted);
}

.page .btn {
  margin-top: 1.5rem;
}

/* Two mist sections in a row share one gap */
.band[data-flush-top] {
  padding-top: 0;
}


/* ---------- Helpers ---------- */

[hidden] {
  display: none !important;
}

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

.band--paper {
  background: var(--paper);
}

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

.hero__text {
  position: relative;
  z-index: 1;
}

/* The wattle branch sits behind the sample dashboard, flowers hanging below it.
   It runs off the right edge of the page and fades out on the left. */
.sprig {
  position: absolute;
  z-index: 0;
  right: -140px;
  bottom: -165px;
  width: 135%;
  max-width: none;
  height: auto;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%);
  mask-image: linear-gradient(to right, transparent 0, #000 18%);
}

@media (max-width: 959px) {
  .sprig {
    right: -70px;
    bottom: -140px;
    width: 140%;
  }
}

/* ---------- Dashboard demo ---------- */

.dash {
  margin-top: 2.5rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--gum);
  color: var(--text-on-dark);
  border-radius: 18px;
  box-shadow: 0 30px 50px -36px rgba(17, 42, 33, 0.8);
}

.dash__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.1rem;
}

.dash__name {
  font-size: 1.2rem;
  font-weight: 650;
  color: #fff;
}

.dash__name small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted-on-dark);
}

.dash__nojs {
  padding: 1rem;
  color: var(--muted-on-dark);
}

.seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1.5px solid #4b7f69;
  border-radius: 12px;
}

.seg button {
  min-height: 44px;
  padding: 0.35rem 1rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-on-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.seg button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.seg button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.dash__kpis {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 440px) {
  .dash__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .dash__kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dkpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  background: var(--gum-2);
  border-radius: 12px;
}

.dkpi__label {
  font-size: 0.88rem;
  color: var(--muted-on-dark);
}

.dkpi__value {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dkpi__delta {
  font-size: 0.88rem;
  color: var(--sage);
}

.dkpi__spark {
  margin-top: 0.5rem;
}

.dash__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 1000px) {
  .dash__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.panel {
  min-width: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--gum-2);
  border-radius: 12px;
}

.panel--wide {
  margin-top: 0.75rem;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.panel__head h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
}

.panel__sub,
.panel__note {
  font-size: 0.88rem;
  color: var(--muted-on-dark);
}

.panel__note {
  margin-top: 1rem;
}

.panel__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.1rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.tool-btn {
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border: 1.5px solid #5f8a76;
  border-radius: 9px;
  background: transparent;
  color: var(--text-on-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted-on-dark);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lg {
  display: inline-block;
  width: 22px;
  height: 0;
  flex: none;
}

.lg--now {
  border-top: 3px solid var(--gold);
}

.lg--then {
  border-top: 2px dashed var(--sage);
}

.lg--fc {
  height: 10px;
  border-top: 3px dotted var(--gold);
  background: rgba(242, 190, 27, 0.25);
}

.plot {
  position: relative;
  min-height: 250px;
  margin-top: 0.5rem;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}

.chart text {
  font-family: var(--font);
  font-size: 12px;
  fill: var(--muted-on-dark);
}

.chart .fc-label {
  fill: var(--gold-soft);
  font-weight: 600;
}

.chart .fc-tick {
  fill: var(--gold-soft);
}

.chart .grid {
  stroke: #2f5d4c;
  stroke-width: 1;
}

.chart .area {
  fill: rgba(242, 190, 27, 0.1);
}

.chart .band {
  fill: rgba(242, 190, 27, 0.2);
}

.chart .line-now,
.chart .line-then,
.chart .line-fc {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart .line-now {
  stroke: var(--gold);
  stroke-width: 3;
}

.chart .line-then {
  stroke: var(--sage);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.chart .line-fc {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 1 7;
}

.chart .dot-end,
.chart .dot-now {
  fill: var(--gold);
  stroke: var(--gum-2);
  stroke-width: 2;
}

.chart .dot-then {
  fill: var(--sage);
  stroke: var(--gum-2);
  stroke-width: 2;
}

.chart .dot-fc {
  fill: var(--gum-2);
  stroke: var(--gold);
  stroke-width: 2.5;
}

.chart .cross {
  stroke: var(--text-on-dark);
  stroke-opacity: 0.45;
  stroke-width: 1;
}

.chart .hit {
  cursor: crosshair;
}

.tip {
  position: absolute;
  z-index: 2;
  min-width: 160px;
  max-width: 230px;
  padding: 0.6rem 0.75rem;
  background: #0c1f18;
  border: 1px solid #2f5d4c;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-on-dark);
  pointer-events: none;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.7);
}

.tip b {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 650;
  color: #fff;
}

.tip span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.tip .tip__note {
  margin-top: 0.15rem;
  color: var(--muted-on-dark);
}

.dtable-wrap {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums;
}

.dtable th,
.dtable td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #2f5d4c;
  text-align: left;
  white-space: nowrap;
}

.dtable thead th {
  font-weight: 600;
  color: var(--muted-on-dark);
}

.dtable tbody th {
  font-weight: 600;
  color: #fff;
}

.dtable .is-fc th,
.dtable .is-fc td {
  color: var(--gold-soft);
}

.bars {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.bar__name {
  color: var(--text-on-dark);
}

.bar__val {
  font-weight: 650;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.bar__val small {
  margin-left: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted-on-dark);
}

.bar__track {
  grid-column: 1 / -1;
  height: 12px;
  background: var(--gum);
  border-radius: 6px;
  overflow: hidden;
}

.bar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .bar__fill {
    transition: width 0.35s ease;
  }
}

.actions {
  display: grid;
  margin-top: 0.5rem;
}

.action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.8rem;
  border-top: 1px solid #2f5d4c;
}

.action__main {
  display: flex;
  flex: 1 1 22rem;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  cursor: pointer;
}

.action__main input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0.1rem 0 0;
  accent-color: var(--gold);
}

.action__text b {
  display: block;
  font-weight: 600;
  color: #fff;
}

.action__text small {
  display: block;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}

.action__main input:checked + .action__text {
  opacity: 0.65;
}

.action__main input:checked + .action__text b {
  text-decoration: line-through;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}

.pill--high {
  background: var(--gold);
  color: var(--ink);
}

.pill--med {
  border: 1.5px solid var(--sage);
  color: var(--text-on-dark);
}

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem 1.75rem;
  margin-top: 3rem;
}

.person {
  min-width: 0;
}

.person--1 {
  --av-bg: var(--gold);
  --av-fg: var(--ink);
}

.person--2 {
  --av-bg: #9dc1ae;
  --av-fg: var(--gum);
}

.person--3 {
  --av-bg: var(--gum-3);
  --av-fg: var(--gold-soft);
}

.person--4 {
  --av-bg: var(--gold-soft);
  --av-fg: var(--gum-2);
}

.person__avatar,
.person__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.person__avatar {
  overflow: hidden;
  background: var(--av-bg);
  color: var(--av-fg);
}

.person__photo {
  object-fit: cover;
}

.person__avatar svg {
  width: 100%;
  height: 100%;
}

.person__name {
  margin-top: 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.person__role {
  margin-top: 0.15rem;
  font-weight: 600;
  color: var(--gum-3);
}

.person__bio {
  margin-top: 0.5rem;
  color: var(--muted);
}
