/* leafline.css: layout and components for aadia.ai, the Leafline demo shop and the owner app (s184). Colours: themes.css. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --r-lg: 22px; --r: 14px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "Figtree", system-ui, sans-serif;
}
/* colours come only from themes.css (Kira's six looks) */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--mist); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* demo strip: always on, so the shop can never pass as a real one */
.demo { background: var(--leaf); color: var(--leaf-ink); font-size: 13px; text-align: center; padding: 6px 16px; }
.demo a { font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--mist) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { font: 800 24px/1 var(--display); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--wash); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill, select.pill { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--leaf); color: var(--leaf-ink); border: 0; border-radius: 999px; padding: 8px 16px 8px 12px; font-weight: 700; }
.cartbtn svg { width: 22px; height: 22px; }
.cartbtn .n { min-width: 22px; height: 22px; border-radius: 999px; background: var(--saffron); color: var(--saffron-ink); font-size: 13px; display: grid; place-items: center; padding: 0 6px; }
.cartbtn.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.pri { background: var(--leaf); color: var(--leaf-ink); }
.btn.gold { background: var(--saffron); color: var(--saffron-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.busy { opacity: .75; cursor: progress; }

/* hero */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.035em; }
.hero p.lede { font-size: 19px; color: var(--soft); max-width: 30em; margin: 20px 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.shelf { position: relative; height: 380px; }
.shelf .board { position: absolute; left: 0; right: 0; bottom: 34px; height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--leaf) 80%, var(--saffron)); box-shadow: 0 10px 20px rgba(0,0,0,.12); }
.shelf .t { position: absolute; bottom: 44px; width: 31%; text-decoration: none; transition: transform .25s; }
.shelf .t:hover { transform: translateY(-8px) rotate(-1.5deg); }
.shelf .t1 { left: 0; } .shelf .t2 { left: 23%; bottom: 44px; width: 36%; z-index: 2; } .shelf .t3 { left: 52%; } .shelf .t4 { right: -2%; width: 26%; }
.shelf .t { opacity: 0; transform: translateY(40px); animation: rise .8s cubic-bezier(.2, .9, .3, 1.15) forwards; }
.shelf .t1 { animation-delay: .05s; } .shelf .t2 { animation-delay: .18s; } .shelf .t3 { animation-delay: .3s; } .shelf .t4 { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.steam { position: absolute; left: 41%; top: 2%; width: 70px; height: 110px; z-index: 3; }
.steam path { fill: none; stroke: var(--soft); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: steam 4.5s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.5s; } .steam path:nth-child(3) { animation-delay: 3s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(18px); } 35% { opacity: .5; } 100% { opacity: 0; transform: translateY(-24px); } }
@media (prefers-reduced-motion: reduce) { .shelf .t, .steam path, .cartbtn.bump { animation: none; opacity: 1; transform: none; } .steam { display: none; } }

/* sections */
section.block { padding: 48px 0; }
.block h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; }
.block .sub { color: var(--soft); margin: 10px 0 26px; font-size: 17px; max-width: 40em; }

