/* Shopify Dev Kit — site styles.
   Clean product-site look: white surface, near-black type, bold tight
   headings, black primary buttons, one blue accent, product shown in framed
   panels. Light and dark themes share the same tokens; the theme buttons set
   data-theme on <html>, otherwise the system setting applies. Every text color
   below is at least 4.5:1 on its background. */
:root {
  --bg: #ffffff; --bg-soft: #fafafa; --surface: #ffffff; --line: #e4e4e7; --line-strong: #d4d4d8;
  --text: #09090b; --text-2: #3f3f46; --text-3: #52525b;
  --primary: #18181b; --on-primary: #fafafa; --primary-hover: #27272a;
  --accent: #1d4ed8; --accent-soft: #eff6ff; --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --panel-a: linear-gradient(135deg, #22d3ee, #2563eb); --panel-b: linear-gradient(135deg, #6ee7b7, #c4b5fd 60%, #f5d0fe);
  --panel-c: linear-gradient(135deg, #fde68a, #fb923c); --panel-d: linear-gradient(135deg, #e4e4e7, #a1a1aa);
  --grid: rgba(24, 24, 27, 0.045);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
}
:root[data-theme="dark"] {
  --bg: #09090b; --bg-soft: #0f0f12; --surface: #111113; --line: #27272a; --line-strong: #3f3f46;
  --text: #fafafa; --text-2: #d4d4d8; --text-3: #a1a1aa;
  --primary: #fafafa; --on-primary: #18181b; --primary-hover: #e4e4e7;
  --accent: #93c5fd; --accent-soft: #172554; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --grid: rgba(250, 250, 250, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --bg-soft: #0f0f12; --surface: #111113; --line: #27272a; --line-strong: #3f3f46;
    --text: #fafafa; --text-2: #d4d4d8; --text-3: #a1a1aa;
    --primary: #fafafa; --on-primary: #18181b; --primary-hover: #e4e4e7;
    --accent: #93c5fd; --accent-soft: #172554; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
    --grid: rgba(250, 250, 250, 0.05);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1232px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 30; border: 1px solid var(--line); border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--bg-soft); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); display: grid; place-items: center; }
.brand-mark i { display: block; width: 13px; height: 4px; border-radius: 1px; background: #a3e635; box-shadow: 0 6px 0 var(--on-primary), 0 -6px 0 var(--on-primary); }
.nav { display: flex; align-items: center; gap: 24px; flex: 1; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:not(.btn) { color: var(--text-2); }
.nav a:not(.btn):hover { color: var(--text); }
.nav .spacer { flex: 1; }
.theme { display: flex; gap: 2px; }
.theme button { width: 32px; height: 32px; display: grid; place-items: center; border: none; background: none; color: var(--text-3); border-radius: 6px; cursor: pointer; }
.theme button:hover, .theme button[aria-pressed="true"] { color: var(--text); background: var(--bg-soft); }
.theme svg, .check svg, .faq-side svg, summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .nav > a:not(.btn) { display: none; } .nav { gap: 10px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid transparent; background: var(--primary); color: var(--on-primary); font: 500 0.9rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--primary-hover); }
.btn.outline { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.outline:hover { background: var(--bg-soft); }
.btn.blue { background: #2563eb; color: #fff; }
.btn.blue:hover { background: #1d4ed8; }
.btn.muted { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
.btn.wide { width: 100%; }

/* hero */
.hero { position: relative; text-align: center; padding: 96px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 5px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 0.875rem; color: var(--text-3); }
.pill b { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.04em; max-width: 15ch; margin: 22px auto 22px; }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--text-3); max-width: 46rem; margin-inline: auto; line-height: 1.5; }
.hero .lede b { color: var(--text); font-weight: 500; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.works { margin-top: 84px; }
.works p { color: var(--text-3); font-size: 1.05rem; }
.works ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text-2); }

/* two-up box with corner marks */
.duo { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; border: 1px solid var(--line); margin: 56px auto 0; max-width: 976px; text-align: left; background: var(--surface); }
.duo::before, .duo::after { content: "+"; position: absolute; font: 300 26px/1 var(--sans); color: var(--text-3); }
.duo::before { left: -9px; top: -15px; } .duo::after { right: -9px; bottom: -13px; }
.duo > div { padding: 44px 48px; }
.duo > div + div { border-left: 1px solid var(--line); }
.duo p { font-size: 1.1rem; color: var(--text-3); line-height: 1.55; }
.duo p b { color: var(--text); font-weight: 650; }
.duo .btn { margin-top: 22px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo > div { padding: 28px 24px; } .duo > div + div { border-left: none; border-top: 1px solid var(--line); } }

/* section headings */
section { padding: 88px 0; }
.center { text-align: center; }
.center h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); letter-spacing: -0.035em; }
.center .sub { color: var(--text-3); font-size: 1.15rem; max-width: 44rem; margin: 14px auto 0; line-height: 1.5; }

