/* Aye Online v2
   Quiet, contemporary studio look. Slate ink, loch blue, gorse accent.
   Class names unchanged from v1 so all pages restyle together. */
:root {
  --ink: #16222b;
  --ink-soft: rgba(22, 34, 43, 0.72);
  --paper: #fafbfa;
  --card: #ffffff;
  --stone: #eff1ef;
  --loch: #19606a;
  --loch-deep: #114750;
  --gorse: #e4af3d;
  --red: #b3442f;
  --green: #2e7d5b;
  --rule: rgba(22, 34, 43, 0.12);
  --radius: 12px;
  --max: 1100px;
  --font-display: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(22,34,43,0.05), 0 10px 32px rgba(22,34,43,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: var(--loch); text-underline-offset: 3px; }
a:hover { color: var(--loch-deep); }

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

/* ---------- header ---------- */
.fascia {
  background: rgba(250,251,250,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}
.fascia-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.15;
}
.wordmark .est {
  color: var(--ink-soft);
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
  display: block;
  font-weight: 600;
}
nav.site-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
nav.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav.site-nav a:hover, nav.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gorse);
}
nav.site-nav a.nav-cta {
  background: var(--loch);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  border-bottom: none;
}
nav.site-nav a.nav-cta:hover { background: var(--loch-deep); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
section { padding: 4.75rem 0; }
section.alt { background: var(--stone); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--loch);
  margin-bottom: 1rem;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.3rem); font-weight: 700; margin-bottom: 1.1rem; }
h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 0.5rem; }

.lede { font-size: 1.19rem; max-width: 35em; margin-top: 1.1rem; color: var(--ink-soft); }

.btn {
  display: inline-block;
  background: var(--loch);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--loch-deep); color: #fff; }
.btn.gold { background: var(--gorse); color: var(--ink); }
.btn.gold:hover { background: #d6a02e; }
.btn.ghost {
  background: transparent;
  color: var(--loch);
  border: 1.5px solid var(--loch);
}
.btn.ghost:hover { background: rgba(25,96,106,0.07); }
.cta-row { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4.75rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* findings panel */
.ticket {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem 1.3rem;
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 430px;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.ticket ul { list-style: none; }
.ticket li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.28rem 0; }
.ticket .flag, .ticket .ok {
  flex-shrink: 0;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  position: relative; top: 0.05rem;
  font-size: 0;
}
.ticket .flag { background: var(--red); }
.ticket .ok { background: var(--green); }
.ticket li:has(.ok) span:last-child { font-weight: 600; }
.ticket-foot {
  border-top: 1px solid var(--rule);
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* full-bleed image band */
.band {
  height: clamp(220px, 34vw, 380px);
  background: var(--stone);
  overflow: hidden;
}
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.2rem; }
@media (max-width: 840px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
}
.card p { font-size: 0.97rem; color: var(--ink-soft); }
.card .step {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c7714;
  display: block;
  margin-bottom: 0.6rem;
}

/* pricing */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 700;
  margin: 0.4rem 0 0.2rem;
}
.price-card .per { font-size: 0.9rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; }
.price-card ul { margin: 1rem 0 1.5rem 1.15rem; font-size: 0.95rem; color: var(--ink-soft); }
.price-card li { margin-bottom: 0.45rem; }
.price-card .btn { margin-top: auto; text-align: center; }
.price-card.featured { border: 2px solid var(--loch); }
.badge {
  position: absolute;
  top: -0.85rem;
  left: 1.3rem;
  background: var(--gorse);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

/* imagery */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.6rem; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
  align-items: center;
}
@media (max-width: 840px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* teardowns */
.teardown {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.9rem;
  margin-top: 1.7rem;
}
.teardown .sector {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--loch);
}
.teardown h3 { margin-top: 0.45rem; font-size: 1.35rem; }
.finding {
  font-size: 0.94rem;
  background: var(--stone);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1.05rem;
  margin: 1rem 0;
}
.finding.fix, .fix { border-left-color: var(--green); }

/* forms */
form.check-form { max-width: 560px; margin-top: 2rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1.5px solid rgba(22,34,43,0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--loch);
  box-shadow: 0 0 0 3px rgba(25,96,106,0.15);
}
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-status.ok { display: block; background: rgba(46,125,91,0.1); border: 1px solid var(--green); }
.form-status.err { display: block; background: rgba(179,68,47,0.08); border: 1px solid var(--red); }

/* prose */
.prose { max-width: 42em; }
.prose p { margin-bottom: 1.1rem; }
.prose h3 { margin-top: 2rem; }

/* footer */
footer { background: var(--ink); color: rgba(250,251,250,0.75); margin-top: 4rem; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
footer a { color: #fff; }
.footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.15;
}
.footer-mark .est {
  color: var(--gorse);
  font-family: var(--font-body);
  font-size: 0.62rem;
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 640px) {
  .fascia-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .fascia { position: static; }
  section { padding: 3.4rem 0; }
}

/* utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* self-check quiz */
.quiz { max-width: 620px; margin-top: 2rem; }
.quiz h3 { font-size: 1.25rem; margin-bottom: 1.1rem; }
.quiz-progress { display: flex; gap: 0.45rem; margin-bottom: 1.2rem; }
.quiz-progress .dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--rule);
}
.quiz-progress .dot.done { background: var(--green); }
.quiz-progress .dot.now { background: var(--loch); }
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 0.6rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.quiz-opt:hover { border-color: var(--loch); background: #fff; }
.quiz-again { max-width: 200px; color: var(--ink-soft); }

/* footer stamp */
.stamp { font-size: 0.82rem; color: rgba(250,251,250,0.55); }
.stamp [data-last-checked] { color: var(--gorse); font-weight: 600; }

/* ---------- v2.1 layout rework: editorial section grid ---------- */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: start;
}
.section-head { position: sticky; top: 5.5rem; }
.section-head h2 { margin-bottom: 0.8rem; }
.section-head .lede { font-size: 1.1rem; margin-top: 0.6rem; }
.section-grid .lede, .section-grid .prose { max-width: none; }
.section-grid .quiz { max-width: none; margin-top: 0; }
.section-grid form.check-form { max-width: none; margin-top: 0; }
.section-grid .prose > :first-child { margin-top: 0; }
.section-grid .prose h3:first-child { margin-top: 0; }

