/* Layout: the page is the security services agreement the manager is about to sign. The argument sits on the left;
   the contract page, with the Accountaguard clause tracked in, is the one loud object. Below it: how the proof is made,
   Exhibit B (the patrol record), the insurance case, and a sign-up sheet that opens Stripe checkout.
   Archivo is the site's own voice; Libre Caslon sets anything that is a document. Red is the redline:
   it marks only what changed or what is missing. One light, paper world on purpose. */
:root {
  --paper: #ffffff;
  --desk: #eceff2;
  --ink: #000000;
  --graphite: #59626e;
  --rule: #cfd5dc;
  --redline: #c8102e;
  --redline-wash: #fcecee;
  --shadow: rgba(18, 28, 42, 0.32);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.5rem;
  --t-xl: clamp(1.875rem, 1.3rem + 2.2vw, 2.625rem);

  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--sans);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ol, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Buttons say exactly what they do. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 3px;
  font: 600 var(--t-base)/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.wordmark {
  font: 850 1.375rem/1 var(--sans); font-variation-settings: "wdth" 125;
  letter-spacing: -0.01em; text-decoration: none;
}
.masthead nav { display: flex; align-items: center; gap: 28px; }
.masthead nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--graphite); }
.masthead nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.masthead .btn { min-height: 42px; padding: 0 16px; font-size: var(--t-sm); }

