/* ==========================================================================
   Диана Консулт
   Design idea: the columnar ledger pad. Pale green paper, green column rules,
   bottle-green ink, red ink used sparingly, and the accountant's double rule
   under a balanced total as the brand mark.
   ========================================================================== */

:root {
  /* Colour */
  --paper: #F6F8F2;      /* page: cool, faintly green white */
  --pad: #E5EEDC;        /* ledger pad green */
  --pad-2: #D9E6CE;      /* deeper pad, sheet underneath */
  --rule: #A7C59F;       /* column rules */
  --rule-soft: #CADDC3;  /* row rules */
  --ink: #12352A;        /* bottle-green ink: text and primary actions */
  --ink-2: #44625A;      /* secondary text */
  --red: #BE3A2D;        /* accountant's red ink: margin, ticks, focus */
  --deep: #0E2B22;       /* dark band */
  --on-deep: #DCE8D3;    /* text on dark band */
  --on-deep-2: #9FBDAF;  /* secondary text on dark band */
  --tape: #FDFDF9;       /* adding-machine tape */
  --tape-ink: #26302C;

  /* Type */
  --font: "Roboto Flex", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius: 6px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.85rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; }
h3 { font-size: 1.3125rem; font-stretch: 108%; letter-spacing: -0.012em; line-height: 1.25; }

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ink); color: var(--paper); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.section-head { max-width: 44rem; }
.section-head h2 + p {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 38em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--deep); border-color: var(--deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--pad); }
.btn-sm { min-height: 44px; padding: 0.6rem 1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Brand mark: wordmark over a red double rule ---------- */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand-word {
  font-size: 1.45rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 0.85;
  padding-right: 0.05em;
}
.brand-rule {
  display: block;
  height: 6px;
  margin-top: 5px;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--ink);
  color: var(--on-deep);
  font-size: 0.875rem;
  line-height: 1.4;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: 0.5rem;
}
.topbar-note { margin: 0; }
.topbar-note strong { color: #fff; font-weight: 600; }
.topbar a { color: #fff; }
.topbar-phone { white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.topbar-phone:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .topbar-phone,
  .topbar-note a { display: none; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 242, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule-soft); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--red); }
.nav-cta { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: none;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
/* The menu icon is an equals sign: two bars. It turns into a cross when open. */
.nav-toggle-bars { position: relative; width: 18px; height: 10px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1079px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -28px rgba(14, 43, 34, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule-soft); }
  .site-nav a:not(.btn) { padding: 1rem 0; font-size: 1.125rem; }
  .nav-cta { display: block; border-bottom: 0 !important; padding-top: 1.25rem; }
  .nav-cta .btn { width: 100%; }
}

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

.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4.5rem, 9vw, 7.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 { max-width: none; }
.hero-lede {
  margin: 1.75rem 0 2.25rem;
  max-width: 34em;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

.commitments {
  display: grid;
  gap: 0.7rem;
  margin: 2.75rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
  font-size: 1rem;
}
.commitments li { display: flex; gap: 0.85rem; align-items: baseline; }
/* A small red double rule as the bullet, echoing the logo */
.commitments li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 6px;
  border-top: 1.5px solid var(--red);
  border-bottom: 1.5px solid var(--red);
  transform: translateY(-0.2em);
}

/* ---------- Ledger sheet ---------- */

.sheet-wrap { position: relative; }
.sheet-wrap::before {
  /* the sheet underneath */
  content: "";
  position: absolute;
  inset: 14px 6px -14px 6px;
  background: var(--pad-2);
  border-radius: 3px;
}

.sheet {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.25rem 1.25rem 2.5rem;
  background: var(--pad);
  border-radius: 3px;
  box-shadow:
    0 1px 0 var(--rule),
    0 34px 60px -34px rgba(14, 43, 34, 0.5);
}
/* the red margin line of a ledger pad */
.sheet::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 1.35rem;
  width: 4px;
  border-left: 1px solid var(--red);
  border-right: 1px solid var(--red);
  opacity: 0.75;
}

