
@font-face {
  font-family: 'Archivo';
  src: url('/assets/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --paper: #f4f5f2;
  --surface: #ffffff;
  --ink: #18212b;
  --muted: #5d6673;
  --line: #d9ddd6;
  --line-strong: #b9c0b7;
  --brand: #0e5a44;
  --brand-hover: #0a4635;
  --brand-tint: #e2eee8;
  --ok: #1e7f4f;
  --ok-tint: #e3f1e9;
  --warn: #8f6210;
  --warn-tint: #faefd8;
  --bad: #b42318;
  --bad-tint: #fbe5e2;
  --radius-s: 6px;
  --radius-m: 12px;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-stretch: 125%; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.45rem); line-height: 1.04; font-weight: 780; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.12; font-weight: 740; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; font-stretch: 112%; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 64ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.wordmark { font-stretch: 125%; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-footer { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.site-footer a { color: var(--muted); }
.site-footer .grow { margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-s);
  font: 650 1rem/1 var(--font); font-stretch: 108%; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn[disabled], .btn.disabled { opacity: 0.45; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero: provider feed versus published feed */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.lead { font-size: 1.2rem; line-height: 1.55; color: #2c3642; max-width: 34em; margin-bottom: 28px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.sheet-head { display: grid; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.sheet-head strong { color: var(--ink); font-weight: 650; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.sheet th, .sheet td { text-align: left; padding: 9px 18px; border-bottom: 1px solid #eceee9; vertical-align: baseline; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { font-weight: 500; color: var(--muted); width: 28%; }
.sheet .raw { font-stretch: 70%; color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }
.sheet .raw.blank { text-decoration: none; font-style: italic; }
.sheet .clean { font-weight: 600; }
.sheet-foot { display: flex; gap: 24px; padding: 14px 18px; background: var(--brand-tint); font-size: 0.9rem; }
.sheet-foot b { font-stretch: 112%; font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .sheet .clean { animation: settle 0.5s cubic-bezier(.2,.7,.2,1) both; }
  .sheet tr:nth-child(2) .clean { animation-delay: 0.45s; }
  .sheet tr:nth-child(3) .clean { animation-delay: 0.6s; }
  .sheet tr:nth-child(4) .clean { animation-delay: 0.75s; }
  .sheet tr:nth-child(5) .clean { animation-delay: 0.9s; }
  .sheet tr:nth-child(6) .clean { animation-delay: 1.05s; }
  .sheet tr:nth-child(7) .clean { animation-delay: 1.2s; }
  .sheet tr:nth-child(1) .clean { animation-delay: 0.3s; }
  @keyframes settle { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
}

/* Content sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 16px; max-width: 22em; }
.section .intro { color: #2c3642; max-width: 40em; margin-bottom: 36px; font-size: 1.08rem; }
.fixes { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.fixes th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.88rem; padding: 0 16px 10px 0; border-bottom: 1.5px solid var(--ink); }
.fixes td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fixes td:first-child { font-weight: 650; width: 22%; }
.fixes .from { color: var(--bad); font-stretch: 75%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-stretch: 125%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--brand); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.dest { padding: 24px 0 0; border-top: 3px solid var(--ink); }
.dest h3 { margin-bottom: 8px; }
.guard-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guard-list li { padding-left: 26px; position: relative; }
.guard-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-stretch: 108%; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; color: #2c3642; max-width: 62ch; }
.cta-band { padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* Pricing */
.price-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; padding: 24px 0 8px; }
.price-figure { font-stretch: 125%; font-weight: 800; font-size: clamp(3.4rem, 8vw, 5.6rem); line-height: 0.95; letter-spacing: -0.04em; }
.price-unit { font-size: 1.1rem; color: var(--muted); margin: 10px 0 24px; }
.included { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.included li { padding-left: 24px; position: relative; }
.included li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.example table { width: 100%; border-collapse: collapse; }
.example td { padding: 8px 0; border-bottom: 1px solid #eceee9; }
.example td:last-child { text-align: right; }
.example tr.total td { border-bottom: 0; font-weight: 700; padding-top: 14px; }

/* Legal */
.legal { max-width: 70ch; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #2c3642; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row.three { grid-template-columns: 2fr 1fr 1fr; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type=text], input[type=email], input[type=url], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-s);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font);
}
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
legend { font-stretch: 112%; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; padding: 0; }
.notice { padding: 14px 16px; border-radius: var(--radius-s); background: var(--brand-tint); color: var(--ink); margin-bottom: 20px; }
.notice.error { background: var(--bad-tint); }
.notice.warn { background: var(--warn-tint); }

/* App */
.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.app-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.app-nav { display: flex; gap: 6px; margin-left: 8px; }
.app-nav a { padding: 8px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.app-nav a[aria-current=page] { background: var(--paper); font-weight: 650; }
.app-user { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 0.9rem; color: var(--muted); }
.app-user form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.page { padding: 36px 0 24px; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.25rem; font-stretch: 112%; margin-bottom: 14px; }
.meter { display: flex; align-items: center; gap: 16px; }
.meter-bar { flex: 1; height: 8px; background: #e7eae5; border-radius: 4px; overflow: hidden; max-width: 320px; }
.meter-bar span { display: block; height: 100%; background: var(--brand); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.85rem; padding: 8px 12px 8px 0; border-bottom: 1.5px solid var(--line-strong); white-space: nowrap; }
table.data td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }
.status.idle { color: var(--muted); }
.feed-url { display: flex; gap: 8px; align-items: center; max-width: 100%; }
.feed-url code { font: 0.82rem/1.4 var(--mono); background: var(--paper); border: 1px solid var(--line); padding: 7px 9px; border-radius: var(--radius-s); overflow-x: auto; white-space: nowrap; max-width: 520px; }
.big-url code { font-size: 0.95rem; padding: 12px 14px; max-width: 100%; }
.data .feed-url code { max-width: 250px; }
table.data td:first-child { min-width: 120px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.empty { padding: 40px 24px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-m); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: 0.94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.counts { display: flex; flex-wrap: wrap; gap: 28px; margin: 8px 0 4px; }
.counts div { display: grid; }
.counts b { font-stretch: 115%; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.counts span { color: var(--muted); font-size: 0.85rem; }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.inline-form select { min-height: 36px; padding: 4px 8px; width: auto; }

@media (max-width: 860px) {
  .hero .wrap, .split, .price-block { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .form .row, .form .row.three { grid-template-columns: 1fr; }
  .site-nav .hide-sm { display: none; }
  .app-header .wrap { flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .app-user { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .site-nav .hide-xs { display: none; }
  .site-nav { gap: 18px; }
  .hero { padding-top: 16px; }
}
