/* Fonts are served from this site (/fonts), never from a third party.
   Latin and Latin Extended subsets; licenses (SIL OFL 1.1) are in /fonts. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/fraunces-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/schibsted-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/fraunces-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FFFFFF;
  --soft: #F6F5F2;
  --text: #16161A;
  --heading: #16161A;
  --body: #3A3A42;
  --muted: #4A4A52;
  --faint: #5E5E66;
  --line: #E6E4DF;
  --line-strong: #C9C7C1;
  --accent: #B8361F;
  --accent-dark: #9A2C18;
  --ok: #188038;

  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; width: 100%; }

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 640px; margin: 0 auto; }

/* ---------- Top bar ---------- */

.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 4px 28px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none !important; }
.wm-name { color: var(--text); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
.site-nav .nav-note { font-size: 13px; color: var(--faint); padding: 10px 0; }
.site-nav a#nav-account { color: var(--faint); }
.site-nav a#nav-account:hover, .site-nav a#nav-account[aria-current="page"] { color: var(--accent); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-weight: 700; color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
h1 em, h2 em { font-style: normal; color: inherit; }
p + p { margin-top: 0.9em; }

.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.deck { font-size: 18px; color: var(--muted); max-width: 520px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.section-head { margin-bottom: 36px; }
.section-head.center, .center .section-head { text-align: center; }
.section-head p { color: var(--muted); }
.section-head .deck { margin-top: 14px; }
h1.title-sm { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }

/* Small uppercase section label over a hairline. */
.label-rule { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 28px; }
.label-rule h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.label-rule p { margin: 0; font-size: 14px; color: var(--faint); }

/* ---------- Lead ---------- */

.lead { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; padding: clamp(56px, 9vw, 112px) 0 72px; }
.lead h1 { margin-bottom: 20px; }
.lead .deck { margin-bottom: 28px; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.lead-actions a:not(.btn) { font-weight: 600; }

/* Home page: the code lookup as a ruled block, and unboxed sections. */
.lookup { border-top: 1px solid var(--line); padding-top: 18px; align-self: end; }
.lookup .kicker { margin-bottom: 14px; }
.lookup .fine { font-size: 14px; color: var(--faint); margin-top: 14px; }
.lookup .code-input { min-height: 52px; font-size: 20px !important; }
/* Respond page: the same lookup, centred on its own. */
.lookup-page { max-width: 460px; margin: 0 auto; }
.lookup-page .coupon-form { margin-top: 0; }
.block { padding: 0 0 80px; }
.statement { font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-block; cursor: pointer; text-align: center; text-decoration: none !important;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.4;
  background: var(--text); color: #fff; border: 1px solid var(--text);
  padding: 12px 24px; border-radius: 6px; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #33333B; border-color: #33333B; color: #fff; }
/* Red is kept for the code lookup; other primary buttons stay ink. */
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--soft); color: var(--text); border-color: var(--line-strong); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-block { display: block; width: 100%; }
.link-btn { background: none; border: 0; font: inherit; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent); text-decoration-color: currentColor; }

label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.field { margin-bottom: 18px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--text); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], textarea, select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: 11px 14px;
  transition: border-color 0.15s ease;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.code-input { font-family: var(--mono) !important; font-size: 18px !important; letter-spacing: 0.08em; text-transform: uppercase; }

.notice { border: 1px solid var(--line); background: var(--soft); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; font-size: 14px; color: var(--heading); }
.notice-red { background: #FCE8E6; border-color: #F6AEA9; color: #A50E0E; }
.notice-ok { background: #E6F4EA; border-color: #A8DAB5; color: #137333; }
.notice strong { display: block; font-weight: 700; margin-bottom: 2px; }
.hidden { display: none !important; }

/* ---------- Boxes ---------- */

.coupon { background: var(--soft); border-radius: 14px; padding: 32px; }
.coupon h3 { font-size: 20px; margin-bottom: 6px; }
.coupon .fine { font-size: 14px; color: var(--faint); margin-top: 14px; }
.coupon-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.coupon-form input { flex: 1; min-width: 200px; }

/* ---------- Ads ---------- */

.personals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.clipping { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px 18px; }
.clipping .sample { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.clipping h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: 0; margin-bottom: 8px; }
.clipping p { font-size: 16px; color: var(--body); white-space: pre-line; }
.clipping p.sample { white-space: normal; font-size: 11px; color: var(--accent); }
.clipping .code { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--faint); border-top: 1px solid #EFEDE8; margin-top: 18px; padding-top: 12px; }
.clipping .code b { color: var(--text); font-weight: 500; }
.specimen-note { font-size: 14px; color: var(--faint); margin-top: 14px; }

/* ---------- Columns ---------- */

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.numeral { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col.rules-layout { grid-template-columns: 1fr 1.6fr; }

.rules-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.rules-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.rules-list.single { grid-template-columns: 1fr; }
.rules-list li b { display: block; color: var(--text); font-weight: 700; font-size: 16px; }

/* ---------- Rates ---------- */

.rate-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; transition: border-color 0.15s ease; }
.rate .kicker { margin-bottom: 6px; }
.rate h3 { font-size: 16px; }
.rate .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--heading); margin: 4px 0 10px; }
.rate .price small { font-size: 13px; color: var(--muted); }
.rate p { font-size: 14px; color: var(--muted); flex: 1; }
.rate ul { list-style: none; font-size: 14px; margin: 14px 0 18px; }
.rate ul li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.rate ul li b { font-weight: 600; }
.rate .btn { margin-top: auto; }
.rate.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

table.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ledger th, table.ledger td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ledger th { font-weight: 600; color: var(--muted); font-size: 13px; }
table.ledger td b { font-weight: 600; }
table.ledger td:first-child { padding-right: 20px; white-space: nowrap; }

/* ---------- FAQ ---------- */

.faq .label-rule { margin: 48px 0 4px; }
.faq .label-rule:first-child, .faq .section-head + .label-rule { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Desk ---------- */

.desk-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; padding: 56px 0 80px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.panel h3 { font-size: 15px; margin-bottom: 12px; }
.balance { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.balance b { font-size: 20px; font-weight: 700; color: var(--text); }
.status-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.status-ok { background: #E6F4EA; color: #137333; }
.status-warn { background: #FCE8E6; color: #A50E0E; }

.list { list-style: none; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a.item, .list div.item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 8px; align-items: baseline; color: var(--text); text-decoration: none; }
.list a.item:hover { background: var(--soft); }
.list .item-title { font-size: 15px; }
.list .item-meta { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.list .item-meta b { font-weight: 600; color: var(--text); }
.list .item-meta .item-note { display: inline-block; max-width: 280px; white-space: normal; }
.list .empty { padding: 16px 8px; color: var(--faint); font-size: 14px; }
.close-account { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.close-account summary { cursor: pointer; font-size: 13.5px; color: var(--faint); }
.close-account form { margin-top: 12px; }
.close-account p { margin-bottom: 14px; }
.desk-section { margin-bottom: 48px; }
.desk-section .label-rule { margin-bottom: 14px; }

/* ---------- Letters ---------- */

.letter { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 14px; }
.letter.mine { margin-left: 56px; background: var(--soft); border-color: var(--soft); }
.letter.theirs { margin-right: 56px; background: #fff; }
.letter .letter-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.letter .letter-body { white-space: pre-wrap; font-size: 15px; }

.done-code { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: 0.04em; margin: 18px 0; }

.ad-toggle { margin-bottom: 26px; }
.ad-toggle summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ad-toggle summary:hover { color: var(--accent); text-decoration-color: currentColor; }
.ad-toggle > div { margin-top: 14px; }

.counter { font-size: 13px; color: var(--muted); text-align: right; margin-top: 6px; }
.counter.over { color: var(--accent); font-weight: 600; }

.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { flex: 1; background: none; border: 0; cursor: pointer; padding: 12px 8px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--faint); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.dev-banner { background: #FEF7E0; color: #7A4F00; border-radius: 6px; font-size: 13px; padding: 8px 12px; margin: 12px 0; }

/* ---------- Policy and contact pages ---------- */

.prose { padding: 56px 0 24px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.prose .policy-meta { font-size: 14px; color: var(--faint); margin-bottom: 28px; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--body); }
.prose ul { margin: 10px 0 0 20px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }

.contact-list, .prose .contact-list { list-style: none; margin: 8px 0 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.contact-list address { font-style: normal; }

/* ---------- Footer ---------- */

.site-footer { background: var(--soft); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.footer-mark { color: var(--text); font-size: 16px; font-weight: 800; text-decoration: none !important; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; flex: 1; }
.footer-links a { color: var(--text); }
.footer-copy { color: var(--faint); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .desk-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .page { padding: 0 16px; }
  .site-nav { gap: 0 20px; }
  .section { padding: 52px 0; }
  .personals, .rules-list, .three-col { grid-template-columns: 1fr; }
  .three-col { gap: 28px; }
  .two-col, .two-col.rules-layout, .row { grid-template-columns: 1fr; gap: 0 12px; }
  .two-col { gap: 32px; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .letter.mine { margin-left: 20px; }
  .letter.theirs { margin-right: 20px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* Spacing and width helpers, so pages need no inline styles (the content
   security policy allows none). */
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-26 { margin-top: 26px; }
.mt-28 { margin-top: 28px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.w-460 { max-width: 460px; }
.w-520 { max-width: 520px; }
.break-all { word-break: break-all; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.gap-deck { margin: 16px auto 26px; }
.gap-letter { margin: 20px 0 26px; }
.gap-supporters { margin: 16px 0 22px; }
.gap-center { margin: 16px auto; }
