:root {
  --shopify-navy: #061d31;
  --shopify-deep: #041725;
  --shopify-ink: #102a43;
  --shopify-muted: #657b8f;
  --shopify-line: #dbe5ec;
  --shopify-soft: #f4f8fa;
  --shopify-lime: #b8f53c;
  --shopify-green: #176b4d;
  --shopify-blue: #3267e3;
  --shopify-white: #fff;
}

html { scroll-behavior: smooth; }
body.shopify-page { margin: 0; overflow-x: hidden; background: #edf3f6; color: var(--shopify-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shopify-page *, .shopify-page *::before, .shopify-page *::after { box-sizing: border-box; }
.shopify-page button, .shopify-page input { font: inherit; }
.shopify-page button { cursor: pointer; }
.shopify-page [hidden] { display: none !important; }
.shopify-page a { color: inherit; text-decoration: none; }
.shopify-page .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 850; letter-spacing: -.03em; }
.shopify-page .brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--shopify-lime); color: var(--shopify-navy); }

.shopify-page .shopify-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(1440px, calc(100% - 40px));
  height: 76px;
  margin: 16px auto 0;
  padding: 0 28px;
  border: 1px solid rgba(145, 181, 204, .16);
  border-radius: 16px;
  background: rgba(5, 25, 43, .96);
}
.shopify-page .shopify-header::before {
  position: absolute;
  z-index: -1;
  top: -16px;
  bottom: -18px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--shopify-navy);
  content: "";
}
.shopify-page .shopify-header .brand { color: #fff; }
.shopify-page .shopify-header nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.shopify-page .shopify-header nav a { color: rgba(255,255,255,.76); white-space: nowrap; }
.shopify-page .shopify-header nav a:hover { color: var(--shopify-lime); }
.shopify-page .node-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 750; }
.shopify-page .node-pill > span:first-child { display: block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--shopify-lime); box-shadow: 0 0 0 4px rgba(184,245,60,.12); }
.shopify-page .node-pill > .node-pill-label {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  white-space: nowrap !important;
}

