/* ProImageTools marketing site — hand-authored, no build step.
   Matches the project's house style: plain CSS, custom properties, no toolchain.

   Palette is sampled from the logo: cyan #5FC6DA, magenta #D0098D. Both are used as
   accents; neither is used as body text — the cyan in particular fails contrast on
   white, so darker derivatives carry anything that has to be read. */

:root {
  /* Brand, straight off the logo */
  --cyan:         #5fc6da;
  --cyan-bright:  #7ad4e5;
  --cyan-mid:     #2ba5bd;
  --cyan-deep:    #0c7185;   /* text/link safe on white and on --bg-tint */
  --magenta:      #d0098d;
  --magenta-lift: #ec2ba9;
  --magenta-deep: #a30670;   /* text safe on white */

  /* Neutrals — cool, slightly blue to sit under the cyan */
  --ink:          #0d1420;
  --ink-2:        #141d2c;
  --text:         #16202f;
  --text-muted:   #4e6076;
  --text-subtle:  #617285;
  --bg:           #ffffff;
  --bg-tint:      #f5fafc;
  --surface:      #ffffff;
  --border:       #e2e9ef;
  --border-soft:  #eef3f7;

  --radius:       12px;
  --radius-lg:    18px;
  --shadow-sm:    0 1px 2px rgba(13,20,32,.05);
  --shadow:       0 4px 16px rgba(13,20,32,.07);
  --shadow-lg:    0 24px 60px -18px rgba(13,20,32,.22);

  --wrap:         1140px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--bg-tint);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: .1em .38em;
  color: var(--cyan-deep);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--cyan-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
  transition: top .15s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.head-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--magenta); font-weight: 700; }

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 26px;
}
.nav > a {
  color: var(--text-muted); font-size: 14.5px; font-weight: 550;
  text-decoration: none;
}
.nav > a:hover { color: var(--text); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

.navtoggle, .navburger { display: none; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: inherit; font-size: 14.5px; font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-lift) 100%);
  color: #fff;
  box-shadow: 0 2px 10px -2px rgba(208,9,141,.5);
}
.btn-solid:hover { box-shadow: 0 8px 22px -6px rgba(208,9,141,.62); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--cyan-mid); color: var(--cyan-deep); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-tint); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f7fa; }

.btn-ghost-light {
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.3);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 11px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Shared section furniture ---------- */

.band { padding: 92px 0; }
.band-tint { background: var(--bg-tint); border-block: 1px solid var(--border-soft); }
.band-dark {
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(95,198,218,.16), transparent 60%),
    radial-gradient(700px 380px at 88% 110%, rgba(208,9,141,.16), transparent 62%),
    var(--ink);
  color: #dbe4ee;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan-deep);
}

.section-head { max-width: 660px; margin: 0 0 52px; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}
.section-lede { color: var(--text-muted); font-size: 17.5px; margin: 0; }

.section-head-light .eyebrow { color: var(--cyan-bright); }
.section-head-light h2 { color: #fff; }
.section-head-light .section-lede { color: #a9bacd; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 44px;
  background:
    radial-gradient(760px 400px at 8% -10%, rgba(95,198,218,.22), transparent 65%),
    radial-gradient(620px 380px at 96% 8%, rgba(208,9,141,.13), transparent 62%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.65rem);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan-mid) 0%, var(--magenta) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 30px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }

.microcopy { font-size: 13.5px; color: var(--text-subtle); margin: 0; }

/* ---------- Hub: centred hero + the two product doors ---------- */

.hero-solo { max-width: 820px; margin: 0 auto 54px; text-align: center; }
.hero-solo h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero-solo h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan-mid) 0%, var(--magenta) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-solo .lede { margin-left: auto; margin-right: auto; }
.hero-solo .cta-row { justify-content: center; }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.door {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan-mid);
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
  box-shadow: var(--shadow);
}
.door-magenta { border-top-color: var(--magenta); }
.door h2 { font-size: 24px; margin-bottom: 12px; }
.door > p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 6px; }
.door .urlline {
  display: block; font-family: var(--mono); font-size: 12.5px;
  background: var(--ink); color: #cfe9f2;
  border-radius: 9px; padding: 12px 14px; margin: 14px 0 8px;
  overflow-x: auto; white-space: nowrap;
}
.ticks { margin: 14px 0 24px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 15px; }
.ticks li b { color: var(--text); }
.ticks li::before {
  content: "✓"; position: absolute; left: 2px; top: 0;
  font-weight: 700; color: var(--cyan-mid);
}
.door-magenta .ticks li::before { color: var(--magenta); }
.door-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; }
  .hero-solo { margin-bottom: 44px; }
}

