/* =========================================================
   J&L InfoSecurity — styles
   Minimal black and white
   ========================================================= */

:root {
  --black: #000000;
  --ink: #1d1d1f;
  --grey-text: #6e6e73;
  --grey-light: #86868b;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-grey: #f5f5f7;
  --error: #c4141e;

  --wrap: 980px;
  --gutter: 22px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }

.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-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
  text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px; text-decoration: none; color: var(--ink);
  opacity: 0.8; transition: opacity .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta {
  opacity: 1;
  background: var(--ink); color: #fff;
  padding: 5px 13px; border-radius: 980px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; width: 17px; height: 1.5px;
  background: var(--ink); transform: translateX(-50%);
  transition: transform .25s ease, background .25s ease;
}
.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before { content: ""; top: -5px; }
.nav-toggle-bar::after { content: ""; top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-5px) rotate(-45deg); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font: 400 17px/1.2 var(--font);
  letter-spacing: -0.022em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3a3c; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8e8ed; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-full { width: 100%; padding: 15px 24px; }

.link-arrow {
  font-size: 17px; text-decoration: none; color: var(--ink);
}
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
.kicker {
  font-size: 17px; font-weight: 600; color: var(--grey-text);
  margin-bottom: 8px;
}
.kicker-light { color: var(--grey-light); }

.headline {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
}
.subhead {
  font-size: clamp(19px, 2.2vw, 21px);
  line-height: 1.38;
  color: var(--grey-text);
  text-align: center;
  margin: 14px auto 0;
  max-width: 640px;
}
.subhead-light { color: var(--grey-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(72vh, 520px);
  min-height: max(72svh, 520px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 96px var(--gutter) 104px;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); will-change: transform, opacity;
}

/* ---------- Hero intro film ---------- */
.hero-film {
  position: absolute; inset: 0; z-index: 1;
  display: none;
  background: #000;
  transition: opacity .8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero.has-film .hero-film { display: block; }
.hero.has-film:not(.is-done) .hero-inner { visibility: hidden; }
.hero.is-done .hero-film { opacity: 0; pointer-events: none; }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 70%);
}

.film-caption {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 var(--gutter);
  color: #fff; text-align: center;
  font-size: clamp(44px, 8.5vw, 104px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.045em;
  pointer-events: none;
}
/* Each caption sits behind a mask and slides through it like a ticker:
   in from below, out through the top. Transform only, so it stays smooth
   over the playing video. */
.caption-mask { display: block; overflow: hidden; padding: 0.06em 0 0.16em; }
.caption-inner {
  display: block;
  transform: translate3d(0, 115%, 0);
  transition: none;
}
.film-caption.is-on .caption-inner,
.film-caption.is-out .caption-inner {
  transition: transform .6s cubic-bezier(0.65, 0, 0.35, 1);
}
.film-caption.is-on .caption-inner { transform: translate3d(0, 0, 0); }
.film-caption.is-out .caption-inner { transform: translate3d(0, -115%, 0); }

.film-control {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  font: 500 13px/1 var(--font); letter-spacing: -0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 8px 15px; border-radius: 980px;
  cursor: pointer;
  transition: background .2s ease, color .3s ease, border-color .3s ease;
}
.film-control:hover { background: rgba(255, 255, 255, 0.26); }
.hero.is-done .film-control {
  color: var(--grey-text);
  background: transparent;
  border-color: var(--line);
}
.hero.is-done .film-control:hover { color: var(--ink); border-color: var(--ink); }
.hero.is-done .film-control::before { content: "↻ "; }
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero-sub {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--grey-text);
  margin: 20px auto 0;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 28px; margin-top: 36px;
}

/* Title on the left, example booking card on the right */
.hero-split {
  width: 100%;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  text-align: left;
}
.hero-split .hero-sub { margin-left: 0; }
.hero-split .hero-actions { justify-content: flex-start; margin-top: 32px; }
.hero-explain {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--grey-text);
  max-width: 470px;
  margin-top: 16px;
}

