.marketing-home {
  font-size: 18px;
  line-height: 1.55;
}
.marketing-home main:focus { outline: none; }
/* Zero specificity, so any single-class rule below still sets its own spacing. */
:where(.marketing-home main) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.marketing-home main) :where(ul, ol) {
  padding: 0;
  list-style: none;
}

:where(.marketing-home) :is(h1, h2, h3) {
  text-wrap: balance;
  color: var(--text);
}
:where(.marketing-home) h1 {
  font-size: clamp(42px, 4.2vw, 60px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}
/* The quoted question reads as one line; on phones it has to wrap to fit. */
@media (min-width: 641px) {
  h1 .quote { white-space: nowrap; }
}
:where(.marketing-home) h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}
:where(.marketing-home) h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, clamp(470px, 39vw, 560px)) minmax(0, 1fr);
  gap: clamp(32px, 4.2vw, 60px);
  padding-block: 44px 48px;
  min-height: min(calc(100vh - 73px), 800px);
}
.copy {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}
.lead {
  font-size: 20px;
  line-height: 1.42;
  color: var(--muted);
  margin-top: 22px;
  text-wrap: pretty;
}
.quick {
  display: flex;
  margin-top: 30px;
}
.quick input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 14px;
  font: 500 16px var(--font);
  color: var(--text);
  background: var(--field);
}
.quick input::placeholder {
  color: var(--placeholder);
}
.quick .btn {
  min-height: 50px;
  border-radius: 0 6px 6px 0;
}
.note {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  align-self: flex-start;
}
.more:hover {
  text-decoration: underline;
}
.more svg {
  transition: transform 0.2s var(--ease);
}
.more:hover svg {
  transform: translateY(2px);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}
.frame {
  display: flex;
  flex-direction: column;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}
.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 600;
}
.bar b {
  font-weight: 800;
  margin-right: 6px;
}
.bar a {
  color: var(--muted);
  text-decoration: none;
}
.bar a:hover {
  color: var(--text);
  text-decoration: underline;
}
.bar .on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.stage {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 56px 48px;
  align-content: center;
  padding: 32px 28px;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 22px 22px;
}
.edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.edges path {
  fill: none;
  stroke: var(--link);
  stroke-width: 2;
  stroke-linecap: round;
}
.n {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.n small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.n strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  margin: 3px 0 8px;
  overflow-wrap: break-word;
}
/* German compounds are wider than a hero card at laptop widths. */
:lang(de) .n strong {
  hyphens: auto;
}
.n .st {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.done .st {
  color: var(--green);
}
.dec {
  border: 2px solid var(--amber);
  padding: 14px 16px;
}
.dec strong {
  font-size: 19px;
}
.obj {
  border: 2px solid var(--link);
}
.dec p,
.obj p {
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--body);
}
.opts {
  grid-column: 2;
  display: grid;
  gap: 12px;
}
.opts .n {
  padding: 9px 14px;
}
.opts strong {
  margin: 1px 0 0;
  font-size: 16px;
}
:where(.marketing-home main) section {
  padding-block: clamp(64px, 8vw, 112px);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.sec-lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 62ch;
}
.ruled > li {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.ruled > li:last-child {
  border-bottom: 1px solid var(--border);
}
.ruled p {
  color: var(--muted);
  margin-top: 6px;
  max-width: 60ch;
}
.problem {
  padding-block: clamp(48px, 6vw, 88px);
}
.problem .ruled > li {
  padding-block: 20px;
}
.problem-turn {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
  max-width: 52ch;
}
.how {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}
.how .split {
  align-items: end;
  margin-bottom: 40px;
}
.sec-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 18px;
  max-width: 58ch;
}
#protocols .sec-lead,
#files .sec-lead,
#lab .sec-lead {
  margin-top: 18px;
}
.morph {
  --tc: minmax(0, 1fr) 170px 130px 130px;
}
.morph.narrow {
  --tc: minmax(0, 1fr) 112px 106px 96px;
}
.morph .bar {
  gap: 0;
  padding-right: 8px;
}
.morph .bar b {
  margin-right: 24px;
}
.vtabs {
  display: flex;
  gap: 20px;
  align-self: stretch;
}
.vt {
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0 2px;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.vt:hover {
  color: var(--text);
}
/* .frame clips anything outside it, so these rings sit inside the element. */
.vt:focus-visible,
.vplay:focus-visible,
.mstage:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}
.vt[aria-selected="true"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
}
.vplay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  min-height: 36px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: 6px;
  font: 600 14px var(--font);
  color: var(--muted);
  cursor: pointer;
}
.vplay:hover {
  color: var(--text);
  background: var(--bg-muted);
}
.morph.noauto .vplay,
.morph.still .vplay {
  display: none;
}
.morph.compact .bar b {
  display: none;
}
.morph.compact .vtabs {
  gap: 14px;
}
.mstage {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
  transition: height 0.5s var(--ease);
}

