/*
 * Doorman marketing site.
 *
 * THE DIRECTION, AND THE DEFAULT IT REFUSES. Security software converges on one
 * look: near-black plus a single acid-green accent. It is the default, not a
 * choice, and it says nothing about this product.
 *
 * A doorman does not raise a wall. He stands at a lit threshold with a ledger
 * and decides one guest at a time. So: midnight for the street, brass for the
 * lamp above the door and the braid on the uniform, paper for the ledger.
 * Vermilion exists and is spent only on a refusal - if red appears anywhere
 * else on this site, it has been wasted.
 *
 * Fraunces carries the display, with its optical-size and soft axes turned up:
 * it has the weight of a hand-painted door number rather than a SaaS headline.
 * Public Sans keeps the body plain. JetBrains Mono is not decoration - every
 * IP, country code and timestamp on this site is data, and data is set in mono.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800&family=Public+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --ink:      #0E1420;
  --ink-2:    #161E2E;
  --ink-3:    #1F293B;
  --brass:    #C89B3C;
  --brass-lo: #8A6A24;
  --paper:    #F2EFE6;
  --paper-2:  #E4DFD1;
  --refuse:   #C4503E;
  --admit:    #4E8C6A;
  --text:     #E8E6E0;
  --text-dim: #9AA3B2;
  --rule:     rgba(232, 230, 224, 0.12);

  --display: 'Fraunces', Georgia, serif;
  --body:    'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --gut: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The lamp. A single warm pool of light at the top of the page, because the
   whole metaphor is a lit doorway on a dark street. Used once. */
body::before {
  content: '';
  position: fixed;
  top: -340px; left: 50%;
  width: 900px; height: 700px;
  margin-left: -450px;
  background: radial-gradient(ellipse at center, rgba(200, 155, 60, .16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- type ---- */

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-variation-settings: 'SOFT' 30, 'opsz' 120; }
h2 { font-size: clamp(28px, 3.8vw, 42px); font-variation-settings: 'SOFT' 20, 'opsz' 80; }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-dim); max-width: 56ch; }

/* An eyebrow here always names the LAYER a section describes, because the
   product genuinely is three layers acting at three different moments. It
   encodes the structure rather than dressing it. */
.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}

