/*
 * GatePass marketing site.
 *
 * Light-only on purpose: this is brand surface, not a tool someone stares at for
 * eight hours, and a single committed look keeps the product screenshots (which
 * are themselves light-UI) sitting naturally on the page instead of fighting a
 * dark background.
 *
 * Palette is lifted from packages/ui-tokens so the site and the product agree on
 * what "GatePass blue" is: brand #3D5AF1, hover #2E46C9, tint #DDE3FD.
 */

:root {
  --brand: #3d5af1;
  --brand-hover: #2e46c9;
  --brand-tint: #dde3fd;
  --brand-soft: #e8ebfd;
  --brand-border: #c5cefb;

  --ink: #0d1220;
  --ink-2: #39415a;
  --ink-3: #6b7490;
  --line: #e4e7f0;
  --bg: #ffffff;
  --bg-2: #f7f9fc;
  --bg-3: #f1f4f8;

  --ok: #0f8a4f;
  --ok-soft: #e7f7ee;
  --warn: #b26a00;
  --warn-soft: #fff5e2;
  --bad: #c0392b;
  --bad-soft: #fdeceb;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 18, 32, 0.06), 0 1px 3px rgba(13, 18, 32, 0.04);
  --shadow: 0 8px 24px -6px rgba(13, 18, 32, 0.12), 0 2px 6px rgba(13, 18, 32, 0.05);
  --shadow-lg: 0 32px 64px -24px rgba(23, 32, 74, 0.28), 0 8px 20px -8px rgba(23, 32, 74, 0.12);

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

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `height: auto` is load-bearing, not tidiness. Every screenshot carries width and
 * height attributes so the browser reserves the right box before the file arrives
 * (no layout shift). Constrain the width without releasing the height and the
 * attribute wins: a 2880x1800 shot in a 438px column reserves 438x1800 instead of
 * 438x274, and the page grows to five times its real length. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand), #6f83ff);
  box-shadow: 0 4px 10px -2px rgba(61, 90, 241, 0.5);
}
.brand .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(61, 90, 241, 0.7);
}
.btn-primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-border); color: var(--brand); background: var(--brand-soft); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -240px 0 auto; height: 720px; z-index: -1;
  background:
    radial-gradient(720px 340px at 18% 12%, rgba(61, 90, 241, 0.13), transparent 62%),
    radial-gradient(620px 320px at 82% 4%, rgba(111, 131, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 78%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--brand-border); color: var(--brand);
  border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 0 20px; font-weight: 800; max-width: 15ch;
}
h1 .grad {
  background: linear-gradient(115deg, var(--brand), #7c8dff 55%, #9aa8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 2.1vw, 20.5px); color: var(--ink-2); max-width: 60ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }

.hero-shot {
  margin-top: 56px; position: relative;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden; background: #fff;
}
.hero-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); border-radius: var(--radius-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7dce6; display: block; }
.browser-bar .url {
  margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px;
  /* Truncate rather than push past the frame edge on a narrow screen. */
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 460px) { .browser-bar .url { display: none; } }

/* ---------- stat strip ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); margin-top: 84px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: 34px; }
.stat b { display: block; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- generic section ---------- */
section { padding: 92px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 12px;
}
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.14; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 750; }
h3 { font-size: 19px; letter-spacing: -0.015em; margin: 0 0 8px; font-weight: 650; }
.section-head p { color: var(--ink-2); font-size: 17.5px; margin: 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- escalation ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.rung {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.rung .t {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 4px 11px; display: inline-block; margin-bottom: 14px;
}
.rung h3 { display: flex; align-items: center; gap: 9px; }
.rung p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.rung::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--brand-border), transparent);
}
.rung:last-child::after { display: none; }
@media (max-width: 860px) {
  .ladder { grid-template-columns: 1fr; }
  .rung::after { display: none; }
}
.ladder-foot {
  margin-top: 20px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--ok-soft); border: 1px solid rgba(15, 138, 79, 0.2); color: #0b6b3d;
  font-size: 15.5px; display: flex; gap: 10px; align-items: flex-start;
}

/* ---------- feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-border); }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.icon svg { width: 21px; height: 21px; }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip .split-media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.flip .split-media { order: 0; }
}
.split-media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }

/* ---------- phones ---------- */
.phones { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.phone {
  width: 268px; border-radius: 34px; padding: 10px; background: #10142a;
  box-shadow: var(--shadow-lg); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); z-index: 2;
}
.phone img { border-radius: 26px; }
.phone-cap { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* ---------- compliance ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 15px; font-size: 14px; font-weight: 550; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.pill b { color: var(--ink); font-weight: 650; }

/* ---------- cta ---------- */
.cta-band {
  background: linear-gradient(140deg, #1b2350, var(--brand) 58%, #6f83ff);
  color: #fff; border-radius: var(--radius-lg); padding: 60px 48px; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.86); max-width: 52ch; margin: 0 auto 28px; font-size: 17.5px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4); }
.cta-band .btn-primary:hover { background: #f2f4ff; color: var(--brand-hover); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
@media (max-width: 620px) { .cta-band { padding: 44px 24px; } }

/* ---------- faq ---------- */
details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 0 20px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
details[open] { border-color: var(--brand-border); }
summary {
  cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16.5px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--brand); flex: none; line-height: 1;
}
details[open] summary::after { content: "\2013"; }
details p { margin: 0 0 20px; color: var(--ink-2); font-size: 16px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 14px; font-weight: 650; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a { color: var(--ink-2); font-size: 15px; }
footer a:hover { color: var(--brand); }
.foot-note {
  margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 14px;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
