/* GabrielGateway website. Colours come from the logo: navy, blue and teal. */
:root {
  color-scheme: light;
  --page: #f7f9fb;
  --surface: #ffffff;
  --alt: #eef3f7;
  --ink: #13263b;
  --ink-2: #44566b;
  --muted: #66778a;
  --border: rgba(19, 38, 59, 0.12);
  --blue: #2a72d6;
  --teal: #0e8077;
  --accent: #1f5fbf;
  --accent-ink: #ffffff;
  --code-bg: #10202f;
  --code-ink: #dbe7f2;
  --code-hl: #5fd3c6;
  --shadow: 0 1px 2px rgba(19, 38, 59, 0.06), 0 8px 24px rgba(19, 38, 59, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0c141d;
    --surface: #132130;
    --alt: #101b27;
    --ink: #eaf1f8;
    --ink-2: #b9c7d6;
    --muted: #93a4b6;
    --border: rgba(234, 241, 248, 0.12);
    --blue: #6aa6f2;
    --teal: #4fd1c3;
    --accent: #3d86e8;
    --code-bg: #0a121a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
code {
  font: 0.88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.button.small { padding: 8px 14px; font-size: 0.92rem; }

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--surface), var(--page)); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-logo img { display: block; margin: 0 auto; width: min(460px, 100%); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--alt); }
.section-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 44em; }
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-2); margin: 0; }
.card h3 { color: var(--ink); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 20px; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-weight: 700;
}
.steps p { color: var(--ink-2); margin: 0; }

/* API */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.endpoints { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.95rem; }
.endpoints th, .endpoints td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.endpoints th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.endpoints td:first-child { white-space: nowrap; }
.code-card { background: var(--code-bg); border-radius: 12px; padding: 20px; color: var(--code-ink); min-width: 0; }
.code-title { color: #9fb3c6; font-size: 0.85rem; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.code-card pre { margin: 0 0 20px; overflow-x: auto; }
.code-card pre:last-child { margin-bottom: 0; }
.code-card code { background: none; border: 0; padding: 0; color: var(--code-ink); font-size: 0.86rem; }
.code-card .hl { color: var(--code-hl); }
.badge { background: rgba(95, 211, 198, 0.16); color: var(--code-hl); border-radius: 999px; padding: 2px 10px; font-size: 0.78rem; }

/* Plans */
.plan-length { font-size: 1.6rem; font-weight: 700; color: var(--teal) !important; margin: 0 0 8px !important; }

/* Support */
.contacts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.contact { display: grid; gap: 4px; text-decoration: none; transition: border-color 0.15s; }
.contact:hover { border-color: var(--accent); }
.contact-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-value { color: var(--ink); font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.tip { margin-top: 24px; padding: 14px 16px; border-left: 4px solid var(--teal); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.faq-title { margin-top: 40px; font-size: 1.3rem; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.faq details p { color: var(--ink-2); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 0.92rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }

/* Narrow screens */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(320px, 80%); }
  .grid.three, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .top-inner { justify-content: space-between; }
  .grid.three, .grid.two, .steps { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .section { padding: 52px 0; }
  .endpoints td:first-child { white-space: normal; overflow-wrap: anywhere; }
}
