/* Stockroom — marketing site
   Warm, editorial design: serif display + clean sans, cream backgrounds. */

:root {
  --bg: #fdfbf7;
  --bg-warm: #f6efe3;
  --bg-deep: #efe6d5;
  --ink: #1c1a16;
  --ink-soft: #3a352d;
  --muted: #6f675a;
  --line: #e5dcc9;
  --line-strong: #d8cdb6;
  --card: #ffffff;
  --accent: #a8503a;      /* terracotta */
  --accent-ink: #8a3f2d;
  --accent-soft: #f3e2d9;
  --olive: #6f7052;
  --olive-soft: #e9e8d7;
  --gold: #c68a3e;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 26, 22, 0.04), 0 12px 32px rgba(28, 26, 22, 0.06);
  --shadow-soft: 0 1px 2px rgba(28, 26, 22, 0.04), 0 6px 18px rgba(28, 26, 22, 0.05);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 1rem;
}

.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--muted); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #322d24; color: var(--bg); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-warm); color: var(--ink); }

.btn-lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark { flex: 0 0 auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent-ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; }
.mobile-menu { display: none; } /* only ever shown via .open under the mobile breakpoint */

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1200px 500px at 78% -8%, var(--accent-soft) 0%, rgba(243, 226, 217, 0) 60%),
    radial-gradient(900px 500px at 4% 0%, var(--olive-soft) 0%, rgba(233, 232, 215, 0) 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { font-size: 1.28rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: 0 0 auto; }

/* Notion mock table */
.notion-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(0.4deg);
}
.notion-mock .mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.mock-dots span:nth-child(1) { background: #e5a5a5; }
.mock-dots span:nth-child(2) { background: #e6cf9a; }
.mock-dots span:nth-child(3) { background: #a9c6a2; }
.mock-title { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.mock-title .dbicon { margin-right: 6px; }

.mock-table { width: 100%; }
.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 0.8fr;
  gap: 8px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  align-items: center;
}
.mock-row:last-child { border-bottom: 0; }
.mock-row.head { color: var(--muted); font-weight: 600; text-transform: none; background: var(--bg); }
.mock-row.head span { display: inline-flex; align-items: center; gap: 5px; }
.mock-cell-title { font-weight: 600; color: var(--ink); }
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill.new { background: var(--accent-soft); color: var(--accent-ink); }
.pill.processing { background: #eae4d0; color: #7a6a2e; }
.pill.shipped { background: var(--olive-soft); color: #4f5138; }
.pill.delivered { background: #dde9db; color: #3f5d3a; }
.mock-num { font-variant-numeric: tabular-nums; }

.mock-foot {
  padding: 10px 18px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4f9d5f; box-shadow: 0 0 0 0 rgba(79,157,95,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,157,95,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(79,157,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,157,95,0); }
}

/* Logos / trust strip */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}
.trust .container { padding-top: 22px; padding-bottom: 22px; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; }
.trust-item { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.trust-item svg { flex: 0 0 auto; }

/* Section scaffolding */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-warm { background: var(--bg-warm); }
.section-deep { background: var(--bg-deep); }
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { max-width: 56ch; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* How it works — steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.step-arrow { display: none; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.feature-ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.18rem; margin-bottom: 0.3em; }
.feature p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }

/* Schema section */
.schema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2rem;
}
.schema-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.schema-card h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
}
.prop-list { list-style: none; margin: 0; padding: 8px 0; }
.prop-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  font-size: 0.9rem;
}
.prop-list li + li { border-top: 1px solid var(--line); }
.prop-name { font-weight: 500; color: var(--ink); }
.prop-type {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-warm);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* Pricing */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 40px 36px;
  max-width: 460px;
  width: 100%;
  text-align: left;
  position: relative;
}
.price-badge {
  position: absolute;
  top: 22px; right: 24px;
  background: var(--olive-soft);
  color: #4f5138;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
}
.price-name { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 0.2em; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.price-amount .num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--ink); }
.price-amount .per { color: var(--muted); font-size: 1rem; }
.price-alt { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.price-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 20px;
}
.price-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.price-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.price-toggle .save { font-size: 0.72rem; opacity: 0.85; margin-left: 4px; }
.price-features { list-style: none; margin: 24px 0; padding: 0; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.price-features li:first-child { border-top: 0; }
.price-features svg { flex: 0 0 auto; margin-top: 3px; color: var(--olive); }
.price-fine { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 14px 0 0; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 27px;
  width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq-answer { padding: 0 44px 22px 0; color: var(--ink-soft); }
.faq-answer p { margin: 0 0 0.8em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px);
  text-align: center;
  background-image: radial-gradient(700px 320px at 50% -30%, rgba(168, 80, 58, 0.35) 0%, rgba(168,80,58,0) 65%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(253, 251, 247, 0.78); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(253,251,247,0.35); }
.cta-band .btn-ghost:hover { background: rgba(253,251,247,0.1); color: #fff; }

/* Footer */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.disclaimer { max-width: 62ch; }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.2em; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal a { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .notion-mock { max-width: 520px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .features { grid-template-columns: 1fr 1fr; }
  .schema-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-links, .nav .desktop-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
  }
  .mobile-menu {
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 12px 0 18px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li { border-bottom: 1px solid var(--line); }
  .mobile-menu a { display: block; padding: 14px 24px; color: var(--ink); font-weight: 500; }
  .mobile-menu .btn { margin: 14px 24px 0; width: calc(100% - 48px); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .mock-row { grid-template-columns: 1.3fr 0.9fr 0.8fr; }
  .mock-row .hide-sm { display: none; }
  .price-card { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