@media (min-width: 960px) {
  .sheet { transform: rotate(-1.4deg); padding: 2rem 1.75rem 1.5rem 3rem; }
  .sheet::before { left: 1.6rem; }
  .sheet-wrap::before { inset: 18px -8px -18px 10px; transform: rotate(1.6deg); }
}

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.2rem 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ink);
}
.sheet-title { font-weight: 650; font-stretch: 115%; font-size: 1.125rem; letter-spacing: -0.01em; }
.sheet-period { color: var(--ink-2); font-size: 0.9375rem; white-space: nowrap; }

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8125rem, 1.25vw, 0.9375rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.ledger th,
.ledger td {
  padding: 0.55rem 0.55rem;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger thead th {
  padding-top: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom-color: var(--rule);
}
.ledger tbody th { padding-left: 0; }
.acct {
  display: inline-block;
  min-width: 2.9em;
  margin-right: 0.35em;
  color: var(--ink-2);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 519px) {
  .acct { display: none; }
}
.ledger thead th:first-child { padding-left: 0; }
.ledger th:nth-child(n+2),
.ledger td {
  width: 27%;
  text-align: right;
  white-space: nowrap;
  border-left: 1px solid var(--rule);
}
.ledger tfoot th,
.ledger tfoot td {
  border-bottom: 0;
  padding-top: 0.8rem;
  padding-bottom: 1rem;
  font-weight: 700;
}
.ledger tfoot th { padding-left: 0; }
.ledger tfoot td { position: relative; }
/* single rule above a total, double rule beneath: accounting convention */
.ledger tfoot td::before,
.ledger tfoot td::after {
  content: "";
  position: absolute;
  left: 0.55rem; right: 0.55rem;
}
.ledger tfoot td::before { top: 0; border-top: 1px solid var(--ink); }
.ledger tfoot td::after {
  bottom: 0.35rem;
  height: 5px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ledger tfoot td:last-child::after { transition-delay: 0.12s; }

.sheet-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  color: var(--red);
  font-weight: 600;
  font-stretch: 110%;
  font-size: 0.9375rem;
}
.sheet-check svg { width: 30px; height: 22px; overflow: visible; }
.sheet-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease 0.35s;
}
.sheet-check span { transition: opacity 0.4s ease 0.6s; }

/* Page-load sequence (only when JS is running; without JS the sheet shows its final state) */
.js .sheet tbody tr,
.js .sheet tfoot tr {
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: calc(var(--i, 0) * 80ms + 150ms);
}
.js .sheet tfoot tr { --i: 8; }
.js .sheet:not(.is-live) tbody tr,
.js .sheet:not(.is-live) tfoot tr { opacity: 0; transform: translateY(6px); }
.js .sheet:not(.is-balanced) tfoot td::after { transform: scaleX(0); }
.js .sheet:not(.is-balanced) .sheet-check path { stroke-dashoffset: 60; }
.js .sheet:not(.is-balanced) .sheet-check span { opacity: 0; }

/* ---------- Services: two-column ledger of problems and answers ---------- */

.pairs { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--ink); }

.pairs-head { display: none; }

.pair {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.pair-problem {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.625rem);
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.pair-answer {
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
}
.pair-answer p { margin: 0.45rem 0 0.9rem; color: var(--ink-2); max-width: 36em; }

.inc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.inc li {
  padding: 0.25rem 0.6rem;
  background: var(--pad);
  border-radius: 3px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.more { margin-top: 0.75rem; }
.more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 0.9688rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.25em; }
.more-count { color: var(--ink-2); font-weight: 400; }
/* Plus when closed, equals when open, like the FAQ */
.more-icon { position: relative; flex: none; width: 14px; height: 14px; }
.more-icon::before,
.more-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 6px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.more-icon::after { transform: rotate(90deg); }
.more[open] .more-icon::before { top: 3px; }
.more[open] .more-icon::after { top: 9px; transform: none; }
.more[open] .more-icon::before,
.more[open] .more-icon::after { background: var(--red); }
.more-list {
  max-width: 40em;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
}
.more-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
  font-size: 0.9688rem;
  line-height: 1.5;
}
.more-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: calc(0.6rem + 0.75em - 3px);
  width: 10px;
  height: 5px;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}

