/* HelpWithEmails — "Airmail". One signature (the airmail stripe), everything else quiet. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-normal-600-800.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-normal-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #13203b;
  --muted: #4f5d75;
  --blue: #1f4fd1;
  --blue-deep: #173da6;
  --red: #d2463b;
  --pass: #17835a;
  --paper: #f6f8fc;
  --card: #ffffff;
  --rule: #d9e1ec;
  --tint: #eaf0fb;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --airmail: repeating-linear-gradient(135deg,
    var(--red) 0 14px, #fff 14px 22px, var(--blue) 22px 36px, #fff 36px 44px);
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand b { color: var(--blue); font-weight: 800; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 24px; color: var(--ink); flex: none; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 1rem; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-nav > a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.menu { position: relative; }
.menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.menu[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.menu ul { position: absolute; top: calc(100% + 14px); left: -16px; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(19, 32, 59, 0.14); min-width: 230px; }
.menu li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.menu li a:hover, .menu li a[aria-current="page"] { background: var(--tint); color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--tint); color: var(--blue-deep); border-color: var(--blue-deep); }
.btn-small { padding: 8px 14px; font-size: 0.95rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 40px 0 72px; background: var(--card); border-bottom: 1px solid var(--rule); }
.hero-plain { padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-top: 18px; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 40em; margin: 0; }
.opener { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius); border: 10px solid transparent; background: var(--airmail) border-box; box-shadow: 0 22px 50px rgba(19, 32, 59, 0.16); }
.hero-figure figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 14px; padding-left: 4px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* Content bands */
.band { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.band-alt { background: var(--tint); }
.prose > * { max-width: 820px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.section-intro { color: var(--muted); margin: -4px 0 28px; max-width: 40em; }

/* Numbered steps: the order is the process, so the numbers carry meaning. */
.steps { list-style: none; padding: 0; counter-reset: step; margin: 8px 0 24px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 64px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--blue); color: var(--blue); font-family: var(--mono); font-weight: 500; font-size: 1rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 2px; border-left: 2px dashed var(--rule); }
.steps strong { font-family: var(--display); }

.points { list-style: none; padding: 0 !important; }
.points li { padding: 16px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; }
.points strong { display: block; font-family: var(--display); margin-bottom: 2px; }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; border-radius: 50%; background: var(--pass); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(0.28em + 4px); width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Sub-topic headings inside a section, and the options comparison table. */
.prose h3 { margin: 1.6em 0 0.4em; }
.prose h2 + h3 { margin-top: 0.4em; }
.table-scroll { overflow-x: auto; margin: 0 0 1.1em; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.options { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.options th, .options td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.options thead th { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--tint); }
.options tbody th { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.options tbody tr:last-child th, .options tbody tr:last-child td { border-bottom: 0; }
.options tbody tr:last-child { background: var(--tint); }
.options td:last-child { color: var(--muted); }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post-card { display: grid; gap: 6px; height: 100%; padding: 20px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.post-card:hover { border-color: var(--blue); color: var(--ink); }
.post-card strong { font-family: var(--display); font-size: 1.15rem; color: var(--blue); line-height: 1.25; }
.post-date, .post-meta { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.post-excerpt { color: var(--muted); font-size: 1rem; }
.post-body h2 { margin-top: 1.6em; }
.post-body h4 { font-family: var(--display); font-size: 1.05rem; margin: 1.2em 0 0.4em; }
.callout { background: var(--tint); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1.1em; }
.callout > :last-child { margin-bottom: 0; }
.post-body code { font-family: var(--mono); font-size: 0.9em; background: var(--card); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; word-break: break-word; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0 0 1.1em; }
.post-body th, .post-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.related-service { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--blue); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 12px; color: var(--muted); }

/* Homepage inbox: the services, listed the way a reader meets them, as messages. */
.inbox { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(19, 32, 59, 0.07); }
.inbox li + li { border-top: 1px solid var(--rule); }
.inbox-row { display: grid; grid-template-columns: 220px 1fr; column-gap: 24px; padding: 18px 24px; color: var(--ink); text-decoration: none; position: relative; }
.inbox-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); transform: scaleY(0); transition: transform .15s; }
.inbox-row:hover { background: var(--tint); color: var(--ink); }
.inbox-row:hover::before, .inbox-row:focus-visible::before { transform: scaleY(1); }
.inbox-from { font-family: var(--display); font-weight: 800; grid-row: span 2; align-self: center; }
.inbox-subject { font-weight: 700; }
.inbox-snippet { color: var(--muted); }

/* Quote: the second place the airmail stripe appears, around the form. */
.quote { padding: 80px 0; background: var(--card); border-bottom: 1px solid var(--rule); }
.quote-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.quote-points { color: var(--muted); }
/* Mascot: still until someone starts filling in the form, then one flap of the wing. */
.mascot { display: block; width: min(100%, 360px); height: auto; margin-top: 32px; }
.mascot-wave { transform-box: fill-box; transform-origin: 90% 20%; }
.quote:focus-within .mascot-wave { animation: mascot-wave 1.1s ease-in-out 1; }
@keyframes mascot-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-22deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-16deg); } }
.quote-form { background: var(--card); border: 10px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--airmail) border-box; border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: 0 22px 50px rgba(19, 32, 59, 0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.quote-form label { display: grid; gap: 6px; align-content: start; font-weight: 600; font-size: 1rem; }
.field-label { display: flex; align-items: baseline; gap: 8px; }
.hint { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.req { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); padding: 11px 12px; border: 1.5px solid #b9c5d8; border-radius: 7px; background: #fff; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 3px solid rgba(31, 79, 209, 0.25); border-color: var(--blue); }
.quote-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: var(--pass); }
.form-alt { color: var(--muted); }

/* Related services */
.related { padding: 56px 0 72px; }
.label { font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 16px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-list a { display: grid; gap: 6px; height: 100%; padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.related-list a:hover { border-color: var(--blue); color: var(--ink); }
.related-list strong { font-family: var(--display); color: var(--blue); }
.related-list span { color: var(--muted); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d3e6; font-size: 1rem; }
.site-footer .stripe { height: 8px; background: var(--airmail); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1fr; gap: 40px; padding: 56px 0 32px; }
.office { font-style: normal; line-height: 1.5; margin-bottom: 16px; }
.office-label { display: block; font-weight: 700; }
.site-footer .office-label { color: #fff; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 24px; }
.offices .office { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.offices .office-label { font-family: var(--display); margin-bottom: 4px; }
.site-footer a { color: #fff; }
.brand-footer, .brand-footer:hover { color: #fff; }
.brand-footer .logo-mark { color: #fff; }
.brand-footer b { color: #9db6ff; }
.footer-note { max-width: 26em; }
.footer-label { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8fa0bf; margin: 6px 0 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { color: #c9d3e6; text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0 28px; }
.legal { margin: 0; font-size: 0.9rem; color: #8fa0bf; }
.legal-links { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: #8fa0bf; }
.legal-links a { color: #c9d3e6; text-decoration: none; }
.legal-links a:hover { color: #fff; text-decoration: underline; }

/* Legal pages: facts list and the terms contents. */
.facts { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0 0 1.1em; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.facts dt, .facts dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--display); font-weight: 700; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.toc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; margin: 8px 0 32px; }
.toc ol { list-style: none; padding: 0 !important; margin: 0 !important; columns: 2; column-gap: 32px; font-size: 1rem; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.legal-text h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal-text h2:first-of-type { margin-top: 0.4em; }

@media (max-width: 900px) {
  .hero-grid, .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .related-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; }
  .toc ol { columns: 1; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .site-nav { gap: 14px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .logo-mark { width: 26px; height: 20px; }
  .site-nav > a:not(.btn) { display: none; }
  .menu ul { left: auto; right: -80px; }
  .hero { padding: 28px 0 52px; }
  .band, .quote { padding: 52px 0; }
  .field-row { grid-template-columns: 1fr; }
  .mascot { width: 180px; margin: 20px auto 0; }
  .quote-form { padding: 20px; }
  .inbox-row { grid-template-columns: 1fr; padding: 16px 18px; }
  .inbox-from { grid-row: auto; }
  .steps li { padding-left: 56px; }
}
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; background: none; }
  .options { min-width: 0; }
  .options thead { display: none; }
  .options, .options tbody, .options tr, .options th, .options td { display: block; width: auto; }
  .options tr { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; padding: 14px 16px; }
  .options th, .options td { padding: 0; border: 0; }
  .options tbody th { white-space: normal; margin-bottom: 4px; }
  .options td:last-child { margin-top: 8px; font-size: 0.95rem; }
  .options td:last-child::before { content: "Best for: "; font-weight: 600; color: var(--ink); }
}
@media (max-width: 420px) {
  .site-nav .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
