/* Truffo order site: one stylesheet, phone first. Sticker look (bold outlines, hard offset shadows) in Truffo's
   colours: chocolate lines, cream paper, the green of his pouch and the yellow of Chiru. */
:root {
  --choc: #4a2e22;
  --choc-soft: #6e5040;
  --cream: #fff6ea;
  --paper: #fffaf2;
  --pouch: #7cc576;
  --pouch-hi: #8fd589;
  --pouch-pale: #e6f5dc;
  --chick: #ffd95a;
  --chick-pale: #fff1bd;
  --soon: #e9dfd2;
  --line: 3px solid var(--choc);
  --pop: 0 5px 0 var(--choc);
  --pop-sm: 0 3px 0 var(--choc);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; overflow-x: hidden; color: var(--choc); background: var(--cream);
  font: 17px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--choc); }
h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -.4px; margin: 0; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 16px; background: rgba(255, 246, 234, .95); border-bottom: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 21px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border: var(--line); border-radius: 50%; background: var(--pouch); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 999px; font-weight: 800;
  font-size: 15px; text-decoration: none; background: var(--chick); box-shadow: inset 0 0 0 2.5px var(--choc); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border: var(--line);
  border-radius: 999px; background: var(--pouch); color: var(--choc); font: 900 18px/1.15 "Nunito", system-ui, sans-serif; text-align: center;
  text-decoration: none; box-shadow: var(--pop); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--pouch-hi); transform: translateY(-2px); box-shadow: 0 7px 0 var(--choc); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--choc); }
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #b8763f; outline-offset: 3px; }
.btn.big { width: 100%; max-width: 380px; min-height: 58px; font-size: 20px; }
/* "Opening soon": no link yet, so it must not look or act like one */
.btn.soon, .btn.soon:hover, .btn.soon:active { background: var(--soon); color: var(--choc-soft); border-style: dashed; box-shadow: none;
  transform: none; cursor: default; }

/* first screen */
.hero { max-width: 1040px; margin: 0 auto; padding: 18px 16px 8px; text-align: center; }
.hero h1 { font-size: clamp(30px, 8.4vw, 54px); margin: 0 auto 10px; max-width: 760px; }
.hl { background: linear-gradient(transparent 58%, var(--chick) 58%, var(--chick) 92%, transparent 92%); }
.hero-sub { max-width: 560px; margin: 0 auto 16px; color: var(--choc-soft); font-weight: 600; font-size: 16.5px; }

/* before-and-after sample */
.ba { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 6px; max-width: 560px; margin: 0 auto 16px; }
.ba-side { min-width: 0; }
.ba-frame { position: relative; aspect-ratio: 4 / 5; border: var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--pop-sm); background: #a7dd8c; }
.ba-frame img, .ba-frame video { width: 100%; height: 100%; object-fit: cover; }
.ba-label { display: inline-block; margin-top: 8px; padding: 2px 12px; border: 2.5px solid var(--choc); border-radius: 999px; background: var(--paper);
  font-weight: 900; font-size: 13.5px; }
/* a plain "this becomes that" arrow (shaft + head), not a play button */
.ba-arrow { position: relative; width: 24px; height: 14px; margin-bottom: 30px; }
.ba-arrow::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 4px; border-radius: 2px; background: var(--choc); }
.ba-arrow::after { content: ""; position: absolute; right: 0; top: 0; border: 7px solid transparent; border-right: 0; border-left: 10px solid var(--choc); }
.ba figcaption { grid-column: 1 / -1; margin-top: 4px; font-size: 13.5px; color: var(--choc-soft); font-weight: 600; }

/* price + order block */
.buy { max-width: 420px; margin: 0 auto; }
.buy-price { margin: 0 0 2px; font-size: 22px; font-weight: 900; }
.buy-price b { font-size: 30px; margin-left: 4px; }
.buy-meta { margin: 0 0 12px; font-size: 15px; color: var(--choc-soft); font-weight: 700; }
.buy-safe { margin: 14px 0 6px; font-size: 15px; color: var(--choc-soft); font-weight: 600; }
.buy-more { margin: 0; }
.buy-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 800; text-underline-offset: 3px; }

/* sections */
.panel { max-width: 1040px; margin: 26px 12px 0; padding: 32px 16px 34px; border: var(--line); border-radius: 28px; background: var(--paper);
  box-shadow: var(--pop); text-align: center; scroll-margin-top: 70px; }
