:root {
  --ink: #211b16;
  --ink-soft: #5c5249;
  --paper: #faf6f0;
  --paper-2: #f1e9de;
  --card: #ffffff;
  --line: #e6dccd;
  --brand: #e7541e;
  --brand-deep: #c2400f;
  --brand-tint: #fdeee5;
  --gold: #d9a441;
  --ok: #2f8f5b;
  --shadow: 0 10px 30px rgba(33, 27, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(33, 27, 22, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 0.95rem;
  padding: 11px 20px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-family: inherit; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(231, 84, 30, .28); }
.btn-solid:hover { background: var(--brand-deep); box-shadow: 0 8px 22px rgba(231, 84, 30, .36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 11px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(231,84,30,.3); }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.22rem; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav > a:not(.btn) { font-weight: 500; color: var(--ink-soft); font-size: 0.96rem; }
.topnav > a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; background:
  radial-gradient(120% 120% at 85% 0%, var(--brand-tint) 0%, rgba(253,238,229,0) 46%),
  var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--brand-deep); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); font-weight: 700; }
.lede { font-size: 1.12rem; color: var(--ink-soft); margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.trust-row { list-style: none; display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.trust-row li { font-size: .92rem; color: var(--ink-soft); }
.trust-row strong { color: var(--ink); font-weight: 700; }

/* Hero receipt card — the signature element */
.hero-card { display: flex; justify-content: center; }
.receipt {
  width: 300px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 24px; transform: rotate(1.4deg);
  position: relative;
}
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; }
.receipt-head { display: flex; align-items: center; justify-content: space-between; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.1rem; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.receipt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47,143,91,.16); }
.receipt-line { display: flex; justify-content: space-between; padding: 11px 0; font-size: .94rem; color: var(--ink-soft); }
.receipt-line span:last-child { color: var(--ink); font-weight: 600; }
.receipt-rule { height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); margin: 8px 0; }
.receipt-total span:last-child { color: var(--brand-deep); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 36em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }
.section-head .btn { margin-top: 20px; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.12rem; }
.card-desc { color: var(--ink-soft); font-size: .9rem; margin-top: 6px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.price { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.2rem; color: var(--brand-deep); white-space: nowrap; }
.card-foot .btn-sm { padding: 8px 12px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; transition: box-shadow .15s ease; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 16px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #efe7dc; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand-name { color: #fff; font-size: 1.3rem; }
.footer .muted { color: #b6aa9b; margin-top: 6px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #d9cdbf; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 24px; font-size: .86rem; color: #9c9082; }

/* ---------- Chat widget ---------- */
.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; border: none; cursor: pointer; box-shadow: var(--shadow-lg); display: grid; place-items: center; transition: transform .2s ease, background .2s ease; }
.chat-fab:hover { transform: scale(1.06); background: var(--brand-deep); }
.chat-fab.hidden { transform: scale(0); opacity: 0; pointer-events: none; }

.chat-panel { position: fixed; bottom: 24px; right: 24px; z-index: 61; width: 380px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100vh - 48px); background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-head { background: var(--brand); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-head-id { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem; }
.chat-head-id strong { display: block; font-size: 1rem; }
.chat-status { font-size: .8rem; opacity: .9; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; opacity: .85; }
.chat-close:hover { opacity: 1; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .93rem; line-height: 1.5; animation: pop .2s ease; word-wrap: break-word; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg.bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg a { color: var(--brand-deep); text-decoration: underline; font-weight: 600; }
.msg.user a { color: #fff; }
.msg.typing { display: flex; gap: 4px; align-items: center; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1.2s infinite both; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat-suggestions { display: flex; gap: 8px; padding: 0 14px 12px; flex-wrap: wrap; }
.chat-suggestions button { background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; padding: 7px 12px; border-radius: 100px; cursor: pointer; font-family: inherit; transition: all .15s ease; }
.chat-suggestions button:hover { border-color: var(--brand); color: var(--brand-deep); }

.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-input input { flex: 1; border: 1.5px solid var(--line); border-radius: 100px; padding: 11px 16px; font-size: .94rem; font-family: inherit; background: #fff; outline: none; transition: border-color .15s ease; }
.chat-input input:focus { border-color: var(--brand); }
.chat-input button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--brand); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.chat-input button:hover { background: var(--brand-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { order: -1; }
  .receipt { transform: rotate(0); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .topnav { gap: 12px; }
  .topnav > a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 0 44px; }
  .section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .chat-panel { bottom: 0; right: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .footer-inner { flex-direction: column; gap: 20px; }
}

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

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