/* Hero */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(64px, 9vw, 120px); display: grid; gap: clamp(36px, 5vw, 64px); }
.hero h1 {
  font: 800 clamp(2.375rem, calc((100vw - 32px) / 20.5), 3.6rem)/1 var(--sans); font-variation-settings: "wdth" 108;
  letter-spacing: -0.025em;
}
.hero h1 .line { display: block; }
.hero-body { display: grid; gap: clamp(40px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.hero-copy { display: grid; gap: 22px; max-width: 34rem; min-width: 0; }
.lede { font-size: var(--t-md); line-height: 1.45; }
.support { color: var(--graphite); }
.tonight { font-weight: 600; font-size: var(--t-md); line-height: 1.4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font: italic 400 var(--t-sm)/1.5 var(--serif); color: var(--graphite); }

/* The spot: the 30-second film from Claude Design, first thing on the page. Captions are burned in; it starts muted
   because browsers refuse sound without a click, and "Play with sound" restarts it with the narration. */
.spot { padding-top: clamp(4px, 1.5vw, 16px); }
.spot-frame { position: relative; }
.sound-btn {
  position: absolute; z-index: 1; top: clamp(8px, 1.5vw, 16px); right: clamp(8px, 1.5vw, 16px);
  min-height: 40px; padding: 0 14px; font-size: var(--t-sm);
}
.sound-btn[hidden] { display: none; }
.spot-video {
  display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px var(--shadow);
}

/* The film's narration, readable for anyone who can't play sound. */
.transcript { margin-top: 12px; max-width: 70ch; font-size: var(--t-sm); color: var(--graphite); }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.transcript p { margin-top: 8px; font: italic 400 var(--t-base)/1.6 var(--serif); }

/* The contract page: the one loud object on the site. */
.sheet-stack { position: relative; min-width: 0; padding: 0 12px 14px 0; }
.sheet-stack::before, .sheet-stack::after {
  content: ""; position: absolute; border: 1px solid var(--rule); background: var(--paper);
}
.sheet-stack::before { inset: 14px 0 0 12px; }
.sheet-stack::after { inset: 7px 6px 7px 6px; }
.sheet {
  position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -36px var(--shadow);
  padding: clamp(22px, 4vw, 48px) clamp(18px, 4vw, 44px) clamp(18px, 3vw, 28px) clamp(26px, 5vw, 64px);
  font: 400 var(--t-base)/1.7 var(--serif);
}
.sheet-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 22px; border-bottom: 1px solid var(--rule);
  font: 400 var(--t-sm)/1.3 var(--serif); color: var(--graphite);
}
.doc-title { font-variant-caps: all-small-caps; letter-spacing: 0.06em; color: var(--ink); }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 18px; column-gap: 28px; }
.cl { min-width: 0; }
.cl b { font-weight: 700; margin-right: 0.35em; }
.cl.muted { color: var(--graphite); }
.cl.trail { -webkit-mask-image: linear-gradient(#000 20%, transparent 95%); mask-image: linear-gradient(#000 20%, transparent 95%); max-height: 4.4em; overflow: hidden; }
.change { position: relative; }
.change::before {
  /* Word's change bar, in the left margin beside a tracked edit. */
  content: ""; position: absolute; left: clamp(-26px, -2.6vw, -16px); top: 0.25em; bottom: 0.25em; width: 2px; background: var(--redline);
}
ins {
  color: var(--redline); text-decoration: none;
  background-image: linear-gradient(var(--redline), var(--redline));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1.5px;
}
.comment {
  position: relative; align-self: start; min-width: 0;
  border: 1px solid var(--redline); background: var(--redline-wash); border-radius: 3px;
  padding: 10px 12px; font: 400 var(--t-xs)/1.45 var(--sans); color: var(--ink);
}
.comment strong { display: block; font-weight: 700; margin-bottom: 2px; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font: italic 400 var(--t-sm)/1.3 var(--serif); color: var(--graphite); }
.sheet-foot span { display: inline-flex; align-items: flex-end; gap: 8px; }
.sheet-foot span::after { content: ""; width: 4.5rem; border-bottom: 1px solid var(--ink); }

/* How the proof gets made */
.band { padding-block: clamp(72px, 10vw, 128px); }
.band-desk { background: var(--desk); }
.section-title { font: 800 var(--t-xl)/1.05 var(--sans); font-variation-settings: "wdth" 108; letter-spacing: -0.02em; max-width: 22ch; }
.section-intro { margin-top: 18px; max-width: 58ch; font-size: var(--t-md); line-height: 1.5; color: var(--graphite); }
.steps { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: clamp(36px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step > div { display: grid; gap: 8px; min-width: 0; padding-top: 4px; }
.step-n {
  flex: none; font: 200 5.5rem/0.78 var(--sans); font-variation-settings: "wdth" 62;
  color: var(--ink); letter-spacing: -0.02em;
}
.step h3 { font: 700 var(--t-md)/1.2 var(--sans); }
.step p { color: var(--graphite); max-width: 36ch; }

/* Exhibit B: the patrol record */
.exhibit-grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.flag-list { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 18px; max-width: 34rem; }
.flag-list li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--redline); }
.flag-list strong { font-weight: 700; }
.flag-list span { color: var(--graphite); }
.guard-note { margin-top: 28px; max-width: 34rem; color: var(--graphite); }
.exhibit {
  margin: 0; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px var(--shadow);
  padding: clamp(20px, 3.5vw, 40px); min-width: 0; font-family: var(--serif);
}
.exhibit-head { display: grid; gap: 4px; margin-bottom: 26px; }
.exhibit-head .doc-title { font-size: var(--t-md); }
.exhibit-head span { font: italic 400 var(--t-sm)/1.4 var(--serif); color: var(--graphite); }
.exhibit-head span.doc-title { font: 400 var(--t-md)/1.3 var(--serif); font-variant-caps: all-small-caps; color: var(--ink); }
.lanes { display: grid; gap: 14px; }
.lane { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); align-items: center; gap: 14px; }
.lane-name { font: 500 var(--t-sm)/1.25 var(--sans); min-width: 0; }
.track { position: relative; height: 26px; background: var(--desk); }
.tick { position: absolute; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: var(--ink); }
.tick.flag { width: 4px; margin-left: -2px; top: 0; bottom: 0; background: var(--redline); }
.gap {
  position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, var(--redline) 0 1.5px, transparent 1.5px 6px);
  box-shadow: inset 0 0 0 1px var(--redline);
}
.axis { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 14px; margin-top: 10px; }
.axis-marks { position: relative; height: 1.2em; font: 400 var(--t-xs)/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--graphite); }
.axis-marks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.axis-marks span:first-child { transform: none; }
.axis-marks span:last-child { transform: translateX(-100%); }
.findings { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: var(--t-base); line-height: 1.55; }
.findings b { font-weight: 700; }