/* Without JS the plan is a grouped list. home.js adds .is-live and the same tasks start moving. */
.plan-list {
  display: grid;
  gap: 20px;
  padding: 20px 18px;
}
.plan-group__title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--body);
}
.plan-group ul {
  display: grid;
  gap: 8px;
}
.t {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.morph:not(.is-live) .in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 130px 130px;
  gap: 4px 16px;
  align-items: center;
  padding: 10px 14px;
  line-height: 1.2;
}
.fill { display: none; }
.is-live .plan-list {
  display: block;
  padding: 0;
}
.is-live .plan-group__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.is-live .plan-group ul { display: block; }
.mdots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0;
  transition: opacity 0.4s;
}
.mdots.on {
  opacity: 1;
}
.sc {
  position: absolute;
  inset: 0;
}
.sc > * {
  position: absolute;
}
.medges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.medges.on {
  opacity: 1;
  transition: opacity 0.4s 0.42s;
}
.medges path {
  fill: none;
  stroke: var(--link);
  stroke-width: 2;
  stroke-linecap: round;
}
.medges.dep path {
  stroke: var(--dep-line);
  stroke-width: 1.5;
}
.is-live .t {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  transition: transform 0.62s var(--ease), width 0.62s var(--ease), height 0.62s var(--ease), background-color 0.3s, border-color 0.3s;
}
.is-live .in {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  line-height: 1.2;
  min-width: 0;
}
.is-live .in > * {
  display: none;
}
.ti {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.ow,
.dt {
  font-size: 14px;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}
.pill {
  justify-self: start;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.s-done .pill {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.s-prog .pill {
  background: var(--info-bg);
  color: var(--info-ink);
}
.s-block .pill {
  background: var(--risk-bg);
  color: var(--risk-ink);
}
.s-plan .pill {
  background: var(--idle-bg);
  color: var(--body);
}
.narrow .ti {
  font-size: 14px;
}
.t[data-m="row"] {
  border-width: 0 0 1px;
  border-color: var(--border);
  border-radius: 0;
}
.t[data-m="chip"],
.t[data-m="chipc"] {
  background: var(--bg-muted);
  border-color: var(--border);
  border-radius: 6px;
}
[data-m="chip"] .in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
}
[data-m="chipc"] .in {
  padding: 6px 10px;
  gap: 5px;
}
[data-m="chip"] .ti,
[data-m="chip"] .pill,
[data-m="chipc"] .ti,
[data-m="chipc"] .pill {
  display: block;
}
[data-m="chip"] .ti,
[data-m="chipc"] .ti {
  font-size: 14px;
}
[data-m="chip"] .pill {
  align-self: center;
}
[data-m="row"] .in {
  display: grid;
  grid-template-columns: var(--tc);
  gap: 16px;
  align-items: center;
  padding: 0 18px;
}
[data-m="row"] .ti,
[data-m="row"] .ow,
[data-m="row"] .pill,
[data-m="row"] .dt {
  display: block;
}
[data-m="row"] .pill {
  align-self: center;
}
[data-m="kan"] .ti,
[data-m="kan"] .ow {
  display: block;
}
[data-m="bar"] .ti,
[data-m="cal"] .ti {
  display: block;
}
[data-m="bar"] .in {
  padding: 0 10px;
}
[data-m="bar"] .ti {
  font-size: 14px;
}
[data-m="cal"] .in {
  padding: 0 8px;
}
[data-m="cal"] .ti {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t.s-done[data-m="bar"],
.t.s-done[data-m="cal"] {
  background: var(--ok-bg);
  border-color: var(--ok-line);
}
.t.s-prog[data-m="bar"],
.t.s-prog[data-m="cal"] {
  background: var(--info-bg);
  border-color: var(--info-line);
}
.t.s-block[data-m="bar"],
.t.s-block[data-m="cal"] {
  background: var(--risk-bg);
  border-color: var(--risk-line);
}
.t.s-plan[data-m="bar"],
.t.s-plan[data-m="cal"] {
  background: var(--idle-bg);
  border-color: var(--border-strong);
}
[data-m="rowc"] .in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
}
[data-m="rowc"] .ti,
[data-m="rowc"] .ow,
[data-m="rowc"] .pill,
[data-m="rowc"] .dt {
  display: block;
}
[data-m="rowc"] .ti {
  grid-column: 1;
  grid-row: 1;
}
[data-m="rowc"] .ow {
  grid-column: 1;
  grid-row: 2;
}
[data-m="rowc"] .pill {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
[data-m="rowc"] .dt {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}
[data-m="calc"] .ti,
[data-m="calc"] .dt {
  display: block;
}
.t[data-m="ganttc"] {
  background: none;
  border-color: transparent;
  border-radius: 0;
}
[data-m="ganttc"] .in {
  padding: 0;
  gap: 6px;
  justify-content: flex-start;
}
[data-m="ganttc"] .ti {
  display: block;
  align-self: flex-start;
  padding-right: 6px;
  background: var(--bg-muted);
  font-size: 14px;
}
[data-m="ganttc"] .fill {
  display: block;
  height: 10px;
  margin-left: var(--l);
  width: var(--w);
  border-radius: 3px;
}
.s-done .fill {
  background: #10b981;
}
.s-prog .fill {
  background: var(--link);
}
.s-block .fill {
  background: var(--risk-fill);
}
.s-plan .fill {
  background: #94a3b8;
}
.ac {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  line-height: 1.25;
}
.ac small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.ac strong {
  display: block;
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc {
  border: 2px solid var(--amber);
}
.ac.obj {
  border: 2px solid var(--link);
}
.dc strong,
.ac.obj strong {
  white-space: normal;
}
.gh {
  display: flex;
  align-items: center;
  height: 26px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--body);
}
.col {
  background: var(--column);
  border-radius: 10px;
}
.col b,
.grp {
  font-size: 14px;
  font-weight: 700;
  color: var(--body);
}
.col b {
  position: absolute;
  left: 12px;
  top: 9px;
}
.tbl {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.th {
  display: grid;
  grid-template-columns: var(--tc);
  gap: 16px;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.wk {
  border-left: 1px solid var(--border);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.today {
  width: 2px;
  background: var(--text);
}
.today span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 1px 7px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-contrast);
}
.dh {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-left: 8px;
}
.cell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vcap {
  min-height: 66px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--muted);
}
.vcap b {
  color: var(--text);
  font-weight: 700;
}
.scene-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.scene-row.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
  padding: 32px;
  background-color: var(--bg-muted);
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.scene .n {
  z-index: 1;
}
.sedge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.sedge path {
  fill: none;
  stroke: var(--link);
  stroke-width: 2;
  stroke-linecap: round;
}
.sedge circle {
  fill: var(--link);
}
.props {
  margin-top: 4px;
}
.props div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.props dt {
  color: var(--muted);
}
.props dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.revs {
  display: grid;
  gap: 12px;
}
.rev-on {
  border: 2px solid var(--link);
}
.rev-on small {
  display: inline-block;
  padding: 1px 7px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: var(--accent);
  font-weight: 700;
  color: var(--accent-contrast);
}
.rev-new {
  background: var(--raised);
}
.rev-new strong {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--body);
}
.steps {
  counter-reset: s;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--body);
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 3px 0;
}
.steps li::before {
  content: counter(s) ".";
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.attached {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--body);
}
.attached li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.attached li:last-child {
  padding-bottom: 0;
}
.attached .on {
  font-weight: 600;
  color: var(--text);
}
.ft {
  padding: 1px 0;
  border-radius: 4px;
  background: var(--idle-bg);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  color: var(--body);
}
#fTo strong {
  overflow-wrap: anywhere;
}
.curve {
  display: block;
  width: 100%;
  height: auto;
}
.curve .axis {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.curve polyline {
  fill: none;
  stroke: var(--link);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.curve circle {
  fill: var(--text);
}
.curve__label {
  margin: 4px 0 8px;
  font-size: 13px;
  text-align: right;
  color: var(--muted);
}
.said {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--body);
}
.said b {
  display: block;
  font-weight: 700;
  color: var(--text);
}
.hours .bar span {
  color: var(--muted);
}
.hours .bar .on {
  color: var(--text);
}
.hours__body {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
}
.clock {
  padding: 24px;
  border-right: 1px solid var(--border);
}
.clock small {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.clock strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 700;
}
.clock__time {
  margin-top: 18px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.clock__state {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-contrast);
}
.clock .props {
  font-variant-numeric: tabular-nums;
}
.clock .props div:last-child dt {
  font-weight: 600;
  color: var(--text);
}
.sheet {
  padding: 14px 24px 20px;
  background: var(--bg-elevated);
}
.sheet__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 15.5px;
}
.sheet__title b {
  font-weight: 700;
}
.sheet__title span {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.sheet th,
.sheet td {
  padding: 9px 0 9px 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
  color: var(--body);
}
.sheet th:first-child {
  text-align: left;
  white-space: normal;
}
.sheet thead th {
  padding-block: 8px;
  border-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.sheet thead th:first-child,
.sheet .pkg th,
.sheet tfoot th:first-child {
  padding-left: 0;
}
.sheet .pkg th,
.sheet .pkg td {
  font-weight: 700;
  color: var(--text);
}
.sheet tfoot th,
.sheet tfoot td {
  border-top: 2px solid var(--text);
  font-weight: 800;
  color: var(--text);
}
.cap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 24px 8px;
  box-shadow: var(--shadow);
}
.cap table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.cap thead th {
  padding: 10px 16px 12px 0;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.cap tbody th {
  padding: 15px 16px 15px 0;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}
.cap td {
  padding: 13px 16px 13px 0;
  border-top: 1px solid var(--border);
  width: 36%;
}
.cap td:last-child {
  padding-right: 0;
}
.hb span {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
}
.hb i {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--idle-bg);
  overflow: hidden;
}
.hb b {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--link);
}
.hb.over span {
  color: var(--amber);
}
.hb.over b {
  background: var(--amber);
}
.hb.free span {
  color: var(--text);
  font-weight: 800;
}
.hb.free b {
  background: var(--accent-strong);
}
.hb.off span {
  color: var(--muted);
}
.hb.off i {
  background: repeating-linear-gradient(135deg, var(--off-a) 0 4px, var(--off-b) 4px 8px);
}
.changes {
  margin-top: 24px;
}
.changes > li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
}
.changes p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--body);
}
.changes b {
  font-weight: 700;
  color: var(--text);
}
.changes time {
  flex: none;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .t,
  .mstage,
  .medges,
  .mdots,
  .more svg {
    transition: none!important;
  }
  .more:hover svg {
    transform: none;
  }
}
.access {
  background: var(--band);
  color: #e5e7eb;
}
.access h2 {
  color: #fff;
}
.access .split {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: start;
}
.access .sec-lead {
  color: #d1d5db;
  margin-top: 18px;
}

