/* Guardryn public site, in the owner's brand (Ink, Bone and Signal; the checkpoint G; Space
   Grotesk and Inter). Quiet and plain on purpose: few boxes, few labels, one product picture.
   The accent is kept for the one thing to do (the waitlist button) and for verdicts.
   Phone first: one column until there is room for more. No inline styles: the CSP allows none. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c0f0e;
  --band: #101312;
  --panel: #141817;
  --rule: #1f2523;
  --edge: #2a302e;
  --edge-strong: #3a413e;
  --bone: #eceae3;
  --body: #b9beb9;
  --label: #8e9692;
  --signal: #c6f24e;
  --allow: #9ccbff;
  --deny: #ffb98a;
  --slow: #f2c94c;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--bone);
  text-decoration: none;
}
a:hover {
  color: var(--signal);
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--signal);
  color: var(--ink);
}
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--signal);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 11vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(23px, 4.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Header and footer */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.03em;
}
.nav {
  display: none;
  gap: 32px;
  font-size: 15px;
  color: var(--body);
}
.nav a {
  color: var(--body);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav a:hover {
  color: var(--bone);
}
/* The menu: a <details> element, so it opens without JavaScript; nav.js closes it on Escape, on
   a tap outside and after a link is followed. */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink);
}
.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--bone);
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu > summary:hover {
  color: var(--signal);
}
.menu > summary svg {
  width: 24px;
  height: 24px;
}
.menu .i-close,
.menu[open] .i-open {
  display: none;
}
.menu[open] .i-close {
  display: block;
}
.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  background: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.menu-panel nav {
  display: flex;
  flex-direction: column;
  max-width: 1160px;
  margin: 0 auto;
  padding-block: 12px 28px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.menu-label {
  font-size: 14px;
  color: var(--label);
  padding-block: 12px 4px;
}
.menu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.menu-item strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.menu-item span {
  font-size: 14px;
  color: var(--label);
}
.menu-item:hover {
  color: var(--signal);
}
.menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  color: var(--body);
  overflow-wrap: anywhere;
}
.menu-links {
  display: flex;
  flex-direction: column;
  padding-block: 10px 18px;
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel {
    animation: menu-in 220ms ease-out;
  }
  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bone);
}
.more-link span {
  color: var(--signal);
  transition: transform 160ms ease;
}
.more-link:hover span {
  transform: translateX(3px);
}

/* Product pages */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-block: 56px 64px;
  max-width: 820px;
  align-items: flex-start;
}
.answers {
  display: grid;
  gap: 0;
  margin-top: 36px;
}
.answers div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
}
.answers dt {
  font-family: var(--mono);
  font-size: 15px;
}
.answers dd {
  margin: 0;
  color: var(--body);
}
.a-allow {
  color: var(--allow);
}
.a-step {
  color: var(--signal);
}
.a-slow {
  color: var(--slow);
}
.a-deny {
  color: var(--deny);
}
.more {
  margin-top: 36px;
  font-size: 16px;
  color: var(--body);
}
.more a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--label);
  font-size: 14px;
}
.site-footer .wrap {
  flex-wrap: wrap;
  padding-block: 24px max(24px, env(safe-area-inset-bottom, 0px));
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.site-footer a {
  color: var(--label);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:hover {
  color: var(--bone);
}

/* Buttons and the waitlist form */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--signal);
  color: var(--ink);
  white-space: nowrap;
}
.button:hover {
  color: var(--ink);
  background: #d4fb6a;
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.button.small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.join {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
.field-label {
  font-size: 15px;
  font-weight: 600;
}
.join-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.join input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--bone);
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  border-radius: 10px;
}
.join input[type="email"]::placeholder {
  color: var(--label);
}
.join input[type="email"]:focus {
  border-color: var(--signal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.22);
}
.fine {
  font-size: 14px;
  color: var(--label);
}
.fine a {
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.result {
  font-size: 15px;
  min-height: 1.6em;
}
.result.ok {
  color: var(--signal);
}
.result.error {
  color: var(--deny);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
a.inline {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
a.inline:hover {
  color: var(--signal);
}

/* Hero */
.hero-grid {
  display: grid;
  gap: 48px;
  padding-block: 48px 64px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--signal);
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 33em;
}
.hero-copy .join {
  margin-top: 8px;
}

/* The product picture: the one call a developer adds, in the guard's real names */
.code {
  margin: 0;
  min-width: 0;
  background: #0f1312;
  border: 1px solid var(--edge);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--edge);
  background: var(--panel);
  font-size: 13px;
}
.code-file {
  font-family: var(--mono);
  color: var(--bone);
}
.code-lang {
  color: var(--label);
}
.code-body {
  margin: 0;
  padding-block: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--bone);
}
.code-body code {
  display: block;
  min-width: max-content;
  font: inherit;
}
.code-body .ln {
  display: block;
  white-space: pre;
  padding-inline: 18px;
  box-shadow: inset 2px 0 0 transparent;
  transition:
    background-color 260ms ease,
    box-shadow 260ms ease;
}
/* The answer the panel is pointing at (motion.js moves it through the four in turn). */
.code-body .ln.on {
  background: rgba(198, 242, 78, 0.07);
  box-shadow: inset 2px 0 0 var(--signal);
}
.code-body .c {
  color: var(--label);
}
.code-body .k {
  color: var(--deny);
}
.code-body .s {
  color: var(--signal);
}
.code-body .f {
  color: var(--allow);
}
.code-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--edge);
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

