/* SmartTrace website styles */
:root {
  --green: #1eb286;
  --green-dark: #148868;
  --green-tint: #e6f6f0;
  --bottle: #0f3b2e;
  --bottle-2: #15523f;
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --white: #ffffff;
  --ink: #1f2a26;
  --ink-2: #4b5852;
  --ink-3: #7b857f;
  --line: #ddd9cf;
  --amber: #c98a17;
  --amber-tint: #fdf3dc;
  --red: #c94a3a;
  --red-tint: #fbe9e5;
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1160px;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--bottle); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bottle); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--bottle); line-height: 1.12; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.3rem; color: var(--ink-2); max-width: 36em; }
.measure { max-width: 42em; }
small, .small { font-size: .9rem; }
.muted { color: var(--ink-2); }
code, .id { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); padding: .1em .4em; border-radius: 5px; color: var(--bottle); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.band-dark { background: var(--bottle); color: #e6efe9; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted { color: #b7cbc1; }
.band-dark a { color: #9fe3c9; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-tint { background: var(--green-tint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.1; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--bottle); border-color: var(--bottle); }
.btn-ghost:hover { background: var(--bottle); color: #fff; }
.band-dark .btn-ghost { color: #fff; border-color: #fff; }
.band-dark .btn-ghost:hover { background: #fff; color: var(--bottle); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.15rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-note { font-size: .95rem; color: var(--ink-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,246,242,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--bottle); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--green-dark); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav-cta .btn { padding: .6rem 1.1rem; font-size: .98rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--bottle); margin: 5px 0; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: flex-start; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); gap: 1rem; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-proof { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--ink-2); font-size: 1rem; }
.hero-proof span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: .4rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Trace chain, the hero visual */
.chain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.2rem 1rem; box-shadow: 0 20px 50px -30px rgba(15,59,46,.35); }
.chain-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; font-size: .95rem; color: var(--ink-2); }
.chain-head strong { color: var(--bottle); font-family: var(--font-display); font-size: 1.05rem; }
.chain ol { list-style: none; margin: 0; padding: 0; }
.chain li { position: relative; padding: .55rem 0 .55rem 2.2rem; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "stage id" "what id"; gap: .1rem 1rem; align-items: center; }
.chain li::before { content: ""; position: absolute; left: .62rem; top: 0; bottom: 0; width: 2px; background: var(--line); }
.chain li:first-child::before { top: 50%; }
.chain li:last-child::before { bottom: 50%; }
.chain li::after { content: ""; position: absolute; left: .3rem; top: calc(50% - .4rem); width: .8rem; height: .8rem; border-radius: 50%; background: var(--green); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green); }
.chain .stage { grid-area: stage; font-size: .8rem; color: var(--ink-3); letter-spacing: .02em; }
.chain .what { grid-area: what; font-weight: 600; color: var(--ink); }
.chain .id { grid-area: id; justify-self: end; white-space: nowrap; }
@media (max-width: 420px) { .chain li { grid-template-columns: 1fr; grid-template-areas: "stage" "what" "id"; } .chain .id { justify-self: start; } }
.chain li.hot::after { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.chain li.hot .id { background: var(--amber-tint); color: #8a5a0b; }
.chain-foot { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chain-foot b { color: var(--bottle); }

/* Device frames */
.phone { --pw: 300px; width: min(var(--pw), 100%); margin-inline: auto; position: relative; aspect-ratio: 390 / 844; background: #1c1c1e; border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .035); box-shadow: 0 30px 60px -28px rgba(0,0,0,.6), inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 4px #0b0b0c; }
.phone::before { content: ""; position: absolute; left: -3px; top: 22%; width: 3px; height: 9%; background: #2c2c2e; border-radius: 2px 0 0 2px; box-shadow: 0 13% 0 0 #2c2c2e; }
.phone::after { content: ""; position: absolute; right: -3px; top: 27%; width: 3px; height: 14%; background: #2c2c2e; border-radius: 0 2px 2px 0; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .125); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone-status { flex: 0 0 auto; height: calc(var(--pw) * .115); background: #fff; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 calc(var(--pw) * .075) calc(var(--pw) * .015); font-family: var(--font-display); font-weight: 700; font-size: calc(var(--pw) * .042); color: #111; position: relative; }
.phone-status .island { position: absolute; left: 50%; top: calc(var(--pw) * .022); transform: translateX(-50%); width: calc(var(--pw) * .28); height: calc(var(--pw) * .075); background: #0b0b0c; border-radius: 999px; }
.phone-status .right { display: inline-flex; gap: calc(var(--pw) * .015); align-items: center; }
.phone-status svg { height: calc(var(--pw) * .035); width: auto; }
.phone-screen img { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top; }
.phone-sm { --pw: 230px; }
.phone-lg { --pw: 340px; }
.laptop { background: #1b1f1e; border-radius: 14px 14px 4px 4px; padding: 10px 10px 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.laptop-screen { border-radius: 6px 6px 0 0; overflow: hidden; background: #fff; aspect-ratio: 1440 / 723; }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base { height: 14px; background: linear-gradient(#2b302e, #1b1f1e); border-radius: 0 0 10px 10px; margin: 0 -3% ; }
figure { margin: 0; }
figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .7rem; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }

/* Two column feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature ul { padding-left: 1.2rem; margin: .8rem 0 0; }
.feature li { margin: .3rem 0; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 1.6rem; } .feature.flip > :first-child { order: 0; } }

/* Phone vs desktop */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.split > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.split h3 { margin-top: .4rem; }
.split .who { color: var(--ink-2); font-size: 1rem; margin-bottom: 1rem; }
.split ul { padding-left: 1.2rem; }
.split li { margin: .35rem 0; }
.split .media { margin: 1.2rem 0 .4rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Steps (a real sequence) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 1.5rem; }
.step { counter-increment: step; padding-top: .6rem; border-top: 3px solid var(--green); }
.step::before { content: counter(step); display: inline-block; font-family: var(--font-display); font-weight: 800; color: var(--green-dark); font-size: 1.6rem; margin-bottom: .2rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.step p { font-size: 1.02rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Checklist grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.item h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.item p { color: var(--ink-2); font-size: 1.02rem; margin: 0; }
.item .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green-dark); display: grid; place-items: center; margin-bottom: .7rem; }
.item .ico svg { width: 22px; height: 22px; }

/* Pricing */
.price-card { background: var(--white); border: 2px solid var(--bottle); border-radius: var(--radius-lg); padding: 2rem; max-width: 520px; }
.price-card .amount { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: var(--bottle); line-height: 1; }
.price-card .amount small { font-size: 1.2rem; font-weight: 600; color: var(--ink-2); margin-left: .3rem; font-family: var(--font-body); }
.price-card .per { color: var(--ink-2); margin-bottom: 1.2rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0; }
.price-card li { padding: .4rem 0 .4rem 1.8rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-wrap { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .price-wrap { grid-template-columns: 1fr; } }
.guarantee { display: flex; gap: 1rem; align-items: flex-start; background: var(--amber-tint); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.4rem; }
.guarantee svg { flex: 0 0 28px; width: 28px; height: 28px; color: var(--amber); }
.guarantee p { margin: 0; font-size: 1rem; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: baseline; }
.timeline .when { font-family: var(--font-display); font-weight: 700; color: var(--green-dark); }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-top: 1px solid var(--line); padding: .2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .9rem 2rem .9rem 0; font-weight: 600; font-size: 1.12rem; list-style: none; position: relative; color: var(--bottle); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .75rem; font-size: 1.5rem; color: var(--green-dark); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 1.1rem; color: var(--ink-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* Producer pages */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pill-row a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--bottle); text-decoration: none; font-weight: 500; font-size: 1rem; }
.pill-row a:hover, .pill-row a[aria-current] { border-color: var(--green); background: var(--green-tint); }
.example { background: var(--white); border-left: 4px solid var(--green); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.example h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.example ol { margin: 0; padding-left: 1.2rem; }
.example li { margin: .25rem 0; }

/* Testimonials placeholder (hidden until filled) */
.quotes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.quotes blockquote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; font-size: 1.05rem; }
.quotes cite { display: block; margin-top: .8rem; font-style: normal; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* Callouts */
.note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.note-amber { background: var(--amber-tint); border-color: #efd9a6; }
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .kit { grid-template-columns: 1fr; } }
.kit dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.kit dt { font-weight: 600; color: var(--bottle); }
.kit dd { margin: 0; color: var(--ink-2); }

/* Prose pages */
.prose { max-width: 44em; margin-left: 0; }
.prose h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--bottle); }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.5rem 0 2rem; font-size: 1rem; }
.toc ol { margin: .4rem 0 0; padding-left: 1.2rem; columns: 2; }
.toc li { margin: .15rem 0; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* CTA band */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 18em; }
.cta-band .btn-row { margin-top: 1.4rem; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: 1rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-size: .95rem; color: var(--bottle); margin-bottom: .6rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: .3rem 0; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--bottle); text-decoration: underline; }
.foot-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; font-size: .92rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-title { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-title h1 { max-width: 16em; }
.page-title .lead { margin-bottom: 0; }
.eyebrow-link { font-size: 1rem; margin-bottom: 1rem; display: inline-block; }
