/* afrimax.net. One stylesheet, no web fonts: the page should cost a customer almost no data. */
:root {
  --red: #e72e36;        /* the logo's red, for marks and lines */
  --red-ink: #c41d26;    /* a shade darker, for words and buttons on white */
  --ink: #1b1517;
  --soft: #5f5659;
  --line: #e3dcd9;
  --wash: #f7f3f1;
  --paper: #fff;
  --ok: #17694a;
  --wide: 1080px;
  --text: 720px;
  --gutter: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 6.2vw, 62px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--text); }
section { padding: 56px 0; }
section.tight { padding: 32px 0; }
.wash { background: var(--wash); }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--soft); max-width: 34em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 10px; }
.small { font-size: 14.5px; color: var(--soft); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* The line: thick while you are at full speed, thin once you are on the fallback speed. */
.speedline { display: flex; align-items: center; height: 14px; margin: 18px 0 8px; }
.speedline i { display: block; height: 10px; background: var(--red); border-radius: 5px 0 0 5px; }
.speedline i + i { height: 2px; border-radius: 0; }
.speedline i.gap { background: none; border-top: 2px dotted var(--line); height: 0; }
.speedline.days i:nth-child(odd) { height: 10px; border-radius: 5px 0 0 5px; }
.speedline.days i:nth-child(even) { height: 2px; border-radius: 0; margin-right: 1.33%; }
.speedkey { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--soft); }
.speedkey.days { gap: 0; flex-wrap: nowrap; }
.speedkey.days span { width: 33.33%; }

