/* Page-specific components for access.lodestardigital.co.
   Everything here is built from the brand tokens in brand.css. */

/* Focus and skip link: the main site has no global focus ring, so this page adds one. */
:focus-visible {
  outline: 3px solid var(--teal-br);
  outline-offset: 3px;
  border-radius: 4px;
}
.light :focus-visible { outline-color: var(--gold-deep); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--teal-br); color: var(--ink);
  padding: 14px 22px; font-weight: 600; border-radius: 0 0 var(--rs) 0;
}
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.wrap.narrow { max-width: 880px; }
.shead { display: block; margin-bottom: 34px; }
.shead .kicker { margin-bottom: 16px; }
.shead .sub { color: #c9b8a6; max-width: 58ch; margin-top: 14px; font-size: 1.02rem; }
.light .shead .sub { color: #6b5852; }
.fineprint { font-size: .88rem; color: #bda997; max-width: 76ch; margin-top: 22px; }
.light .fineprint { color: #7b6a62; }

/* Hero: the scan form sits where the homepage puts its CTA row */
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.scan-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 30px 0 12px; max-width: 560px; }
.scan-form .fld { flex: 1 1 280px; }
.form label, .fld > span {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 8px;
}
.light .form label, .light .fld > span { color: var(--gold-deep); }
.form input, .form textarea {
  width: 100%; background: var(--ox-deep); border: 1px solid var(--line); border-radius: var(--rs);
  color: var(--bone); font-family: var(--sans); font-size: 1rem; padding: 15px 16px; transition: .25s var(--ease);
}
.form input::placeholder { color: rgba(236, 229, 216, .45); }
.form input:hover, .form textarea:hover { border-color: rgba(255, 140, 105, .45); }
.form input:focus, .form textarea:focus { border-color: var(--gold); background: var(--ox-soft); }
.form textarea { resize: vertical; min-height: 120px; }
.scan-form .btn { flex: 0 0 auto; }
.note { font-size: .88rem; color: #bda997; max-width: 52ch; }
.hero-copy .kicker { margin-bottom: 18px; }

/* Stat strip under the hero */
.statstrip .sfig { display: flex; flex-direction: column; gap: 6px; }
.statstrip .sn { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.statstrip .sfig:nth-child(2) .sn, .statstrip .sfig:nth-child(4) .sn { color: var(--teal-br); }
.statstrip .sl { font-size: .9rem; color: #bda997; max-width: 22ch; }

/* Scan report, built on the homepage chartcard */
.results-band { background: var(--ox-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#results:focus { outline: none; }
.report { border: 1px solid var(--line); border-radius: var(--r); background: var(--ox-deeper); overflow: hidden; }
.report-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.gradebox {
  flex: none; width: 104px; height: 104px; border-radius: var(--r); display: grid; place-items: center;
  background: linear-gradient(155deg, var(--gold-deep), var(--gold)); color: #fff;
}
.gradebox b { font-family: var(--serif); font-weight: 600; font-size: 3.4rem; line-height: 1; }
.report-head.g-A .gradebox, .report-head.g-B .gradebox { background: linear-gradient(155deg, #1F7A44, #46A96B); }
.report-head.g-C .gradebox { background: linear-gradient(155deg, var(--teal-deep), var(--teal-br)); color: var(--ink); }
.report-sum { flex: 1 1 280px; }
.report-sum h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 6px; }
.report-url { font-family: var(--mono); font-size: .76rem; color: #bda997; word-break: break-all; margin-bottom: 12px; }
.tally { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; font-family: var(--mono); }
.tally span { display: inline-flex; align-items: center; gap: 8px; }
.dotm { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-fail { background: var(--gold-deep); }
.dot-warn { background: var(--teal-br); }
.dot-pass { background: #46A96B; }
.overlay-flag {
  margin: 0; padding: 16px 28px; background: rgba(242, 193, 78, .1);
  border-bottom: 1px solid var(--line); font-size: .95rem; color: #f0e2cb;
}
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 9.5rem 1fr; gap: 18px; padding: 20px 28px; border-bottom: 1px solid rgba(255, 140, 105, .12); }
.check:last-child { border-bottom: 0; }
.check-status { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 9px; align-items: center; }
.s-fail { color: var(--gold-bright); }
.s-warn { color: var(--teal-br); }
.s-pass, .s-na { color: #8ea89a; }
.check h4 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.check p { font-size: .95rem; color: #d8cab6; margin-bottom: 6px; }
.check .why { color: #bda997; font-size: .89rem; margin: 0; }
.check.is-ok .why { display: none; }
.check.is-ok h4 { font-weight: 500; color: #c9b8a6; }
.report-foot { padding: 22px 28px 26px; background: rgba(0, 0, 0, .18); border-top: 1px solid var(--line); }
.report-foot p { font-size: .95rem; color: #d8cab6; max-width: 70ch; margin-bottom: 16px; }
.scan-error {
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r);
  background: var(--ox-deeper); padding: 20px 24px; font-size: 1rem; color: #f0e2cb;
}

/* Two-column service grid for the limits section */
.svc-grid.two { grid-template-columns: repeat(2, 1fr); }
.svc { cursor: default; min-height: 0; }
.svc h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }

/* Price comparison inside a chartcard */
.compare-card { padding-bottom: 6px; }
.compare-card .cnote { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #bda997; }
.table-scroll { overflow-x: auto; margin: 6px -6px 0; padding: 0 6px 6px; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 15px 16px; border-bottom: 1px solid rgba(255, 140, 105, .14); vertical-align: top; }
.compare thead th {
  font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-br); border-bottom: 1px solid var(--line);
}
.compare thead th:last-child { color: var(--gold-bright); }
.compare tbody th { font-weight: 600; width: 28%; color: var(--bone); }
.compare td { color: #c9b8a6; }
.compare td.yes { color: #9fe0b4; }
.compare td.no { color: #d8cab6; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

.ftc { border: 1px solid var(--line); border-left: 4px solid var(--teal-br); border-radius: 0 var(--r) var(--r) 0; padding: 26px 28px; background: rgba(0, 0, 0, .14); }
.ftc .kicker { margin-bottom: 14px; }
.ftc p { color: #d8cab6; max-width: 72ch; }
.ftc p + p { margin-top: 12px; }

/* Steps use h3 where the homepage uses h4 */
.step h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 10px; }
.step p { font-size: .94rem; color: #c9b8a6; }
.light .step p { color: #6b5852; }

/* Toolbar band */
.toolbar-band { background: var(--ox-deep); border-top: 1px solid var(--line); }
.toolbar-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.toolbar-grid .kicker { margin-bottom: 16px; }
.toolbar-grid h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.honest { border-left: 2px solid var(--gold); padding-left: 16px; margin-top: 18px; color: #bda997; font-size: .95rem; max-width: 56ch; }
.pchip {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--bone);
  border: 1px solid var(--line); border-radius: 100px; padding: 9px 14px; background: rgba(0, 0, 0, .18);
}

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { background: #fff; border: 1px solid var(--line-dark); border-radius: var(--r); padding: 30px 28px 34px; display: flex; flex-direction: column; }
.tier-lead { border: 2px solid var(--gold); box-shadow: 0 26px 50px -34px rgba(232, 92, 58, .7); }
.tier h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.price { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; margin: 12px 0 4px; color: var(--gold-deep); }
.price span { font-size: 1rem; color: #6b5852; }
.tier-note { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8a6f60; margin-bottom: 20px; }
.tier ul { list-style: none; display: grid; gap: 10px; }
.tier li { font-size: .95rem; color: #4a3a3d; padding-left: 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; padding: 22px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: #c9b8a6; padding-bottom: 22px; max-width: 72ch; }

/* Contact */
.ctaband .kicker { margin-bottom: 16px; }
.ctaband .lead { margin: 0 auto 30px; }
.lead-form { text-align: left; max-width: 620px; margin: 0 auto; }
.lead-form .fld { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); color: #bda997; }
.form-status { margin-top: 16px; font-weight: 600; min-height: 1.4em; color: var(--bone); }
.form-status.is-error { color: var(--gold-bright); }
.form-status.is-ok { color: #9fe0b4; }

@media (max-width: 900px) {
  .toolbar-grid { grid-template-columns: 1fr; gap: 28px; }
  .tiers { grid-template-columns: 1fr; }
  .svc-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .check { grid-template-columns: 1fr; gap: 6px; }
  .grid-2 { grid-template-columns: 1fr; }
  .statstrip .sn { font-size: 2.1rem; }
  .hero { padding-bottom: 7rem; }
  footer { padding-bottom: 6rem; }
}
@media print {
  header, .hero, .statstrip, .toolbar-band, .ctaband, footer, .faq { display: none; }
  .results-band { background: #fff; }
}

/* Interior pages have no hero, so they need room under the fixed header */
.inner-top { padding-top: 150px; }
.inner-top h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 18px 0 18px; }
.inner-top h2 { font-size: 1.45rem; margin: 34px 0 10px; }
.inner-top p { color: #c9b8a6; max-width: 70ch; margin-bottom: 14px; }
.inner-top a:not(.btn) { color: var(--gold-bright); }

/* Compare card title and footer headings keep the heading order intact */
.chartcard .ct h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
footer .fcol h3 { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.inner-top p a:not(.btn), .faq p a, .ftc p a, .check p a { text-decoration: underline; text-underline-offset: 3px; }

.plain-list { list-style: none; display: grid; gap: 10px; margin: 0 0 26px; }
.plain-list a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }

/* Anchors and the scan report clear the fixed header when jumped to */
section[id], #results, #results-section { scroll-margin-top: 110px; }

/* Report groups, written for a business owner rather than a developer */
.group { border-top: 1px solid var(--line); }
.group-head { padding: 22px 28px 4px; }
.group-head h4 { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; letter-spacing: -.01em; margin-bottom: 6px; }
.group-head p { font-size: .92rem; color: #bda997; max-width: 62ch; }
.g-fail .group-head h4 { color: var(--gold-bright); }
.g-warn .group-head h4 { color: var(--teal-br); }
.group-fold summary {
  cursor: pointer; list-style: none; padding: 18px 28px; font-family: var(--mono);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #bda997;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.group-fold summary::-webkit-details-marker { display: none; }
.group-fold summary::after { content: "+"; font-size: 1.2rem; color: var(--gold); }
.group-fold[open] summary::after { content: "\2013"; }
.check { grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.check-mark { padding-top: .45em; }
.check .found { color: #e3d6c3; font-size: .96rem; margin-bottom: 8px; }
.check .why { color: #bda997; font-size: .94rem; margin-bottom: 8px; max-width: 70ch; }
.check .who { font-size: .84rem; color: #a89a86; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0; }
.who-label {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-br); border: 1px solid rgba(242,193,78,.4); border-radius: 100px; padding: 3px 9px;
}
.check.is-ok .found { color: #bda997; font-size: .92rem; margin: 0; }
.check.is-ok h4 { font-weight: 500; font-size: .98rem; color: #d8cab6; }
.group-fold .check { padding: 10px 28px; border-bottom: 0; }

/* Hero: the product itself, not an illustration */
.hero-art { aspect-ratio: auto; display: block; position: relative; padding: 10px 0 0; }
.hero-art .ring { border-color: rgba(255,140,105,.18); }
.hero-art .r1 { inset: -6% -14% 18% -14%; }
.hero-art .r2 { inset: 8% 2% 34% 2%; }
.shot {
  position: relative; z-index: 2; margin: 0 auto; width: min(316px, 74%);
  border-radius: 22px; overflow: hidden; background: var(--paper);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,140,105,.25);
  transform: rotate(-1.2deg);
}
.shot img { display: block; width: 100%; height: auto; }
.shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px;
  background: linear-gradient(to bottom, rgba(14,59,54,0), var(--ox) 88%); pointer-events: none;
}
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 18px 16px;
  font-size: .82rem; line-height: 1.4; color: var(--bone); text-align: center;
}
.shot { max-height: 560px; }
.tagm {
  position: absolute; z-index: 3; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ox-deeper); background: var(--teal-br);
  padding: 7px 12px; border-radius: 100px; box-shadow: 0 10px 22px -12px rgba(0,0,0,.8); white-space: nowrap;
}
.tagm.t1 { top: 17%; left: 0; }
.tagm.t2 { top: 44%; right: 0; background: var(--gold); color: var(--ox-deeper); }
.tagm.t3 { top: 68%; left: 0; }
@media (max-width: 900px) {
  .shot { transform: none; width: min(320px, 78%); max-height: 440px; }
  .tagm.t1 { left: 0; } .tagm.t2 { right: 0; } .tagm.t3 { left: 2%; }
}

/* Live toolbar demo */
.demo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: stretch; }
.demo-panel { background: var(--ox-deeper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 20px; }
.demo-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.demo-controls { display: grid; gap: 8px; }
.dbtn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: rgba(236,229,216,.05); border: 1px solid rgba(236,229,216,.14); border-radius: 14px;
  padding: 12px 14px; color: var(--bone); font-family: var(--sans); font-size: .95rem; font-weight: 500;
  cursor: pointer; transition: .25s var(--ease);
}
.dbtn:hover { background: rgba(236,229,216,.1); border-color: rgba(255,140,105,.4); }
.dico {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--ox);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.dbtn[aria-pressed="true"] { background: rgba(255,140,105,.16); border-color: var(--gold); }
.dbtn[aria-pressed="true"] .dico { background: var(--gold); color: #fff; }
.demo-note { margin-top: 14px; font-size: .84rem; color: #bda997; }

.demo-stage { background: var(--ox-deep); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; }
.demo-page {
  position: relative; flex: 1; background: #fff; color: #23201c; border-radius: 12px; padding: 26px 28px;
  font-size: 16px; line-height: 1.6; overflow: hidden; transition: background .3s var(--ease), color .3s var(--ease);
}
.demo-page h3 { font-family: var(--serif); font-size: 1.5rem; color: inherit; margin-bottom: 10px; }
.demo-page p { margin-bottom: 12px; color: inherit; max-width: none; }
.demo-page a { color: #0b57d0; text-decoration: underline; }
.demo-kicker { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #8a8378; }
.demo-small { font-size: .85em; color: #6f6a61; }
.demo-page.d-size { font-size: 22px; }
.demo-page.d-space { letter-spacing: .1em; word-spacing: .16em; line-height: 2; }
.demo-page.d-font { font-family: Verdana, Tahoma, sans-serif; }
.demo-page.d-contrast { background: #000; color: #fff; }
.demo-page.d-contrast .demo-kicker, .demo-page.d-contrast .demo-small { color: #d6d0c4; }
.demo-page.d-contrast a { color: #ffe14d; }
.demo-page.d-links a { background: #ffe14d; color: #000; outline: 2px solid #000; text-decoration: underline; }
.demo-guide { position: absolute; left: 0; right: 0; top: 40%; height: 10px; background: #ffe14d; border-top: 3px solid #111; border-bottom: 3px solid #111; pointer-events: none; transition: top .1s linear; }
.toolbar-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 26px; }
.toolbar-foot .honest { margin: 0; max-width: 62ch; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