.tester-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.tester-card-top { display: flex; align-items: center; gap: 14px; }
.tester-avatar {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-grey);
  display: block;
  object-fit: cover;          /* any photo shape is cropped to the circle */
  object-position: 50% 25%;   /* favour the face, not the chest */
}
.tester-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.tester-check { font-size: 13px; color: var(--grey-text); }
.tester-check { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.tester-shield {
  width: 13px; height: 13px; flex: 0 0 auto;
  fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round;
}
.tester-tags {
  list-style: none; padding: 0; margin: 18px 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tester-tags li {
  font-size: 13px; background: var(--bg-grey);
  border-radius: 980px; padding: 5px 11px;
}
.tester-rows { margin: 0; border-top: 1px solid var(--line); padding-top: 6px; }
.tester-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.tester-rows dt { color: var(--grey-text); }
.tester-rows dd { margin: 0; text-align: right; }
.tester-card .btn { margin-top: 16px; padding: 11px 24px; font-size: 15px; text-align: center; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 44px; }
  .tester-card { justify-self: start; max-width: 420px; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-grey { background: var(--bg-grey); }
.section-dark { background: var(--black); color: #f5f5f7; }
.section-dark .headline { color: #f5f5f7; }
.section-dark .btn { margin-top: 36px; }

/* Value tiles */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 60px;
}
.tile {
  background: #fff;
  border-radius: 18px;
  padding: 36px 30px 40px;
}
.tile h3 {
  font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.tile p { color: var(--grey-text); font-size: 17px; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink);
  font-size: 17px; font-weight: 600;
  margin-bottom: 18px;
}
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--grey-text); max-width: 260px; margin: 0 auto; }

/* Verification facts */
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; margin-top: 64px;
  border-top: 1px solid var(--line);
}
.fact {
  padding: 32px 32px 34px 0;
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(even) { padding: 32px 0 34px 32px; border-left: 1px solid var(--line); }
.fact h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.fact p { color: var(--grey-text); }

/* ---------- FAQ ---------- */
.faq { margin-top: 56px; }
.faq-group {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--grey-text);
  margin: 40px 0 8px;
}
.faq-group:first-child { margin-top: 0; }

details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--grey-text); padding: 0 40px 22px 0; }

/* ---------- Closing CTA ---------- */
.cta { padding: 120px 0 130px; }

/* ---------- Register page ---------- */
.register { padding: 80px 0 110px; }
.form-wrap { max-width: 560px; }
.form-wrap .headline,
.form-wrap .subhead { text-align: left; margin-left: 0; }
#register-form { margin-top: 44px; }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #e8e8ed; border: 0; border-radius: 10px;
  padding: 3px; margin: 0 0 32px;
}
.segmented label {
  text-align: center; padding: 9px; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background .2s ease, box-shadow .2s ease;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.segmented label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.field { margin-bottom: 22px; }
.field > label,
.field .label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--grey-light); margin-left: 6px; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: 17px/1.3 var(--font);
  letter-spacing: -0.022em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.field .invalid { border-color: var(--error); }

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 980px;
  padding: 8px 16px; font-size: 15px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.options label:has(input:checked) { border-color: var(--ink); background: var(--bg-grey); }
.options input, .check input { accent-color: var(--ink); margin: 0; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--grey-text); cursor: pointer;
}
.check input { margin-top: 3px; flex: 0 0 auto; }

.error { color: var(--error); font-size: 14px; margin-top: 6px; }
.error:empty { display: none; }

.form-status { margin-top: 16px; font-size: 15px; text-align: center; color: var(--grey-text); }
.form-status.bad { color: var(--error); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-grey);
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 12px; color: var(--grey-text);
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 833px) {
  .tiles, .steps { grid-template-columns: 1fr; }
  .tiles { max-width: 480px; margin-left: auto; margin-right: auto; }
  .steps { gap: 44px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(even) { padding: 28px 0; border-left: 0; }
}

@media (max-width: 734px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 48px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    font-size: 17px; opacity: 1; padding: 14px 0;
    border-bottom: 1px solid #e8e8ed;
  }
  .nav-links .nav-cta {
    margin-top: 16px; text-align: center; border-bottom: 0; padding: 12px 0;
  }

  .hero { padding: 72px var(--gutter) 84px; }
  .section { padding: 80px 0; }
  .cta { padding: 88px 0 96px; }
  .register { padding: 56px 0 80px; }
  summary { font-size: 17px; }
}

/* =========================================================
   Motion
   Elements start hidden only when JavaScript is running
   (html.js), so the page is fully readable without it.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
}
html.js [data-reveal="blur"] {
  transform: translate3d(0, 24px, 0) scale(0.97);
  filter: blur(12px);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
html.js [data-delay="1"] { transition-delay: 120ms; }
html.js [data-delay="2"] { transition-delay: 240ms; }
html.js [data-delay="3"] { transition-delay: 360ms; }

/* Navigation gains a hairline once the page scrolls */
.nav { transition: border-color .3s ease, background .3s ease; border-bottom-color: transparent; }
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, 0.08); }

/* Buttons: gentle press */
.btn { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-apple); }
.btn:active { transform: scale(0.97); }

/* Tiles lift slightly on hover */
.tile { transition: transform .5s var(--ease-apple), box-shadow .5s var(--ease-apple); }
@media (hover: hover) {
  .tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.18);
  }
}

/* Step numbers fill in when they appear */
.step-num { transition: background .6s var(--ease-out) .5s, color .6s var(--ease-out) .5s; }
html.js .steps li.is-visible .step-num { background: var(--ink); color: #fff; }

/* Verification rules draw across */
.fact { position: relative; }
html.js .facts { border-top-color: transparent; }
html.js .fact::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out) .2s;
}
html.js .fact.is-visible::before { transform: scaleX(1); }

/* FAQ answers ease in */
details[open] p { animation: faq-in .45s var(--ease-out); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero-inner { transform: none !important; opacity: 1 !important; }
}
