/* ==========================================================================
   Kular Accounting — site styles
   Depends on tokens.css (load that first).

   Sections in this file:
     1. Layout primitives (sections, containers, grids)
     2. Design-system components (buttons, cards, badges, etc.)
     3. Header / navigation
     4. Homepage
     5. Services page
     6. Resources page
     7. CTA band + footer
     8. Hero visual (the animated dashboard illustration)
     9. Responsive rules
   ========================================================================== */


/* ==========================================================================
   1. Layout primitives
   ========================================================================== */

.section { padding: var(--space-24) 40px; background: var(--surface-page); }
.section--soft  { background: var(--surface-soft); }
.section--brand { background: var(--surface-brand); }

/* Page-title band at the top of Services / Resources */
.section--page-head { padding: var(--space-20) 40px var(--space-16); }
/* Each individual service block */
.section--service   { padding: var(--space-20) 40px; }

.section__inner { max-width: var(--container); margin: 0 auto; }

.narrow { max-width: var(--container-narrow); }

/* Anchor targets sit below the sticky header when jumped to */
[id] { scroll-margin-top: 140px; }

.stack       { display: grid; gap: 20px; justify-items: start; }
.stack--18   { gap: 18px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--size-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-brand);
}

/* Small uppercase label above a column of content */
.label {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* Inline SVG icon. Icons come from the sprite at the top of each page and
   inherit their colour from the surrounding text. */
.icon {
  width: 24px; height: 24px; display: inline-block; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* ==========================================================================
   2. Design-system components
   Ported verbatim from the Claude Design component library.
   ========================================================================== */

/* ---- Button ---- */
.kc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; /* so kc-btn--full doesn't overflow by its padding + border */
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background .18s ease-out, color .18s ease-out,
              border-color .18s ease-out, box-shadow .18s ease-out, transform .12s ease-out;
}
.kc-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.kc-btn:active { transform: translateY(1px); }
.kc-btn--md { font-size: .9375rem; padding: 11px 24px; }
.kc-btn--lg { font-size: 1.0625rem; padding: 15px 32px; }
.kc-btn--primary { background: var(--teal-500); color: var(--text-on-brand); }
.kc-btn--primary:hover { background: var(--teal-600); color: var(--text-on-brand); }
.kc-btn--secondary { background: transparent; color: var(--text-body); border-color: var(--border-strong); }
.kc-btn--secondary:hover { border-color: var(--teal-500); color: var(--teal-700); }
.kc-btn--ghost { background: transparent; color: var(--text-brand); padding-left: 10px; padding-right: 10px; }
.kc-btn--ghost:hover { color: var(--teal-500); }
.kc-btn--inverse { background: var(--white); color: var(--teal-700); }
.kc-btn--inverse:hover { background: var(--teal-50); color: var(--teal-700); }
.kc-btn--full { width: 100%; }

/* ---- Card ---- */
.kc-card { border-radius: var(--radius-lg); padding: var(--space-8); box-sizing: border-box; }
.kc-card--default { background: var(--surface-card); border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); }
.kc-card--soft    { background: var(--surface-soft); }
.kc-card--tint    { background: var(--surface-tint); }
.kc-card--outline { background: var(--surface-card); border: 1.5px solid var(--border-soft); }
.kc-card--brand   { background: var(--surface-brand); color: var(--text-on-brand); }
.kc-card--brand h1, .kc-card--brand h2, .kc-card--brand h3, .kc-card--brand h4 { color: var(--text-on-brand); }
.kc-card--hover { transition: box-shadow .2s ease-out, transform .2s ease-out; }
.kc-card--hover:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

/* ---- Badge ---- */
.kc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: .78125rem; letter-spacing: .02em;
  border-radius: var(--radius-pill); padding: 5px 13px; line-height: 1.3; white-space: nowrap;
}
.kc-badge--tint    { background: var(--surface-tint); color: var(--teal-700); }
.kc-badge--outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text-secondary); }
.kc-badge--brand   { background: var(--teal-500); color: var(--text-on-brand); }
.kc-badge--onbrand { background: rgba(255,255,255,.16); color: var(--white); }