.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .cta-row { justify-content: center; }

@media (max-width: 840px) {
  .section-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .section-head { position: static; }
}

/* ---------- v2.2: about + teardowns ---------- */
.pullquote {
  border-left: 3px solid var(--gorse);
  padding: 0.3rem 0 0.3rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 1.8rem 0;
}
.name-card {
  margin-top: 0.9rem;
}
.name-card strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.name-card span { font-size: 0.88rem; color: var(--ink-soft); }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; margin-top: 2rem; }
@media (max-width: 840px) { .principles { grid-template-columns: 1fr; } }
.principle { display: flex; gap: 0.8rem; align-items: baseline; }
.principle .dot-ok {
  flex-shrink: 0;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  position: relative; top: -0.05rem;
}
.principle p { font-size: 0.97rem; color: var(--ink-soft); }
.principle strong { color: var(--ink); }


/* stat strip */
.stat { text-align: left; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--loch);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- v2.3: teardowns clean vertical flow ---------- */
.teardown .finding::before {
  content: "What we found";
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.teardown .finding.fix::before { content: "The fix"; color: var(--green); }
.teardown > p:not(.finding) { color: var(--ink-soft); margin-top: 1rem; }
.teardown .finding { margin: 1.2rem 0 0; }
.teardown .finding + p { margin-top: 1rem; }

/* ---------- v2.3: services page ---------- */
.price-card .plan-for {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.price-card ul li strong { color: var(--ink); }
.wide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.2rem;
}
@media (max-width: 840px) { .wide-card { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---------- v2.4: comparison table + mobile CTA bar ---------- */
.compare-scroll { overflow-x: auto; margin-top: 2rem; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
  min-width: 640px;
  box-shadow: var(--shadow);
}
.compare th, .compare td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 0.98rem; background: var(--stone); }
.compare thead th span { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.compare tbody th { font-weight: 600; width: 22%; color: var(--ink); }
.compare tbody td { color: var(--ink-soft); }
.compare .hl { background: rgba(25,96,106,0.06); color: var(--ink); font-weight: 500; }
.compare thead .hl { background: var(--loch); color: #fff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }

.mobile-bar { display: none; }
@media (max-width: 840px) {
  .mobile-bar {
    display: flex;
    gap: 0.6rem;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 30;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(250,251,250,0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--rule);
  }
  .mobile-bar .btn { flex: 1; text-align: center; padding: 0.75rem 0.5rem; font-size: 0.95rem; }
  body:has(.mobile-bar) { padding-bottom: 4.5rem; }
}

/* ---------- brand: live status dot ---------- */
.live-dot {
  display: inline-block;
  width: 0.42em; height: 0.42em;
  border-radius: 50%;
  background: #3fae76;
  margin-left: 0.28em;
  vertical-align: baseline;
  animation: live-pulse 3s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- motion: scroll reveals ---------- */
.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.will-reveal.revealed { opacity: 1; transform: none; }

/* hero findings panel: items check in one by one on load */
@media (prefers-reduced-motion: no-preference) {
  .hero .ticket li {
    opacity: 0;
    transform: translateX(-8px);
    animation: ticket-in 0.45s ease forwards;
  }
  .hero .ticket li:nth-child(1) { animation-delay: 0.25s; }
  .hero .ticket li:nth-child(2) { animation-delay: 0.55s; }
  .hero .ticket li:nth-child(3) { animation-delay: 0.85s; }
  .hero .ticket li:nth-child(4) { animation-delay: 1.15s; }
  .hero .ticket li:nth-child(5) { animation-delay: 1.6s; }
  @keyframes ticket-in { to { opacity: 1; transform: none; } }
}

/* ---------- case studies ---------- */
.teardown.case { border-left: 4px solid var(--loch); }
.teardown.case .sector { color: var(--gorse); }
.teardown blockquote { margin: 1.2rem 0 0; }
.teardown blockquote strong { display: block; margin-top: 0.6rem; font-size: 0.88rem; }

/* ---------- v2.5: work page redesign ---------- */
.case-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 1.6rem;
}
@media (max-width: 840px) { .case-grid { grid-template-columns: 1fr; } }
.case-body { padding: 1.6rem 1.7rem 1.7rem; }
.case-body h3 { font-size: 1.25rem; }
.case-body p { color: var(--ink-soft); }
.case-body p.finding, .case-body blockquote { color: var(--ink); }
.featured-case .case-body { padding: 2rem 2.2rem 2.2rem; }
.featured-case .case-body h3 { font-size: 1.5rem; }
.featured-case .case-body > p:not(.finding) { max-width: 62em; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--stone);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 1rem;
}
.b-dots { display: flex; gap: 0.35rem; }
.b-dots i {
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: rgba(22,34,43,0.18);
}
.b-url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.22rem 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.b-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--loch);
  white-space: nowrap;
}

/* wild-finds accordions */
.teardown-acc {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.teardown-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.4rem;
}
.teardown-acc summary::-webkit-details-marker { display: none; }
.teardown-acc summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--loch);
  line-height: 1;
  transition: transform 0.2s ease;
}
.teardown-acc[open] summary::after { transform: rotate(45deg); }
.teardown-acc summary:hover { background: rgba(25,96,106,0.04); border-radius: var(--radius); }
.acc-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gorse);
  flex-shrink: 0;
}
.teardown-acc summary strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.teardown-acc summary em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }
.acc-body { padding: 0 1.4rem 1.4rem 3.4rem; }
.acc-body p { color: var(--ink-soft); margin-top: 0.9rem; }
.acc-body .finding { color: var(--ink); }
@media (max-width: 640px) { .acc-body { padding-left: 1.4rem; } }

