/* ==========================================================================
   Split-Trigger Gunworx — stgunworx.com
   Layout concept: a centered spine. The badge is radially symmetric with a
   crosshair through the middle, so the page centers on that same axis.
   ========================================================================== */

:root {
  --black:      #000000;
  --paper:      #ffffff;
  --bone:       #f3f1ef;
  --red:        #a6111b;
  --red-bright: #d0202c;
  --red-deep:   #7c0d14;
  --steel:      #5f5f5f;
  --hairline:   #dcd9d6;
  --hairline-d: #2b2b2b;

  --wrap: 1180px;
  --narrow: 900px;
  --gut: 24px;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-bright); }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: var(--narrow); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--red); color: #fff; padding: 12px 18px; font-weight: 600; }
.skip:focus { left: 0; }

/* --- type -------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.1em; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.16rem; }
.muted { color: var(--steel); }
.small { font-size: 0.92rem; }

/* --- tick rule: the dashed ring on the badge ---------------------------- */
.tick-rule {
  height: 9px;
  background-image: repeating-linear-gradient(to right, var(--red) 0 2px, transparent 2px 9px);
  background-size: 9px 9px; background-repeat: repeat-x; background-position: 50% 50%;
}
.tick-rule--dark { background-image: repeating-linear-gradient(to right, #fff 0 2px, transparent 2px 9px); opacity: 0.3; }
.tick-rule--short { width: 120px; margin-inline: auto; }

/* --- centered section heading with the badge diamond -------------------- */
.head-c { text-align: center; max-width: 64ch; margin: 0 auto clamp(34px, 4.5vw, 54px); }
.head-c p { margin-left: auto; margin-right: auto; max-width: 58ch; }
.head-c p:last-child { margin-bottom: 0; }
.head-c::before {
  content: ""; display: block; width: 13px; height: 13px; margin: 0 auto 18px;
  background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--f-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 32px 12px;
  border: 2px solid var(--red); background: var(--red); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background 130ms linear, color 130ms linear, border-color 130ms linear;
}
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover { background: var(--black); border-color: var(--black); color: #fff; }
.btn--onblack { background: transparent; color: #fff; border-color: #fff; }
.btn--onblack:hover { background: #fff; color: var(--black); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--black); color: #fff; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 100; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 50%; padding: 1px; }
.brand-name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: 0.92; font-size: 1.4rem; letter-spacing: 0.02em; }
.brand-name span { display: block; color: var(--red-bright); font-size: 0.84rem; letter-spacing: 0.22em; font-weight: 600; }

.nav-toggle { display: none; background: none; border: 2px solid #fff; color: #fff; font-family: var(--f-display); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 13px 7px; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: var(--red-bright); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav .nav-cta { margin-left: 10px; background: var(--red); border-bottom-color: var(--red); }
.nav .nav-cta:hover { background: var(--red-bright); border-bottom-color: var(--red-bright); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; border-bottom: 3px solid var(--red); }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gut); border-bottom: 1px solid var(--hairline-d); }
  .nav .nav-cta { margin: 12px var(--gut) 0; text-align: center; }
}

/* ==========================================================================
   Hero — centered on the badge, crosshair running through it
   ========================================================================== */
.hero { background: var(--black); color: #fff; text-align: center; padding: clamp(40px, 5vw, 62px) 0 clamp(48px, 6vw, 78px); overflow: hidden; }
.hero-mark { position: relative; display: grid; place-items: center; margin-bottom: clamp(26px, 3.5vw, 40px); }
.hero-mark::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208,32,44,.85) 28%, rgba(208,32,44,.85) 72%, transparent);
}
.hero-mark img {
  position: relative; width: min(300px, 64vw); height: auto;
  background: #fff; border-radius: 50%; padding: 11px;
  box-shadow: 0 0 0 3px var(--red), 0 0 100px 10px rgba(166,17,27,.45);
}
.hero h1 { margin-bottom: 0.22em; }
.hero h1 em { font-style: normal; color: var(--red-bright); display: block; }
.hero .lede { color: #cfcfcf; max-width: 56ch; margin: 0 auto 26px; }
.hero-note { color: #9b9b9b; font-size: 0.95rem; margin: 22px auto 0; max-width: 60ch; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline-d); border-block: 1px solid var(--hairline-d); margin-top: clamp(40px, 5vw, 62px); text-align: center; }
.stats > div { background: var(--black); padding: 26px 22px; }
.stats dt { font-family: var(--f-display); font-size: 1.85rem; font-weight: 800; color: var(--red-bright); line-height: 1; text-transform: uppercase; }
.stats dd { margin: 8px 0 0; color: #b6b6b6; font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* --- inner page head --------------------------------------------------- */
.page-head { background: var(--black); color: #fff; text-align: center; padding: clamp(46px, 6vw, 76px) 0 clamp(36px, 4.5vw, 54px); }
.page-head h1 { margin-bottom: 0.2em; }
.page-head p { color: #c2c2c2; font-size: 1.08rem; margin: 0 auto; max-width: 58ch; }
.page-head .tick-rule { margin-top: 28px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(54px, 7vw, 94px) 0; }
.section--bone { background: var(--bone); }
.section--black { background: var(--black); color: #fff; }
.section--black h2, .section--black h3, .section--black h4 { color: #fff; }
.section--black p { color: #c2c2c2; }

/* --- symmetric card grids (no orphan cells) ---------------------------- */
.grid { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.section--black .grid { background: var(--hairline-d); border-color: var(--hairline-d); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--paper); padding: 32px 26px 34px; text-align: center; border-top: 4px solid transparent; }
.section--black .card { background: var(--black); }
.card h3 { margin-bottom: 0.4em; }
.card p { font-size: 0.98rem; color: #3a3a3a; margin: 0 auto 14px; max-width: 40ch; }
.section--black .card p { color: #bcbcbc; }
.card:hover { border-top-color: var(--red); }
.card p.price { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0; }
.section--black .card p.price { color: var(--red-bright); }
.card p.price .fig { font-family: var(--f-body); font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- two column detail block, centered heading above ------------------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 62px); align-items: start; max-width: 1000px; margin-inline: auto; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.duo p:last-child { margin-bottom: 0; }

.prose { max-width: 62ch; margin-inline: auto; }
.prose p:last-child { margin-bottom: 0; }
.prose--center { text-align: center; }

/* --- checklist --------------------------------------------------------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--hairline); }
.section--black .checks li { border-bottom-color: var(--hairline-d); }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 11px; height: 11px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.checks--center { max-width: 620px; margin-inline: auto; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.price-nav { position: sticky; top: 76px; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.price-nav-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 14px 0; }
.price-nav a { text-decoration: none; color: var(--black); font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 14px 5px; border: 1px solid var(--hairline); white-space: nowrap; }
.price-nav a:hover { border-color: var(--red); color: var(--red); }
.price-nav a.active { background: var(--black); border-color: var(--black); color: #fff; }
@media (max-width: 940px) {
  .price-nav { top: 76px; }
  .price-nav-inner { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .price-nav a { flex: 0 0 auto; }
}

.price-search { padding: 30px 0 6px; text-align: center; }
.price-search label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.price-search input { width: 100%; max-width: 440px; font: inherit; padding: 12px 14px; border: 2px solid var(--black); background: var(--paper); text-align: center; }
.price-search input:focus { border-color: var(--red); outline: none; }
.price-count { margin: 12px 0 0; font-size: 0.92rem; color: var(--steel); }

.price-block { padding: 46px 0 8px; scroll-margin-top: 160px; }
.price-block h2 { text-align: center; margin-bottom: 0.25em; }
.price-block .note { font-size: 0.94rem; color: var(--steel); margin: 0 auto 24px; max-width: 62ch; text-align: center; }

.ptable { width: 100%; border-collapse: collapse; max-width: 940px; margin-inline: auto; }
.ptable th { text-align: left; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 3px solid var(--black); padding: 8px 10px 6px; }
.ptable th.col-them, .ptable th.col-ours { text-align: right; white-space: nowrap; }
.ptable th.col-them { color: var(--steel); width: 130px; }
.ptable th.col-ours { width: 118px; color: var(--red); }
.ptable td { padding: 11px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.ptable tbody tr:hover { background: var(--bone); }
.ptable .col-them, .ptable .col-ours { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable td.col-them { color: var(--steel); text-decoration: line-through; width: 130px; font-size: 0.95rem; }
.ptable td.col-ours { color: var(--red); font-weight: 700; width: 118px; }
.ptable .quote { color: var(--red); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.ptable .flag { color: var(--red); font-weight: 700; }
@media (max-width: 620px) {
  .ptable td.col-them, .ptable th.col-them { display: none; }
  .ptable td, .ptable th { padding-inline: 4px; }
}

.legend { background: var(--bone); border-top: 4px solid var(--red); padding: 24px 26px; margin: 40px auto 0; max-width: 940px; }
.legend p { margin: 0 0 8px; font-size: 0.95rem; }
.legend p:last-child { margin-bottom: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--hairline); max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 46px 21px 0; position: relative; font-family: var(--f-display); font-weight: 700; font-size: 1.28rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.16; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 3px; background: var(--red); transform: translateY(-50%); }
.faq summary::before { content: ""; position: absolute; right: 15.5px; top: 50%; width: 3px; height: 14px; background: var(--red); transform: translateY(-50%); transition: transform 160ms ease; }
.faq details[open] summary::before { transform: translateY(-50%) scaleY(0); }
.faq details > div { padding: 0 0 22px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.form { border: 2px solid var(--black); padding: clamp(24px, 3.5vw, 38px); background: var(--paper); max-width: 720px; margin-inline: auto; }
.form h2 { text-align: center; margin-bottom: 0.6em; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.96rem; margin-bottom: 6px; }
.field .req { color: var(--red); }
.field .hint { display: block; font-weight: 400; font-size: 0.86rem; color: var(--steel); margin-top: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 13px; border: 1px solid #a9a6a3; background: var(--paper); color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid var(--red-bright); outline-offset: 1px; }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row .field { display: flex; flex-direction: column; }
.field-row .field input, .field-row .field select { margin-top: auto; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field--check { display: flex; gap: 11px; align-items: flex-start; }
.field--check input { width: auto; margin-top: 5px; flex: 0 0 auto; }
.field--check label { font-weight: 400; font-size: 0.93rem; margin: 0; }
.form-submit { text-align: center; margin-top: 26px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin: 18px auto 0; padding: 15px 18px; border-left: 5px solid; display: none; font-size: 0.97rem; text-align: left; }
.form-status.show { display: block; }
.form-status.ok { border-color: #1c7a34; background: #eaf6ec; color: #14501f; }
.form-status.err { border-color: var(--red); background: #fbecec; color: var(--red-deep); }
.form-status.busy { border-color: var(--steel); background: var(--bone); color: #333; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-bottom: clamp(40px, 5vw, 58px); }
@media (max-width: 820px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); padding: 30px 26px; text-align: center; }
.contact-card h3 { margin-bottom: 0.5em; }
.contact-card p { margin: 0 0 6px; }
.contact-card .big { font-family: var(--f-display); font-size: 1.55rem; font-weight: 700; letter-spacing: 0.02em; }
.contact-card .big a { text-decoration: none; }
.contact-card .small { color: var(--steel); }

.info-block { margin-bottom: 34px; }
.info-block h3 { text-align: center; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.info-list .k { font-weight: 600; }
.info-list .v { color: #333; text-align: right; }

.setup { border: 2px dashed var(--red); background: #fff8f8; padding: 24px 26px; max-width: 820px; margin-inline: auto; }
.setup h3 { text-align: center; }
.setup ol { margin: 0 0 14px; padding-left: 20px; }
.setup li { margin-bottom: 8px; }
.setup code { background: var(--black); color: #fff; padding: 2px 7px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.88em; }
.setup pre { background: var(--black); color: #f4f4f4; padding: 16px 18px; overflow-x: auto; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.55; margin: 0 0 12px; }
.setup pre .hl { color: #ff8b8b; }

/* ==========================================================================
   CTA + footer
   ========================================================================== */
.cta-strip { background: var(--red); color: #fff; padding: clamp(46px, 5.5vw, 70px) 0; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: 0.3em; }
.cta-strip p { color: #ffdfe1; max-width: 54ch; margin: 0 auto 26px; }
.cta-strip .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-strip .btn:hover { background: var(--black); border-color: var(--black); color: #fff; }

.site-footer { background: var(--black); color: #b9b9b9; padding: clamp(48px, 5vw, 68px) 0 30px; font-size: 0.95rem; text-align: center; }
.footer-brand { max-width: 46ch; margin: 0 auto clamp(38px, 4.5vw, 52px); }
.footer-brand img { width: 96px; margin: 0 auto 16px; background: #fff; border-radius: 50%; padding: 4px; }
.footer-brand p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h4 { color: #fff; margin-bottom: 0.8em; letter-spacing: 0.12em; }
.site-footer a { color: #e4e4e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red-bright); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline-d); font-size: 0.86rem; color: #8d8d8d; }
.footer-bottom p { margin: 0 0 6px; }
.footer-bottom p:last-child { margin-bottom: 0; }

@media (max-width: 430px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.08rem; }
  .brand-name span { font-size: 0.7rem; letter-spacing: 0.16em; }
  .header-bar { min-height: 68px; }
  .price-nav { top: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