.shopify-hero {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(540px, 1.17fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
  min-height: 750px;
  padding: clamp(78px, 8vw, 124px) max(28px, calc((100vw - 1320px) / 2)) 88px;
  background:
    radial-gradient(circle at 15% 32%, rgba(184,245,60,.1), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(50,103,227,.17), transparent 36%),
    linear-gradient(180deg, var(--shopify-navy), var(--shopify-deep));
  color: #fff;
}
.shopify-hero-copy { padding-top: 26px; }
.shopify-kicker { margin: 0 0 12px; color: var(--shopify-green); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.shopify-hero .shopify-kicker { color: var(--shopify-lime); }
.shopify-hero h1 { max-width: 650px; margin: 0; color: #fff; font-size: clamp(48px, 5vw, 74px); line-height: .98; letter-spacing: -.055em; }
.shopify-hero-copy > p:not(.shopify-kicker) { max-width: 610px; margin: 28px 0 0; color: rgba(232,242,248,.76); font-size: 18px; line-height: 1.72; }
.shopify-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.shopify-trust span { padding: 8px 12px; border: 1px solid rgba(184,245,60,.25); border-radius: 999px; color: #dfffa2; font-size: 12px; font-weight: 750; }

.shopify-console { padding: 26px; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: 0 28px 80px rgba(0,0,0,.27); color: var(--shopify-ink); }
.shopify-field label, .shopify-picker legend { display: block; margin-bottom: 9px; color: var(--shopify-ink); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.shopify-field small, .shopify-picker > p { display: block; margin: 8px 0 0; color: var(--shopify-muted); font-size: 12px; line-height: 1.45; }
.shopify-url-control { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 0 17px; border: 1px solid var(--shopify-line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.shopify-url-control:focus-within { border-color: var(--shopify-blue); box-shadow: 0 0 0 4px rgba(50,103,227,.1); }
.shopify-url-control svg { flex: 0 0 auto; color: var(--shopify-muted); }
.shopify-url-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--shopify-ink); background: transparent; font-size: 17px; }
.shopify-picker { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.shopify-segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: #eaf0f4; }
.shopify-segmented button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--shopify-muted); font-weight: 800; }
.shopify-segmented button.is-active { background: var(--shopify-navy); color: #fff; box-shadow: 0 5px 15px rgba(6,29,49,.18); }
.shopify-locations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shopify-locations button { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 64px; padding: 9px; border: 1px solid var(--shopify-line); border-radius: 12px; background: #fff; color: var(--shopify-ink); text-align: left; }
.shopify-locations button:hover { border-color: #a9bbc8; }
.shopify-locations button.is-active { border-color: var(--shopify-green); background: #eef9f3; box-shadow: inset 0 0 0 1px var(--shopify-green); }
.shopify-locations img { flex: 0 0 auto; border-radius: 50%; }
.shopify-locations span { min-width: 0; }
.shopify-locations strong, .shopify-locations small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shopify-locations strong { font-size: 12px; }
.shopify-locations small { margin-top: 2px; color: var(--shopify-muted); font-size: 10px; }
.shopify-submit-row { display: grid; grid-template-columns: minmax(310px, 1fr) minmax(220px, .72fr); gap: 12px; align-items: stretch; margin-top: 22px; }
.shopify-turnstile { min-height: 68px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
#shopify-turnstile-status { min-height: 17px; margin-top: 4px; color: #a13434; font-size: 11px; }
.shopify-run { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--shopify-lime); color: var(--shopify-navy); font-weight: 900; }
.shopify-run:hover:not(:disabled) { background: #c7ff55; transform: translateY(-1px); }
.shopify-run:disabled { cursor: not-allowed; opacity: .5; }
.shopify-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff0f0; color: #8f2929; font-size: 13px; line-height: 1.5; }

.shopify-progress, .shopify-results, .shopify-explainer { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.shopify-progress { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 28px; align-items: center; padding: 64px 0; }
.shopify-progress h2 { margin: 0 0 8px; color: var(--shopify-ink); font-size: clamp(27px, 3vw, 42px); }
.shopify-progress p:last-child { margin: 0; color: var(--shopify-muted); }
.shopify-progress-orbit { display: grid; width: 80px; height: 80px; place-items: center; border: 1px solid #b8cbd7; border-radius: 50%; animation: shopify-spin 2.4s linear infinite; }
.shopify-progress-orbit::before, .shopify-progress-orbit span { width: 12px; height: 12px; border-radius: 50%; background: var(--shopify-green); content: ""; }
.shopify-progress-orbit::before { position: absolute; transform: translateY(-40px); background: var(--shopify-lime); box-shadow: 0 0 0 5px rgba(184,245,60,.2); }
@keyframes shopify-spin { to { transform: rotate(360deg); } }

.shopify-results { padding: 82px 0 96px; }
.shopify-results-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.shopify-results h2 { margin: 0; color: var(--shopify-ink); font-size: clamp(34px, 4vw, 56px); letter-spacing: -.045em; }
#shopify-result-context { max-width: 830px; margin: 14px 0 0; color: var(--shopify-muted); line-height: 1.6; overflow-wrap: anywhere; }
.shopify-secondary { min-height: 45px; padding: 0 17px; border: 1px solid #adbec9; border-radius: 11px; background: #fff; color: var(--shopify-ink); font-weight: 800; white-space: nowrap; }
.shopify-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.shopify-metric { min-width: 0; padding: 22px; border: 1px solid var(--shopify-line); border-radius: 17px; background: #fff; }
.shopify-metric span { display: block; color: var(--shopify-muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.shopify-metric strong { display: block; margin-top: 10px; color: var(--shopify-ink); font-size: clamp(26px, 3vw, 40px); line-height: 1; }
.shopify-metric small { display: block; margin-top: 8px; color: var(--shopify-muted); font-size: 11px; }
.shopify-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.shopify-card { min-width: 0; margin-bottom: 14px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--shopify-line); border-radius: 19px; background: #fff; }
.shopify-result-grid > .shopify-card { margin-bottom: 0; }
.shopify-card-head, .shopify-table-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.shopify-card h3 { margin: 0; color: var(--shopify-ink); font-size: clamp(21px, 2vw, 28px); letter-spacing: -.025em; }
.shopify-card > p, .shopify-detection-card > p { color: var(--shopify-muted); line-height: 1.65; }
.shopify-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #edf2f5; color: var(--shopify-muted); font-size: 11px; font-weight: 850; }
.shopify-badge.is-good { background: #e8f7ef; color: var(--shopify-green); }
.shopify-badge.is-review { background: #fff3dc; color: #885b0c; }
.shopify-evidence { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.shopify-evidence li { padding: 10px 12px; border-radius: 9px; background: var(--shopify-soft); color: var(--shopify-ink); font-size: 13px; }
.shopify-definition-list { display: grid; gap: 0; margin: 0; }
.shopify-definition-list div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #edf1f4; }
.shopify-definition-list div:last-child { border-bottom: 0; }
.shopify-definition-list dt { color: var(--shopify-muted); }
.shopify-definition-list dd { margin: 0; color: var(--shopify-ink); font-weight: 850; }
.shopify-muted { color: var(--shopify-muted); font-size: 12px; }
.shopify-breakdown { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.shopify-breakdown-item { padding: 17px; border-radius: 13px; background: var(--shopify-soft); }
.shopify-breakdown-item span { display: block; overflow-wrap: anywhere; color: var(--shopify-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.shopify-breakdown-item strong { display: block; margin-top: 8px; color: var(--shopify-ink); font-size: 22px; }
.shopify-breakdown-item small { display: block; margin-top: 4px; color: var(--shopify-muted); }
.shopify-stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shopify-stat { padding: 16px; border: 1px solid #e5ecef; border-radius: 12px; }
.shopify-stat span { display: block; color: var(--shopify-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.shopify-stat strong { display: block; margin-top: 7px; color: var(--shopify-ink); font-size: 23px; }
.shopify-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #edf2f5; }
.shopify-tabs button { padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--shopify-muted); font-size: 12px; font-weight: 800; }
.shopify-tabs button.is-active { background: #fff; color: var(--shopify-ink); box-shadow: 0 2px 8px rgba(16,42,67,.1); }
.shopify-table-wrap { overflow-x: auto; }
.shopify-card table { width: 100%; min-width: 720px; border-collapse: collapse; }
.shopify-card th, .shopify-card td { padding: 13px 10px; border-bottom: 1px solid #eaf0f3; text-align: left; vertical-align: middle; }
.shopify-card th { color: var(--shopify-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.shopify-card td { color: var(--shopify-ink); font-size: 13px; }
.shopify-resource-name { max-width: 500px; }
.shopify-resource-name strong, .shopify-resource-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shopify-resource-name small { margin-top: 3px; color: var(--shopify-muted); }
.shopify-table-tag { display: inline-block; margin: 2px 4px 2px 0; padding: 4px 7px; border-radius: 999px; background: #edf3f7; color: #375269; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.shopify-table-tag.is-platform { background: #e8f7ef; color: var(--shopify-green); }
.shopify-status-failed { color: #9c2c2c !important; font-weight: 800; }
.shopify-screenshot, .shopify-replay { display: block; width: 100%; max-height: 520px; border: 1px solid var(--shopify-line); border-radius: 12px; background: #071728; object-fit: contain; }
.shopify-replay-launch { position: relative; display: block; width: 100%; min-height: 250px; padding: 0; overflow: hidden; border: 1px solid var(--shopify-line); border-radius: 12px; background: #071728; color: #fff; }
.shopify-replay-launch::after { position: absolute; inset: 42% 0 0; background: linear-gradient(180deg, transparent, rgba(2,13,23,.8)); content: ""; pointer-events: none; }
.shopify-replay-launch > img { display: block; width: 100%; max-height: 520px; min-height: 250px; object-fit: contain; transition: transform .22s ease, opacity .22s ease; }
.shopify-replay-launch:hover > img { opacity: .9; transform: scale(1.008); }
.shopify-replay-launch:focus-visible { outline: 3px solid var(--shopify-blue); outline-offset: 3px; }
.shopify-replay-action { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; display: grid; grid-template-columns: 46px minmax(0,1fr); column-gap: 12px; align-items: center; text-align: left; pointer-events: none; }
.shopify-replay-play { grid-row: 1 / span 2; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--shopify-lime); color: var(--shopify-navy); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.shopify-replay-play svg { margin-left: 2px; }
.shopify-replay-action strong { align-self: end; font-size: 14px; line-height: 1.2; }
.shopify-replay-action small { align-self: start; margin-top: 3px; color: rgba(255,255,255,.76); font-size: 11px; }
.shopify-empty { display: grid; min-height: 250px; place-items: center; border: 1px dashed #c7d4dc; border-radius: 12px; background: var(--shopify-soft); color: var(--shopify-muted); }
.shopify-recommendations { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: recommendation; }
.shopify-recommendations li { counter-increment: recommendation; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 16px; border: 1px solid #e4ebef; border-radius: 13px; }
.shopify-recommendations li::before { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--shopify-navy); color: var(--shopify-lime); font-size: 12px; font-weight: 900; content: counter(recommendation, decimal-leading-zero); }
.shopify-recommendations h4 { margin: 1px 0 5px; font-size: 16px; }
.shopify-recommendations p { margin: 0; color: var(--shopify-muted); font-size: 13px; line-height: 1.55; }
.shopify-priority { padding: 5px 8px; border-radius: 999px; background: #fff1d6; color: #885b0c; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.shopify-priority.is-good { background: #e8f7ef; color: var(--shopify-green); }
.shopify-comparison { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shopify-compare-item { padding: 16px; border-radius: 12px; background: var(--shopify-soft); }
.shopify-compare-item span, .shopify-compare-item small { display: block; color: var(--shopify-muted); font-size: 11px; }
.shopify-compare-item strong { display: block; margin: 7px 0; font-size: 20px; }
.shopify-lab-note { display: flex; gap: 18px; align-items: flex-start; margin-top: 14px; padding: 22px 24px; border: 1px solid #b9cbd5; border-radius: 16px; background: #e8f0f4; }
.shopify-lab-note strong { flex: 0 0 auto; color: var(--shopify-ink); }
.shopify-lab-note p { margin: 0; color: #50687a; font-size: 13px; line-height: 1.65; }

.shopify-explainer { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: clamp(40px,6vw,90px); padding: 90px 0; }
.shopify-explainer h2 { max-width: 540px; margin: 0; font-size: clamp(38px,4vw,58px); line-height: 1.04; letter-spacing: -.045em; }
.shopify-explainer-grid { display: grid; gap: 12px; }
.shopify-explainer-grid article { position: relative; padding: 22px 22px 22px 76px; border: 1px solid var(--shopify-line); border-radius: 15px; background: #fff; }
.shopify-explainer-grid article > span { position: absolute; left: 20px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--shopify-navy); color: var(--shopify-lime); font-size: 10px; font-weight: 850; }
.shopify-explainer h3 { margin: 0 0 7px; font-size: 19px; }
.shopify-explainer article p { margin: 0; color: var(--shopify-muted); line-height: 1.55; }

.shopify-page footer { display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto; gap: 28px; align-items: center; padding: 32px max(24px, calc((100vw - 1320px) / 2)); border-top: 1px solid var(--shopify-line); background: #fff; }
.shopify-page footer .brand { font-size: 20px; }
.shopify-page footer .brand-mark { width: 34px; height: 34px; }
.shopify-page footer p, .shopify-page footer > span { margin: 0; color: var(--shopify-muted); font-size: 12px; }
.shopify-page .footer-links { display: flex; flex-wrap: wrap; gap: 15px; font-size: 12px; font-weight: 700; }

@media (max-width: 1100px) {
  .shopify-hero { grid-template-columns: 1fr; }
  .shopify-hero-copy { max-width: 800px; padding-top: 0; }
  .shopify-console { max-width: 850px; }
  .shopify-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shopify-page .shopify-header { width: calc(100% - 24px); height: 68px; padding: 0 16px; }
  .shopify-page .shopify-header nav { display: none; }
  .shopify-page .node-pill { font-size: 10px; }
  .shopify-hero { padding: 62px 18px 64px; }
  .shopify-hero h1 { font-size: clamp(43px, 12vw, 62px); }
  .shopify-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopify-submit-row, .shopify-result-grid, .shopify-explainer { grid-template-columns: 1fr; }
  .shopify-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopify-results, .shopify-progress, .shopify-explainer { width: min(100% - 28px, 760px); }
  .shopify-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopify-lab-note { display: block; }
  .shopify-lab-note p { margin-top: 8px; }
  .shopify-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopify-page footer { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .shopify-page .shopify-header .brand { font-size: 20px; }
  .shopify-page .node-pill { padding: 7px 8px; }
  .shopify-page .node-pill-label { max-width: 145px; overflow: hidden; text-overflow: ellipsis; }
  .shopify-hero { padding-left: 12px; padding-right: 12px; }
  .shopify-console { padding: 15px; border-radius: 18px; }
  .shopify-location-picker { min-width: 0; }
  .shopify-locations { gap: 7px; }
  .shopify-locations button { min-width: 0; padding: 7px; }
  .shopify-submit-row { grid-template-columns: minmax(0, 1fr); }
  .shopify-turnstile { align-items: center; max-width: 100%; }
  .shopify-progress { grid-template-columns: 64px minmax(0,1fr); gap: 17px; }
  .shopify-progress-orbit { width: 58px; height: 58px; }
  .shopify-progress-orbit::before { transform: translateY(-29px); }
  .shopify-results-head, .shopify-card-head, .shopify-table-head { display: block; }
  .shopify-results-head .shopify-secondary, .shopify-tabs { margin-top: 16px; }
  .shopify-metric-grid, .shopify-stat-list, .shopify-breakdown, .shopify-comparison { grid-template-columns: 1fr 1fr; }
  .shopify-recommendations li { grid-template-columns: 38px minmax(0,1fr); }
  .shopify-priority { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shopify-progress-orbit { animation: none; }
}