/* Preview ribbon (shown until check.py --publish passes) */
.ribbon { background: var(--ink); color: #fff; font-size: 13.5px; padding: 7px 0; }
.ribbon a { color: #fff; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand img { height: 40px; width: auto; border-radius: 4px; }
.top nav { display: flex; gap: 22px; margin-left: 6px; flex: 1; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 21px 0 18px; border-bottom: 3px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-bottom-color: var(--red); }
.top .acts { display: flex; align-items: center; gap: 16px; }
.top .acts a.plain { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.menu { display: none; }

.btn { display: inline-block; background: var(--red-ink); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 6px; border: 2px solid var(--red-ink); font-size: 16px; font-family: inherit; cursor: pointer; line-height: 1.2; }
.btn:hover { background: #a9161e; border-color: #a9161e; }
.btn.quiet { background: none; color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { background: var(--ink); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 15px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
.hero h1 em { font-style: normal; color: var(--red-ink); }
.hero .lede { margin-top: 20px; }
.from { border-top: 3px solid var(--ink); }
.from a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.from a:hover b { color: var(--red-ink); }
.from span { color: var(--soft); font-size: 14.5px; display: block; }
.from .p { font-weight: 800; font-size: 21px; white-space: nowrap; }
.from .p small { font-weight: 600; font-size: 12.5px; color: var(--soft); display: block; text-align: right; }

/* Page head (inner pages) */
.head { padding: 48px 0 28px; }
.head h1 { font-size: clamp(32px, 5vw, 50px); }
.head .lede { margin-top: 14px; }
.crumbs { font-size: 14px; color: var(--soft); margin: 0 0 14px; }
.crumbs a { color: var(--soft); }

/* Grids and cards */
.cols { display: grid; gap: 28px; }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--paper); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font-weight: 800; font-size: 15px; color: var(--red-ink); display: block; margin-bottom: 6px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--soft); }
.steps.four { grid-template-columns: repeat(4, 1fr); }

/* Plan cards on the home page */
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; background: var(--paper); }
.plan .kind { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--soft); }
.plan h3 { font-size: 22px; margin: 6px 0 2px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 18px; font-size: 15.5px; }
.plan li { padding: 6px 0; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; text-align: center; }

/* Price tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th { text-align: left; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-weight: 700; padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; padding-right: 0; white-space: nowrap; }
td.name { font-weight: 700; }
td.price { font-weight: 800; font-size: 17px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; margin-left: 6px; color: var(--soft); vertical-align: 2px; white-space: nowrap; }
.tag.ns { color: #3b3f8f; }
.group { padding-top: 44px; }
.group > p { max-width: 44em; color: var(--soft); }
.group h2 { margin-bottom: 8px; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; }
.jump a { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.jump a:hover { border-color: var(--ink); }

/* Notes and facts */
.note { border-left: 3px solid var(--red); background: var(--wash); padding: 14px 18px; margin: 22px 0; font-size: 15.5px; }
.note p:last-child { margin: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0 28px; margin: 0; }
.facts dt { color: var(--soft); padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 600; }
.acct { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
ol.how { padding-left: 1.3em; margin: 0; }
ol.how li { padding: 5px 0 5px 4px; }
.tiers { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tiers li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.tiers i { width: 22px; height: 22px; border-radius: 4px; border: 1px solid rgba(0,0,0,.25); margin-top: 2px; }

/* Prose (help pages, legal) */
.prose { max-width: var(--text); }
.prose h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 84px; }
.prose h3 { margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: 5px 0; }
.prose table { font-size: 15px; margin: 8px 0 18px; }
.prose td { padding-right: 14px; }
.clause { scroll-margin-top: 84px; }
.clause .no { font-weight: 700; font-variant-numeric: tabular-nums; }
.clause:target { background: #fff3c4; box-shadow: 0 0 0 6px #fff3c4; }
.version { font-size: 14.5px; color: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; max-width: var(--text); }
.toc { columns: 2; column-gap: 28px; padding: 0 0 22px; list-style: none; font-size: 15px; margin: 22px 0 26px; max-width: var(--text); border-bottom: 1px solid var(--line); }
.toc li { padding: 3px 0; break-inside: avoid; }
.doclist { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.doclist li { border-bottom: 1px solid var(--line); }
.doclist a { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; color: var(--ink); text-decoration: none; font-weight: 700; }
.doclist a span { font-weight: 400; color: var(--soft); font-size: 15px; text-align: right; }
.doclist a:hover { color: var(--red-ink); }

/* Forms */
form.f { display: grid; gap: 16px; max-width: 560px; }
.f label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 5px; }
.f input[type=text], .f input[type=email], .f input[type=tel], .f select, .f textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b9afac; border-radius: 6px; background: #fff; color: var(--ink); }
.f textarea { min-height: 110px; resize: vertical; }
.f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f .check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.f .check input { width: 18px; height: 18px; margin: 3px 0 0; }
.f .check label { font-weight: 400; margin: 0; }
.f .hp { position: absolute; left: -9999px; }
.f .done { border: 2px solid var(--ok); border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.f .fail { border: 2px solid var(--red-ink); border-radius: 8px; padding: 14px 16px; }

/* Footer */
footer { background: var(--ink); color: #d9d2cf; padding: 48px 0 28px; font-size: 15px; margin-top: 40px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
footer h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 4px 0; }
footer .legal { border-top: 1px solid #3a3134; margin-top: 34px; padding-top: 18px; font-size: 13.5px; color: #a89f9c; }

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  section { padding: 40px 0; }
  .hero { padding: 36px 0 28px; }
  .hero .grid, .cols.two, .cols.three, .steps, .steps.four, footer .cols { grid-template-columns: 1fr; }
  .hero .grid { gap: 32px; }
  .top .wrap { flex-wrap: wrap; gap: 0 12px; min-height: 58px; }
  .brand { margin-right: auto; }
  .brand img { height: 34px; }
  .menu { display: block; background: none; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 600; font-size: 15px; padding: 7px 12px; color: var(--ink); }
  .top .acts a.plain { display: none; }
  .top nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; padding: 4px 0 12px; order: 5; }
  .top.open nav { display: flex; }
  .top nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .toc { columns: 1; }
  .f .two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 2px; }
  .doclist a { flex-direction: column; gap: 2px; }
  .doclist a span { text-align: left; }

  /* Price tables become a list of plans, each cell carrying its own label */
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 0; }
  table.stack td.name { font-size: 17.5px; grid-column: 1; }
  table.stack td.price { grid-column: 2; grid-row: 1; text-align: right; font-size: 18px; }
  table.stack td.d { grid-column: 1 / -1; color: var(--soft); font-size: 15px; text-align: left; white-space: normal; }
  table.stack td.d::before { content: attr(data-l) ": "; }
  table.stack td.d:empty { display: none; }
}
@media print {
  .top, footer, .ribbon, .btns, .jump, form, .noprint { display: none !important; }
  body { font-size: 11.5pt; }
  section { padding: 12px 0; }
  .group { break-inside: avoid-page; }
}