/* Insurance */
.insurance-grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); }
.insurance-grid .section-intro { color: var(--ink); }
.proofs { list-style: none; padding: 0; display: grid; align-content: start; border-top: 2px solid var(--ink); }
.proofs li { display: grid; gap: 4px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.proofs strong { font: 700 var(--t-md)/1.25 var(--sans); }
.proofs span { color: var(--graphite); }

/* Questions */
.faq { margin-top: clamp(32px, 5vw, 56px); max-width: 52rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding-block: 20px; font: 600 var(--t-md)/1.3 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.75rem/1 var(--sans); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; max-width: 62ch; font: 400 var(--t-base)/1.7 var(--serif); }

/* Signature block */
.sign-grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.sign-copy { display: grid; gap: 18px; max-width: 30rem; }
.sign-copy .section-intro { margin-top: 0; }
.price { font: italic 400 var(--t-base)/1.5 var(--serif); }
.sign {
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px var(--shadow);
  padding: clamp(22px, 4vw, 44px); display: grid; gap: 26px; min-width: 0;
}
.sign-head { font: 400 var(--t-sm)/1.4 var(--serif); color: var(--graphite); }
.sign-head .doc-title { display: block; font-size: var(--t-md); }
.sign-fields { display: grid; gap: 26px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.line-field { display: flex; flex-direction: column-reverse; gap: 6px; }
.line-field label { font: italic 400 var(--t-sm)/1.3 var(--serif); color: var(--graphite); }
.line-field input {
  width: 100%; min-height: 44px; padding: 8px 2px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 500 var(--t-md)/1.2 var(--sans);
}
.line-field input:focus { outline: none; border-bottom-color: var(--redline); box-shadow: 0 1.5px 0 var(--redline); }
.sign .btn { justify-self: start; }
.line-field .caption { font: italic 400 var(--t-sm)/1.3 var(--serif); color: var(--graphite); }
.total-field output {
  display: flex; align-items: flex-end; min-height: 44px; padding: 8px 2px; border-bottom: 1.5px solid var(--ink);
  font: 700 var(--t-md)/1.2 var(--sans); font-variant-numeric: tabular-nums;
}
.signup-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--graphite); }
.signup-steps li::marker { font-weight: 700; color: var(--ink); }
.form-status { min-height: 1.5em; font-size: var(--t-sm); color: var(--graphite); }
.form-status.error { color: var(--redline); }

.foot { border-top: 1px solid var(--rule); padding-block: 28px 36px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--graphite); font-size: var(--t-sm); }
.foot .wordmark { color: var(--ink); font-size: 1.05rem; }

/* The one orchestrated moment: the clause is tracked in, then the comment lands. */
@media (prefers-reduced-motion: no-preference) {
  ins { animation: track-in 2.2s cubic-bezier(0.5, 0, 0.25, 1) 0.5s backwards; }
  .change::before { animation: bar-in 0.5s ease-out 0.3s backwards; }
  .comment { animation: comment-in 0.5s ease-out 2.5s backwards; }
}
@keyframes track-in { from { background-size: 0% 1.5px; } to { background-size: 100% 1.5px; } }
@keyframes bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes comment-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 760px) {
  .sheet-body { grid-template-columns: minmax(0, 1fr) 11.5rem; }
  .sheet-body > .cl { grid-column: 1; }
  .comment { grid-column: 2; grid-row: 2; margin-top: 0.3em; }
  .comment::before {
    content: ""; position: absolute; right: 100%; top: 1.1em; width: 28px;
    border-top: 1px dashed var(--redline);
  }
}
@media (min-width: 1000px) {
  .hero-body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .exhibit-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .insurance-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; }
  .sign-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
}
@media (max-width: 720px) {
  .masthead { flex-wrap: wrap; row-gap: 12px; }
  .masthead .wordmark { font-size: 1.125rem; font-variation-settings: "wdth" 110; }
  .masthead nav { gap: 14px; }
  .masthead nav a { white-space: nowrap; }
  .masthead nav a:not(.btn) { display: none; }
  .masthead nav a.signin:not(.btn) { display: inline; font-size: var(--t-sm); }
  .masthead .btn { padding: 0 12px; }
  .lane, .axis { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .axis-spacer { display: none; }
}