@media (min-width: 860px) {
  .pairs-head {
    display: grid;
    grid-template-columns: 5fr 7fr;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .pairs-head span:last-child { padding-left: 2.75rem; }
  .pair { grid-template-columns: 5fr 7fr; gap: 0; padding: 2.25rem 0; }
  .pair-problem { padding-right: 2.75rem; }
  .pair-answer { padding-left: 2.75rem; border-left: 1px solid var(--rule); }
}

/* ---------- The Ten-Day Close ---------- */

.close { background: var(--pad); }

.phases {
  display: grid;
  gap: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.phase { padding: 1.75rem 0 2rem; }
.phase + .phase { border-top: 1px solid var(--rule); }

/* Deadline cells: the soonest deadline is inked and double-ruled */
.phase p { margin: 0; color: var(--ink-2); }
.phase .phase-days { margin: 0 0 0.6rem; font-size: 0.9375rem; font-weight: 500; }
.phase-cells { display: flex; margin-bottom: 1.25rem; }
.phase-cells span {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 56px;
  padding: 0 0.9rem;
  border-radius: 3px;
  background: rgba(18, 53, 42, 0.1);
  font-size: 1.375rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.phase.is-next .phase-cells span { background: var(--ink); color: var(--paper); }
.phase.is-next .phase-cells span::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 9px;
  height: 4px;
  border-top: 1.5px solid #E0614F;
  border-bottom: 1.5px solid #E0614F;
}
.phase h3 { margin-bottom: 0.6rem; }
.phase .phase-next { margin-top: 0.9rem; color: var(--ink); font-size: 0.9375rem; font-weight: 600; }
.phase .phase-next:empty { display: none; }
.phase.is-next .phase-next { color: var(--red); }

@media (min-width: 860px) {
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .phase { padding: 0 2rem 0.5rem; }
  .phase + .phase { border-top: 0; border-left: 1px solid var(--rule); }
  .phase:first-child { padding-left: 0; }
  .phase:last-child { padding-right: 0; }
  .phase-cells span { min-width: 84px; height: 72px; padding: 0 1.1rem; font-size: 1.75rem; }
  .phase.is-next .phase-cells span::after { left: 1.1rem; right: 1.1rem; bottom: 12px; }
}

/* ---------- Estimator ---------- */

.estimate-grid {
  display: grid;
  gap: 3rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 960px) {
  .estimate-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }
  .tape-col { position: sticky; top: calc(var(--header-h) + 24px); }
}

.estimator { margin: 0; }

.q {
  margin: 0;
  padding: 0 0 2.25rem;
  border: 0;
  min-width: 0;
}
.q + .q { padding-top: 2.25rem; border-top: 1px solid var(--rule-soft); }
.q-label {
  display: block;
  padding: 0;
  margin: 0 0 0.35rem;
  font-weight: 650;
  font-stretch: 108%;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
/* float takes the legend out of the fieldset border so it lays out like a heading */
legend.q-label { float: left; width: 100%; margin-bottom: 1rem; }
legend.q-label + * { clear: both; }
.q-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.q-value {
  font-weight: 650;
  font-stretch: 110%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.q-hint { margin: 0 0 1rem; font-size: 0.9375rem; color: var(--ink-2); max-width: 34em; }

.seg-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg { position: relative; display: block; }
.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg span {
  display: block;
  padding: 0.8rem 1.05rem;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9688rem;
  line-height: 1.25;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.seg:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2.5px solid var(--red); outline-offset: 2px; }

/* Range slider */
.range {
  --fill: 33.33%;
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range:focus-visible { outline-offset: 6px; }
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--rule-soft) var(--fill));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 0 2px 6px rgba(14, 43, 34, 0.25);
}
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rule-soft); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 0 2px 6px rgba(14, 43, 34, 0.25);
}
.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
}
.stepper button {
  width: 52px;
  height: 52px;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}