.lead-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--form-bg);
  color: var(--text);
}
.lead-form .full { grid-column: 1 / -1; }
.lead-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}
.required-mark {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.consent-row .required-mark {
  display: block;
  margin-left: 0;
}
.lead-form :is(input, select, textarea):not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  font: 500 16px var(--font);
}
.lead-form textarea {
  min-height: 96px;
  resize: vertical;
}
/* :is() is forgiving, so a browser without :user-invalid still applies the aria-invalid match. */
.lead-form :is([aria-invalid="true"], :user-invalid):not([type="checkbox"]) {
  padding: 9px 11px;
  border: 2px solid var(--error);
}
.lead-form .help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.lead-form .errorList {
  margin-top: 6px;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}
.lead-form .errorList li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
/* A drawn mark beside the text so the error never rests on red alone. */
.lead-form .errorList li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead-form .char-count {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.lead-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.4;
}
.consent-row input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--check);
}
.lead-form .consent-row a {
  color: var(--link);
  text-decoration: underline;
}
.lead-thanks {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}
.lead-thanks:focus { outline: none; }
/* Only the no-JS list stacks captions; once live, hidden siblings would still push every view but Canvas down. */
.morph:not(.is-live) .vcap p + p { margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .edges path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.9s var(--ease) 0.15s forwards;
  }
  .edges path:nth-child(2) {
    animation-delay: 0.3s;
  }
  .edges path:nth-child(n+3) {
    animation-delay: 0.5s;
  }
  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}