/* ---------- case hero images ---------- */
.case-hero {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--stone);
}
.case-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-hero.wide { aspect-ratio: 21 / 6; }
.case-hero.logo-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 2rem;
}
.case-hero.logo-hero img {
  width: auto; height: auto;
  max-height: 3.2rem;
  max-width: 70%;
  object-fit: contain;
}

/* ---------- hero framed health check ---------- */
.hero-frame {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 440px;
}
.hero-frame .ticket {
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-width: none;
}
.case-body.compact { padding: 1.2rem 1.4rem 1.3rem; }
.case-body.compact p { font-size: 0.95rem; }

/* ---------- hero: the stale mock website ---------- */
.mock-site {
  padding: 1.1rem 1.3rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.mock-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.9rem;
}
.m-logo { width: 1.1rem; height: 1.1rem; border-radius: 4px; background: rgba(22,34,43,0.2); }
.mock-nav i { width: 2.2rem; height: 0.45rem; border-radius: 3px; background: rgba(22,34,43,0.12); }
.m-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.m-row, .m-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
  color: var(--ink-soft);
}
.m-btn {
  background: rgba(22,34,43,0.08);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.05rem 0.55rem;
  font-size: 0.78rem;
}
.m-foot { border-top: 1px solid var(--rule); margin-top: 0.7rem; padding-top: 0.7rem; font-size: 0.78rem; }
.flag-pill {
  background: rgba(179,68,47,0.1);
  color: var(--red);
  border: 1px solid rgba(179,68,47,0.35);
  border-radius: 999px;
  padding: 0.02rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.verdict-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.3rem;
  border-top: 1px solid var(--rule);
  background: rgba(46,125,91,0.07);
  font-weight: 600;
  font-size: 0.9rem;
}
.ok-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--green); flex-shrink: 0; }

@media (prefers-reduced-motion: no-preference) {
  .flag-pill { opacity: 0; transform: scale(0.85); animation: flag-in 0.4s ease forwards; }
  .flag-pill.d1 { animation-delay: 0.5s; }
  .flag-pill.d2 { animation-delay: 0.9s; }
  .flag-pill.d3 { animation-delay: 1.3s; }
  .flag-pill.d4 { animation-delay: 1.7s; }
  .verdict-bar { opacity: 0; animation: flag-in 0.5s ease 2.2s forwards; }
  @keyframes flag-in { to { opacity: 1; transform: none; } }
}

/* ---------- v2.6: responsive refinements ---------- */
@media (max-width: 640px) {
  .hero { padding: 3.2rem 0 3rem; }
  .hero-frame { max-width: none; }
  .wordmark { font-size: 1.02rem; }
  nav.site-nav { gap: 0.7rem 1.1rem; font-size: 0.88rem; }
  .featured-case .case-body { padding: 1.5rem 1.4rem 1.6rem; }
  .case-hero.wide { aspect-ratio: 16 / 8; }
  .lede { font-size: 1.1rem; }
  .price-card .price { font-size: 1.8rem; }
}
@media (min-width: 841px) and (max-width: 1080px) {
  .grid-3 { gap: 1.1rem; }
  .case-grid { gap: 1.2rem; }
}
