/* Dimefax website: one shared stylesheet. Light theme only. */
:root {
  --ground: #F3F4F1;
  --surface: #FFFFFF;
  --ink: #16181B;
  --ink-2: #3C4147;
  --muted: #5B6168;
  --line: #DADDD8;
  --line-strong: #B9BEB6;
  --orange: #FF5A1F;
  --green: #1F6B45;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9CDD2;
  --on-dark-3: #A9AEB4;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1160px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--orange); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px;
}
.logo {
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.6px;
  text-decoration: none; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.btn-pill {
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--ink); color: var(--on-dark) !important; border-radius: 999px; padding: 12px 18px;
  font-weight: 700 !important; text-decoration: none !important;
}
.btn-pill:hover { background: #000; }
@media (max-width: 560px) {
  .site-nav .nav-optional { display: none; }
  .site-nav { gap: 16px; }
}

/* Type */
h1, h2, h3 { margin: 0; }
.display { font-family: var(--display); font-weight: 800; }
.h-section {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -1.4px; line-height: 1.02;
}
.lede { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 520px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.035em;
}
.hl { background: var(--orange); padding: 0 10px; border-radius: 12px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex: none; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.card h3 { font-size: 20px; font-weight: 700; }
.card.dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.card.dark p { color: var(--on-dark-2); }

.hero-card {
  flex: 1 1 360px; min-width: 0; border-radius: 28px; padding: 28px; gap: 18px;
  box-shadow: 0 24px 60px rgba(22, 24, 27, 0.08);
}
.hero-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hero-card-head h2 { font-size: 20px; font-weight: 700; }
.tag { font-size: 13px; font-weight: 600; color: var(--muted); }
.receipt { margin: 0; border-top: 1px solid #ECEEEA; }
.receipt div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #ECEEEA;
}
.receipt dt { font-size: 15px; color: var(--ink-2); }
.receipt dd { margin: 0; font-family: var(--mono); font-size: 18px; font-weight: 700; white-space: nowrap; }
.card .store-badge {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 0;
  background: var(--ink); color: var(--on-dark); border-radius: 16px; padding: 14px 18px; min-height: 60px; text-decoration: none;
}
.store-badge svg { flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge small { font-size: 12px; font-weight: 500; color: var(--on-dark-2); }
.store-badge strong { font-size: 18px; font-weight: 700; }
.fineprint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Dark band */
.band { background: var(--ink); color: var(--on-dark); }
.band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.band h2 { max-width: 760px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.facts div { border-top: 1px solid #33373C; padding: 18px 0; display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--on-dark-2); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.5px; }

/* Grids */
/* At most 3 per row (2 rows for 6 cards); 2 on tablets, 1 on phones. */
.features { padding-top: 88px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.pricing { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.price-grid.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
@media (max-width: 1000px) { .price-grid.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .price-grid.plans { grid-template-columns: minmax(0, 1fr); } }
.price { border-radius: 24px; padding: 28px; gap: 10px; }
.price h3 { font-size: 15px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card.price .amount { margin: 0; font-family: var(--mono); font-size: 44px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; color: inherit; }
.price .amount small { font-size: 18px; letter-spacing: 0; }
.price.orange { background: #FFF4EE; border: 2px solid var(--orange); }
.card.price.orange .amount { color: var(--orange); }
.price.orange p { color: var(--ink); }
.price.send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: start; }
.price.send > div { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 720px) { .price.send { grid-template-columns: minmax(0, 1fr); } }
.price .price-cta { margin: auto 0 0; padding-top: 6px; }
.price .price-cta .btn-pill { display: inline-flex; }
.price ul { margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.price ul span { font-family: var(--mono); }
.soon {
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  background: var(--ink); color: var(--on-dark); border-radius: 999px; padding: 3px 8px;
}

/* FAQ */
.faq { max-width: 820px; padding-top: 40px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }
.faq h2 { margin-bottom: 8px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-size: 17px; font-weight: 700; }
details p, details ol, details ul { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
details ol, details ul { padding-left: 20px; }

/* Long-form pages (privacy, terms, support) */
.page { max-width: 760px; padding-top: 32px; padding-bottom: 96px; }
.page h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6vw, 64px); letter-spacing: -1.6px; line-height: 1;
}
.page .meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.page .summary {
  margin: 28px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
}
.page .summary p { margin: 0; }
.page .summary ul { margin: 8px 0 0; padding-left: 20px; }
.prose { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose h2 {
  margin: 40px 0 10px; color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.4px; line-height: 1.15;
}
.prose h3 { margin: 22px 0 6px; color: var(--ink); font-size: 17px; font-weight: 700; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.placeholder { background: #FFE7DC; color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.contact-card { margin: 28px 0 8px; gap: 10px; }
.contact-card .email { font-family: var(--mono); font-size: clamp(18px, 4.6vw, 24px); font-weight: 700; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.site-footer .logo { font-size: 18px; }
.site-footer nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { font-weight: 600; color: var(--ink-2); display: inline-block; padding: 10px 0; }
.contact-title { font-family: var(--display); font-weight: 800; font-size: 24px; }
.faq.help { padding: 24px 0 0; }
.spaced { margin-top: 20px; }

/* Pay link (/f/<code>): the fax an AI or script set up, waiting for payment */
[hidden] { display: none !important; }
.pay { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.pay h1 { margin-bottom: 8px; }
.mono { font-family: var(--mono); }
.pay-card { gap: 16px; }
.pay-facts { margin: 0; display: flex; gap: 32px; flex-wrap: wrap; }
.pay-facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.pay-facts dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; }
.pay-h { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.6px; }
.packs { margin: 0; padding: 0; border: 0; min-width: 0; }
#packs { display: flex; flex-direction: column; gap: 10px; }
.pack {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface);
}
.pack:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pack input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.pack-name { flex: 1; min-width: 0; font-weight: 700; }
.pack-price { font-size: 17px; white-space: nowrap; }
.pack-per { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.pay-btn {
  min-height: 56px; border: 0; border-radius: 16px; background: var(--orange); color: var(--ink);
  font: 700 18px var(--body); cursor: pointer;
}
.pay-btn:hover { background: #F04D12; }
.pay-btn:disabled { opacity: 0.6; cursor: progress; }
.card p.pay-small { font-size: 14px; color: var(--muted); }
.pay-error { margin: 0; padding: 14px 18px; border-radius: 16px; background: #FDECE6; color: #8A2A0A; font-weight: 600; }
.pay-warn { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FFF4EE; color: #8A2A0A; font-size: 14px; font-weight: 600; }
.consent-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.consent-actions .btn-pill { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px; padding: 0 28px; }
.connect .checks li { align-items: flex-start; font-size: 15px; }
.connect .checks svg { margin-top: 1px; }
.plan-actions { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; }
.plan-actions .linkish { font-weight: 600; }
.plan-options { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-option { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-option.wanted { border: 2px solid var(--orange); background: #FFF4EE; }
.plan-option p.pay-small { margin: 0; flex: 1; }
.plan-option .btn-pill { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; align-self: flex-start; }
.conn-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.conn-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 16px; cursor: pointer; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: 18px; color: var(--ink-2);
}
.drop strong { color: var(--ink); font-size: 18px; }
.drop.over { border-color: var(--orange); background: #FFF4EE; }
.drop:hover, #file:focus-visible + .drop { border-color: var(--ink); }
.signin { display: flex; flex-direction: column; gap: 8px; }
.signin label { font-size: 15px; font-weight: 700; }
.signin .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signin input {
  flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 10px 16px; font: 16px var(--body);
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.signin input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 24, 27, 0.12); }
.signin .code-input { flex: 0 1 140px; font: 700 24px var(--mono); letter-spacing: 8px; text-align: center; }
.signin .btn-pill { border: 0; font: inherit; cursor: pointer; min-height: 48px; }
.linkish { border: 0; padding: 0; background: none; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.who strong { color: var(--ink); overflow-wrap: anywhere; }
.any-break { overflow-wrap: anywhere; }
.packs-legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.pay-btn.secondary { background: var(--surface); border: 1.5px solid var(--ink); }
.pay-btn.secondary:hover { background: var(--ground); }
.status-big { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.6px; line-height: 1.1; }
.card.status p#status-big { color: var(--ink); font-size: 30px; }
.pay-summary { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.pay-summary-text { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.thumb {
  flex: none; width: 84px; display: block; line-height: 0; border-radius: 6px; overflow: hidden; background: #fff;
  border: 1px solid var(--line-strong); box-shadow: 0 6px 18px rgba(22, 24, 27, 0.10);
}
.thumb canvas, .thumb img { width: 100%; height: auto; display: block; }
.thumb { cursor: zoom-in; }
.thumb:hover { border-color: var(--ink); }
@media (min-width: 560px) { .thumb { width: 140px; } }
@media (max-width: 400px) { .pay-facts { gap: 20px; } .pay-facts dd { font-size: 20px; } }

/* /send */
.send-lede { margin: 0 0 8px; font-size: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field-label { font-size: 14px; font-weight: 600; }
.field input[type="tel"] {
  min-height: 52px; padding: 12px 16px; font: 700 20px var(--mono); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); width: 100%;
}
.field input[type="tel"]:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(22, 24, 27, 0.12); }
.field .drop { padding: 24px 16px; }
#file-name { overflow-wrap: anywhere; }
.send-more { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }

/* Guides (/guides/) */
.guide .crumbs { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.guide .crumbs a { color: var(--muted); }
.guide .answer { font-size: 18px; line-height: 1.55; color: var(--ink); }
.guide .prose { margin-top: 28px; }
.guide .prose code, .guide .answer code {
  font-family: var(--mono); font-size: 0.85em; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere;
}
.guide .prose p:has(> code:only-child) code { display: inline-block; padding: 8px 12px; font-size: 14px; }
.guide .prose table { display: block; overflow-x: auto; }
.guide-cta { margin-top: 36px; background: var(--ink); border-color: var(--ink); }
.guide-cta p { color: var(--on-dark-2); }
.guide-cta .guide-cta-title { color: var(--on-dark); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.guide-cta .btn-pill { background: var(--orange); color: var(--ink) !important; }
.guide-cta .btn-pill:hover { background: #F04D12; }
.guide-faq { padding: 40px 0 0; }
.guide-faq .h-section { font-size: clamp(28px, 4vw, 40px); }
.related { margin-top: 40px; }
.related h2 { font-size: 18px; margin-bottom: 8px; }
.related ul { margin: 0; padding-left: 20px; line-height: 1.9; }
.guides-lede { margin: 14px 0 28px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guide-card { text-decoration: none; color: inherit; gap: 6px; }
.guide-card h2 { font-size: 20px; font-weight: 700; }
.guide-card:hover { border-color: var(--ink); }

/* Your faxes (/account) */
.fax-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fax-item { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px; }
.fax-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fax-thumb { width: 64px; min-height: 82px; padding: 0; cursor: zoom-in; background: var(--ground); }
.fax-thumb.ready { background: #fff; }
.fax-lock { display: grid; place-items: center; font-size: 24px; cursor: pointer; }
.private-code { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--ground); }
.code-show { margin: 0; font-size: 17px; letter-spacing: 1px; word-break: break-all; user-select: all; }
.fax-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fax-who { font-size: 17px; font-weight: 700; }
.fax-status { font-size: 14px; font-weight: 700; }
.fax-status.ok { color: var(--green); }
.fax-status.bad { color: #8A2A0A; }
.fax-status.wait { color: var(--ink-2); }
.fax-actions { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.fax-actions .linkish { font-size: 15px; font-weight: 600; min-height: 32px; }

/* "Don't keep my faxes" (/account) and the BAA form (/support#baa) */
.switch-row { display: flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 700; cursor: pointer; }
.switch-row input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.copies-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.copies-list strong { color: var(--ink-2); }
.fax-gone { display: grid; place-items: center; padding: 4px; cursor: default; box-shadow: none; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.fax-gone:hover { border-color: var(--line-strong); }
.baa-form { display: flex; flex-direction: column; gap: 14px; }
.baa-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.baa-form input, .baa-form select, .baa-form textarea {
  min-height: 48px; padding: 10px 14px; font: 16px var(--body); font-weight: 400;
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink);
}
.baa-form textarea { min-height: 96px; resize: vertical; }
.baa-form input:focus-visible, .baa-form select:focus-visible, .baa-form textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 24, 27, 0.12); }
.baa-form .btn-pill { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px; padding: 0 28px; align-self: flex-start; }
.baa-form .btn-pill:disabled { opacity: 0.6; cursor: progress; }
.baa-done { margin: 0; font-weight: 600; color: var(--ink); }
