/* ==========================================================================
   Sirrus — site styles
   Brand: black #0B0B0C / white / mid grey #6B7280 / line grey #E5E7EB
   Type:  Inter (display optical size for headings), JetBrains Mono for data
   ========================================================================== */

:root {
  --black: #0B0B0C;
  --white: #FFFFFF;
  --grey: #6B7280;
  --line: #E5E7EB;
  --paper: #F5F5F7;          /* soft section background */
  --ink-2: #3A3A3F;          /* secondary text on white */
  --on-dark-2: #A1A1AA;      /* secondary text on black */
  --on-dark-line: #26262A;

  --font: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* critically-damped feel */
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);    /* mirror of the above */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--black); color: var(--white); }

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

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--black); color: var(--white);
  padding: .5rem .875rem; border-radius: 999px; z-index: 100;
  text-decoration: none; font-size: .875rem;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark :focus-visible { outline-color: var(--white); }

/* ---------- Type scale ---------------------------------------------------- */

.label {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--grey);
  margin: 0 0 .75rem;
}

.display {
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38rem;
  margin: 1.5rem 0 0;
  text-wrap: pretty;
}

.muted { color: var(--grey); }
.mono { font-family: var(--mono); }

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

.btn {
  --bg: var(--black); --fg: var(--white);
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.875rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: #26262A; }
/* Feedback on press, not release */
.btn:active { transform: scale(.97); transition-duration: 80ms; }

.btn--ghost { --bg: transparent; --fg: var(--black); border-color: var(--line); }
.btn--ghost:hover { --bg: var(--paper); }

.btn--light { --bg: var(--white); --fg: var(--black); }
.btn--light:hover { --bg: #E8E8EB; }

.btn--sm { min-height: 2.25rem; padding: 0 1rem; font-size: .875rem; }

.arrow { transition: transform 200ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav (translucent material, content scrolls beneath) ----------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* Scroll-edge effect instead of a permanent hard divider */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--line);
  opacity: 0; transition: opacity 240ms var(--ease-out);
}
.nav.is-scrolled::after { opacity: 1; }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; gap: 1.5rem;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 1.75rem; width: auto; }
.nav__links {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
  font-size: .875rem;
}
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color 160ms; }
.nav__links a:hover { color: var(--black); }
.nav__links a[aria-current="page"] { color: var(--black); }

@media (max-width: 760px) { .nav__links { display: none; } }

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

.section { padding-block: clamp(5rem, 12vw, 9.5rem); }
.section--paper { background: var(--paper); }
.dark { background: var(--black); color: var(--white); }
.dark .lede, .dark .muted { color: var(--on-dark-2); }
.dark .label { color: var(--on-dark-2); }

