/* Monika Heiligmann — distributor proposals. Shared look for the builder and
   the distributor's page. Retune the tokens here and both follow. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --ivory: #f4efe7;
  --paper: #faf7f1;
  --ink: #1e1a16;
  --ink-2: #4a433c;
  --mute: #8d847a;
  --line: #e6dfd3;
  --line-2: #d6ccbb;
  --gold: #b8873a;
  --gold-2: #d4a95f;
  --gold-soft: #f3e9d6;
  --rose: #e9c7b7;
  --ok: #4f7a4a;
  --bad: #a4453c;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(30,26,22,.05), 0 12px 40px -12px rgba(30,26,22,.18);
  --shadow-lg: 0 30px 80px -20px rgba(30,26,22,.35);
  --r: 6px;
  --ink-btn: #1e1a16;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.005em; line-height: 1.1; }
p { margin: 0 0 .8em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold-soft); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.eyebrow.gold { color: var(--ink-2); }
.eyebrow.b { color: var(--ink); font-weight: 600; }
.rule { width: 40px; height: 1px; background: var(--gold); margin: 14px auto; }
.money { font-family: var(--serif); font-size: 1.15em; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--mute); }
.hide { display: none !important; }

/* Brand mark ------------------------------------------------------------ */
.brand { text-align: center; padding: 56px 0 28px; }
.brand .mono { font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.brand .mono span { display: inline-block; transform: translateY(-4px); font-size: .55em; margin: 0 -2px; }
.brand .name { font-family: var(--serif); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; margin-top: 8px; font-weight: 500; }
.brand .city { font-family: var(--sans); font-size: 9px; letter-spacing: .4em; text-transform: uppercase; margin-top: 4px; color: var(--ink-2); }
.brand img { height: 260px; margin: -40px auto -30px; mix-blend-mode: multiply; }
.brand.has-logo .mono, .brand.has-logo .name, .brand.has-logo .city { display: none; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(30,26,22,.5); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: #fff; box-shadow: none; }
.btn.link { background: none; border: none; color: var(--ink-2); padding: 6px 4px; letter-spacing: .1em; }
.btn.link:hover { text-decoration: underline; transform: none; box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: 10.5px; }
.btn.danger { color: var(--bad); border-color: transparent; background: none; }

/* Fields ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.field input, .field textarea, .field select { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; font-weight: 300; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { min-height: 84px; resize: vertical; }
.field .help { font-size: 12px; color: var(--mute); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* Quantity stepper -------------------------------------------------------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); height: 34px; overflow: hidden; }
.qty button { width: 32px; border: none; background: transparent; color: var(--ink-2); font-size: 16px; line-height: 1; transition: background .15s; }
.qty button:hover { background: var(--gold-soft); color: var(--ink); }
.qty input { width: 48px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; background: transparent; font-weight: 400; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,26,22,.08); }
.qty.on input { color: var(--ink); font-weight: 600; }

/* Tags & pills ------------------------------------------------------------- */
.pill { display: inline-block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 400; }
.pill.gold { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; letter-spacing: .16em; padding: 6px 12px; }
.pill.soft { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.pill.ok { background: #e8f0e6; color: var(--ok); border-color: transparent; }
.pill.bad { background: #f6e5e2; color: var(--bad); border-color: transparent; }

/* Product rows ------------------------------------------------------------ */
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 56px 92px 1fr auto auto auto; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: background .15s; }
.row:hover { background: rgba(255,253,249,.7); }
.row.on { background: linear-gradient(90deg, rgba(30,26,22,.04), transparent 60%); }
.row .thumb { width: 56px; height: 56px; border-radius: 3px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .sku { font-size: 10.5px; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.row .name { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.row .name small { display: block; font-family: var(--sans); font-size: 12px; color: var(--mute); font-weight: 300; margin-top: 2px; }
.row .price { text-align: right; min-width: 82px; }
.row .price .was { display: block; font-size: 11px; color: var(--mute); text-decoration: line-through; font-family: var(--sans); }
.row .total { text-align: right; min-width: 90px; color: var(--ink); }
.row .total:empty { min-width: 90px; }
.head { display: grid; grid-template-columns: 56px 92px 1fr auto auto auto; gap: 18px; padding: 8px 0; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); }
.head .r { text-align: right; }
@media (max-width: 760px) {
  .row, .head { grid-template-columns: 48px 1fr auto; gap: 12px; }
  .row .sku, .head .c2, .head .c5, .row .total { display: none; }
  .row .price { min-width: 0; }
  .row .name { font-size: 15px; }
}

/* Section headings --------------------------------------------------------- */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.sec-head h2 { font-size: 27px; }
.sec-head .meta { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }

/* Sticky summary bar ------------------------------------------------------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(247,244,238,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); z-index: 40; }
.bar .in { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.bar .stat { display: flex; flex-direction: column; gap: 2px; }
.bar .stat .eyebrow { font-size: 9.5px; font-weight: 600; color: var(--ink-2); }
.bar .stat .v { font-family: var(--serif); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bar .stat.big .v { font-size: 26px; }
.bar .sep { width: 1px; height: 36px; background: var(--line-2); }
.bar .spacer { flex: 1; }
@media (max-width: 720px) { .bar .in { gap: 14px; padding: 10px 16px; flex-wrap: wrap; } .bar .hide-sm { display: none; } }

/* Notices ------------------------------------------------------------------- */
.notice { border: 1px solid var(--line-2); background: var(--paper); padding: 12px 16px; border-radius: var(--r); font-size: 13.5px; }
.notice.ok { border-color: #cfdccb; background: #f1f6ef; }
.notice.bad { border-color: #e6c9c4; background: #faf0ee; }
.notice b { font-weight: 500; }

/* Modal ---------------------------------------------------------------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(30,26,22,.45); backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
.modal { background: var(--ivory); border-radius: 6px; max-width: 640px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); padding: 32px; animation: rise .25s; }
.modal h2 { font-size: 26px; margin-bottom: 6px; }
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } }

/* Reveal on scroll ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Toast ---------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 80; box-shadow: var(--shadow-lg); animation: rise .25s; }

@media print {
  .bar, .no-print { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* B2B-site components: badge, countdown, stat cards ---------------------- */
.badge { display: inline-block; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 14px; border-radius: 4px; }
.count { display: flex; gap: 12px; flex-wrap: wrap; }
.count .t { background: var(--ink); color: #fff; width: 74px; height: 78px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.count .t b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.count .t span { font-family: var(--sans); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; margin-top: 8px; color: #cfc8bd; }
.cap { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card3 { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; text-align: center; }
.card3 .big { font-family: var(--serif); font-size: 30px; line-height: 1; }
.card3 .lab { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 8px; }
.card3 p { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
