/* ShipMeter public website. Self-hosted, no frameworks, system fonts. */
:root {
  --brand: #2563eb; --brand-dark: #1d4ed8; --brand-soft: #eff6ff; --ok: #15803d; --ok-soft: #dcfce7;
  --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --bg-alt: #f8fafc;
  --radius: 16px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; text-decoration: none; padding: 10px 20px; border: 1px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .55); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 22px; flex: 1; }
.site-nav a, .lang { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .lang:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #dbeafe 0, transparent 60%), radial-gradient(800px 400px at -10% 110%, #dcfce7 0, transparent 60%); padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #bfdbfe; padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

/* Live demo card */
.demo { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); }
.demo-badge { font-size: .75rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 2px 10px; border-radius: 999px; }
.demo-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; font-size: .95rem; }
.thumb { width: 44px; height: 44px; border-radius: 10px; }
.thumb-a { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.thumb-b { background: linear-gradient(135deg, #c7d2fe, #6366f1); }
.demo-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.demo-checkout { background: #111827; color: #fff; text-align: center; border-radius: 10px; padding: 12px; font-weight: 600; }
.demo-slider { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.demo-slider input { width: 100%; accent-color: var(--brand); }

/* The bar itself (mirrors the storefront widget's minimal preset) */
.sm-bar { display: grid; gap: 8px; padding: 12px 0; }
.sm-text { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #1f2937; font-size: .95rem; }
.sm-icon { width: 20px; height: 20px; flex: none; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h13v10H1zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='5.5' cy='17.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h13v10H1zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='5.5' cy='17.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sm-track { height: 8px; border-radius: 8px; background: #e5e7eb; overflow: hidden; }
.sm-fill { height: 100%; width: 70%; border-radius: 8px; background: var(--brand); transition: width .25s ease, background .25s; }
.sm-bar[data-state="success"] .sm-text { color: #14532d; }
.sm-bar[data-state="success"] .sm-fill { background: var(--ok); }
@media (prefers-reduced-motion: reduce) { .sm-fill, .btn { transition: none; } html { scroll-behavior: auto; } }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; padding: 18px 20px; font-size: .95rem; font-weight: 500; color: var(--ink); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); font-size: 1.35rem; margin-bottom: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step p { margin: 0; color: var(--muted); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }

/* Screenshots */
.shot { margin: 0; }
.shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot img { transition: transform .3s ease; }
.shot a:hover img { transform: scale(1.015); }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }
.shots-storefront { display: grid; grid-template-columns: 1fr 220px; gap: 24px; margin-bottom: 48px; align-items: start; }
.shots-storefront .shot-phone { grid-row: span 2; grid-column: 2; }
.shots-storefront .shot-wide:first-child { grid-column: 1; }
.shot-phone a { border-radius: 24px; border-width: 6px; border-color: #0f172a; }
.shots-admin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shots-admin .shot-feature { grid-column: 1 / -1; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan p:last-child { margin: 0; color: var(--muted); }
.plan-best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price { font-size: 2.4rem; font-weight: 750; color: var(--ink); letter-spacing: -.02em; margin: 8px 0 12px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pill { display: inline-block; vertical-align: middle; font-size: .75rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 2px 10px; border-radius: 999px; margin-left: 6px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

.cta-final { background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #16a34a); color: #fff; }
.cta-final h2 { color: #fff; }
.cta-final .lead { color: rgba(255, 255, 255, .85); margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 8px 0 0; max-width: 380px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--brand); }
.copyright { margin-top: 24px; }

/* Legal */
.legal { padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal code { font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .hero-inner, .features, .steps, .plans { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .hero-inner { gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots-storefront { grid-template-columns: 1fr; }
  .shots-storefront .shot-phone { grid-row: auto; grid-column: auto; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .features, .shots-admin { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .header-actions .lang { font-size: .85rem; }
  .header-actions .btn { display: none; }
  .cta-row .btn { width: 100%; }
}