.section__head { max-width: 48rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lede { margin-inline: auto; }

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

.hero { padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;               /* supporting copy sits on the headline's baseline */
}
.hero .display { font-size: clamp(2.5rem, 5.4vw, 5.25rem); letter-spacing: -0.035em; line-height: 1; }
.hero .display .muted { color: #A1A1AA; }
.hero__aside { padding-bottom: .5rem; }
.hero__aside .lede { margin-top: 0; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); }
.hero__mark { width: 4.5rem; margin: 0 0 1.75rem; overflow: visible; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__mark { display: none; }
  .hero__aside { padding-bottom: 0; }
}

/* Logo timeline: the months fill in one by one, the star (due now) arrives with a little more weight */
.hm-cell, .hm-star { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hm-cell { transform: scale(.55); animation: hm-in .55s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + .2s); }
.hm-star { transform: scale(.3) rotate(-45deg); animation: hm-star .9s cubic-bezier(.34, 1.4, .64, 1) forwards; animation-delay: calc(var(--i) * 70ms + .3s); }
@keyframes hm-in { to { opacity: 1; transform: none; } }
@keyframes hm-star { to { opacity: 1; transform: none; } }

/* ---------- Product window (hero visual) --------------------------------- */

.window {
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(11,11,12,.04), 0 24px 60px -12px rgba(11,11,12,.14);
  text-align: left;
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
}
.window__title { font-weight: 500; }
.window__meta { color: var(--grey); }

.summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.summary > div { padding: 1.125rem 1.25rem; }
.summary > div + div { border-left: 1px solid var(--line); }
.summary .num { font-family: var(--mono); font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 400; line-height: 1; }
.summary .cap { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .75rem; color: var(--ink-2); font-weight: 500; }
.summary .help { margin-top: .375rem; font-size: .75rem; color: var(--grey); }

.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th {
  text-align: left; font-weight: 500; font-size: .6875rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--grey); padding: .875rem 1.25rem .625rem;
}
.table td { padding: .875rem 1.25rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table td.mono { font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.table .addr { font-weight: 500; }
.table .sub { display: block; font-size: .75rem; color: var(--grey); font-weight: 400; }

@media (max-width: 640px) {
  .table .hide-sm { display: none; }
  .summary .cap { font-size: .6875rem; }
  .summary > div { padding: 1rem .875rem; }
  .table td, .table th { padding-inline: .875rem; }
}

/* Status: shape + word, never colour alone */
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.dot { width: .625rem; height: .625rem; border-radius: 50%; flex: none; }
.dot--ok      { background: var(--black); }
.dot--due     { border: 1.5px solid var(--black); background: linear-gradient(90deg, var(--black) 50%, transparent 50%); }
.dot--missing { border: 1.5px solid var(--black); background: transparent; }
.dark .dot--ok { background: var(--white); }
.dark .dot--due { border-color: var(--white); background: linear-gradient(90deg, var(--white) 50%, transparent 50%); }
.dark .dot--missing { border-color: var(--white); }

/* ---------- Statement ---------------------------------------------------- */

.statement {
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 56rem;
  margin: 0;
  text-wrap: balance;
}
.statement .muted { color: #9CA0A8; }

.intervals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.intervals > div { padding: 1.75rem 1.5rem 0 0; }
.intervals .num { font-family: var(--mono); font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.intervals .unit { font-size: 1rem; color: var(--grey); margin-left: .25rem; letter-spacing: -0.01em; font-family: var(--font); }
.intervals p { margin: .75rem 0 0; font-size: .9375rem; color: var(--ink-2); max-width: 16rem; }

@media (max-width: 640px) {
  .intervals { grid-template-columns: 1fr; }
  .intervals > div { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Pillars ------------------------------------------------------ */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.25rem;
  display: flex; flex-direction: column;
  min-height: 0;
}
.pillar__num { font-size: .75rem; font-weight: 500; letter-spacing: .25em; color: var(--grey); }
.pillar .h3 { margin-top: 2.5rem; }
.pillar p { margin: .875rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.pillar ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; font-size: .875rem; }
.pillar li { display: flex; gap: .625rem; align-items: baseline; }
.pillar li::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--black); flex: none; transform: translateY(-.15em); }
.tag {
  position: absolute; top: 1.75rem; right: 1.5rem;
  font-size: .625rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .6rem; color: var(--grey);
}
.tag--live { background: var(--black); border-color: var(--black); color: var(--white); }

.pillar__icon { width: 2.75rem; height: 2.75rem; }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .pillar .h3 { margin-top: 2rem; }
}

/* ---------- How it works (sticky stage) ---------------------------------- */

.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  padding: 2rem 0 2rem 1.5rem;
  border-left: 2px solid var(--line);
  min-height: 40vh;
  display: flex; flex-direction: column; justify-content: center;
  transition: border-color 300ms var(--ease-out);
}
.step__num { font-size: .75rem; font-weight: 500; letter-spacing: .25em; color: var(--grey); margin-bottom: .75rem; transition: color 300ms; }
.step .h3 { color: #9CA0A8; transition: color 300ms var(--ease-out); }
.step p { margin: .75rem 0 0; color: #9CA0A8; max-width: 26rem; transition: color 300ms var(--ease-out); }
.step.is-active { border-left-color: var(--black); }
.step.is-active .h3 { color: var(--black); }
.step.is-active p { color: var(--ink-2); }
.step.is-active .step__num { color: var(--black); }

.stage { position: sticky; top: calc(50vh - 15rem); height: 30rem; }
.panel {
  position: absolute; inset: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(12px) scale(.985);
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
  pointer-events: none;
}
.panel.is-active { opacity: 1; transform: none; }
.panel .step-inline { display: none; }

/* Mini UI used inside panels */
.card {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(11,11,12,.05), 0 8px 24px -8px rgba(11,11,12,.10);
  padding: 1rem 1.125rem; font-size: .875rem;
}
.card + .card { margin-top: .625rem; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card__row + .card__row { margin-top: .625rem; padding-top: .625rem; border-top: 1px solid var(--line); }
.card .k { color: var(--grey); font-size: .75rem; }
.card .v { font-family: var(--mono); font-size: .8125rem; }
.card__title { font-weight: 500; }
.card__eyebrow { font-size: .625rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--grey); margin-bottom: .5rem; }
.file { display: flex; align-items: center; gap: .75rem; }
.file__icon { width: 2rem; height: 2.5rem; border: 1.5px solid var(--black); border-radius: 4px; position: relative; flex: none; }
.file__icon::after { content: "PDF"; position: absolute; bottom: .25rem; left: 0; right: 0; text-align: center; font-size: .5rem; font-weight: 500; letter-spacing: .05em; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: .75rem; }
.bar span { display: block; height: 100%; width: 72%; background: var(--black); border-radius: 4px; }
.mail { font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.mail strong { color: var(--black); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: .375rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .625rem; font-size: .75rem; background: var(--white); }

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step { min-height: 0; padding: 1.75rem 0 1.75rem 1.25rem; border-left-color: var(--black); }
  .step .h3 { color: var(--black); }
  .step p { color: var(--ink-2); }
  .step .step__num { color: var(--black); }
  .step-visual { display: block; margin-top: 1.5rem; background: var(--paper); border-radius: var(--radius); padding: 1.25rem; }
}
@media (min-width: 901px) { .step-visual { display: none; } }

/* ---------- Rulebook (dark) ---------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split > div {
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, #131315, #0E0E10);
}
.split .h3 { margin-top: 2.5rem; }
.split p { color: var(--on-dark-2); margin: .875rem 0 0; font-size: .9375rem; }
.split ul { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--on-dark-line); }
.split li { display: flex; justify-content: space-between; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--on-dark-line); font-size: .9375rem; }
.split li .mono { color: var(--on-dark-2); font-size: .8125rem; text-align: right; }
.split .label { margin: 0; }

.rule-line {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.3;
  max-width: 44rem; color: var(--white);
}

@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Feature grid ------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 2.25rem 2rem 2.5rem 0; }
.feature:not(:nth-child(3n + 1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.feature:nth-child(n + 4) { border-top: 1px solid var(--line); }
.feature svg { width: 1.75rem; height: 1.75rem; margin-bottom: 1.5rem; }
.feature p { margin: .625rem 0 0; color: var(--ink-2); font-size: .9375rem; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 2rem 1.5rem 2rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .feature:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .features { border-top: 0; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 1.75rem 0; border-left: 0; }
}

/* ---------- Health check CTA -------------------------------------------- */

.offer {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--black); color: var(--white);
  border-radius: calc(var(--radius) + .5rem);
  padding: clamp(2rem, 6vw, 4.5rem);
}
.offer .lede { color: var(--on-dark-2); }
.offer .label { color: var(--on-dark-2); }
.offer ol { list-style: none; padding: 0; margin: 0; counter-reset: o; }
.offer li {
  counter-increment: o; display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem;
  padding: 1.125rem 0; border-bottom: 1px solid var(--on-dark-line); font-size: .9375rem; color: #E4E4E7;
}
.offer li:first-child { border-top: 1px solid var(--on-dark-line); }
.offer li::before { content: "0" counter(o); font-family: var(--mono); font-size: .8125rem; color: var(--on-dark-2); padding-top: .15em; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------------------------------------------------------- */

.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-layout__head { position: sticky; top: 6rem; }
.faq-layout__head .lede { font-size: 1.0625rem; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout__head { position: static; }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; width: 1rem; height: 1rem; flex: none; }
.faq .plus::before, .faq .plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor;
  transition: transform 320ms var(--ease-out);
}
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { margin: 0 0 1.5rem; color: var(--ink-2); max-width: 40rem; }

/* ---------- Closing CTA + footer ---------------------------------------- */

.closing__inner {
  display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
.closing__aside .lede { margin-top: 0; }
.closing__aside .hero__actions { margin-top: 1.75rem; }
@media (max-width: 900px) { .closing__inner { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: .8125rem; color: var(--grey); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer img { height: 1.75rem; width: auto; }
.footer ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--black); }

/* ---------- Demo page --------------------------------------------------- */

.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.demo__aside { position: sticky; top: 6rem; }
.demo__aside .display { font-size: clamp(2.5rem, 5.5vw, 4rem); }
.expect { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.expect li { display: grid; grid-template-columns: 3.25rem 1fr; padding: 1.125rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.expect .n { font-size: .75rem; font-weight: 500; letter-spacing: .25em; color: var(--grey); padding-top: .25em; }
.expect strong { display: block; font-weight: 500; margin-bottom: .125rem; }
.expect span.d { color: var(--ink-2); }

.cal-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(11,11,12,.04), 0 24px 60px -16px rgba(11,11,12,.12);
}
#cal-inline { width: 100%; min-height: 42rem; }
.cal-loading { display: grid; place-items: center; min-height: 42rem; color: var(--grey); font-size: .875rem; }
.cal-fallback[hidden] { display: none; }
#cal-inline:has(iframe) .cal-loading { display: none; }
.cal-shell:has(.cal-fallback:not([hidden])) { min-height: 0; }
.cal-fallback { padding: 3rem 2rem; text-align: center; }
.cal-fallback p { color: var(--ink-2); max-width: 26rem; margin: .75rem auto 1.75rem; }

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .demo__aside { position: static; }
}

/* ---------- Scroll reveal ---------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Accessibility preferences --------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .panel { transform: none; transition: opacity 250ms ease; }
  .hm-cell, .hm-star { animation: none; opacity: 1; transform: none; }
  .btn, .arrow, .faq .plus::before, .faq .plus::after { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --grey: #4B5563; --ink-2: #1F1F23; --line: #9CA3AF; }
  .nav { background: var(--white); backdrop-filter: none; }
  .nav::after { opacity: 1; }
}

/* ---------- Imagery -------------------------------------------------------
   Photos are material, not content: desaturated, low-contrast, and faded into
   the surface they sit on, so they add place and depth without competing with
   the type. Text always sits on the solid side of the fade.               */

/* Dark: photo under a black scrim (Why Sirrus) */
.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.section-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  filter: grayscale(1) contrast(1.1);
  opacity: .22;
  z-index: -1;
}
.has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--black) 20%, rgba(11,11,12,.55) 70%, rgba(11,11,12,.25));
}

