/* Top Marketing — stylesheet */

:root {
  --paper: #fbfaf7;
  --paper-alt: #f3f1eb;
  --ink: #191817;
  --ink-soft: #5c5952;
  --rule: #ddd9d0;
  --rule-strong: #c3bdb1;
  --accent: #9a3d16;
  --bundle: #eae7de;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --paper-alt: #1b1a17;
    --ink: #ece9e3;
    --ink-soft: #a09b91;
    --rule: #302e29;
    --rule-strong: #47443d;
    --accent: #d98a5c;
    --bundle: #201e1a;
  }
}

/* An explicit theme choice overrides the system preference, both directions. */
:root[data-theme="dark"] {
  --paper: #141311;
  --paper-alt: #1b1a17;
  --ink: #ece9e3;
  --ink-soft: #a09b91;
  --rule: #302e29;
  --rule-strong: #47443d;
  --accent: #d98a5c;
  --bundle: #201e1a;
}

:root[data-theme="light"] {
  --paper: #fbfaf7;
  --paper-alt: #f3f1eb;
  --ink: #191817;
  --ink-soft: #5c5952;
  --rule: #ddd9d0;
  --rule-strong: #c3bdb1;
  --accent: #9a3d16;
  --bundle: #eae7de;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1080px, 90vw); margin-inline: auto; }
.wrap-narrow { width: min(720px, 90vw); }

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.sub { color: var(--ink-soft); max-width: 58ch; }
.note { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.94rem;
  padding: 0.62em 1.35em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); }

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

.btn-quiet { border: 0; background: transparent; color: var(--ink); padding: 0.4em 0; }
.btn-quiet:hover { color: var(--accent); }

.btn-sm { font-size: 0.85rem; padding: 0.42em 1em; }
.full { width: 100%; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin: 0;
}

.nav-links { display: flex; gap: 1.8rem; font-size: 0.92rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.cart-count {
  display: inline-block;
  min-width: 1.5em;
  margin-left: 0.35em;
  padding: 0 0.4em;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 0.78rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Sections ────────────────────────────────────────── */

.hero { padding: 6rem 0 5rem; border-bottom: 1px solid var(--rule); }
.hero h1 { max-width: 20ch; }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 2rem 0 1.2rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--rule); }
.head { margin-bottom: 3rem; max-width: var(--measure); }
.head h2 { margin-bottom: 0.4em; }

.cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}
.cols p { color: var(--ink-soft); margin: 0; }
.cols article { border-top: 1px solid var(--rule); padding-top: 1.3rem; }

/* ── Stages ──────────────────────────────────────────── */

.stages {
  list-style: none;
  counter-reset: stage;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stages li { counter-increment: stage; border-top: 2px solid var(--ink); padding-top: 1rem; }
.stages li::before {
  content: counter(stage, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.stages h4 { margin-bottom: 0.4em; }
.stages p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }

/* ── Catalogue ───────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.chip {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35em 0.9em;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.chip span {
  font-variant-numeric: tabular-nums;
  font-size: 0.8em;
  opacity: 0.65;
  margin-left: 0.35em;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.catalogue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.item {
  background: var(--paper);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.item[hidden] { display: none; }

.item-cat {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.item h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.item-desc { color: var(--ink-soft); font-size: 0.92rem; flex: 1; margin-bottom: 1rem; }
.item-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.item-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.item-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.item-bundle { background: var(--bundle); }
.item-bundle .item-cat { color: var(--accent); }

.cat-empty {
  grid-column: 1 / -1;
  background: var(--paper);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  margin: 0;
}

.cat-note {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ── Quotes ──────────────────────────────────────────── */

.quotes { display: grid; gap: 2.5rem; }
.quotes figure { margin: 0; border-left: 2px solid var(--rule-strong); padding-left: 1.5rem; }
.quotes blockquote {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
}
.quotes figcaption { color: var(--ink-soft); font-size: 0.88rem; }

/* ── Guarantee / close ───────────────────────────────── */

.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.fit-col { background: var(--paper); padding: 1.8rem 1.7rem; }
.fit-col h3 { margin-bottom: 1rem; }
.fit-col ul { list-style: none; margin: 0; padding: 0; }
.fit-col li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.fit-col li:first-child { border-top: 0; }
.fit-col li::before {
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-weight: 600;
}
.fit-col li::before { content: "\2713"; color: var(--accent); }
.fit-col-no { background: var(--bundle); }
.fit-col-no li::before { content: "\2715"; color: var(--ink-soft); }
.closing { text-align: center; }
.closing p { color: var(--ink-soft); margin-bottom: 1.8rem; }

/* ── FAQ ─────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  list-style: none;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0 0 1.3rem; color: var(--ink-soft); max-width: 62ch; }

/* ── Footer ──────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-alt);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.92rem;
}
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-brand p { color: var(--ink-soft); max-width: 32ch; }
.foot-brand .logo { color: var(--ink); margin-bottom: 0.5rem; }
.foot h5 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 0.8rem;
}
.foot a { display: block; padding: 0.22rem 0; color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.foot-base p { margin: 0; }

/* ── Cart ────────────────────────────────────────────── */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 40;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  height: 100dvh;
  width: min(400px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.25s ease;
}
.cart.open { transform: none; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.cart-head h3 { margin: 0; }
.cart-close {
  border: 0;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}
.cart-close:hover { color: var(--ink); }

.cart-body { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.cart-empty { color: var(--ink-soft); padding: 2.5rem 0; margin: 0; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.item-main { flex: 1; }
.item-main h4 { margin: 0 0 0.15em; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; }
.item-unit { color: var(--ink-soft); font-size: 0.85rem; }
.item-sum { font-variant-numeric: tabular-nums; white-space: nowrap; }

.qty { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.7rem; }
.qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
}
.qty button:hover { border-color: var(--ink); }
.qty span { min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.remove {
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 0.83rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 0.4rem;
}
.remove:hover { color: var(--accent); }

.cart-foot { border-top: 1px solid var(--rule); padding: 1.3rem 1.5rem; }
.code-row { display: flex; gap: 0.5rem; }
.code-row input {
  flex: 1;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5em 0.8em;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.code-row input:focus { outline: 1px solid var(--ink); border-color: var(--ink); }
.code-msg { font-size: 0.83rem; margin: 0.5rem 0 0; min-height: 1.3em; }
.code-msg.ok { color: var(--accent); }
.code-msg.bad { color: var(--ink-soft); }

.totals { margin: 1rem 0 1.3rem; }
.totals div { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.totals dt { color: var(--ink-soft); font-size: 0.93rem; }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand {
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  font-size: 1.1rem;
}
.totals .grand dt { color: var(--ink); }
.cart-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: 0.8rem 0 0; }

/* ── Status message ──────────────────────────────────── */

.status {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 200%);
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7em 1.3em;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: transform 0.22s ease;
}
.status.show { transform: translate(-50%, 0); }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .catalogue { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .cols, .stages, .catalogue, .fit { grid-template-columns: 1fr; }
  .head { margin-bottom: 2rem; }
  .filters { gap: 0.4rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
  .chip { font-size: 0.82rem; }
}

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