/* EscapeLog — emergency lighting test records for escape rooms.
   Visual world: fire-safety signage. Exit-sign green carries every action;
   signal red is reserved for a gap on the record; the one dark, lit panel is
   the record itself under an emergency light. */

:root {
  --ground: #f6f7f5;
  --paper: #ffffff;
  --ink: #111614;
  --ink-2: #3d4743;
  --muted: #5d6863;
  --rule: #dde2de;
  --exit: #0b7a45;
  --exit-deep: #08613a;
  --exit-tint: #e5f2ea;
  --signal: #b3261e;
  --signal-tint: #fbeceb;
  --room: #0d1311;
  --beam: #fff1c9;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 72rem;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--exit-deep); }
:focus-visible { outline: 3px solid var(--exit); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 50;
  background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px;
}
.skip:focus { left: 0.75rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0; }

.eyebrow {
  font: 600 0.8rem/1 var(--body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--exit-deep); margin-bottom: 0.9rem;
}

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 3.1rem; padding: 0.75rem 1.35rem;
  background: var(--exit); color: #fff; border-radius: 8px;
  font: 700 1.05rem/1.1 var(--body); text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 18px -8px rgba(11,122,69,.55);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--exit-deep); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn--block { width: 100%; }
.link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---- nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,247,245,.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.mark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 800 1.45rem/1 var(--display); color: var(--ink); text-decoration: none;
  letter-spacing: 0.01em;
}
.mark__badge {
  display: inline-grid; place-items: center;
  width: 2rem; height: 1.45rem; border-radius: 4px;
  background: var(--exit); color: #fff;
  font: 800 0.9rem/1 var(--display); letter-spacing: 0.06em;
  box-shadow: 0 0 0 2px var(--exit-tint);
}
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav__links a:hover { color: var(--exit-deep); }
@media (max-width: 760px) { .nav__links { display: none; } .nav__in .btn { margin-left: auto; } }