/* ---------- Live on-the-fly demo (image-cdn page) ---------- */

.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
}
.demo-url {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); border-radius: 10px; padding: 13px 16px;
}
.demo-url code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  background: none; border: 0; padding: 0;
  color: #cfe9f2; font-size: 13px;
}
.demo-open { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--cyan-bright); }
.demo-open:hover { color: #fff; text-decoration: none; }

.demo-selects {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 18px; margin: 16px 0 4px;
}
.demo-selects label {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.demo-selects select {
  font: inherit; font-size: 14px; color: var(--text);
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; max-width: 300px;
}
.demo-selects select:disabled { opacity: .45; }
.demo-selects input[type="color"] {
  width: 38px; height: 32px; padding: 2px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
}

.demo-sliders {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 30px; margin: 12px 0 18px;
}
.demo-sliders.off { opacity: .4; pointer-events: none; }
.demo-size {
  display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--text-muted);
}
.demo-size input { flex: 1; accent-color: var(--cyan-mid); }
.demo-size b { color: var(--text); min-width: 52px; }
@media (max-width: 700px) {
  .demo-sliders { grid-template-columns: 1fr; }
}

.demo-stage {
  display: grid; place-items: center;
  background: repeating-conic-gradient(var(--bg-tint) 0% 25%, #fff 0% 50%) 0 0 / 24px 24px;
  border: 1px solid var(--border-soft); border-radius: 12px;
  min-height: 340px; padding: 18px;
}
.demo-stage img {
  max-width: 100%; height: auto;
  border-radius: 8px; box-shadow: var(--shadow);
  transition: opacity .18s ease;
}
.demo-stage img.loading { opacity: .35; }
.demo-note { font-size: 13.5px; color: var(--text-subtle); margin: 14px 0 0; }

/* ---------- Code cards ---------- */

/* Grid child holding an overflow-x:auto <pre>. min-width:0 keeps the code block
   scrolling inside its own box instead of widening the whole hero column. */
.hero-card { min-width: 0; }

.code-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  /* A thin brand edge so the card belongs to the logo, not to a generic terminal. */
  position: relative;
}
.code-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 100%);
}

.code-head {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.code-title {
  margin-left: 8px;
  font-family: var(--mono); font-size: 12px;
  color: #7d8fa5;
}

pre.code {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #cfdae7;
  tab-size: 2;
}
pre.code code { background: none; border: 0; padding: 0; color: inherit; white-space: pre; font-size: inherit; }

.code-divider {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  color: #58697e; font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
}
.code-divider::before, .code-divider::after {
  content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.08);
}
.code-out { padding-top: 12px; }

.c-cmd { color: var(--cyan-bright); font-weight: 600; }
.c-str { color: #ffa8dd; }
.c-key { color: var(--cyan); }
.c-num { color: #ffc46b; }
.c-lit { color: #b39bff; }

.code-card-dark { box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }

/* ---------- Provider strip ---------- */

.providers {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
}
.providers-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-subtle);
}
.providers ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.providers li {
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* ---------- Feature cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d3e3ea;
}
.card h3 { font-size: 17.5px; margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 15px; margin: 0; }

.ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.ico svg { width: 21px; height: 21px; }
.ico-cyan    { background: rgba(95,198,218,.16);  color: var(--cyan-deep); }
.ico-magenta { background: rgba(208,9,141,.10);   color: var(--magenta-deep); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 8px; }
.step-n {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-mid), var(--magenta));
  color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px -4px rgba(208,9,141,.5);
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- API section ---------- */

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
}

.endpoints { display: grid; gap: 10px; }
.ep {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
}
.ep code {
  background: none; border: 0; padding: 0;
  color: #eaf1f8; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.ep p {
  grid-column: 2;
  margin: 0; font-size: 14px; color: #8fa2b7;
}
.verb {
  grid-row: span 2;
  align-self: start;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 8px; border-radius: 6px;
  min-width: 48px; text-align: center;
}
.verb-get  { background: rgba(95,198,218,.18);  color: var(--cyan-bright); }
.verb-post { background: rgba(236,43,169,.18);  color: #ff8ed4; }

.api-notes {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px;
}
.api-notes h4 { font-size: 15.5px; color: #fff; margin-bottom: 8px; }
.api-notes p { font-size: 14.5px; color: #93a5ba; margin: 0; }
.api-notes code {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.1);
  color: var(--cyan-bright);
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 20px;
  /* Deliberately NOT align-items:start — equal-height cards are what lets
     `flex: 1` on .plan ul push every CTA down to a shared baseline. */
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan h3 { font-size: 16px; letter-spacing: 0; margin-bottom: 10px; }

.plan-featured {
  border-color: var(--magenta);
  box-shadow: 0 14px 40px -16px rgba(208,9,141,.4);
}
.badge {
  position: absolute; top: -12px; left: 24px;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-lift));
  color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px;
}

.price { margin: 0 0 4px; display: flex; align-items: baseline; gap: 3px; }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.per { font-size: 15px; color: var(--text-subtle); font-weight: 500; }

.plan-sub { font-size: 13.5px; color: var(--text-subtle); margin: 0 0 22px; }

.plan ul {
  display: grid; gap: 11px;
  margin: 0 0 26px;
  font-size: 14.5px; color: var(--text-muted);
  flex: 1;
}
.plan ul li { padding-left: 24px; position: relative; }
.plan ul li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--cyan-mid);
  border-bottom: 2px solid var(--cyan-mid);
  transform: rotate(-45deg);
}
.plan ul b { color: var(--text); font-weight: 700; }

