/* JamFax marketing site. Colours from the logo kit (COLOURS.txt). */
:root {
  --graphite: #111318;
  --volt: #5b5bff;
  --volt-deep: #3f3fd9;
  --slate: #4b4f5c;
  --cloud: #f5f5f7;
  --line: #e4e4ea;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--volt); }
a:hover { color: var(--volt-deep); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-header .logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--slate); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--graphite); }
/* The page you are on: brand colour + underline, so hover (darker grey) never reads as "selected" */
.nav a[aria-current="page"] { color: var(--volt); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn, .nav .btn:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; background: var(--volt); color: var(--white); text-decoration: none;
  font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 0;
}
.btn:hover { background: var(--volt-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--graphite); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--cloud); color: var(--graphite); }
.btn-small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 80px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--volt); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--slate); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--slate); margin-top: 14px; }

.hero-card {
  background: var(--graphite); color: var(--white); border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.18);
}
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 15px; }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(91, 91, 255, 0.25); color: #c9c9ff; }
.pill.ok { background: rgba(52, 199, 120, 0.2); color: #9ce8bd; }
.hero-card .addr { margin-top: 18px; font-size: 14px; color: #b8bac4; }
.hero-card .addr code { color: var(--white); background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; }

/* Sections */
section { padding: 80px 0; }
.alt { background: var(--cloud); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--slate); font-size: 18px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--slate); margin: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(91, 91, 255, 0.1); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; stroke: var(--volt); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--volt); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--slate); margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; }
.plan .plan-fine { margin: 10px 0 0; font-size: 13px; color: var(--slate); text-align: center; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--volt); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--volt); background: rgba(91, 91, 255, 0.1); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.price { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price span { font-size: 17px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.plan .sub { color: var(--slate); margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 9px; border-left: 2.5px solid var(--volt); border-bottom: 2.5px solid var(--volt); transform: rotate(-45deg); }
.plan .btn { text-align: center; }
.pricing-note { color: var(--slate); font-size: 15px; margin-top: 24px; max-width: 880px; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--volt); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--slate); margin: 10px 0 0; }

/* Closing CTA */
.closing { background: var(--graphite); color: var(--white); text-align: center; }
.closing p { color: #b8bac4; font-size: 18px; margin: 0 0 28px; }
.closing p a { color: #c9c9ff; }
.closing .cta-row { justify-content: center; }
.closing .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.closing .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer img { height: 26px; width: auto; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--graphite); text-decoration: underline; }
.service-of { width: 100%; margin: 8px 0 0; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero .wrap, .grid-3, .steps, .plans { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Help centre */
.help-hero { padding: 64px 0 40px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topics a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--graphite); }
.topics a:hover { background: var(--cloud); }
.prose { max-width: 780px; }
.prose article { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.prose article:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h3 { margin-top: 22px; }
.prose p, .prose li { color: var(--slate); }
.prose li { margin: 6px 0; }
.prose strong { color: var(--graphite); }
.prose code { background: var(--white); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 0.95em; word-break: break-all; }

/* 404 page: the hero grid is not used */
.hero .wrap.wrap-block { display: block; }

/* "Coming soon" tag next to features that are not switched on yet */
.soon { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--volt-deep); background: rgba(91, 91, 255, 0.12); padding: 2px 8px; border-radius: 999px; }
.annual-price { margin: 4px 0 12px; font-size: 15px; color: var(--slate); }
.annual-price strong { color: var(--graphite); }

/* Comparison tables (/compare/): wide tables scroll inside their own box on phones */
.table-scroll { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.compare-table th, .compare-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--slate); background: var(--cloud); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .ours td { background: rgba(91, 91, 255, 0.06); font-weight: 600; }
.compare-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-table a { font-weight: 400; font-size: 13px; }
.fine { font-size: 14px; color: var(--slate); }

/* In-page jumps (#how, #faq, /#pricing) stop below the sticky 68px header, not under it */
html { scroll-padding-top: 92px; }
/* Home sections bring 80px (56px on phones) of top padding of their own: pull them up so the heading lands ~45px below the header */
section[id] { scroll-margin-top: -56px; }

/* Touch targets (2026-10-24 mobile pass): every header, FAQ and footer link is at least 44px tall */
.site-header .logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.btn-small { min-height: 44px; display: inline-flex; align-items: center; }
.faq summary { padding: 10px 0; }
.site-footer nav a, .site-footer .service-of a { display: inline-flex; align-items: center; min-height: 44px; }
.pill, .plan .tag { font-size: 13px; }
.nav-toggle { display: none; }

/* Phones: the links fold into a menu opened by the toggle (assets/nav.js) */
@media (max-width: 860px) {
  .site-header .wrap { position: relative; }
  .nav a:not(.btn) { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -8px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--graphite); cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .close, .site-header.open .nav-toggle .bars { display: none; }
  .site-header.open .nav-toggle .close { display: block; }
  .site-header.open .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
  .site-header.open .nav a:not(.btn) { display: flex; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-header.open .nav .btn { margin-top: 14px; justify-content: center; }
}
.topics a { display: inline-flex; align-items: center; min-height: 44px; }
/* Four plans (pay as you go added 2026-10-24): two across on mid widths, one on phones */
.plans.plans-4 { grid-template-columns: repeat(4, 1fr); max-width: 1280px; }
@media (max-width: 1180px) { .plans.plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .plans.plans-4 { grid-template-columns: 1fr; } }
.plans.plans-4 .price { white-space: nowrap; font-size: clamp(34px, 3vw, 44px); }
