/* FireGuard public site — "inspection tag" industrial utility design system */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --paper-3: #e6dcc8;
  --ink: #17130f;
  --ink-2: #3b332c;
  --ink-3: #6b6057;
  --rule: #d8ccb6;
  --red: #b91c1c;
  --red-deep: #7f1d1d;
  --red-soft: #fde8e8;
  --yellow: #f5b400;
  --yellow-soft: #fff4cc;
  --green: #1f7a4d;
  --green-soft: #e3f3ea;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', monospace;
  --shadow: 0 1px 0 rgba(23, 19, 15, 0.06), 0 12px 32px -18px rgba(23, 19, 15, 0.35);
  --radius: 6px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(185, 28, 28, 0.06), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(23, 19, 15, 0.035) 31px 32px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.02em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Typography */
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; text-transform: none; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--red); font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: '■ '; color: var(--yellow); }
p + p { margin-top: 1em; }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .lede { color: var(--paper-3); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; padding: 14px 22px; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; cursor: pointer; line-height: 1; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 0 -2px var(--red-deep); }
.btn-primary:hover { background: #a31616; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 0 -2px var(--red-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 -2px var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { font-size: 0.98rem; padding: 10px 16px; }
.btn-lg { font-size: 1.3rem; padding: 18px 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.cta-note { font-size: 0.92rem; color: var(--ink-3); margin-top: 12px; }
.cta-note b { color: var(--green); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, 0.92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.01em; }
.brand-word span { color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { font-weight: 500; color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.site-nav > a:hover, .site-nav > a.is-active { color: var(--red); }
.site-nav > a.btn-primary, .site-nav > a.btn-primary:hover { color: #fff; }
.nav-login { margin-left: 6px; }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--red); }
.proof-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 0.95rem; color: var(--ink-2); }
.proof-strip span::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* The inspection tag illustration */
.tag { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 10px 10px 8px 8px; padding: 26px 24px 22px; box-shadow: var(--shadow); transform: rotate(-2deg); max-width: 380px; margin: 0 auto; font-family: var(--mono); }
.tag::before { content: ''; position: absolute; top: -14px; left: 50%; width: 26px; height: 26px; transform: translateX(-50%); border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tag-head { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; border-bottom: 2px dashed var(--rule); padding-bottom: 10px; margin-bottom: 14px; margin-top: 8px; }
.tag-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.tag-row b { font-weight: 500; color: var(--ink-3); }
.tag-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 14px 0 8px; }
.tag-months span { border: 1px solid var(--rule); border-radius: 4px; text-align: center; font-size: 0.72rem; padding: 6px 0; color: var(--ink-3); }
.tag-months span.done { background: var(--green-soft); border-color: var(--green); color: var(--green); font-weight: 600; }
.tag-months span.due { background: var(--yellow-soft); border-color: var(--yellow); color: #7a5a00; font-weight: 600; animation: pulse 2.4s ease-in-out infinite; }
.tag-stamp { position: absolute; right: -18px; bottom: 64px; transform: rotate(-12deg); border: 3px solid var(--green); color: var(--green); font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,0.9); text-transform: uppercase; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.0); } 50% { box-shadow: 0 0 0 5px rgba(245, 180, 0, 0.25); } }

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 1rem; }
.card .num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--red); line-height: 1; margin-bottom: 10px; }
.card-red { border-top-color: var(--red); }
.card-yellow { border-top-color: var(--yellow); }
.card-green { border-top-color: var(--green); }
.step { position: relative; padding-left: 64px; }
.step .step-n { position: absolute; left: 0; top: -4px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 1.5rem; display: grid; place-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); font-size: 0.98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--paper-2); font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; }
td.yes { color: var(--green); font-weight: 600; }
td.no { color: var(--ink-3); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 2px solid var(--rule); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan.featured { border-color: var(--red); transform: translateY(-6px); }
.plan .badge { position: absolute; top: -14px; left: 22px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; padding: 4px 10px; border-radius: 4px; }
.plan h3 { font-size: 1.6rem; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; margin: 12px 0 2px; }
.plan .price small { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--ink-3); }
.plan .price-note { font-size: 0.9rem; color: var(--ink-3); min-height: 1.4em; }
.plan .limit { font-family: var(--mono); font-size: 0.86rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: 8px 10px; margin: 14px 0; }
.plan ul { list-style: none; margin: 6px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 0.97rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan li.muted { color: var(--ink-3); }
.plan li.muted::before { content: '–'; color: var(--ink-3); }
.plan .btn { justify-content: center; }
.toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 18px 0 34px; }
.toggle label { padding: 8px 18px; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.toggle input, .pricing input[name="billing"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
#bill-annual:checked ~ .toggle label[for="bill-annual"], #bill-monthly:checked ~ .toggle label[for="bill-monthly"] { background: var(--ink); color: var(--paper); }
.pricing .annual { display: none; }
#bill-annual:checked ~ .plans .annual { display: inline; }
#bill-annual:checked ~ .plans .monthly { display: none; }
.savings { color: var(--green); font-weight: 600; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 0; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 20px 20px; color: var(--ink-2); }
.faq .answer p + p { margin-top: 0.8em; }

/* Prose (guides, legal) */
.prose { max-width: 72ch; }
.prose h1 { margin-bottom: 18px; }
.prose h2 { margin: 2.2em 0 0.7em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0.8em 0 1.2em 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { border-left: 4px solid var(--yellow); background: var(--yellow-soft); padding: 14px 18px; margin: 1.2em 0; border-radius: 0 var(--radius) var(--radius) 0; }
.prose hr { border: 0; border-top: 2px dashed var(--rule); margin: 2.4em 0; }
.prose code { font-family: var(--mono); background: var(--paper-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.prose table { margin: 1.2em 0; }
.prose .callout { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; margin: 1.6em 0; }
.prose .callout h3 { margin-top: 0; }
.answer-box { background: #fff; border: 2px solid var(--ink); border-left: 8px solid var(--red); border-radius: var(--radius); padding: 20px 24px; margin: 1.4em 0 2em; font-size: 1.08rem; }
.answer-box strong { color: var(--ink); }
.meta-line { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); margin-bottom: 20px; }
.toc { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; margin: 1.4em 0 2em; font-size: 0.95rem; }
.toc h2 { font-size: 1.1rem; margin: 0 0 8px; }
.toc ol { margin: 0 0 0 1.2em; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); display: block; box-shadow: var(--shadow); transition: transform 0.15s ease; }
.guide-card:hover { transform: translateY(-2px); color: var(--ink); }
.guide-card h3 { margin-bottom: 8px; color: var(--red); }
.guide-card p { color: var(--ink-2); font-size: 0.98rem; }
.guide-card .mono { color: var(--ink-3); display: block; margin-bottom: 8px; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--red); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .hp { position: absolute; left: -5000px; }
.notice { border-radius: var(--radius); padding: 14px 18px; border: 2px solid; }
.notice-ok { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.notice-err { border-color: var(--red); background: var(--red-soft); color: var(--red-deep); }

/* Stats band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-left: 3px solid var(--yellow); padding-left: 16px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: #fff; }
.stat span { color: var(--paper-3); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); background: var(--paper-2); padding: 48px 0 24px; margin-top: 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.footer-grid nav a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.footer-grid nav a:hover { color: var(--red); }
.footer-brand p { color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
.footer-disclaimer { font-size: 0.85rem; color: var(--ink-3); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 18px; color: var(--ink-3); font-size: 0.88rem; }

/* Reveal animation (CSS only, respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.16s; }
  .reveal:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .steps, .plans, .stat-band, .footer-grid, .guide-list { grid-template-columns: 1fr 1fr; }
  .plan.featured { transform: none; }
}
@media (max-width: 680px) {
  body.site { font-size: 16px; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .steps, .plans, .stat-band, .footer-grid, .guide-list, .form .row { grid-template-columns: 1fr; }
  .tag { transform: none; margin-top: 20px; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-burger span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 6px; }
  .site-nav > a { padding: 10px 0; font-size: 1.1rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .btn { width: 100%; justify-content: center; }
  .cta-row .btn { width: auto; flex: 1; }
}