/* Light: photo fades into white from the right and the bottom */
.has-texture { position: relative; overflow: hidden; isolation: isolate; }
.texture {
  position: absolute; top: 0; right: 0; z-index: -1;
  width: min(62%, 60rem);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.texture img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(.9) brightness(1.08);
  opacity: .16;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}
.texture--close { top: auto; bottom: 0; height: 100%; }
.texture--close img {
  object-position: center 55%;
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
          mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
}

@media (max-width: 900px) {
  .texture { width: 100%; }
  .texture img { opacity: .1; }
}

@media (prefers-contrast: more) {
  .section-bg, .texture { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .texture img { opacity: .08; }
}

/* ---------- Services (two tiers, no prices) --------------------------- */

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.tier {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.tier--managed { background: var(--black); color: var(--white); }
.tier__eyebrow { margin: 0; font-size: .9375rem; font-weight: 500; color: var(--grey); }
.tier--managed .tier__eyebrow { color: var(--on-dark-2); }
.tier__name {
  margin: .25rem 0 0;
  font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
}
.tier__lede { margin: .875rem 0 0; color: var(--ink-2); font-size: 1.0625rem; max-width: 26rem; }
.tier--managed .tier__lede { color: var(--on-dark-2); }
.tier__plus { margin: 1.75rem 0 0; font-weight: 500; font-size: .9375rem; }
.tier__list {
  list-style: none; margin: 1.75rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: .875rem;
}
.tier__plus + .tier__list { margin-top: .875rem; }
.tier--managed .tier__list { border-top-color: var(--on-dark-line); }
.tier__list li { position: relative; padding-left: 1.75rem; font-size: .9688rem; line-height: 1.45; }
.tier__list li::before {
  /* tick drawn with borders: one shape, works in any colour */
  content: ""; position: absolute; left: .3rem; top: .28em;
  width: .375rem; height: .7rem;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tier__fit { margin: 2rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.tier__fit span { display: block; font-weight: 500; color: var(--black); margin-bottom: .125rem; }
.tier--managed .tier__fit { color: var(--on-dark-2); }
.tier--managed .tier__fit span { color: var(--white); }
.tier__cta { margin-top: auto; align-self: flex-start; }
.tier__fit { margin-bottom: 2rem; }
.tier--managed .btn--light:hover { --bg: #E8E8EB; }

@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Phone layout (≤ 640px). Everything below applies to phones only;
   desktop and tablet styles above are untouched.
   Rules: 44px+ tap targets, 16px+ body text, one column, short scroll.
   ========================================================================== */
@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }

  body { font-size: 1rem; }
  .section { padding-block: 4rem; }
  .section__head { margin-bottom: 2rem; }
  .label { margin-bottom: .5rem; }
  .h2 { font-size: 2rem; }
  .lede { font-size: 1.0625rem; margin-top: 1rem; }

  /* Nav: logo + one clear action, full-size tap target */
  .nav__inner { height: 3.5rem; }
  .nav__logo { min-height: 44px; }
  .nav .btn--sm { min-height: 44px; padding: 0 1.125rem; }

  /* Hero: one column, stacked full-width actions */
  .hero { padding-top: 2.5rem; padding-bottom: 3rem; }
  .hero .display { font-size: 2.625rem; }
  .hero__grid { gap: 1.25rem; }
  .hero__actions { flex-direction: column; gap: .625rem; margin-top: 1.75rem; }
  .hero__actions .btn { width: 100%; justify-content: center; min-height: 3.25rem; font-size: 1.0625rem; }

  /* Dashboard: rows become two-line items, no table columns */
  .window { margin-top: 2.5rem; border-radius: 1rem; }
  .window__bar { padding: .75rem 1rem; }
  .window__meta { font-size: .75rem; }
  .summary > div { padding: .875rem 1rem; }
  .summary .num { font-size: 1.375rem; }
  .summary .cap { font-size: .75rem; white-space: nowrap; }
  .table thead { display: none; }
  .table, .table tbody { display: block; }
  .table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "addr status" "date status";
    align-items: center;
    column-gap: 1rem;
    padding: .875rem 1rem;
    border-top: 1px solid var(--line);
  }
  .table td { padding: 0; border: 0; }
  .table td:first-child { grid-area: addr; }
  .table td.mono { grid-area: date; font-size: .75rem; color: var(--grey); padding-top: .25rem; }
  .table td:last-child { grid-area: status; }
  .table .sub { display: inline; }
  .table .sub::before { content: " · "; }

  /* What it does: compact rows, icon beside the text */
  .pillars { gap: .625rem; }
  .pillar {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    column-gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
  }
  .pillar__icon { width: 2.25rem; height: 2.25rem; grid-row: span 2; }
  .pillar .h3 { margin-top: 0; font-size: 1.125rem; }
  .pillar p { margin-top: .375rem; font-size: .9375rem; }

  /* How it works: text-only numbered steps, previews hidden */
  .step { padding: 1.25rem 0 1.25rem 1.25rem; }
  .step + .step { margin-top: 0; }
  .step-visual { display: none !important; }
  .step__num { margin-bottom: .5rem; }
  .step .h3 { font-size: 1.1875rem; }
  .step p { margin-top: .375rem; }

  /* Why Sirrus: tighter band */
  #why .h2 { font-size: 1.875rem; }

  /* Closing: full-width action */
  .closing .display { font-size: 2.5rem; }
  .closing__inner { gap: 1.25rem; }

  /* Footer: stacked, every link a proper tap target */
  .footer { padding-block: 2rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer ul { gap: 0 1.25rem; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .footer > .wrap > a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Demo page: get to the calendar fast */
  .demo { gap: 1.5rem; }
  .demo__aside .display { font-size: 2.25rem; }
  .demo__aside .expect { display: none; }
  .cal-shell { border-radius: 1rem; margin-inline: calc(var(--gutter) * -0.5); }

  /* Services: stacked cards, full-width actions */
  .tier { padding: 1.5rem 1.25rem; border-radius: 1rem; }
  .tier__cta { align-self: stretch; justify-content: center; min-height: 3rem; }
  .tier__fit { margin: 1.5rem 0 1.5rem; }

  /* Shorter, lighter reveals on small screens */
  .reveal { transform: translateY(12px); transition-duration: 500ms, 600ms; }

  /* One primary action; the secondary becomes a quiet text link */
  .hero__actions .btn--ghost { border-color: transparent; background: transparent; min-height: 44px; font-size: 1rem; color: var(--ink-2); }
  .hero__actions .btn--ghost:hover { background: transparent; color: var(--black); }

  /* Sequence numbers: tighter spacing so "01" reads as one number */
  .step__num, .pillar__num { letter-spacing: .08em; }

  /* Missing certificate: show the status, not an empty dash */
  .table td.is-empty { display: none; }

  /* Footer links in an even two-column grid */
  .footer ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; width: 100%; }
}

/* Small phones (iPhone SE and similar) */
@media (max-width: 374px) {
  .hero .display { font-size: 2.25rem; }
  .summary .cap { white-space: normal; }
  .summary > div { padding: .75rem; }
  .window__meta { display: none; }
  .table .sub { display: block; }
  .table .sub::before { content: none; }
  .summary .cap .dot { display: none; }
  .summary .cap, .summary .help { font-size: .6875rem; }
}

/* ==========================================================================
   Desktop & tablet (> 640px): coloured bands become inset rounded panels
   instead of running edge to edge, so they sit inside the page column.
   ========================================================================== */
@media (min-width: 641px) {
  .section--paper,
  .section.dark {
    --inset: clamp(1rem, 2.5vw, 2rem);
    width: calc(100% - var(--inset) * 2);
    max-width: calc(var(--max) + 4rem);
    margin-inline: auto;
    border-radius: 1.75rem;
  }
  /* breathing room so neighbouring panels don't touch the white sections */
  .section.dark { margin-block: clamp(1rem, 3vw, 2rem); }
}
