/* Foldbar: a plain, confident product page. White studio ground like the product photos, black steel ink,
   one signal orange for the buy action and Foldbar's column in the comparison. Archivo, self-hosted. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ground: #f4f3f0;
  --ink: #121212;
  --ink-2: #55534e;
  --line: #e2e0db;
  --accent: #c43e16;
  --accent-ink: #ffffff;
  --accent-soft: #fbece6;
  --good: #1f7a4a;
  --bad: #a3a09a;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --margin: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --section: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  font-feature-settings: "tnum" 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.35; }
.small { font-size: .9rem; color: var(--ink-2); }
.item-name { font-weight: 600; text-decoration: none; }
.item-fact { color: var(--ink-2); font-size: .95rem; }
.reveal { opacity: 1; }

/* Buttons: black by default, orange for the main action. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper);
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: #333; }
.btn:active { transform: scale(.98); }
.btn-accent, .btn-buy { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover, .btn-buy:hover { background: #a5330f; }
.btn-wide { width: 100%; }
.btn.is-done { background: var(--good); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--ground); }

/* Header bar. */
.bar {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--margin);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.bar .wordmark { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: center; flex-wrap: wrap; }
.bar nav a { text-decoration: none; font-weight: 500; }
.bar nav a:hover { text-decoration: underline; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 700;
}

/* Buy box: gallery left, info right. */
.buy {
  max-width: var(--max); margin: 0 auto; padding: 8px var(--margin) var(--section);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start;
}
.gallery { display: grid; gap: 12px; }
.gallery-main { background: var(--ground); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--ground);
  cursor: pointer; aspect-ratio: 4 / 5; transition: border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--line); }
.thumb.is-on { border-color: var(--ink); }

.buy-info { position: sticky; top: 24px; display: grid; gap: 20px; padding-top: clamp(0px, 2vw, 24px); }
.buy-info h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); letter-spacing: -0.03em; }
.buy-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 44ch; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.points svg { color: var(--good); flex: none; }

.options { border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.options legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.option:hover { border-color: #c8c5bf; }
.option:has(input:checked) { border-color: var(--ink); background: var(--ground); }
.option input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.option-name { font-weight: 600; }
.option-price { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.btn-buy { width: 100%; min-height: 58px; font-size: 1.1rem; }
.added { font-weight: 500; }
.note { color: var(--ink-2); font-size: .95rem; }

/* Sections under the buy box share one column width. */
.fold, .compare, .steps, .specs, .faq {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--margin) var(--section);
}
.fold h2, .compare h2, .steps h2, .specs h2, .faq h2 { margin-bottom: clamp(24px, 3vw, 40px); max-width: 24ch; }

/* Open and folded, side by side. */
.fold-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.fold-pair figure { margin: 0; display: grid; gap: 12px; }
.fold-pair img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--ground); }
.fold-pair figcaption { font-weight: 600; font-size: 1.1rem; }

/* Comparison table: Foldbar's column on a soft orange band. */
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 1rem; }
.compare thead th { text-align: left; font-weight: 700; padding: 16px; font-size: 1.05rem; }
.compare thead th.us { background: var(--accent); color: var(--accent-ink); border-radius: 12px 12px 0 0; }
.compare tbody th { text-align: left; font-weight: 500; padding: 16px; width: 28%; }
.compare td { padding: 16px; vertical-align: top; }
.compare td span { display: block; margin-top: 4px; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare td.us { background: var(--accent-soft); font-weight: 600; }
.compare tbody tr:last-child td.us { border-radius: 0 0 12px 12px; }
.compare .good svg { color: var(--good); }
.compare .bad { color: var(--ink-2); }
.compare .bad svg { color: var(--bad); }

/* How it folds: three pictures with short text. */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.step { display: grid; gap: 10px; align-content: start; }
.step img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--ground); }
.step h3 { font-size: 1.35rem; margin-top: 6px; }
.step p { color: var(--ink-2); max-width: 38ch; }

/* Specs: a plain two-column list. */
.specs dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.specs dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

/* FAQ. */
.faq { max-width: calc(860px + 2 * var(--margin)); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.15rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 65ch; }