.panel.tint { background: var(--pouch-pale); }
.panel h2 { font-size: clamp(28px, 7.4vw, 44px); margin-bottom: 12px; }
.sub { max-width: 580px; margin: 0 auto 22px; color: var(--choc-soft); }
@media (min-width: 1064px) { .panel { margin-left: auto; margin-right: auto; } }
@media (min-width: 720px) { .panel { padding: 46px 36px 48px; margin-top: 36px; } }

/* size cards */
.sizes { display: grid; gap: 18px; text-align: left; }
@media (min-width: 720px) { .sizes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sizes { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.size { display: flex; flex-direction: column; padding: 20px 18px 20px; border: var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--pop-sm); }
.size.featured { background: var(--chick-pale); }
.size-len { margin: 0 0 4px; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--choc-soft); }
.size h3 { font-size: 26px; }
.size-price { margin: 4px 0 8px; font-size: 32px; font-weight: 900; }
.size-blurb { color: var(--choc-soft); font-size: 16px; }
.size ul { list-style: none; margin: 0 0 12px; }
.size li { position: relative; padding-left: 22px; margin-bottom: 5px; font-size: 15.5px; font-weight: 600; }
.size li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--pouch); border: 2px solid var(--choc); }
.size-when { margin-top: auto; padding-top: 4px; font-weight: 800; font-size: 15px; }
.size .btn { width: 100%; margin-top: 8px; }

/* how it works */
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 900px; margin: 6px auto 18px; text-align: left; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 18px 16px 16px 66px; border: var(--line); border-radius: 20px; background: #fff; color: var(--choc-soft); font-size: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 16px; width: 38px; height: 38px; display: grid; place-items: center;
  border: var(--line); border-radius: 50%; background: var(--chick); color: var(--choc); font-weight: 900; font-size: 19px; }
.steps b { display: block; margin-bottom: 4px; color: var(--choc); font-size: 18px; }
.when { max-width: 640px; margin: 0 auto; font-weight: 700; font-size: 15.5px; }

/* questions */
.faq { max-width: 720px; margin: 0 auto; text-align: left; }
.faq details { border: var(--line); border-radius: 18px; background: #fff; margin-bottom: 10px; }
.faq summary { min-height: 52px; padding: 13px 44px 13px 16px; cursor: pointer; list-style: none; position: relative; font-weight: 900; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 24px; font-weight: 900; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--choc-soft); font-size: 16px; }

.end { background: var(--chick-pale); }
.end h2 { margin-bottom: 16px; }
.contact { margin: 16px 0 0; font-weight: 700; }

/* footer */
.foot { padding: 30px 16px 40px; text-align: center; font-size: 15px; color: var(--choc-soft); }
.foot p { margin: 0 0 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 800; }

/* sticky Order bar (only shown when ordering is open) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: var(--line); }
.sticky p { margin: 0; font-weight: 900; font-size: 18px; }
.sticky .btn { min-height: 48px; padding: 10px 22px; font-size: 17px; box-shadow: var(--pop-sm); }
@media (min-width: 900px) { .sticky { display: none !important; } }

/* desktop first screen: sample left, words right */
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "h ba" "s ba" "buy ba"; column-gap: 44px; align-items: start;
    text-align: left; padding-top: 40px; }
  .hero h1 { grid-area: h; margin: 0 0 12px; align-self: end; }
  .hero-sub { grid-area: s; margin: 0 0 18px; }
  .ba { grid-area: ba; margin: 0; align-self: center; }
  .hero .buy { grid-area: buy; margin: 0; }
}

/* legal pages and 404 */
.doc { max-width: 760px; margin: 0 auto; padding: 28px 18px 40px; }
.doc h1 { font-size: clamp(32px, 8vw, 46px); margin-bottom: 14px; }
.doc h2 { font-size: 22px; margin: 28px 0 10px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 6px; }
.doc a { font-weight: 700; }
.draft { padding: 12px 14px; border: 3px dashed #c0392b; border-radius: 14px; background: #fff0ec; font-weight: 800; }
.center { text-align: center; }
.round { width: 200px; margin: 10px auto 18px; border: var(--line); border-radius: 50%; overflow: hidden; box-shadow: var(--pop); }
