/* SentryScreen site — one hand-written stylesheet, no build step.
   Mobile-first. Checked at 360 / 768 / 1280 px. */

:root {
  /* The page follows the reader's system setting; both palettes are below. */
  color-scheme: light dark;
  --ink: #16191d;
  --ink-muted: #4a5260;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --line: #d8dbe0;
  --accent: #123a6b;
  --accent-ink: #ffffff;
  --accent-soft: #e8eef7;
  --focus: #b34700;
  --measure: 38rem; /* body text line length */
  --wrap: 56rem; /* page column; the three-step row is the widest thing in it */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf1;
    --ink-muted: #a8b0bd;
    --bg: #14171b;
    --bg-soft: #1c2026;
    --line: #333941;
    --accent: #9dc0f0;
    --accent-ink: #10131a;
    --accent-soft: #1e2836;
    --focus: #ffb066;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Links and focus */

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: static;
  display: inline-block;
  margin: 0.75rem 1.25rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

/* The header's own padding is 0.5rem rather than 1rem because the wordmark and
   the nav links each carry a 44 px min-height below; without pulling the
   container back the header would grow by the difference on every page. */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* 44 px: the minimum touch-target height this site holds every control to
   except links inside a sentence, which WCAG 2.5.5/2.5.8 exempt and which
   cannot be enlarged without wrecking the line height of the prose. */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* The mark is the product: a solid cover over part of a frame. */
.mark {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    transparent 0 45%,
    var(--ink) 45% 100%
  );
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

/* Each nav link is its own 44 px target. The row gap is 0 so wrapped rows sit
   flush: the targets stay adjacent rather than adding blank strips to a header
   that already wraps to two rows at 360 px. */
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Sections */

main {
  display: block;
}

section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: 0;
}

@media (min-width: 48em) {
  section {
    padding: 3.5rem 0;
  }
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.05rem;
}

@media (min-width: 48em) {
  h1 {
    font-size: 2.6rem;
  }
  h2 {
    font-size: 1.7rem;
  }
}

p,
ul,
ol,
dl {
  max-width: var(--measure);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.hero {
  padding-top: 2.5rem;
}

.claim {
  max-width: var(--measure);
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.claim p {
  margin: 0;
}

.claim p + p {
  margin-top: 0.5rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--bg);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn:hover {
  text-decoration: underline;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: var(--wrap);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.steps > li {
  counter-increment: step;
  padding-top: 0.75rem;
  border-top: 3px solid var(--accent);
}

.steps > li::before {
  content: "Step " counter(step);
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
}

/* Fact list — what leaves the Mac */

.facts {
  margin: 1.25rem 0 0;
  padding-left: 1.15rem;
}

.facts li {
  margin-bottom: 0.35rem;
}

/* Pricing */

.plans {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  max-width: 44rem;
}

@media (min-width: 40em) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}

.plan h3 {
  margin-bottom: 0.25rem;
}

.amount {
  font-size: 2rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  display: block;
  overflow-wrap: anywhere;
}

.amount .per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.saving {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.plan .btn {
  margin-top: auto;
  text-align: center;
}

.plan p {
  margin: 0.5rem 0 1rem;
}

.included {
  margin: 1.5rem 0 0;
  padding-left: 1.15rem;
}

.included + h3 {
  margin-top: 2.25rem;
}

/* FAQ */

.faq {
  max-width: var(--measure);
  margin-top: 1.5rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

/* The row padding is on the summary, not on the details, so the whole row is
   the touch target: a one-line question is 54 px tall instead of the 27 px of
   its text. Closed rows look exactly as they did when details carried it. */
.faq summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.85rem 0;
}

.faq details[open] {
  padding-bottom: 0.85rem;
}

.faq details > *:not(summary) {
  margin-bottom: 0;
}

/* No top margin: the open summary's own 0.85rem padding is the gap. */
.faq p {
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.5rem 0;
}

.footer-cols {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48em) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Footer links are navigation, not prose, so they take the 44 px minimum too.
   The list item's 0.4rem bottom margin is gone: the link's own height replaces
   it, and keeping both would have spaced the four links twice. */
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: none;
}

/* Resend form */

.resend label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.resend .hint {
  margin: 0 0 0.6rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.resend .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 30rem;
}

.resend input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--ink-muted);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.resend button {
  font-family: inherit;
}

.form-status {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.form-status:empty {
  margin: 0;
}

/* Prose pages (privacy, EULA, account) */

.prose {
  padding: 2.5rem 0 3rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose li {
  margin-bottom: 0.3rem;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  /* The privacy page shows a 37-character path as a paragraph on its own;
     let it break rather than overflow a 320 px content box. Keep this if body
     ever moves from 17px to a rem size — the pinned size is what keeps that
     string narrow enough today. */
  overflow-wrap: anywhere;
}

.updated {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.note {
  max-width: var(--measure);
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--focus);
  border-radius: 4px;
  background: var(--bg-soft);
  font-size: 0.95rem;
}

.note p {
  margin: 0;
}

/* Retention list on the privacy page: a stacked term/definition list rather
   than a table, because a three-column table is unreadable at 360 px and this
   content must be readable on the phone a parent is holding. */
.retention {
  max-width: var(--measure);
  margin: 1rem 0 0;
}

.retention dt {
  font-weight: 650;
  margin-top: 1.25rem;
}

.retention dd {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}
