:root { color-scheme: light; --bg: #fbf9f5; --soft: #f3efe7; --card: #fff; --ink: #1b1d24; --muted: #636672; --line: #e6e0d4; --brand: #17233f; --brand-ink: #fff; --deep: #111a30; --gold: #9a7638; --gold-soft: #d9bd8a; --warn: #8a4f00; --bad: #b3261e; --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; --wide: 1040px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
/* The side padding keeps the bar's content in line with the page while its border runs edge to edge. */
header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, calc((100% - var(--wide)) / 2 + 16px)); background: var(--bg); border-bottom: 1px solid var(--line); }
main { max-width: var(--wide); margin: 0 auto; padding: 24px 16px 48px; }
main.app { max-width: 760px; }
/* The name is set in the heavy system sans so it stays solid on every phone; a thin serif washed out on ivory. */
a.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 23px; letter-spacing: -.01em; color: var(--deep); text-decoration: none; }
a.logo span { color: #86652a; }
a.logo::before { content: ''; width: 36px; height: 36px; margin-right: 10px; background: url(/logo.svg) center / contain no-repeat; filter: drop-shadow(0 2px 4px rgb(17 26 48 / 25%)); }
.logo span, h1 em { color: var(--gold); font-style: normal; }
h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; }
h2 { font-size: 18px; letter-spacing: -.01em; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 16px; box-shadow: 0 1px 2px rgb(18 32 26 / 4%), 0 8px 24px rgb(18 32 26 / 5%); }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
input, select, button { font: inherit; }
input, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); margin: 0 0 14px; }
input:focus, select:focus { border-color: var(--brand); }
button { padding: 12px 18px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(1.08); }
button.plain { background: var(--bg); color: var(--ink); border-color: var(--line); font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
a.google { display: block; margin-top: 12px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-weight: 700; text-align: center; text-decoration: none; }
a.google:hover { border-color: var(--brand); }
a.google[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 140px; margin: 0; }
header .row { flex-wrap: nowrap; min-width: 0; }
header button { flex: none; padding: 9px 16px; }
#email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { color: var(--bad); min-height: 1.5em; margin: 8px 0 0; }

/* Landing page */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 48px 40px; margin: 0 0 16px; border-radius: 20px; background: linear-gradient(135deg, #f1eadb, #fff 70%); }
.hero .card { margin: 0; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 20px 0 0; padding: 0; font-weight: 600; font-size: 15px; }
.ticks li::before { content: "✓ "; color: var(--gold); }
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 16px; margin: 0 0 40px; border-radius: 16px; background: var(--deep); color: #fff; text-align: center; }
.band strong { color: var(--gold-soft); display: block; font-size: 28px; letter-spacing: -.02em; }
.band span { font-size: 14px; opacity: .85; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 40px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin: 0 0 12px; border-radius: 50%; background: var(--soft); color: var(--gold); font-weight: 800; }
.section { font-size: 26px; letter-spacing: -.02em; margin: 0 0 16px; }
.note { padding: 20px; margin: 0 0 24px; border-radius: 16px; background: var(--soft); }
.note p:last-child { margin: 0; }

/* Numbers page */
.balance { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
ul.list li:first-child { border-top: 0; }
ul.list button { padding: 9px 14px; white-space: nowrap; }
.phone { font-weight: 700; font-variant-numeric: tabular-nums; }
.code { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: var(--brand); }
.tag { font-size: 13px; color: var(--muted); }
.tag.refunded { color: var(--warn); }
#countries { max-height: 400px; overflow: auto; margin-top: 4px; }
#topups:not(:empty) { margin-top: 8px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  .band, .steps { grid-template-columns: repeat(2, 1fr); }
}

/* Keyword landing pages and FAQ */
a.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.steps.two { grid-template-columns: repeat(2, 1fr); }
.faq { margin: 0 0 32px; }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: var(--deep); color: #fff; font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 32px; }
#key { font-size: 14px; letter-spacing: 0; word-break: break-all; user-select: all; }

/* Numbers page: picking, copy buttons, help */
textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; margin: 0 0 12px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chips:empty { display: none; }
button.chip { padding: 9px 14px; border-color: var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 600; }
button.chip.on { border-color: var(--brand); background: var(--soft); color: var(--brand); }
.tools select { width: auto; margin: 0; flex: none; }
button.small { padding: 5px 10px; font-size: 13px; }
.hint { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 14px; }
.between { justify-content: space-between; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 2; border-radius: 999px; padding: 12px 20px; box-shadow: 0 6px 20px rgb(18 32 26 / 25%); }
dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
dialog::backdrop { background: rgb(18 32 26 / 45%); }
.thread { list-style: none; margin: 0 0 12px; padding: 0; max-height: 220px; overflow: auto; display: grid; gap: 8px; }
.thread li { display: grid; padding: 8px 12px; border-radius: 12px; background: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.thread li.me { margin-left: 32px; background: #ece5d6; }
.thread li.them { margin-right: 32px; }
main.app { padding-bottom: 88px; } /* room for the Help button */
/* Wide screens: choose on the left, wallet and your numbers beside it, so the code shows without scrolling. */
@media (min-width: 1000px) {
  main.app { max-width: 1120px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 20px; align-items: start; }
  main.app > * { grid-column: 2; }
  main.app > .pick-card { grid-column: 1; grid-row: 1 / span 6; }
  #countries { max-height: 520px; }
}
/* Side menu and step strip, wide screens only: a phone gets the single column. */
nav.side, .mini-steps { display: none; }
.card { scroll-margin-top: 80px; }
@media (min-width: 1000px) {
  .mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; counter-reset: s; font-size: 13px; color: var(--muted); }
  .mini-steps li { counter-increment: s; padding: 10px; border-radius: 10px; background: var(--soft); }
  .mini-steps li::before { content: counter(s) ". "; font-weight: 800; color: var(--gold); }
}
@media (min-width: 1280px) {
  body:has(nav.side) { display: grid; grid-template-columns: 230px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
  body:has(nav.side) > header { grid-column: 1 / -1; padding: 12px 24px; }
  nav.side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); padding: 20px 14px; background: var(--deep); }
  nav.side a, nav.side button { padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: #fff; font-weight: 600; text-align: left; text-decoration: none; }
  nav.side a:hover, nav.side button:hover { background: rgb(255 255 255 / 12%); filter: none; }
  body:has(nav.side) > main.app { max-width: 1240px; width: 100%; margin: 0 auto; padding: 24px 28px 88px; }
}
/* Logo tiles: the app's own colour (--c) on the logo; hover and the chosen app fill with it and glow. */
button.chip.logo { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border-radius: 16px; color: var(--c); transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
button.chip.logo svg { width: 28px; height: 28px; fill: currentColor; }
button.chip.logo:hover:not(:disabled) { filter: none; transform: translateY(-3px); border-color: var(--c); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
button.chip.logo.on { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); animation: pop .25s; }
@keyframes pop { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { button.chip.logo { transition: none; animation: none; } button.chip.logo:hover:not(:disabled) { transform: none; } }
nav.side a:hover, nav.side button:hover { color: var(--gold-soft); }
.marks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; }
.marks li { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; }
.marks a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.marks a:hover { text-decoration: underline; }
.marks svg { width: 22px; height: 22px; margin-right: 8px; fill: var(--c); }
.flag { width: 24px; height: 18px; margin-right: 10px; border-radius: 3px; vertical-align: -3px; box-shadow: 0 0 0 1px var(--line); }
/* House touch: serif headings and a gold hairline, to match the seal. */
h1, h2, .section, .balance, .band strong { font-family: var(--serif); }
header { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold) 50%, var(--gold-soft) 70%, transparent); }
.hero .card, .pick-card { border-top: 2px solid var(--gold-soft); }