@media (max-width: 1220px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .copy {
    padding-top: 8px;
    max-width: 640px;
  }
  .facts {
    margin-top: 28px;
  }
  .stage {
    min-height: 440px;
  }
}
/* The file list needs a wider card than the side-by-side row leaves below this width. */
@media (max-width: 1040px) {
  .scene-row.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .flip > .scene {
    order: 2;
  }
}
@media (max-width: 900px) {
  .split,
  .access .split,
  .scene-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .hours__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .clock {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .how .split {
    align-items: start;
  }
}
@media (max-width: 640px) {
  .marketing-home {
    font-size: 17px;
  }
  .hero .wrap {
    padding-block: 24px 40px;
  }
  .lead {
    font-size: 18px;
  }
  .quick {
    flex-direction: column;
    gap: 10px;
  }
  .quick input {
    flex: none;
    border-right: 1px solid var(--border-strong);
    border-radius: 6px;
  }
  .quick .btn {
    border-radius: 6px;
  }
  .bar {
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 22px 16px;
    min-height: 0;
  }
  .opts {
    grid-column: 1;
    margin-left: 32px;
    gap: 10px;
  }
  .bar b {
    display: none;
  }
  .scene {
    grid-template-columns: minmax(0, 1fr);
  }
  .scene {
    gap: 28px;
    padding: 20px 16px;
  }
  .cap {
    padding: 6px 14px 4px;
  }
  .cap thead th,
  .cap tbody th,
  .cap td {
    padding-right: 10px;
  }
  .cap tbody th {
    font-size: 15px;
  }
  .hb span {
    font-size: 13.5px;
  }
  .changes > li {
    flex-direction: column;
    gap: 2px;
  }
  .clock,
  .sheet {
    padding-inline: 16px;
  }
  .sheet .week {
    display: none;
  }
  .vcap {
    min-height: 112px;
  }
}

@media (max-width: 640px) {
  .lead-form { grid-template-columns: minmax(0, 1fr); }
  .morph:not(.is-live) .in { grid-template-columns: minmax(0, 1fr) auto; }
}

/* After the 640px block, which sets a wider .bar gap. */
@media (max-width: 360px) {
  .bar {
    gap: 8px;
    padding-inline: 10px;
    font-size: 13.5px;
  }
  .morph.compact .vtabs { gap: 8px; }
}