/* -------------------------------------------------------------- header ---- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(14, 20, 32, .78);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.mark { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.mark svg { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .site-nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 15px/1 var(--body);
  padding: 13px 22px; border-radius: 3px;
  border: 1px solid var(--brass);
  background: var(--brass); color: #14100A;
  text-decoration: none; cursor: pointer;
  transition: background .16s, border-color .16s;
}
.btn:hover { background: #D9AC4C; border-color: #D9AC4C; }
.btn.ghost { background: transparent; color: var(--brass); }
.btn.ghost:hover { background: rgba(200, 155, 60, .1); }
.btn.sm { padding: 9px 16px; font-size: 14px; }

/* ---------------------------------------------------------------- hero ---- */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 66px); align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 .brass { color: var(--brass); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero .fineprint { font: 400 14px/1.5 var(--body); color: var(--text-dim); margin: 16px 0 0; }

/* ------------------------------------------------------------- ledger ----- */
/*
 * THE SIGNATURE. The product's one real differentiator is that you can watch a
 * rule decide before it is allowed to decide for real. Explaining that costs a
 * paragraph nobody reads. The toggle below re-stamps every row in place, so the
 * difference between "turned away" and "would have been turned away" is
 * something you do rather than something you are told.
 */

.ledger {
  background: var(--paper);
  color: #2A2620;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
  font-family: var(--mono);
}
.ledger-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid rgba(42, 38, 32, .16);
}
.ledger-title { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #5A5245; }

/* The switch is the point of the whole component, so it reads as a physical
   control rather than a checkbox with a label. */
.sim-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.sim-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.sim-toggle .track {
  width: 38px; height: 21px; border-radius: 12px;
  background: #C3BBA9; position: relative; transition: background .18s;
  flex: none;
}
.sim-toggle .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.sim-toggle input:checked + .track { background: var(--brass-lo); }
.sim-toggle input:checked + .track::after { transform: translateX(17px); }
.sim-toggle input:focus-visible + .track { outline: 2px solid var(--brass-lo); outline-offset: 2px; }
.sim-toggle .lbl { font: 600 12px/1 var(--mono); color: #5A5245; letter-spacing: .04em; }

.ledger table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger th {
  text-align: left; font: 600 10.5px/1 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: #8A8172;
  padding: 12px 14px 8px; border-bottom: 1px solid rgba(42, 38, 32, .14);
}
.ledger td { padding: 10px 14px; border-bottom: 1px solid rgba(42, 38, 32, .07); white-space: nowrap; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .t { color: #8A8172; }
.ledger .ip { color: #4A443A; }

/* Stamp: filled when a rule is live, outlined when it is only watching. Same
   row, same reason, different consequence. That is the whole idea. */
.stamp {
  display: inline-block; padding: 3px 9px; border-radius: 2px;
  font: 600 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent;
}
.stamp.refuse { background: var(--refuse); color: #FFF3F0; }
.stamp.admit  { background: transparent; color: var(--admit); border-color: rgba(78, 140, 106, .45); }

.sim-on .stamp.refuse { background: transparent; color: var(--refuse); border-color: rgba(196, 80, 62, .5); }

.ledger-foot {
  padding: 12px 18px; background: var(--paper-2);
  border-top: 1px solid rgba(42, 38, 32, .16);
  font: 400 12px/1.5 var(--body); color: #5A5245;
}
.ledger-foot b { color: #2A2620; }

@media (max-width: 520px) {
  .ledger td, .ledger th { padding-left: 10px; padding-right: 10px; }
  .ledger .hide-sm { display: none; }
}

/* ------------------------------------------------------------ sections ---- */

section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-rule { border-top: 1px solid var(--rule); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--text-dim); margin-bottom: 0; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 26px 24px;
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 0; }

/* The three layers are a sequence in TIME - browse, then checkout, then the
   order - so they are the one place on this site where numbering is honest. */
.layer { display: grid; grid-template-columns: 68px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--rule); }
.layer:last-child { border-bottom: 1px solid var(--rule); }
.layer-n { font: 800 40px/1 var(--display); color: var(--brass-lo); font-variation-settings: 'SOFT' 0, 'opsz' 90; }
.layer h3 { margin-bottom: 8px; }
.layer p { color: var(--text-dim); margin-bottom: 0; max-width: 62ch; }
.layer .when { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 10px; }
@media (max-width: 620px) { .layer { grid-template-columns: 1fr; gap: 10px; } .layer-n { font-size: 30px; } }

/* -------------------------------------------------------------- pricing --- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 4px; padding: 28px 26px; }
.plan.feature { border-color: rgba(200, 155, 60, .5); background: var(--ink-3); }
.plan-name { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 40px; margin: 14px 0 2px; font-variation-settings: 'SOFT' 20; }
.plan-price small { font: 400 15px/1 var(--body); color: var(--text-dim); }
.plan-year { font: 400 13.5px/1.5 var(--body); color: var(--text-dim); margin: 0 0 18px; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; font-size: 15px; }
.plan li { padding: 7px 0 7px 24px; position: relative; color: var(--text-dim); border-top: 1px solid var(--rule); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: '+'; position: absolute; left: 4px; top: 7px; color: var(--brass-lo); font-family: var(--mono); font-weight: 600; }
.plan .btn { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------ faq --- */

.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 18px;
  font: 400 26px/1 var(--mono); color: var(--brass); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--text-dim); padding: 0 40px 22px 0; max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- limits --- */
/*
 * A section that states what the product cannot do, on the marketing site.
 * It is here because four apps in this category have one-star reviews naming a
 * promise that turned out to be false, and because every line below is
 * verified. It is set quieter than the rest, not louder: this is disclosure,
 * not an apology, and it should read as confidence.
 */
.limits { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(24px, 3vw, 34px); }
.limits h3 { font-family: var(--body); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.limits dl { margin: 0; }
.limits dt { font-family: var(--mono); font-size: 13px; color: var(--text); margin-top: 18px; }
.limits dt:first-child { margin-top: 0; }
.limits dd { margin: 5px 0 0; color: var(--text-dim); font-size: 15px; max-width: 70ch; }

/* ----------------------------------------------------------------- cta ---- */

.final { text-align: center; padding: clamp(64px, 9vw, 108px) 0; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--text-dim); max-width: 48ch; margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* -------------------------------------------------------------- footer ---- */

.site-foot { border-top: 1px solid var(--rule); padding: 44px 0 56px; font-size: 14.5px; color: var(--text-dim); }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 700px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot h4 { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: var(--text-dim); text-decoration: none; }
.site-foot a:hover { color: var(--brass); }
.site-foot .legal { border-top: 1px solid var(--rule); padding-top: 24px; font-size: 13.5px; }

/* -------------------------------------------------------------- prose ----- */
/* Shared by the FAQ, contact and any article page. */
.prose { max-width: 68ch; }
.prose h2 { margin: 44px 0 14px; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose code { font: 400 .9em var(--mono); background: var(--ink-2); padding: 2px 6px; border-radius: 3px; color: var(--text); }

/* ------------------------------------------------------- legal pages ----- */
/* A legal document is read differently from a landing page: in one pass, top to
   bottom, often on a phone, sometimes by a reviewer looking for one clause. So
   it gets a first-level heading, a lead paragraph, and tables that survive a
   narrow screen. Nothing else about it is special. */
.legal-doc h1 { font-size: clamp(30px, 4.4vw, 42px); margin: 0 0 18px; letter-spacing: -1px; }
.legal-doc .lede { font-size: 19px; line-height: 1.6; color: var(--text); margin-bottom: 10px; }
.legal-doc em { color: var(--text-dim); font-size: 14px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--text-dim); }
.legal-doc th { color: var(--text); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.legal-doc td strong { color: var(--text); }
/* A table cannot be allowed to widen the page on a phone; it scrolls inside
   itself instead. */
@media (max-width: 640px) {
  .legal-doc table { display: block; overflow-x: auto; white-space: nowrap; }
  .legal-doc td { white-space: normal; min-width: 150px; }
}

/* ------------------------------------------------------------- film ----- */
/* Facade cliquable. Le bouton EST l'affiche : un seul element focalisable,
   donc une seule tabulation, et le lecteur d'ecran annonce la duree. */
.film-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer;
  background: none; display: block; width: 100%; height: 100%; }
.film-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brass); color: var(--ink);
  box-shadow: 0 12px 40px -8px rgba(200,155,60,.7); transition: transform .18s ease; }
.film-btn svg { width: 40px; height: 40px; margin-left: 4px; }
.film-play:hover .film-btn { transform: translate(-50%,-50%) scale(1.07); }
.film-play:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.film-note { margin-top: 12px; font-size: 13.5px; color: var(--text-dim); text-align: center; }
@media (prefers-reduced-motion: reduce) { .film-btn { transition: none; } }