/* taste finder */
.finder { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.q { margin-bottom: 18px; }
.q .lbl { font-weight: 700; margin-bottom: 8px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices button { border: 1.5px solid var(--line); background: var(--mist); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.choices button[aria-pressed="true"] { background: var(--leaf); color: var(--leaf-ink); border-color: var(--leaf); }
.match { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; min-height: 170px; }
.match .why { color: var(--soft); font-size: 15px; margin: 6px 0 12px; }
.match.empty { display: block; color: var(--soft); text-align: center; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s, box-shadow .2s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .art { background: var(--wash); border-radius: var(--r); padding: 18px 26px 6px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card .meta { color: var(--soft); font-size: 14px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card .price { font-weight: 700; font-size: 18px; }
.add { border: 0; background: var(--leaf); color: var(--leaf-ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.tag { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.tag.low { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.tag.out { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.tag.best { color: var(--moss); }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.filters input[type=search] { flex: 1 1 240px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 11px 18px; font: inherit; }

/* product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; align-items: start; }
.pdp .stage { background: var(--wash); border-radius: var(--r-lg); padding: 48px 80px 28px; position: sticky; top: 90px; }
.pdp h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em; }
.pdp .kind { color: var(--soft); font-size: 17px; margin: 8px 0 18px; }
.pdp .story { font-size: 18px; max-width: 34em; }
.pdp .buy { display: flex; gap: 12px; align-items: center; margin: 26px 0 8px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button { border: 0; background: none; color: var(--ink); width: 40px; height: 42px; font-size: 20px; font-weight: 700; }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; }
.stockline { font-size: 14px; font-weight: 600; }
.stockline.low { color: var(--amber); } .stockline.out { color: var(--red); } .stockline.ok { color: var(--ok); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.facts b { display: block; font-family: var(--display); font-size: 20px; }
.facts span { color: var(--soft); font-size: 13px; }
.brew { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; gap: 20px; align-items: center; }
.brew .dial { width: 92px; height: 92px; flex: none; }
.brew .dial circle { fill: none; stroke-width: 8; }
.brew .dial .bg { stroke: var(--wash); } .brew .dial .fg { stroke: var(--saffron); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.brew .dial text { font: 700 18px var(--display); fill: var(--ink); }

/* drawer (cart) */
.scrim { position: fixed; inset: 0; background: rgba(10, 20, 16, .38); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 41; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
body.cart-open .drawer { box-shadow: -10px 0 40px rgba(0,0,0,.15); }
body.cart-open .scrim { opacity: 1; pointer-events: auto; } body.cart-open .drawer { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer h2 { font-size: 26px; }
.drawer .x { border: 0; background: var(--wash); color: var(--ink); width: 38px; height: 38px; border-radius: 999px; font-size: 20px; }
.drawer .lines { flex: 1; overflow: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 700; } .line .pr { color: var(--soft); font-size: 14px; }
.cupbar { display: flex; gap: 14px; align-items: center; padding: 16px 22px; background: var(--wash); }
.cupbar svg { width: 46px; height: 46px; flex: none; }
.cupbar .fill { transition: y .6s cubic-bezier(.2, .8, .2, 1), height .6s cubic-bezier(.2, .8, .2, 1); }
.drawer footer { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.sum { display: flex; justify-content: space-between; margin: 4px 0; } .sum.total { font-weight: 800; font-size: 20px; margin-top: 10px; }
.empty-cart { text-align: center; padding: 60px 10px; color: var(--soft); }
.empty-cart svg { width: 90px; margin: 0 auto 14px; }

/* checkout + order */
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 40px 0; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 15px; }
.field input { border: 1.5px solid var(--line); background: var(--mist); color: var(--ink); border-radius: var(--r-sm); padding: 12px 14px; font: inherit; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .err { color: var(--red); font-size: 14px; min-height: 1em; }
.payopt { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.payopt:has(input:checked) { border-color: var(--leaf); background: var(--wash); }
.note { font-size: 14px; color: var(--soft); }
.formerr { color: var(--red); font-weight: 600; margin: 10px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 26px 0; }
.steps div { text-align: center; font-size: 14px; color: var(--soft); }
.steps i { display: block; height: 8px; border-radius: 4px; background: var(--wash); margin-bottom: 8px; transition: background .5s; }
.steps .on i { background: var(--moss); } .steps .on { color: var(--ink); font-weight: 700; }
.steps .now i { background: var(--saffron); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--ink); color: var(--mist); padding: 12px 20px; border-radius: 999px; font-weight: 600; opacity: 0; transition: .3s; z-index: 60; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--soft); font-size: 14px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 880px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 4px; }
  .nav { order: 3; width: 100%; margin: 0 0 0 -12px; overflow-x: auto; }
  .hero, .finder, .pdp, .two { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; gap: 10px; }
  .shelf { height: 290px; }
  .pdp .stage { position: static; padding: 30px 60px 18px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .top .wrap { gap: 10px; }
  .tools .pill.theme { display: none; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 12px; } .card .art { padding: 12px 16px 4px; } .card h3 { font-size: 16px; }
  .card .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .match { grid-template-columns: 90px 1fr; }
  .finder { padding: 22px; }
}

/* s185 selling moments: offer bar, example ratings and reviews, coupon box, WhatsApp links */
.offerbar { background: var(--wash); color: var(--ink); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.stars { color: var(--amber); font-weight: 700; font-size: 14px; white-space: nowrap; }
.stars span { color: var(--soft); font-weight: 500; }
.card .stars { margin-top: -4px; }
.reviews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; }
.review blockquote { margin: 0; font-size: 16px; }
.review figcaption { color: var(--soft); font-size: 14px; font-weight: 600; }
.walink { font-weight: 700; color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.walink::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #25D366; margin-right: 8px; vertical-align: 1px; }
.coupon { margin-top: 18px; display: grid; gap: 6px; }
.coupon label { font-weight: 700; font-size: 15px; }
.coupon > div { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--mist); color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; text-transform: uppercase; }
.coupon .err { color: var(--soft); font-size: 14px; min-height: 1em; margin: 0; }
.sum.offer { color: var(--ok); font-weight: 600; }