/* feature rows: framed panel + text + checklist */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 88px; }
.feature:first-of-type { margin-top: 64px; }
.feature.flip .panel { order: 2; }
.feature h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.feature .body p { color: var(--text-3); margin-top: 12px; max-width: 36rem; }
.tag { display: inline-block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.check { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.check li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--text-2); }
.check svg { margin-top: 3px; color: var(--text); }
.panel { border-radius: 4px; padding: 40px 40px 0; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.panel.a { background: var(--panel-a); } .panel.b { background: var(--panel-b); } .panel.c { background: var(--panel-c); } .panel.d { background: var(--panel-d); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; margin-top: 64px; } .feature.flip .panel { order: 0; } .panel { min-height: 0; padding: 24px 20px 0; } }

/* drawn product windows (always light: they depict the product, not the site) */
.win { width: 100%; max-width: 470px; background: #fff; color: #18181b; border-radius: 10px 10px 0 0; box-shadow: 0 24px 60px rgba(9, 9, 11, .28); font: 400 13px/1.45 var(--sans); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f4f4f5; border-bottom: 1px solid #e4e4e7; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d8; }
.win-bar span { margin-left: 8px; font-size: 11.5px; color: #52525b; }
.win-body { padding: 14px; display: grid; gap: 10px; }
.g { border-radius: 8px; padding: 10px 12px; }
.g.blue { background: #e0edff; } .g.peach { background: #ffe8d6; } .g.gray { background: #f4f4f5; }
.g-head { display: flex; justify-content: space-between; font-weight: 650; }
.g-head small { font: 400 11px var(--mono); color: #52525b; }
.r { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(9, 9, 11, .1); }
.r span:last-child { font: 400 11.5px var(--mono); color: #3f3f46; white-space: nowrap; }
.note { background: #fef9c3; border-left: 3px solid #ca8a04; padding: 7px 10px; font-size: 12px; color: #422006; border-radius: 0 6px 6px 0; }
.chip { display: inline-block; font: 500 11.5px var(--mono); background: #18181b; color: #fafafa; padding: 2px 7px; border-radius: 5px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #e4e4e7; }
.line:first-child { border-top: none; padding-top: 0; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge.you { background: #dbeafe; color: #1e3a8a; } .badge.off { background: #f4f4f5; color: #3f3f46; } .badge.ok { background: #dcfce7; color: #14532d; } .badge.bad { background: #fee2e2; color: #7f1d1d; } .badge.warn { background: #fef3c7; color: #78350f; }
.win s { color: #b91c1c; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #18181b; color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 12px; flex: none; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; text-align: left; align-items: start; }
.plan { position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; background: var(--surface); }
.plan.popular { border-color: #2563eb; box-shadow: 0 10px 30px rgba(37, 99, 235, .12); }
.plan .flag { position: absolute; top: -2px; right: -2px; background: #2563eb; color: #fff; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 0 6px 0 6px; }
.plan h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.plan .price { margin-top: 8px; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: 0.95rem; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.plan .for { color: var(--text-3); margin-top: 6px; min-height: 3.2em; }
.plan .check { margin: 18px 0 24px; }
.plan .check svg { color: var(--ok); }
.plan .fine { text-align: center; font-size: 0.875rem; font-weight: 500; margin-top: 12px; color: var(--text-2); }
.plans-note { margin-top: 28px; color: var(--text-3); font-size: 0.95rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* faq */
.faq { display: grid; grid-template-columns: 0.9fr 1.7fr; gap: 48px; align-items: start; }
.faq h2 { font-size: 1.8rem; letter-spacing: -0.03em; }
.faq .sub { color: var(--text-3); margin-top: 12px; }
.faq-side { list-style: none; margin: 24px 0 0; padding: 0; }
.faq-side li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.faq-side li:first-child { border-top: none; }
.faq-side svg { width: 22px; height: 22px; margin-top: 2px; }
.faq-side b { display: block; font-weight: 600; }
.faq-side span { color: var(--text-3); font-size: 0.95rem; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 1.02rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; transition: transform .2s; }
details[open] summary svg { transform: rotate(180deg); }
details p { color: var(--text-3); padding: 0 32px 22px 0; max-width: 46rem; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* closing band + footer */
.band { border-top: 1px solid var(--line); background: var(--bg-soft); text-align: center; }
.band h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); letter-spacing: -0.035em; }
.band p { color: var(--text-3); margin: 12px auto 0; max-width: 40rem; font-size: 1.1rem; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.9rem; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer p { max-width: 70ch; }

/* long-form pages (privacy, terms) */
.doc { padding: 64px 0 88px; }
.doc .wrap { width: min(760px, 100% - 48px); }
.kicker { font-size: 0.85rem; color: var(--text-3); font-weight: 500; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.035em; margin: 8px 0 14px; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc .lede { font-size: 1.1rem; color: var(--text-2); }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--text); }
.draft { background: #fef9c3; color: #422006; border: 1px solid #fde047; border-radius: 6px; padding: 10px 14px; margin: 18px 0 8px; font-size: 0.92rem; }

/* a QA report (site/r/) */
.report { padding: 48px 0 88px; }
.report-state { padding: 80px 0; text-align: center; color: var(--text-3); }
.report-state h1 { font-size: 1.6rem; margin-bottom: 8px; }
.report-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.035em; margin: 6px 0 14px; max-width: 28ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags .by, .report-head .by { color: var(--text-3); font-size: 0.92rem; }
.report-body { margin: 18px 0; max-width: 46rem; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; }
.report-head .btn { margin-top: 6px; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.st-open { background: #dbeafe; color: #1e3a8a; border-color: #bfdbfe; } .badge.st-in_progress { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.badge.st-resolved { background: #e0e7ff; color: #312e81; border-color: #c7d2fe; } .badge.st-done { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.badge.st-blocked, .badge.sev-critical { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; } .badge.st-closed { background: #e4e4e7; color: #3f3f46; border-color: #d4d4d8; }
.badge.sev-high { background: #ffedd5; color: #7c2d12; border-color: #fed7aa; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; gap: 8px; } }
.block { padding: 0; margin: 0 0 32px; }
.block h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.block h2 .n { font-size: 0.75rem; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--text-3); }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 0.92rem; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts dt { color: var(--text-3); } .facts dd { margin: 0; overflow-wrap: anywhere; color: var(--text); }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.log { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.log th { text-align: left; font-weight: 600; padding: 9px 12px; background: var(--bg-soft); color: var(--text-2); white-space: nowrap; }
.log td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.log .wrap { overflow-wrap: anywhere; min-width: 16rem; }
.mono { font-family: var(--mono); font-size: 0.82rem; } .dim { color: var(--text-3); }
.lv-error { color: var(--bad); font-weight: 600; } .lv-warn { color: var(--warn); font-weight: 600; }
.pre { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: 260px; }
.thread { display: grid; gap: 12px; }
.comment { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.comment p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.board a { font-weight: 500; }
