.client { --gutter: clamp(1.15rem, 4.2vw, 2.75rem); }
.client .top { position: absolute; inset: 0 0 auto 0; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

/* ---- Hero: the answer, painted ---------------------------------------------------- */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--atmo-top); }
.hero-in { position: relative; z-index: 1; padding: clamp(5.2rem, 9vw, 7rem) 0 clamp(1.6rem, 3vw, 2.6rem); }
.who {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.verdict {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  max-width: 16ch;
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.verdict .mk {
  width: 0.34em;
  height: 0.34em;
  margin-top: 0.34em;
  --mk: var(--state);
  filter: drop-shadow(0 0 0.18em color-mix(in srgb, var(--mk) 70%, transparent));
}
.domain-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 1.1rem;
  font-size: 1.0625rem;
}
.domain { font-weight: 600; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.checked { color: var(--ink); }
.note { margin-top: 0.8rem; max-width: 38rem; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.note:empty { display: none; }
.note a { font-weight: 600; }

.days-wrap { margin-top: clamp(1.6rem, 3.5vw, 2.4rem); width: min(100%, 38rem); }
.days { display: flex; gap: 3px; height: 2.7rem; }
.day {
  display: block;
  flex: 1 1 0;
  min-width: 3px;
  border-radius: 999px;
  background: var(--lamp);
  box-shadow: 0 0 12px color-mix(in srgb, var(--lamp) 32%, transparent);
}
.day[data-s="part"] {
  background: linear-gradient(to bottom, var(--amber) 0 40%, transparent 40% 55%, var(--amber) 55% 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--amber) 38%, transparent);
}
.day[data-s="bad"] {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ember), 0 0 12px color-mix(in srgb, var(--ember) 40%, transparent);
}
.day[data-s="none"] { background: var(--track); box-shadow: none; }
.days-axis { display: flex; justify-content: space-between; margin-top: 0.55rem; color: var(--ink); font-size: 0.8125rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.9rem; color: var(--ink); font-size: 0.875rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend .day { flex: none; width: 7px; height: 15px; }

/* ---- Four facts ------------------------------------------------------------------- */

.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; overflow: hidden; background: var(--card-bg), var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.fact {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1rem 1.2rem 1.15rem;
  border-top: 1px solid var(--line);
}
.fact:nth-child(-n + 2) { border-top: 0; }
.fact--wide { grid-column: 1 / -1; }
.fact:nth-child(2n) { border-left: 1px solid var(--line); }
.fact .big {
  order: 1;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.fact dt { order: 2; margin-top: 0.4rem; color: var(--ink-2); font-size: 0.875rem; line-height: 1.35; }
.fact .sub { order: 3; display: flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; color: var(--ink); font-size: 0.875rem; line-height: 1.35; }
.fact .sub:empty { display: none; }
.fact .sub .mk { margin-top: 0.05em; }
.fact[data-tone="warn"] .big { color: var(--amber); }
.fact[data-tone="bad"] .big { color: var(--ember); }

/* ---- Sheets: what is measured, as open type ---------------------------------------- */

.sheets { columns: 1; column-gap: 1.4rem; padding: 1.4rem 0 0.4rem; }
/* what is measured, and what was agreed: each section a Lantern card */
.sheet { break-inside: avoid; margin-bottom: 1.4rem; padding: clamp(1.15rem, 3vw, 1.7rem); background: var(--card-bg), var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.sheet h2 {
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.lead { color: var(--ink); max-width: 36rem; text-wrap: pretty; }
.cap { margin-top: 0.7rem; color: var(--ink-3); font-family: var(--mono); font-size: 0.78rem; letter-spacing: -0.01em; max-width: 36rem; }

.rows > div { display: grid; grid-template-columns: 1fr; gap: 0.1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.rows > div:first-child { border-top: 0; padding-top: 0.2rem; }
.rows dt { color: var(--ink-2); font-size: 0.9375rem; }
.rows dd { font-size: 1rem; line-height: 1.45; text-wrap: pretty; }
.rows dd .mute { font-size: 0.9375rem; }
.rows dd .ok { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.rows dd .ok .mk { transform: translateY(0.02em); }

.meter { height: 0.62rem; margin: 0.3rem 0 0.9rem; background: var(--track); border-radius: 999px; overflow: hidden; }
.meter-fill { display: block; width: 0; height: 100%; background: var(--ink-2); border-radius: 999px; }
.meter[data-tone="warn"] .meter-fill { background: var(--amber); }
.meter[data-tone="bad"] .meter-fill { background: var(--ember); }

.chart { position: relative; height: 12rem; margin-top: 0.9rem; touch-action: pan-y; }
.chart canvas { width: 100%; height: 100%; }
.cross { position: absolute; top: 12px; bottom: 28px; width: 1px; background: var(--ink-2); pointer-events: none; opacity: 0.6; }
.tip {
  position: absolute;
  z-index: 2;
  top: 0;
  padding: 0.45rem 0.7rem;
  background: var(--sheet-hi);
  border: 1px solid var(--line-2);
  border-radius: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.3;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.tip b { display: block; font-size: 1.0625rem; font-weight: 600; }
.tip span { color: var(--ink-2); }

.twin { margin-top: 0.8rem; }
summary { cursor: pointer; color: var(--ink-2); font-size: 0.9375rem; padding: 0.35rem 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-right: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.12em) rotate(-45deg); transition: transform 0.18s ease; }
details[open] > summary::before { transform: translateY(-0.2em) rotate(45deg); }
summary:hover { color: var(--ink); }
.twin-in { max-height: 15rem; overflow: auto; margin-top: 0.4rem; border-top: 1px solid var(--line); }
.twin table { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.twin th, .twin td { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.twin thead th { position: sticky; top: 0; background: var(--card-solid); color: var(--ink-2); font-weight: 500; }
.r { text-align: right; }

.inc-list li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.inc-list li:first-child { margin-top: 0.4rem; }
.inc-list .mk { transform: translateY(0.03em); }
.inc-list time { font-family: var(--mono); font-size: 0.9rem; letter-spacing: -0.02em; }

.tech .rows { margin-top: 0.6rem; }
.sheet[data-sec="tech"] summary { padding: 0.2rem 0; color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.sheet[data-sec="tech"] summary::before { width: 0.4em; height: 0.4em; }
.contact-phone { margin-top: 0.4rem; font-size: 1.1875rem; }
.contact-phone a { font-weight: 600; }

/* ---- Plan and contact: what was agreed ----------------------------------------------- */

.ops-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.2rem 0.9rem; margin-block: 1.4rem 0.6rem; padding: 1rem 1.2rem; background: var(--ember-wash); border: 1px solid color-mix(in srgb, var(--ember) 45%, transparent); border-radius: var(--r-card); }
.ops-note[hidden] { display: none; }
.ops-note .mk { margin-top: 0.45em; }
.ops-note-lead { font-weight: 600; }
.ops-note ul { margin-top: 0.25rem; color: var(--ink-2); }
.ops-note .btn-link { align-self: center; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; white-space: nowrap; }
@media (max-width: 560px) { .ops-note { grid-template-columns: auto minmax(0, 1fr); } .ops-note .btn-link { grid-column: 2; } }
.account { padding: 0.5rem 0 3rem; }
.account-grid { display: grid; gap: 1.2rem; }
.account-grid.single { grid-template-columns: minmax(0, 34rem); }
.account .sheet { margin: 0; padding: clamp(1.3rem, 3vw, 2rem); }
.account h2 { padding-top: 0; border-top: 0; margin-bottom: 1rem; }
.plan-name { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-price { margin-top: 0.4rem; font-size: 1.0625rem; color: var(--ink-2); }
.plan-price b { color: var(--ink); font-family: var(--mono); font-size: 1.4rem; font-weight: 400; letter-spacing: -0.04em; }
.plan-renew { margin-top: 0.3rem; color: var(--ink-2); }
.includes { display: grid; grid-template-columns: 1fr; gap: 0.55rem 1.5rem; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.includes li { position: relative; padding-left: 1.7rem; }
.includes li a { position: relative; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.includes li a:hover { text-decoration-thickness: 2px; }
.includes li a::after { content: ""; position: absolute; inset: -0.55rem -0.4rem; } /* a 44 px touch area round a line of text */
.includes li::before {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 0.3em;
  width: 0.62rem;
  height: 0.32rem;
  border-left: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(-48deg);
}
.contact-lead { color: var(--ink-2); max-width: 30rem; }
.contact-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1rem; }
.contact-ask[hidden], .ask-state[hidden], .ask-all[hidden] { display: none; }
.ask-btn { display: inline-flex; align-items: center; text-decoration: none; }
.ask-state { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.ask-state .mk { width: 0.62em; height: 0.62em; }
.ask-state a, .ask-all { color: var(--ink); text-underline-offset: 0.2em; }
.ask-all { font-size: 0.9375rem; color: var(--ink-2); }
.contact-who { margin-top: 1.1rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.mail { display: inline-block; margin-top: 0.3rem; font-size: 1.1875rem; font-weight: 600; text-underline-offset: 0.22em; text-decoration-thickness: 1px; padding: 0.35rem 0; }

.loading { padding: 4.5rem 0 3rem; color: var(--ink-2); }
.loading.bad { color: var(--ember); display: flex; gap: 0.6rem; align-items: baseline; }

.foot { margin-top: 0.6rem; padding: 1.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-3); color: var(--ink-2); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 0.3rem 2rem; }

/* summary of several sites, shown only when there is more than one */
.sites-sum { padding: 5rem 0 0; }
.sites-sum ul { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sites-sum a { display: inline-flex; gap: 0.6rem; align-items: center; min-height: 2.75rem; padding: 0.55rem 1.1rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card-solid); text-decoration: none; font-weight: 600; }
.sites-sum + .site .hero-in { padding-top: 2rem; }

@media (min-width: 560px) {
  .rows > div { grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1.2rem; align-items: baseline; }
  .includes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 6vw, 6rem); align-items: end; }
  .hero-text { grid-column: 1; }
  .days-wrap { grid-column: 2; margin: 0 0 0.2rem; width: 100%; }
  .days { height: 3.6rem; }
}
@media (min-width: 840px) {
  .facts { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .fact--wide { grid-column: auto; }
  .fact, .fact:nth-child(2n) { border-top: 0; border-left: 1px solid var(--line); padding: 1.7rem 1.2rem 1.7rem 1.4rem; }
  .fact:first-child { border-left: 0; }
  .sheets { columns: 2; padding-top: 2.4rem; }
  .account-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .account-grid.single { grid-template-columns: minmax(0, 34rem); }
  .chart { height: 13rem; }
}
@media (max-width: 520px) {
  .top { gap: 0.5rem; padding-inline: 0.9rem; }
  .brand { font-size: 1rem; gap: 0.5rem; }
}

.foot .tool { flex-basis: auto; margin-left: -0.85rem; min-height: 2.5rem; color: var(--ink); border-color: var(--line-2); }
@media (min-width: 441px) { .foot .tool { display: none; } }

/* ---- The "?" beside a section: its explanation in the help ------------------------------ */

.help-q {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.65rem;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  vertical-align: 0.12em;
}
.help-q::before { content: "?"; }
.help-q::after { content: ""; position: absolute; inset: -0.75rem; }
.help-q:hover { color: var(--ink); border-color: var(--ink); }
.fact { position: relative; }
.fact > .help-q { position: absolute; top: 1.6rem; right: 0.5rem; margin: 0; }
@media (min-width: 840px) { .fact > .help-q { right: 0.9rem; } }

/* ---- Paid until, in the plan card ------------------------------------------------------------------------ */

.plan-pay { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.plan-pay[hidden] { display: none; }
.pay-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; }
.pay-line .mk { align-self: center; }
.pay-word { color: var(--ink-2); font-size: 0.9375rem; }
.plan-pay[data-state="due"] .pay-word { color: var(--amber); font-weight: 650; }
.plan-pay[data-state="overdue"] .pay-word { color: var(--ember); font-weight: 700; }
.pay-note { margin-top: 0.55rem; color: var(--ink-2); max-width: 32rem; text-wrap: pretty; }
.pay-safe { color: var(--ink-2); }

/* ---- Sign-in protection (two steps) ----------------------------------------------------------------------- */

.tf-state { display: flex; align-items: center; gap: 0.7rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.tf-state::before { content: ""; flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; box-shadow: inset 0 0 0 0.14rem var(--ink-2); }
.tf-state[data-on="1"]::before { background: var(--lamp); box-shadow: 0 0 0.5rem color-mix(in srgb, var(--lamp) 70%, transparent); }
.tf-lead { margin-top: 0.5rem; max-width: 32rem; color: var(--ink-2); text-wrap: pretty; }
.tf-lead[hidden], .tf-done[hidden], .tf-err[hidden], .tf-lost[hidden] { display: none; }
.tf-done { margin-top: 0.8rem; font-weight: 560; }
.tf-acts { margin-top: 1.1rem; }
.tf-acts[hidden] { display: none; }
.tf-btn { min-height: 2.75rem; padding: 0 1.3rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: transform 120ms var(--ease); }
.tf-btn:hover { background: var(--sheet-hi); border-color: var(--blue-lit); }
.tf-btn:active { transform: scale(0.97); }
.tf-btn[hidden] { display: none; }
.tf-btn:disabled { opacity: 0.55; cursor: default; }
.tf-btn--solid { background: var(--blue); border-color: var(--blue); color: var(--on-blue); box-shadow: 0 6px 18px rgba(59, 100, 232, 0.3); }
.tf-btn--solid:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.tf-btn--small { min-height: 2.25rem; padding: 0 1rem; font-size: 0.9375rem; }
.tf-steps { counter-reset: tf; display: grid; gap: 1.5rem; margin-top: 1.2rem; list-style: none; }
.tf-steps li { position: relative; counter-increment: tf; padding-left: 2.8rem; }
.tf-steps li::before { content: counter(tf); position: absolute; left: 0; top: -0.05rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 2px solid var(--ink-3); border-radius: 50%; font-size: 0.9375rem; font-weight: 650; line-height: 1; }
.tf-steps p { max-width: 32rem; text-wrap: pretty; }
.tf-qr { display: block; margin-top: 0.9rem; border-radius: 0.7rem; background: #fff; max-width: 100%; }
.tf-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.7rem; }
.tf-secret code { padding: 0.55rem 0.85rem; border-radius: 0.6rem; background: var(--sheet-hi); font-family: var(--mono); font-size: 1rem; letter-spacing: 0.04em; overflow-wrap: anywhere; user-select: all; }
.tf-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.8rem; }
.tf-form[hidden] { display: none; }
.tf-form input { width: 9.5rem; min-height: 2.9rem; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--sheet-2); color: var(--ink); font: inherit; font-family: var(--mono); font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: 0.25em; text-align: center; }
.tf-form input::placeholder { color: var(--ink-3); font-size: 0.9375rem; letter-spacing: 0; }
.tf-form input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tf-offlead { flex-basis: 100%; max-width: 32rem; color: var(--ink-2); }
.tf-err { margin-top: 0.9rem; color: var(--ember); font-weight: 600; max-width: 32rem; }
.tf-note, .tf-lost { margin-top: 1.1rem; max-width: 32rem; color: var(--ink-2); font-size: 0.9375rem; text-wrap: pretty; }
.tf-lost a { color: var(--ink); }
@media (min-width: 840px) {
  .account-grid #plan { grid-column: 1; grid-row: 1; }
  .account-grid #twofa { grid-column: 1; grid-row: 2; }
  .account-grid #contact { grid-column: 2; grid-row: 1 / span 2; }
  .account-grid.single #contact, .account-grid.single #twofa { grid-column: 1; grid-row: auto; }
}


/* ---- Invoices, in the plan card ---------------------------------------------------------------------------- */

.plan-inv { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.plan-inv[hidden] { display: none; }
.plan-inv h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 0.6rem; }
.inv-list { display: grid; }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.inv-row:first-child { border-top: 0; padding-top: 0.2rem; }
.inv-no { font-weight: 600; font-family: var(--mono); font-size: 0.9rem; letter-spacing: -0.02em; color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; padding-block: 0.15rem; }
.inv-amt { font-family: var(--mono); font-size: 0.9rem; letter-spacing: -0.03em; text-align: end; }
.inv-sub { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.9375rem; }
.inv-row[data-state="cancelled"] .inv-no { color: var(--ink-3); font-weight: 400; }
.inv-row[data-state="cancelled"] .inv-amt { color: var(--ink-3); text-decoration: line-through; }
.inv-row[data-state="paid"] .inv-no { font-weight: 400; }
.inv-state[data-state="issued"] { color: var(--ink); font-weight: 600; }
.inv-row[data-overdue="1"] .inv-state { color: var(--amber); font-weight: 650; }
.inv-more { margin-top: 0.4rem; padding: 0.5rem 0; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; cursor: pointer; min-height: 2.5rem; }
.inv-more:hover { color: var(--ink); }
.inv-note { margin-top: 0.7rem; color: var(--ink-2); max-width: 32rem; text-wrap: pretty; font-size: 0.9375rem; }
.inv-note[hidden] { display: none; }