/* ---- hero ------------------------------------------------------------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(2.5rem, 5vw, 4.5rem);
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 1.25rem; max-width: 15ch; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2rem 0 0.9rem; }
.fine { font-size: 0.93rem; color: var(--muted); }

.hero__shot {
  position: relative; margin: 0;
  background: radial-gradient(120% 90% at 50% 0%, #1f2a26 0%, var(--room) 62%);
  border-radius: 16px; padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) 1rem;
  overflow: hidden; isolation: isolate;
}
.beam {
  position: absolute; inset: -30% 10% auto; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,241,201,.55), rgba(255,241,201,0));
  filter: blur(6px);
}
.hero__shot::before {
  content: ""; position: absolute; top: 0.85rem; left: 50%; translate: -50% 0;
  width: 4.5rem; height: 0.55rem; border-radius: 3px;
  background: var(--beam); box-shadow: 0 0 22px 6px rgba(255,241,201,.55);
}
.hero__shot img {
  width: 100%; border-radius: 4px; margin-top: 0.9rem;
  transform: rotate(-1.2deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
  aspect-ratio: 1300 / 1682; object-fit: cover; object-position: top;
  max-height: 34rem;
}
.hero__shot figcaption { color: #a9b5b0; font-size: 0.82rem; text-align: center; margin-top: 0.9rem; }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: 18ch; }
  .hero__shot img { max-height: 26rem; }
}

/* ---- the duty --------------------------------------------------------- */
.duty {
  background: var(--ink); color: #eef2ef;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.25rem;
}
.duty > * { max-width: calc(var(--wrap) - 2.5rem); margin-left: auto; margin-right: auto; }
.duty__h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #fff; margin-bottom: 1.6rem; }
.duty__list {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #2a3430; border: 1px solid #2a3430; border-radius: var(--radius); overflow: hidden;
}
.duty__list li { background: var(--ink); padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.duty__when { font: 700 1.5rem/1 var(--display); color: #6fd19b; letter-spacing: 0.02em; text-transform: uppercase; }
.duty__what { color: #d6ddd9; }
.duty__note { margin-top: 1.3rem; color: #a9b5b0; }
@media (max-width: 760px) { .duty__list { grid-template-columns: 1fr; } }

/* ---- sections --------------------------------------------------------- */
.how, .record, .pricing, .faq {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.25rem 0;
}
.section-head { margin-bottom: 2.25rem; max-width: 42rem; }

.how__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.6rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 1.3rem/1 var(--display); color: var(--exit-deep);
  background: var(--exit-tint); border: 1.5px solid var(--exit);
}
.steps h3 { margin: 0.3rem 0 0.35rem; }
.steps p { color: var(--ink-2); }
@media (max-width: 880px) { .how__grid { grid-template-columns: 1fr; } }

/* The logging page, drawn to match the real one on a phone. */
.phone {
  justify-self: center; width: min(100%, 20rem);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 26px;
  padding: 1rem 1rem 1.2rem; box-shadow: 0 30px 50px -30px rgba(17,22,20,.45);
  outline: 8px solid #e8ece9;
}
.phone__bar { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 0.2rem 0.3rem 0.8rem; }
.phone__room { border: 1px solid var(--rule); border-radius: 12px; padding: 0.8rem; margin-bottom: 0.7rem; }
.phone__room--dim { opacity: 0.72; }
.phone__name { font-weight: 700; margin-bottom: 0.55rem; }
.phone__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.phone__fields div { display: flex; flex-direction: column; gap: 0.15rem; }
.phone__lbl { font-size: 0.72rem; color: var(--muted); }
.phone__val { font-size: 0.86rem; background: var(--ground); border: 1px solid var(--rule); border-radius: 6px; padding: 0.3rem 0.45rem; }
.phone__val--pass { color: var(--exit-deep); font-weight: 700; }
.phone__val--empty { color: #9aa39f; }
.phone__btn { display: block; text-align: center; background: var(--exit); color: #fff; border-radius: 8px; padding: 0.6rem; font-weight: 700; font-size: 0.9rem; }

.record__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.record__copy { display: grid; gap: 1rem; color: var(--ink-2); max-width: 36rem; }
.ticks { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.55rem; }
.ticks li { padding-left: 1.7rem; position: relative; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.35rem;
  width: 0.9rem; height: 0.5rem; border-left: 2.5px solid var(--exit); border-bottom: 2.5px solid var(--exit);
  transform: rotate(-45deg);
}
.record__table { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; overflow-x: auto; }
.record__table table { width: 100%; border-collapse: collapse; font: 400 0.9rem/1.4 var(--mono); min-width: 30rem; }
.record__table th { text-align: left; font: 600 0.72rem/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 0.6rem 0.55rem 0; border-bottom: 1.5px solid var(--ink); }
.record__table td { padding: 0.65rem 0.6rem 0.65rem 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.record__table td:first-child { font-family: var(--body); font-weight: 600; }
.record__table .ok { color: var(--exit-deep); font-weight: 500; }
.record__table .warn { color: var(--signal); font-weight: 500; }
.record__table tr.gap td { background: var(--signal-tint); color: var(--signal); }
.record__table tr.gap td:first-child { color: var(--ink); padding-left: 0.5rem; }
.record__cap { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 880px) { .record__grid { grid-template-columns: 1fr; } }

/* ---- pricing + free sheet -------------------------------------------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.plan {
  background: var(--paper); border: 2px solid var(--exit); border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem;
  box-shadow: 0 24px 50px -32px rgba(11,122,69,.5);
}
.plan .eyebrow { margin-bottom: 0; }
.plan__price { font-size: clamp(3rem, 6vw, 4rem); font-weight: 800; }
.plan__price span { font-size: 0.42em; font-weight: 700; color: var(--muted); margin-left: 0.2rem; }
.plan__per { color: var(--ink-2); }
.plan .btn { margin-top: 0.5rem; }
.magnet { display: grid; gap: 0.9rem; padding: clamp(0.5rem, 2vw, 1rem) 0; }
.magnet h3 { font-size: 1.8rem; }
.magnet p { color: var(--ink-2); }
.magnet img { width: min(100%, 15rem); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 16px 30px -22px rgba(17,22,20,.5); transform: rotate(1deg); }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 50rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.faq h2 { margin-bottom: 1.5rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 50%; translate: 0 -50%;
  font: 700 1.6rem/1 var(--display); color: var(--exit);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 44rem; }

/* ---- footer ----------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--rule); background: var(--paper);
  padding: 2rem 1.25rem 1rem; text-align: center;
}
.foot__mark { display: inline-flex; align-items: center; gap: 0.5rem; font: 800 1.2rem/1 var(--display); }
.foot__fine { margin: 0.8rem auto 0; max-width: 44rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) {
  .record__table table { min-width: 0; font-size: 0.82rem; }
  .record__table th:nth-child(4), .record__table td:nth-child(4) { display: none; }
}