.stepper button:hover { background: var(--pad); }
.stepper input {
  width: 3.5ch;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Switches */
.q-switches legend.q-label { margin-bottom: 0.5rem; }
.switch {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}
.switch:last-of-type { border-bottom: 0; }
.switch input {
  position: absolute;
  top: 1.05rem; left: 0;
  width: 46px; height: 28px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch-ui {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: var(--rule-soft);
  transition: background-color 0.2s ease;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 43, 34, 0.3);
  transition: transform 0.2s ease;
}
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2.5px solid var(--red); outline-offset: 3px; }
.switch-text { flex: 1; min-width: 0; }
.switch-text strong { display: block; font-weight: 600; line-height: 1.35; }
.switch-text small { display: block; color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; margin-top: 0.1rem; }
.switch-price {
  flex: none;
  padding-top: 0.1rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The adding-machine tape */
.tape-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem clamp(1rem, 3vw, 2rem) 2rem;
  background: var(--pad);
  border-radius: 8px;
}
.tape-machine {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 392px;
  height: 22px;
  border-radius: 6px;
  background: var(--deep);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.tape-machine span {
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: #061a14;
}
.tape {
  --tooth: 14px;
  position: relative;
  width: calc(100% - 32px);
  max-width: 360px;
  margin-top: -8px;
  padding: 1.6rem 1.25rem 1.9rem;
  background: var(--tape);
  color: var(--tape-ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  filter: drop-shadow(0 1px 0 rgba(14, 43, 34, 0.08));
}
.tape-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(38, 48, 44, 0.35);
  color: rgba(38, 48, 44, 0.75);
}
.tape-line,
.tape-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.5ch;
  gap: 0.75rem;
  align-items: baseline;
}
.tape-line .tl-label { line-height: 1.5; padding-block: 0.17em; }
.tl-amt { text-align: right; }
.tl-sym { text-align: right; color: rgba(38, 48, 44, 0.6); }
.tape-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(38, 48, 44, 0.35);
  font-weight: 500;
}
.tape-total .tl-sym { color: var(--red); }
.tape-total .tl-amt { position: relative; padding-bottom: 0.4rem; }
.tape-total .tl-amt::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.is-fresh { animation: print-in 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes print-in {
  0% { opacity: 0; transform: translateY(-5px); background: rgba(190, 58, 45, 0.12); }
  60% { opacity: 1; transform: none; background: rgba(190, 58, 45, 0.08); }
  100% { opacity: 1; transform: none; background: transparent; }
}

.est-summary { width: 100%; max-width: 392px; margin-top: 1.75rem; text-align: center; }
.est-total {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 680;
  font-stretch: 118%;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.est-total small { font-size: 1rem; font-weight: 400; letter-spacing: 0; font-stretch: 100%; color: var(--ink-2); }
.est-headline {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 680;
  font-stretch: 116%;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.est-plan { margin: 0.6rem 0 1.25rem; color: var(--ink-2); }
.est-plan a { color: var(--ink); font-weight: 600; }
.tape-panel .btn-block { max-width: 392px; }
.est-note {
  max-width: 392px;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- Plans ---------- */

.plans { padding-top: 0; }

.plans-sheet {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem 0 2.25rem;
}
.plan + .plan { border-top: 1px solid var(--rule); }
.plan-featured { background: var(--pad); padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); }
.plan h3 { font-size: clamp(1.625rem, 2.4vw, 2rem); }
.plan-for { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.9688rem; }
.plan-price {
  margin: 1.25rem 0 0;
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 680;
  font-stretch: 118%;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price small {
  font-size: 0.9375rem;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--ink-2);
}
.plan ul {
  flex: 1;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
}
.plan li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.9688rem;
  line-height: 1.45;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

@media (min-width: 900px) {
  .plans-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan { padding: 2.25rem clamp(1.25rem, 2.5vw, 2.25rem) 2.5rem; }
  .plan:first-child { padding-left: 0; }
  .plan:last-child { padding-right: 0; }
  .plan + .plan { border-top: 0; border-left: 1px solid var(--rule); }
  .plan-featured { margin-inline: 0; padding-inline: clamp(1.25rem, 2.5vw, 2.25rem); }
}

/* ---------- About (dark band) ---------- */

.about { background: var(--deep); color: var(--on-deep); }
.about h2 { color: #F1F6EC; }
.about a { color: #fff; }

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem clamp(1rem, 3vw, 2.25rem);
  margin: clamp(2.5rem, 5vw, 3.75rem) 0;
  color: #F1F6EC;
  font-size: clamp(2.1rem, 6.2vw, 5.25rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.eq-side { display: inline-flex; flex-direction: column; gap: 0.75rem; }
.eq-num { position: relative; padding-bottom: 0.22em; }
.eq-num::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0.12em;
  min-height: 7px;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  filter: brightness(1.35);
}
.eq-label {
  font-size: 1rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--on-deep-2);
}
.eq-sign { color: var(--on-deep-2); font-weight: 400; }

.about-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 6rem); }
}
.about-story p {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 34em;
}
.promises h3 { color: #F1F6EC; margin-bottom: 1.25rem; }
.promises ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(220, 232, 211, 0.18); }
.promises li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(220, 232, 211, 0.18);
}
.promises li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 6px;
  border-top: 1.5px solid var(--on-deep-2);
  border-bottom: 1.5px solid var(--on-deep-2);
  transform: translateY(-0.2em);
}

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