/* ---- Section heading ---- */
.kc-sh { display: grid; gap: 12px; max-width: 640px; }
.kc-sh--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.kc-sh__eyebrow {
  font-family: var(--font-display); font-size: var(--size-eyebrow);
  font-weight: var(--weight-semibold); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--text-brand);
}
.kc-sh__title { font-size: var(--size-h2); }
.kc-sh__lead  { font-size: var(--size-body-lg); color: var(--text-secondary); line-height: var(--leading-body); }
.kc-sh--onbrand .kc-sh__eyebrow { color: rgba(255,255,255,.75); }
.kc-sh--onbrand .kc-sh__title   { color: var(--white); }
.kc-sh--onbrand .kc-sh__lead    { color: rgba(255,255,255,.85); }

/* ---- Feature ---- */
.kc-feature { display: grid; gap: 14px; align-content: start; }
.kc-feature__chip {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--surface-tint); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
}
.kc-feature__chip .icon { width: 24px; height: 24px; }
.kc-feature__title { font-size: 1.1875rem; font-weight: var(--weight-semibold); }
.kc-feature__body  { font-size: .96875rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- Step ---- */
.kc-step { display: grid; gap: 12px; align-content: start; }
.kc-step__n {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-500); color: var(--white);
  font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
}
.kc-step__title { font-size: 1.1875rem; font-weight: var(--weight-semibold); }
.kc-step__body  { font-size: .96875rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- Testimonial ---- */
.kc-quote {
  background: var(--surface-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 28px; display: grid; gap: 16px; align-content: start;
  box-sizing: border-box; margin: 0;
}
.kc-quote__mark {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: 2.6rem; line-height: .6; color: var(--teal-500); height: .85rem;
}
.kc-quote__text { font-size: 1.03125rem; line-height: 1.62; color: var(--text-body); margin: 0; }
.kc-quote__who  { display: grid; gap: 2px; }
.kc-quote__name { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: .9375rem; }
.kc-quote__role { font-size: .84375rem; color: var(--text-muted); }


/* ==========================================================================
   3. Header / navigation
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 40px;
  height: 76px; display: flex; align-items: center; gap: 36px;
}
.nav-logo { display: flex; }
.nav-logo img { height: 34px; width: auto; }

.nav-links { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: .9375rem;
  color: var(--text-body); text-decoration: none;
}
.nav-link:hover { color: var(--teal-700); }
.nav-link[aria-current="page"] { color: var(--teal-700); }

/* Services dropdown — opens on hover and on keyboard focus */
.nav-drop { position: relative; }
.nav-drop__trigger { display: flex; align-items: center; gap: 5px; }
.nav-drop__trigger .icon { width: 15px; height: 15px; color: var(--ink-400); }
.nav-drop__menu {
  position: absolute; top: 100%; right: 0; padding-top: 12px;
  visibility: hidden; opacity: 0; transition: opacity .12s ease-out;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu { visibility: visible; opacity: 1; }
.nav-drop__panel {
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
  padding: 8px; display: grid; gap: 2px; width: 260px;
}
.nav-drop__item {
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .875rem;
  color: var(--text-body);
}
.nav-drop__item:hover { background: var(--surface-soft); color: var(--text-body); }

/* Mobile menu button + panel — hidden until the mobile breakpoint */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: var(--text-body); padding: 0;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

.nav-mobile { display: none; border-top: 1px solid var(--border-soft); background: #fff; padding: 10px 24px 22px; }
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile__link {
  display: block; padding: 13px 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  color: var(--text-body); text-decoration: none;
}
.nav-mobile__group { padding: 13px 4px 6px; }
.nav-mobile__group-title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--text-body); }
.nav-mobile__sub { display: grid; gap: 2px; margin-top: 8px; padding-left: 2px; }
.nav-mobile__sub a { padding: 9px 0; font-size: .96875rem; color: var(--text-secondary); text-decoration: none; }
.nav-mobile__actions { display: grid; gap: 12px; margin-top: 16px; }


/* ==========================================================================
   4. Homepage
   ========================================================================== */

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { font-size: var(--size-display); letter-spacing: var(--tracking-display); line-height: var(--leading-display); }
.hero__lead  { font-size: 1.1875rem; color: var(--text-secondary); line-height: 1.6; max-width: 512px; }
.hero__actions { display: flex; gap: 18px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.hero__aside { font-size: .9375rem; color: var(--text-secondary); }

/* ---- "Sound familiar?" pain grid ---- */
.pains { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 48px; }
.pain-card { padding: 26px 28px; grid-column: span 2; }
.pain-card:nth-child(n+4) { grid-column: span 3; }
.pain-card p { font-size: 1rem; line-height: 1.62; color: var(--text-body); }
.pains-note {
  text-align: center; max-width: 640px; margin: 44px auto 0;
  font-size: var(--size-body-lg); color: var(--text-secondary);
}
.pains-note strong { color: var(--text-body); font-weight: 700; }

/* ---- Outcomes ---- */
.outcomes { margin-top: 56px; }
.outcomes-note {
  text-align: center; max-width: 660px; margin: 56px auto 0;
  font-size: 1.1875rem; font-family: var(--font-display); font-weight: 500; line-height: 1.5;
}
.outcomes-note em { font-style: normal; }
.outcomes-note .is-muted { color: var(--text-muted); }
.outcomes-note .is-brand { color: var(--text-brand); }

/* ---- Services overview cards ---- */
.svc-cards { margin-top: 44px; }
.svc-card {
  padding: 26px 28px; display: grid; gap: 10px; align-content: start;
  text-decoration: none; color: inherit;
}
.svc-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.svc-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.55; }
.svc-card__more {
  margin-top: 4px; font-size: .875rem;
  font-family: var(--font-display); font-weight: 600; color: var(--teal-600);
}

/* ---- The model / comparison ---- */
.model { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.model__copy { display: grid; gap: 20px; }
.model__copy p { color: var(--text-secondary); font-size: 1.0625rem; }
.model__cards { display: grid; gap: 16px; }
.compare-card { padding: 24px 28px; }
.compare-card--old { background: transparent; }
.compare-card__title { margin-bottom: 14px; }
.compare-card__title--brand { color: var(--teal-700); }
.compare-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.compare-head img { height: 18px; width: auto; flex: none; }
.compare-list { display: grid; gap: 10px; font-size: .96875rem; }
.compare-list--old { color: var(--text-muted); }
.compare-list--new { color: var(--text-body); }
.compare-list--new li { display: flex; gap: 10px; }
.compare-list--new .icon { width: 18px; height: 18px; color: var(--teal-600); margin-top: 2px; }

/* ---- Meet your accountant ---- */
.about { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; align-items: center; }
.about__img {
  width: 100%;
  /* height:auto is required — without it the img's height attribute wins and
     aspect-ratio is ignored, stretching the frame. */
  height: auto;
  aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 32%;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card); display: block;
}
.about__copy { display: grid; gap: 18px; justify-items: start; }
.about__copy p { color: var(--text-secondary); font-size: 1.0625rem; }
.about__name { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.about__name h2 { font-size: var(--size-h2); }
.about__creds { display: flex; gap: 8px; }

/* ---- How we start ---- */
.steps { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.steps-cta { text-align: center; margin-top: 52px; }

/* ---- Testimonials ---- */
.quotes { gap: 24px; margin-top: 52px; align-items: start; }
.quotes-note { text-align: center; margin-top: 44px; font-size: .9375rem; color: var(--text-muted); }


/* ==========================================================================
   5. Services page
   ========================================================================== */

.page-head__title { font-size: var(--size-h1); letter-spacing: var(--tracking-display); line-height: 1.12; }
.page-head__lead  { font-size: var(--size-body-lg); color: var(--text-secondary); }

.subnav {
  position: sticky; top: 76px; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.subnav__inner { max-width: var(--container); margin: 0 auto; padding: 0 40px; display: flex; gap: 8px; }
.subnav__link {
  display: flex; align-items: center; padding: 0 18px; height: 54px; text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--text-body);
}
.subnav__link.is-active {
  box-shadow: inset 0 -2px 0 var(--teal-500);
  font-weight: 600; color: var(--teal-700);
}
/* Service blocks sit below both the header and the sticky sub-nav */
.service { scroll-margin-top: 140px; }

.service__intro { display: grid; gap: 18px; justify-items: start; margin-bottom: 52px; }
.service__title { font-size: var(--size-h2); letter-spacing: var(--tracking-display); line-height: 1.18; }
.service__intro p { font-size: 1.0625rem; color: var(--text-secondary); }
.service__cols { align-items: start; }

.solves { display: grid; gap: 16px; align-content: start; }
.solves li { display: flex; gap: 13px; align-items: flex-start; }
.solves .icon { width: 19px; height: 19px; color: var(--ink-400); margin-top: 3px; }
.solves p { font-size: .984375rem; line-height: 1.6; }

.included { padding: 28px 32px; border-radius: var(--radius-xl); }
.included__label { color: var(--teal-700); margin-bottom: 18px; }
.included__list { display: grid; gap: 14px; }
.included__list li { display: flex; gap: 12px; align-items: flex-start; }
.included__list .icon { width: 19px; height: 19px; color: var(--teal-600); margin-top: 3px; }
.included__list span { font-size: .984375rem; line-height: 1.55; }
.included__list li.is-inherited { padding-bottom: 14px; border-bottom: 1px solid rgba(24,139,127,.18); }
.included__list li.is-inherited span { font-weight: 700; }

.service__outcome { margin-top: 48px; }
.service__outcome > div { display: grid; gap: 10px; align-content: start; }
.service__outcome p { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }


/* ==========================================================================
   6. Resources page
   ========================================================================== */

.res-card { padding: 28px 30px; display: grid; gap: 12px; align-content: start; justify-items: start; }
.res-card__head { display: flex; align-items: center; gap: 14px; }
.res-card__chip {
  width: 44px; height: 44px; border-radius: 14px; background: var(--surface-tint);
  display: flex; align-items: center; justify-content: center;
}
.res-card__chip .icon { width: 22px; height: 22px; color: var(--teal-700); }
.res-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.res-card p { font-size: .96875rem; color: var(--text-secondary); line-height: 1.6; }
.res-note { text-align: center; margin-top: 44px; font-size: .9375rem; color: var(--text-muted); }


/* ==========================================================================
   7. CTA band + footer
   ========================================================================== */

.cta-band { padding: var(--space-24) 40px; background: var(--surface-brand); }
.cta-band__inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  display: grid; gap: 20px; justify-items: center;
}
.cta-band h2 { font-size: var(--size-h2); color: #fff; }
.cta-band p  { color: rgba(255,255,255,.85); font-size: var(--size-body-lg); line-height: 1.6; }
.cta-actions { display: flex; gap: 18px; align-items: center; margin-top: 6px; }
.cta-actions span { font-size: .9375rem; color: rgba(255,255,255,.85); }
.cta-actions a[href^="mailto"] { color: #fff; text-decoration-color: rgba(255,255,255,.5); }

.site-footer { padding: 56px 40px 40px; background: var(--surface-page); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 14px; }
.footer-brand img { height: 32px; width: auto; justify-self: start; }
.footer-brand p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: grid; gap: 10px; font-size: .9375rem; align-content: start; }
.footer-col__title {
  font-family: var(--font-display); font-weight: 600; font-size: .8125rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.footer-col a { display: flex; gap: 8px; align-items: center; }
.footer-col .icon { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft); margin-top: 44px; padding-top: 20px;
  font-size: .8125rem; color: var(--text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Lists used for layout carry no bullets */
.compare-list, .solves, .included__list, .footer-col ul { list-style: none; margin: 0; padding: 0; }


/* ==========================================================================
   8. Hero visual — the animated dashboard illustration
   ========================================================================== */

@keyframes kv-rise    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kv-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes kv-draw    { from { stroke-dashoffset: 236; } to { stroke-dashoffset: 0; } }
@keyframes kv-bar     { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes kv-grow-w  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kv-ping    { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes kv-breathe { 0%, 100% { opacity: .055; } 50% { opacity: .092; } }

.hv { position: relative; width: 100%; max-width: 556px; height: 494px; justify-self: end; }
.hv__bg {
  position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: var(--teal-50); overflow: hidden; animation: kv-fade .8s ease-out both;
}
.hv__watermark {
  position: absolute; right: -38px; bottom: -46px; width: 326px; height: 326px;
  color: var(--teal-500); opacity: .07; animation: kv-breathe 8s ease-in-out 1s infinite;
}
.hv__grid {
  position: relative; z-index: 1; height: 100%; box-sizing: border-box; padding: 22px;
  display: grid; grid-template-columns: 1.42fr 1fr; grid-template-rows: 1.18fr 1fr 1.02fr; gap: 14px;
}
.hv__card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.hv__card--chart   { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; padding: 18px 20px; animation: kv-rise .6s cubic-bezier(.2,.7,.2,1) .05s both; }
.hv__card--books   { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 15px 17px; animation: kv-rise .6s cubic-bezier(.2,.7,.2,1) .12s both; }
.hv__card--time    { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px; animation: kv-rise .6s cubic-bezier(.2,.7,.2,1) .19s both; }
.hv__card--report  { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 18px; animation: kv-rise .6s cubic-bezier(.2,.7,.2,1) .26s both; }
.hv__card--filings { grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 12px; padding: 14px 16px; animation: kv-rise .6s cubic-bezier(.2,.7,.2,1) .33s both; }

.hv__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hv__kicker {
  font-family: var(--font-display); font-weight: 600; font-size: .625rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted);
}
.hv__headline {
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -.01em; color: var(--text-body); margin-top: 3px;
}
.hv__pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-100); color: var(--text-brand);
  border-radius: var(--radius-pill); padding: 6px 11px; white-space: nowrap;
}
.hv__pill .icon { width: 15px; height: 15px; color: var(--teal-700); }
.hv__pill span { font-family: var(--font-display); font-weight: 600; font-size: .75rem; }

.hv__chart { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-top: 12px; }
.hv__chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.hv__months {
  display: flex; justify-content: space-between; margin-top: 9px; padding: 0 2px;
  font-size: .625rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em;
}
.hv__months .is-future { color: var(--teal-600); }
.hv__line     { stroke-dasharray: 236; animation: kv-draw 1.1s ease-out .25s both; }
.hv__forecast { animation: kv-fade .7s ease-out .9s both; }
.hv__ping     { transform-box: fill-box; transform-origin: center; animation: kv-ping 1.8s ease-out 1.15s 2 both; }
.hv__dot      { animation: kv-fade .5s ease-out 1.1s both; }

.hv__chip-sq  { width: 36px; height: 36px; border-radius: 11px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; }
.hv__chip-sq .icon { width: 19px; height: 19px; color: var(--teal-700); }
.hv__chip-rd  { width: 40px; height: 40px; flex: none; border-radius: 999px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; }
.hv__chip-rd .icon { width: 21px; height: 21px; color: var(--teal-700); }
.hv__chip-sm  { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; }
.hv__chip-sm .icon { width: 18px; height: 18px; color: var(--teal-700); }
.hv__chip-xl  { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; }
.hv__chip-xl .icon { width: 21px; height: 21px; color: var(--teal-700); }

.hv__title { font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--text-body); letter-spacing: -.01em; }
.hv__title--sp { margin-top: 11px; }
.hv__sub   { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.hv__sub--tight { margin-top: 1px; }

.hv__meter-head { display: flex; justify-content: space-between; font-size: .625rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.hv__meter-head .is-ok { color: var(--teal-600); }
.hv__meter { height: 6px; border-radius: 999px; background: var(--teal-100); overflow: hidden; }
.hv__meter i { display: block; height: 100%; width: 100%; border-radius: 999px; background: #188B7F; transform-origin: left; animation: kv-grow-w 1s cubic-bezier(.2,.7,.2,1) .5s both; }

.hv__row { display: flex; align-items: center; gap: 11px; }
.hv__row-title { font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--text-body); letter-spacing: -.01em; white-space: nowrap; }
.hv__row-sub   { font-size: .72rem; color: var(--text-muted); margin-top: 1px; }

.hv__bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 12px; }
.hv__bars i {
  flex: 1; background: #188B7F; opacity: .24; border-radius: 2px 2px 0 0;
  transform-origin: bottom; animation: kv-bar .5s cubic-bezier(.2,.7,.2,1) both;
}
.hv__bars i:last-child { opacity: 1; }

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


/* ==========================================================================
   9. Responsive
   Desktop (>= 861px) is intentionally UNCHANGED from the design.
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --size-display: 2.5rem;
    --size-h1: 2.125rem;
    --size-h2: 1.75rem;
    --space-24: 3.75rem;
    --space-20: 3.25rem;
    --space-16: 2.75rem;
    --space-32: 5rem;
  }

  .section, .cta-band, .site-footer { padding-left: 24px; padding-right: 24px; }
  .nav-inner { padding-left: 24px; padding-right: 24px; }

  /* Swap desktop nav for the mobile menu button */
  .nav-links  { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero    { grid-template-columns: 1fr; gap: 40px; }
  .model,
  .about,
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr 1fr; gap: 24px; }

  .pains { grid-template-columns: 1fr; }
  .pain-card, .pain-card:nth-child(n+4) { grid-column: auto; }

  .hv { justify-self: stretch; height: auto; aspect-ratio: 556 / 494; max-width: 520px; margin: 0 auto; }
  .about__img { max-width: 360px; margin: 0 auto; }

  .footer-cols { gap: 40px; flex-wrap: wrap; }

  .subnav__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-left: 16px; padding-right: 16px; }
  .subnav__link { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  :root { --size-display: 2.1rem; --size-h1: 1.9rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-inner { padding-left: 20px; padding-right: 20px; }
  .cta-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
}
