/* getaddress.co.uk marketing site. No build step, no frameworks. */

:root {
  --brand: #0d6e5c;
  --brand-ink: #0a5547;
  --brand-soft: #e3f2ee;
  --accent: #f2b33d;
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --card: #ffffff;
  --ink: #17201d;
  --muted: #5b6763;
  --line: #e2ded4;
  --bad: #b3261e;
  --shadow: 0 1px 2px rgb(16 24 20 / 6%), 0 8px 28px rgb(16 24 20 / 8%);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fbf9f;
    --brand-ink: #7ad8bf;
    --brand-soft: #143a32;
    --bg: #0f1412;
    --bg-alt: #151c19;
    --card: #19211e;
    --ink: #e8eeeb;
    --muted: #9fb0aa;
    --line: #2a3531;
    --bad: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px rgb(0 0 0 / 35%);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand); }
code { font-family: var(--mono); font-size: .9em; background: var(--brand-soft); color: var(--brand-ink); padding: .1em .35em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 20px; min-height: 46px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .btn { color: #06201a; } .btn:hover { background: var(--brand-ink); } }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: var(--brand-soft); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { padding: 72px 0 64px; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(600px 300px at -10% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 56px; align-items: start; }
@media (max-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero { padding-top: 48px; } }
.hero-in > * { min-width: 0; }
@media (max-width: 420px) { .try { padding: 16px; } .try-row .btn { min-width: 76px; padding-inline: 14px; } .try-detail dl { grid-template-columns: 112px 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 40px 0 0; }
.stats div { border-left: 3px solid var(--accent); padding-left: 12px; }
.stats dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats dd { margin: 0; font-weight: 700; font-size: 1.05rem; }

/* try it */
.try { padding: 22px; }
.try-label { display: block; font-weight: 700; margin-bottom: 10px; }
.try-row { display: flex; gap: 10px; }
.try-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; letter-spacing: .02em;
  padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.try-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.try-row .btn { min-width: 96px; }
.try-eg { margin: 12px 0 0; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { font: inherit; font-size: .85rem; font-family: var(--mono); cursor: pointer; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.try-status { min-height: 1.6em; margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.try-status .bad { color: var(--bad); }
.try-status strong { color: var(--ink); }
.try-out { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
.try-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.try-list li { border-bottom: 1px solid var(--line); }
.try-list li:last-child { border-bottom: 0; }
.try-list button {
  display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--ink); background: transparent; border: 0; padding: 9px 12px;
}
.try-list button:hover { background: var(--bg-alt); }
.try-list button[aria-pressed="true"] { background: var(--brand-soft); }
.tag { flex: none; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.tag.biz { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.try-detail dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; margin: 0; font-size: .92rem; }
.try-detail dt { color: var(--muted); font-family: var(--mono); font-size: .8rem; padding-top: 2px; }
.try-detail dd { margin: 0; min-height: 1.4em; word-break: break-word; }
.try-detail dd.empty { color: var(--line); }
.try-detail h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 8px; }
.try-note { margin: 16px 0 0; font-size: .82rem; color: var(--muted); }

/* sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.ico { width: 40px; height: 40px; padding: 8px; border-radius: 10px; fill: var(--brand); background: var(--brand-soft); margin-bottom: 14px; }

.api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .api { grid-template-columns: 1fr; } }
.api-copy p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.code { overflow: hidden; background: #0f1513; border-color: #26302c; }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #161e1b; border-bottom: 1px solid #26302c; }
.tabs button { font: inherit; font-size: .88rem; cursor: pointer; color: #9fb0aa; background: transparent; border: 0; padding: 8px 14px; border-radius: 8px 8px 0 0; }
.tabs button[aria-selected="true"] { color: #e8eeeb; background: #0f1513; }
.code pre { margin: 0; padding: 20px 22px; overflow: auto; max-height: 420px; }
.code pre code { background: none; color: #d6e4de; padding: 0; font-size: .86rem; line-height: 1.65; }

.data { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .data { grid-template-columns: 1fr; gap: 32px; } }
.data p { color: var(--muted); font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.facts dt { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.facts dd { margin: 0; color: var(--muted); }

.section-cta { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .section-cta { background: #0d4f42; } }
.cta { text-align: center; }
.cta p { font-size: 1.1rem; opacity: .9; max-width: 34em; margin: 0 auto 26px; }

.foot { padding: 36px 0 48px; color: var(--muted); font-size: .88rem; }
.foot-in { display: grid; gap: 8px; }
.foot p { margin: 0; }
.attrib { max-width: 60em; font-size: .8rem; }