.packs {
  margin-top: 26px;
  background: linear-gradient(120deg, rgba(95,198,218,.10), rgba(208,9,141,.07));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.packs-copy h3 { font-size: 19px; margin-bottom: 10px; }
.packs-copy p { color: var(--text-muted); font-size: 15px; margin: 0; max-width: 44em; }
.packs-copy b { color: var(--text); }

.pack-list { display: grid; gap: 9px; }
.pack-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14.5px; color: var(--text-muted);
}
.pack-list b { color: var(--text); font-weight: 700; }
.pack-price { font-weight: 700; color: var(--magenta-deep); }

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

.faq { display: grid; gap: 0; }

.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-child { border-top: 1px solid var(--border); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 16.5px; font-weight: 600;
  position: relative;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--cyan-mid);
  border-bottom: 2px solid var(--cyan-mid);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--cyan-deep); }

.faq-body { padding: 0 32px 22px 0; }
.faq-body p { color: var(--text-muted); font-size: 15.5px; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  padding: 88px 0;
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(95,198,218,.24), transparent 62%),
    radial-gradient(620px 340px at 85% 100%, rgba(236,43,169,.26), transparent 60%),
    var(--ink-2);
  color: #fff;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-inner > p { color: #a9bacd; font-size: 17px; max-width: 46em; margin: 0 auto 28px; }
.cta-inner .cta-row { justify-content: center; margin-bottom: 0; }

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

.site-foot { background: var(--bg-tint); border-top: 1px solid var(--border-soft); }

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px;
  padding-top: 60px; padding-bottom: 44px;
}
.foot-brand p { color: var(--text-muted); font-size: 14.5px; margin: 14px 0 0; max-width: 28em; }

.foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot-nav h4 {
  font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-subtle); margin-bottom: 14px; font-weight: 700;
}
.foot-nav a {
  display: block;
  color: var(--text-muted); font-size: 14.5px;
  padding: 3px 0;
}
.foot-nav a:hover { color: var(--cyan-deep); text-decoration: none; }

.foot-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; padding-bottom: 30px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-subtle);
}
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--text-subtle); }
.foot-legal a:hover { color: var(--cyan-deep); }

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

@media (max-width: 980px) {
  .hero-grid,
  .api-grid,
  .packs,
  .foot-inner { grid-template-columns: 1fr; }

  .hero { padding: 60px 0 56px; }
  .hero-grid { gap: 42px; }
  .lede { max-width: none; }
  .band { padding: 72px 0; }
  .api-grid { gap: 32px; }
  .packs { padding: 26px; }
}

@media (max-width: 760px) {
  /* Visually hidden but still focusable, so the menu opens from the keyboard.
     Above this breakpoint it stays display:none — an invisible tab stop on a
     desktop layout that has no burger to reveal would be worse than useless. */
  .navtoggle {
    display: block;
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .navtoggle:focus-visible + .navburger {
    outline: 3px solid var(--cyan-mid);
    outline-offset: 2px;
  }

  .navburger {
    display: grid; place-items: center;
    margin-left: auto;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
    background: var(--surface);
  }
  .navburger svg { width: 20px; height: 20px; }

  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px 24px 20px;
    margin-left: 0;
  }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav > a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 16px; }
  .nav-cta { margin: 16px 0 0; gap: 10px; }
  .nav-cta .btn { flex: 1; justify-content: center; }

  .site-head { position: relative; }

  .foot-nav { grid-template-columns: repeat(2, 1fr); }
  .providers { margin-top: 46px; }
  .band { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  pre.code { font-size: 11.5px; padding: 16px; }
  .cta-row .btn { flex: 1; justify-content: center; }
}

@media print {
  .site-head, .cta-band, .skip { display: none; }
  body { color: #000; }
}
