/* Shoprivet landing */
:root {
  --ink: #111111;
  --charcoal: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --surface: #fafafa;
  --paper-deep: #f4f4f5;
  --white: #ffffff;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --nav-h: 3.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.15em; }
a:hover { opacity: 0.7; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { left: var(--gutter); top: 0.5rem; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.display-xl {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
}
.display-lg {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 600;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
  margin: 0.85rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 6px;
}
.btn:hover { opacity: 1; }
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-primary:hover { background: #27272a; }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); }
.btn-invert {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}
.nav-brand {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
}
.nav-links a:hover { color: var(--ink); opacity: 1; }
.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}
.nav-actions .nav-login {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--muted);
}
.nav-actions .nav-login:hover { color: var(--ink); opacity: 1; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 1rem var(--gutter) 1.5rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-nav .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 900px) {
  .nav-links,
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Sections */
.section {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.section-dark {
  background: var(--ink);
  color: var(--white);
  border-top: 0;
}
.section-dark .lede { color: #a1a1aa; }
.section-surface { background: var(--surface); }
.section-white { background: var(--white); }
.section-head { max-width: 38rem; margin-bottom: 1.5rem; }

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 34rem;
}
.plain-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--charcoal);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
.feature-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .feature-list li:nth-child(odd) {
    padding-right: 1.25rem;
    border-right: 1px solid var(--line);
  }
  .feature-list li:nth-child(even) { padding-left: 1.25rem; }
}
.feature-list h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.feature-list p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 30rem;
}
.steps li {
  counter-increment: step;
  padding: 0.75rem 0 0.75rem 2.25rem;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--charcoal);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
}
.plain-list code,
.lede code,
.dual-card code,
.answer code,
.hero-meta code {
  background: var(--paper-deep);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
.section-dark code { background: rgba(255,255,255,0.12); }

/* Hero */
.hero {
  padding: clamp(2.25rem, 4vw, 3rem) 0;
}
.hero-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}
.hero-sub {
  margin: 0.85rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32rem;
}
.hero-meta {
  margin: 1.15rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 32rem;
}

.storefront-frame {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.embed-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
.embed-browser-bar .dots {
  display: flex;
  gap: 0.25rem;
}
.embed-browser-bar .dots i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.embed-browser-bar .url {
  flex: 1;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
}
.storefront-chrome {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
}
.product-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-tile {
  padding: 0.75rem;
  border-right: 1px solid var(--line);
}
.product-tile:last-child { border-right: 0; }
.product-tile figure {
  margin: 0;
  aspect-ratio: 1;
  background: var(--paper-deep);
  border-radius: 4px;
  overflow: hidden;
}
.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-tile h3 {
  margin: 0.55rem 0 0.1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.product-tile .price {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.product-tile .add {
  margin-top: 0.45rem;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 4px;
  padding: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
}
@media (max-width: 640px) {
  .product-rail { grid-template-columns: 1fr; }
  .product-tile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: 0.7rem;
    align-items: center;
  }
  .product-tile:last-child { border-bottom: 0; }
  .product-tile .add {
    grid-column: 2;
    width: auto;
    justify-self: start;
    padding-inline: 0.7rem;
  }
}

.two-col {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
  .two-col.align-start { align-items: start; }
}

.code-panel {
  border: 1px solid #27272a;
  background: #18181b;
  color: #e4e4e7;
  border-radius: 8px;
  overflow: hidden;
}
.code-panel-head {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: #a1a1aa;
}
.code-panel pre {
  margin: 0;
  padding: 1rem 0.9rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.code-kw { color: #d4d4d8; }
.code-str { color: #a1a1aa; }

.dual-entry {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 700px) {
  .dual-entry { grid-template-columns: 1fr 1fr; }
}
.dual-card {
  background: var(--white);
  padding: 1.35rem;
}
.dual-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}
.dual-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--muted);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.faq-item .answer a { text-decoration: underline; }

.final-cta {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--ink);
  color: var(--white);
}
.final-cta .lede { color: #a1a1aa; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem;
}
.footer-top {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 1.5rem;
  }
}
.footer-brand {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.footer-tag {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 16rem;
}
.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col a {
  display: block;
  padding: 0.25rem 0;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.footer-col a:hover { color: var(--ink); opacity: 1; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Pricing / legal */
.page-hero { padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem; }
.page-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}
.page-hero p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.0625rem;
}
.pricing-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1.5rem 0 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.price-card {
  background: var(--white);
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--ink);
  color: var(--white);
}
.price-card.featured .muted,
.price-card.featured li { color: #a1a1aa; }
.plan-badge {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
}
.price-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.price-card .amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 0.25rem;
  line-height: 1;
}
.price-card .amount .per {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.15rem;
}
.price-card.featured .amount .per { color: #a1a1aa; }
.price-card .muted {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.price-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}
.price-card li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--charcoal);
}
.price-card.featured li { border-color: rgba(255,255,255,0.12); }
.price-card .btn { align-self: flex-start; }
.price-card.featured .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  background: transparent;
}
.price-card.featured .btn-primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.pricing-notes {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  max-width: 36rem;
}
.pricing-notes .display { margin-bottom: 1rem; }
.pricing-billing {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.pricing-billing a { text-decoration: underline; }

.pricing-faq {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 4rem;
  max-width: 40rem;
}
.pricing-faq .display { margin-bottom: 1.25rem; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.legal-content {
  max-width: 40rem;
  padding-bottom: 4rem;
}
.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.65rem;
  color: var(--ink);
}
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
}
.legal-content ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.legal-content li { margin: 0.35rem 0; }
.legal-content a {
  color: var(--ink);
  text-decoration: underline;
}
.legal-content a:hover { opacity: 0.7; }
.legal-nav {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