.faq-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: inherit; font-stretch: inherit; letter-spacing: inherit; line-height: inherit; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.25em; }

/* Plus when closed, equals when open: the question resolves */
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  top: 8px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::before { top: 5px; }
.faq-item.is-open .faq-icon::after { top: 11px; transform: rotate(0deg); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--red); }

.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 1.5rem; max-width: 40em; color: var(--ink-2); }
.js .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.js .faq-a > div { min-height: 0; visibility: hidden; transition: visibility 0s linear 0.3s; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.js .faq-item.is-open .faq-a > div { visibility: visible; transition: visibility 0s; }

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

.contact { background: var(--pad); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
}
.contact-intro h2 { max-width: 15ch; }
.contact-intro > p {
  margin-top: 1.25rem;
  max-width: 30em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}
.methods { margin: 2.25rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.methods li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.method-label { color: var(--ink-2); font-size: 0.9375rem; padding-top: 0.1rem; }
.methods a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.methods a:hover { text-decoration: underline; }
.methods small { display: block; color: var(--ink-2); font-size: 0.875rem; }
.methods .map-link { display: inline-block; margin-top: 0.4rem; font-size: 0.9375rem; text-decoration: underline; }

.form-panel {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px rgba(14, 43, 34, 0.45);
}
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2312352A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field ::placeholder { color: #7f978e; }
.field.has-error input,
.field.has-error textarea { border-color: var(--red); }
.field-error { margin: 0; color: var(--red); font-size: 0.875rem; font-weight: 500; }
.field-error:empty { display: none; }

.form-note { margin: 0.9rem 0 0; font-size: 0.875rem; color: var(--ink-2); text-align: center; }
.contact-form .btn[disabled] { opacity: 0.65; cursor: progress; }
.form-status { margin: 0.75rem 0 0; color: var(--red); font-size: 0.9375rem; text-align: center; }

.form-success { text-align: center; padding: 2rem 0.5rem; }
.form-success:focus { outline: none; }
.form-success svg { width: 56px; height: 40px; margin: 0 auto 1.25rem; overflow: visible; }
.form-success path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  animation: draw-tick 0.55s ease 0.15s both;
}
@keyframes draw-tick { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 1.625rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-2); margin-bottom: 1.75rem; }

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

.site-footer { padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p { margin: 1.1rem 0 0; color: var(--ink-2); font-size: 1.0625rem; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.footer-links a,
.footer-contact a { text-decoration: none; }
.footer-links a:hover,
.footer-contact a:hover { text-decoration: underline; }
.footer-contact { display: grid; gap: 0.5rem; font-style: normal; align-content: start; }
.footer-contact span { color: var(--ink-2); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-2);
  font-size: 0.875rem;
}
.footer-legal p { margin: 0; }
.footer-legal-links { display: flex; gap: 1.25rem; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .topbar, .site-header, .hero-actions, .tape-col, .contact-form, .nav-toggle { display: none !important; }
  .about { background: none; color: #000; }
  .about h2, .equation { color: #000; }
}