/* Sections */
.section {
  padding-block: 72px;
}
.section.alt {
  background: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--body);
  max-width: 40em;
}

/* Products: two columns of plain text, divided by rules */
.products {
  display: grid;
  gap: 40px;
  margin-top: 44px;
}
/* Dividing lines are drawn by ::before so motion.js can draw them across (--draw 0 to 1). */
.product,
.promises div {
  position: relative;
}
.product::before,
.promises div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--edge-strong);
  transform: scaleX(var(--draw, 1));
  transform-origin: left center;
}
.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  min-width: 0;
}
.product > p {
  color: var(--body);
}
.status {
  font-size: 14px;
  font-weight: 600;
  color: var(--label);
}
.status.first {
  color: var(--signal);
}
.facts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 15px;
  color: var(--body);
}
.facts li {
  padding-block: 10px;
  border-top: 1px solid var(--rule);
}

/* Two-column sections */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.split-copy p {
  color: var(--body);
  max-width: 34em;
}

/* The check, drawn as a visitor would see it on a customer's site */
.stage {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1a201e, #121614);
  border: 1px solid var(--edge);
}
.widget {
  width: 100%;
  max-width: 280px;
  background: #ffffff;
  color: #1a1d23;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.w-title {
  font-weight: 600;
  font-size: 16px;
}
.w-help {
  font-size: 13px;
  color: #4b5260;
}
.ring {
  width: 78px;
  height: 78px;
}
.w-other {
  font-size: 13px;
  color: #4b5260;
  text-decoration: underline;
}

/* Steps: a real sequence, so numbered */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  min-width: 0;
}
/* The number is placed beside the text, never as a grid cell: the text is a run of inline content
   (a bold lead-in, then plain words), and a grid would make each piece its own narrow cell. */
.steps li {
  counter-increment: step;
  position: relative;
  padding-block: 16px;
  padding-left: 44px;
  border-top: 1px solid var(--rule);
  color: var(--body);
}
.steps li:first-child {
  border-top: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--label);
}
.steps strong {
  color: var(--bone);
  font-weight: 600;
}

/* Privacy promises */
.promises {
  display: grid;
  gap: 28px;
  margin: 40px 0 0;
}
.promises div {
  padding-top: 18px;
}
.promises dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
}
.promises dd {
  margin: 8px 0 0;
  color: var(--body);
}

.final .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.final {
  padding-block: 80px 96px;
}

/* Plain pages (privacy, answers, 404) */
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--signal);
}
.page {
  padding-block: 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}
.page h1 {
  font-size: clamp(36px, 8vw, 54px);
}
.page h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin-top: 16px;
}
.page p,
.page li {
  color: var(--body);
}
.page ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page a.button {
  color: var(--ink);
  text-decoration: none;
}

/* Wider screens */
@media (min-width: 560px) {
  .join-row {
    flex-direction: row;
  }
  .join-row input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
  }
  .code-body {
    font-size: 14px;
    padding-block: 22px;
  }
  .code-body .ln {
    padding-inline: 22px;
  }
}
@media (min-width: 1040px) {
  .nav {
    display: flex;
  }
  .menu {
    display: none;
  }
}
@media (min-width: 900px) {
  .answers div {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding-block: 96px 104px;
  }
  .section {
    padding-block: 104px;
  }
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
  .promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* All motion lives in motion.js (GSAP and ScrollTrigger, served from this site). Without it, or
   with reduced motion asked for, the page is complete and still. */