/* Footer: dark band. */
.foot {
  background: var(--ink); color: #f4f3f0; padding: clamp(40px, 6vw, 72px) var(--margin);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px;
}
.foot .small { color: #b9b6b0; }
.foot-tile { margin: 0; text-decoration: none; display: grid; gap: 10px; align-content: start; }
.foot-statement { grid-column: 1 / 6; }
.foot-nav { grid-column: 6 / 9; gap: 6px; }
.foot-nav a, .foot-mail a { text-decoration: none; }
.foot-nav a:hover, .foot-mail a:hover { text-decoration: underline; }
.foot-mail { grid-column: 9 / 13; }
.foot-mail a { word-break: break-word; }
.foot-word { grid-column: 1 / 9; font-size: clamp(3.5rem, 10vw, 9rem); font-weight: 800; letter-spacing: -0.04em; line-height: .9; align-self: end; }
.foot-invite {
  grid-column: 9 / 13; align-self: end; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
}
.foot-invite svg { width: 32px; height: 32px; transition: transform .25s var(--ease); }
.foot-invite:hover svg { transform: translate(4px, -4px); }

/* Cart and checkout (shared pages). */
.cart, .checkout { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 5vw, 72px) var(--margin) var(--section); }
.cart { max-width: calc(860px + 2 * var(--margin)); display: grid; gap: 28px; }
.cart h1, .checkout h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.cart-lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.line-pic { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--ground); }
.line-pic img { width: 100%; height: 100%; object-fit: cover; }
.line-text { display: grid; gap: 4px; }
.line-sum { font-weight: 600; min-width: 7ch; text-align: right; font-variant-numeric: tabular-nums; }
.checkout .line { grid-template-columns: 96px 1fr auto; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty-btn { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; font-size: 1.2rem; cursor: pointer; }
.qty-btn:hover { border-color: var(--ink); }
.qty-n { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.cart-empty { display: grid; gap: 20px; justify-items: start; }
.cart-total { display: grid; gap: 12px; }
.total-row { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; padding-top: 16px; border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }

.checkout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px clamp(16px, 3vw, 40px); align-items: start; }
.order { grid-column: 1 / 7; display: grid; gap: 20px; }
.wall-box { grid-column: 7 / 13; background: var(--ground); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; }
.wall-box h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.waitlist { display: grid; gap: 10px; }
.waitlist label { font-weight: 600; }
.waitlist input[type=email] {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid #cfccc6; border-radius: 12px;
  font: inherit; background: var(--paper); color: var(--ink);
}
.waitlist input[type=email]:focus { border-color: var(--ink); outline: none; }
.waitlist input::placeholder { color: #8a877f; }
.waitlist .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.waitlist .consent input { accent-color: var(--ink); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.waitlist .btn { background: var(--accent); color: var(--accent-ink); margin-top: 6px; }
.waitlist .btn:hover { background: #a5330f; }
.waitlist .btn:disabled { opacity: .55; cursor: progress; }
.form-error { color: #b3261e; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { font-weight: 600; }

/* About and privacy. */
.text-page { max-width: calc(720px + 2 * var(--margin)); margin: 0 auto; padding: clamp(24px, 5vw, 72px) var(--margin) var(--section); display: grid; gap: 18px; }
.text-page h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.text-page h2 { font-size: 1.4rem; margin-top: 12px; }

/* Phones and narrow tablets. */
@media (max-width: 900px) {
  .buy { grid-template-columns: 1fr; }
  .buy-info { position: static; }
  .gallery-thumbs { grid-template-columns: repeat(6, minmax(56px, 1fr)); overflow-x: auto; }
  .step-list { grid-template-columns: 1fr; }
  .step img { aspect-ratio: 16 / 10; }
  .specs dl { grid-template-columns: 1fr; }
  .order, .wall-box { grid-column: 1 / -1; }
  .foot-statement, .foot-nav, .foot-mail, .foot-word, .foot-invite { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bar nav a:not(.cart-link) { display: none; }
  .fold-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fold-pair figcaption { font-size: .95rem; }
  .line { grid-template-columns: 72px 1fr auto; }
  .line .qty { grid-column: 2; }
  .line-pic { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Phones: the question column stays put while the table scrolls sideways. */
@media (max-width: 900px) {
  .compare tbody th, .compare thead td { position: sticky; left: 0; z-index: 1; background: var(--paper); min-width: 150px; box-shadow: 6px 0 8px -6px rgba(0,0,0,.18); }
  .compare table { min-width: 640px; }
}
