/* Shared structure for every theme. Themes set the tokens below and add their own section styles. */
@font-face { font-family: Marcellus; src: url(/fonts/marcellus.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 100 900; src: url(/fonts/fraunces-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; src: url(/fonts/fraunces.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Jost; font-weight: 100 900; src: url(/fonts/jost.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; src: url(/fonts/plex-arabic-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; src: url(/fonts/plex-arabic-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Amiri; font-weight: 400; src: url(/fonts/amiri-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Amiri; font-weight: 700; src: url(/fonts/amiri-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Markazi Text"; font-weight: 400 700; src: url(/fonts/markazi.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; font-weight: 100 900; src: url(/fonts/noto-kufi.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #0F2730;
  --deep: #0A1C23;
  --copper: #C4814F;
  --ivory: #F3EADA;
  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: #5a6a6c;
  --line: rgba(15, 39, 48, .16);
  --surface: #fff;
  --accent: var(--copper);
  --accent-fg: var(--ink);
  --field-bg: #fff;
  --field-line: rgba(15, 39, 48, .3);
  --error: #b42318;
  --ok: #1f6f3f;
  --radius: 4px;
  --track: .2em;
  --font-body: Jost, "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: Marcellus, Amiri, Georgia, serif;
  --font-italic: Fraunces, Georgia, serif;
  --f: var(--copper);
  --f-on: var(--ink);
}
html[lang="ar"] { --track: 0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { line-height: 1.85; }
img, svg { max-width: 100%; display: block; }
svg { direction: ltr; }
.sprite { position: absolute; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.4; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }
.page { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.page.narrow { max-width: 860px; }
.page > h1, .prose h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .6em; }
.it { font-family: var(--font-italic); font-style: italic; }
html[lang="ar"] .it { font-style: normal; }
.eyebrow { font-size: .74rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; margin: 0 0 1.2em; }
html[lang="ar"] .eyebrow { font-size: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--ink); color: var(--ivory); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 8px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price.big { font-size: 1.6rem; margin: 0; }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mark { width: auto; height: 100%; }
.wordmark, .beans-word { width: auto; height: 100%; }

/* Design-preview switcher (only in --preview builds) */
.preview-bar { background: #000; color: #fff; font: 500 12px/1.3 system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 6px clamp(12px, 3vw, 24px); }
.preview-links { display: flex; gap: 14px; }
.preview-links a { color: #bbb; text-decoration: none; }
.preview-links a[aria-current] { color: #fff; text-decoration: underline; }
.preview-note { border: 1px dashed currentColor; padding: 8px 12px; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg, var(--bg)); color: var(--header-fg, var(--fg)); border-bottom: 1px solid var(--header-line, var(--line)); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; min-height: 68px; }
.logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--logo, inherit); height: 44px; }
.logo-en { display: grid; justify-items: center; gap: 5px; }
.logo-en .wordmark { height: 17px; }
.logo-en .beans-word { height: 5.5px; opacity: .9; }
.logo-ar { font-family: Amiri, serif; font-weight: 700; font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.main-nav { order: 3; flex-basis: 100%; display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.main-nav a, .lang-toggle, .cart-link { text-decoration: none; font-size: .8rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; white-space: nowrap; padding-block: 6px; }
html[lang="ar"] :is(.main-nav a, .cart-link) { font-size: 1rem; }
.main-nav a[aria-current="page"], .main-nav a:hover { box-shadow: inset 0 -1px currentColor; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 20px; }
.lang-toggle { letter-spacing: 0; text-transform: none; font-size: .9rem; opacity: .8; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 11px; background: var(--accent); color: var(--accent-fg); font-size: .75rem; letter-spacing: 0; }
@media (min-width: 860px) { .main-nav { order: 0; flex-basis: auto; padding-bottom: 0; } }

/* Buttons */
.button, .add { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-fg);
  font-size: .82rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
html[lang="ar"] :is(.button, .add) { font-size: 1rem; font-weight: 600; }
.button:hover { transform: translateY(-2px); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.wide { width: 100%; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }
.add { min-height: 40px; padding: 8px 16px; background: transparent; color: inherit; border-color: currentColor; font-size: .72rem; }
.add:hover, .add.is-added { background: var(--f); color: var(--f-on); border-color: var(--f); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Section furniture shared by home pages */
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.sec-head .sub { margin: .8em 0 0; max-width: 46ch; opacity: .8; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.perks li { padding: 16px 14px; font-size: .8rem; letter-spacing: var(--track); text-transform: uppercase; text-align: center; }
html[lang="ar"] .perks li { font-size: .98rem; }
@media (min-width: 860px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.pouch, .pouch-set { width: 100%; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .28)); overflow: visible; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } .also .grid { grid-template-columns: repeat(3, 1fr); } .also .card-art { padding-inline: 26%; } }
.card { position: relative; display: flex; flex-direction: column; }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.card-art { display: block; padding: 8% 16% 4%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-art { transform: translateY(-10px) rotate(-2deg); }
.card h3 { font-size: 1.5rem; }
.card-tag { font-size: .95rem; opacity: .75; }
.card-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; font-size: .66rem; letter-spacing: var(--track); text-transform: uppercase; padding: 4px 10px; border: 1px solid currentColor; border-radius: 99px; }
html[lang="ar"] .badge { font-size: .8rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps h3 { font-size: 1.5rem; margin-bottom: .3em; }
.steps p { margin: 0; opacity: .85; }
.step-no { font-size: 3rem; line-height: 1; }
.ritual-grid, .set-grid, .story-grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kanaka { width: min(100%, 320px); margin-inline: auto; }
.seal { width: 100%; height: auto; }
.set-text h2, .story-text h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .5em; }
.set-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 1.2em 0 0; }
.save { font-size: .9rem; opacity: .8; }
@media (min-width: 860px) {
  .ritual-grid { grid-template-columns: 1fr 1.5fr; }
  .set-grid { grid-template-columns: 1.15fr 1fr; }
  .story-grid { grid-template-columns: 260px 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.footer-word { display: none; }
.assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.assurances li { padding-inline-start: 18px; position: relative; }
.assurances li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 8px; height: 2px; background: var(--accent-text, currentColor); }
.save strong { font-weight: 600; opacity: 1; }
.faq { padding-block: clamp(56px, 8vw, 110px); }
.faq-list { border-top: 1px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; max-width: 64ch; }
@media (min-width: 860px) { .faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; } }
/* A buy bar pinned to the bottom of product pages on small screens */
.buy-bar { display: none; }
@media (max-width: 859px) {
  .buy-bar { position: fixed; z-index: 15; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ivory); color: var(--ink); border-top: 1px solid rgba(15, 39, 48, .25); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
  .buy-bar .button { min-height: 44px; padding: 8px 20px; background: var(--ink); border-color: var(--ink); color: var(--ivory); }
  .page-product .site-footer { padding-bottom: 72px; }
  .page-product .toast { bottom: 80px; }
}

/* Product page */
.crumbs { padding-block: 22px 8px; font-size: .85rem; opacity: .75; }
.crumbs a { text-decoration: none; }
.product { display: grid; gap: 28px; padding-bottom: clamp(40px, 6vw, 80px); }
.product-art { width: 100%; max-width: 480px; justify-self: center; display: grid; gap: 14px; }
.product-front { padding: 6% 14%; }
.product-front:has(.pouch-set) { padding: 12% 4%; }
.product-views { margin: 0; display: grid; gap: 14px; padding: 18px; }
.views-row { display: flex; align-items: flex-end; gap: 14px; }
.view { min-width: 0; }
.view-face { flex: 200 1 0; max-width: 46%; }
.view-side { flex: 76 1 0; }
.view-bottom { flex: 200 1 0; }
.view .pouch { filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .2)); }
.product-views figcaption { font-size: .9rem; opacity: .85; }
.product-motif { width: 56px; margin-bottom: 10px; color: var(--f); }
.product-info h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .3em; }
.product-info h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.specs { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; font-size: .85rem; }
.add-form { display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.buy-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.qty-row { display: grid; gap: 4px; }
.qty-row label { font-size: .8rem; opacity: .75; }
.qty-row input { width: 92px; }
.status { margin: 0; min-height: 1.5em; color: var(--ok); font-weight: 500; }
.status:empty { display: none; }
.assure { margin: 0; font-size: .88rem; opacity: .8; }
.also { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .product { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
  .product-art { position: sticky; top: 100px; max-width: none; }
}

/* Forms */
input, select, textarea { font: inherit; color: var(--field-fg, var(--ink)); background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius); padding: 10px 12px; min-height: 48px; width: 100%; }
input[type="radio"], input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--error); }
.field { display: grid; gap: 4px; margin-bottom: 16px; }
.field label { font-weight: 500; }
.hint { margin: 0; font-size: .85rem; opacity: .7; }
.field-error, .form-error { margin: 0; color: var(--error); font-size: .9rem; font-weight: 500; }
.form-error { background: #fdecea; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 20px 6px; margin: 0 0 18px; min-width: 0; }
fieldset legend { font-family: var(--font-display); font-size: 1.25rem; padding-inline: 8px; }
.pay-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; cursor: pointer; }
.pay-option input { margin-top: 6px; }
.pay-option.disabled { opacity: .55; cursor: not-allowed; }
.pill { display: inline-block; border: 1px solid currentColor; border-radius: 99px; font-size: .72rem; padding: 0 8px; margin-inline-start: 6px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 6px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Cart, checkout and confirmation */
.checkout { display: grid; gap: 24px; }
.checkout .summary { order: -1; }
.pay-total { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 12px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.4fr 1fr; align-items: start; } .checkout .summary { order: 0; position: sticky; top: 100px; } }
.summary, .cart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; }
.summary h2 { font-size: 1.3rem; margin: 14px 0 4px; }
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.line img { width: 64px; }
.line h3 { font-size: 1.15rem; }
.line p { margin: 0; font-size: .9rem; }
.line-total { font-weight: 500; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.stepper button, .link-button { cursor: pointer; }
.stepper button:not(.link-button) { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--field-line); background: transparent; font-size: 1.1rem; }
.stepper output { min-width: 28px; text-align: center; font-weight: 500; }
.link-button { background: none; border: 0; text-decoration: underline; padding: 4px 6px; margin-inline-start: 8px; opacity: .75; }
.totals { margin: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.totals dt { opacity: .75; }
.totals dd { margin: 0; text-align: end; font-weight: 500; }
.totals .grand { font-family: var(--font-display); font-size: 1.35rem; opacity: 1; }
.order { text-align: center; }
.order-seal { width: 130px; margin: 0 auto 24px; color: var(--accent); }
.order-number { font-size: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: inline-block; }
.order .summary { text-align: start; margin-bottom: 24px; }

/* Content pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.prose li { margin-bottom: 6px; }
.prose a { color: inherit; }
.facts { display: grid; gap: 4px 20px; }
.facts dt { font-weight: 600; margin-top: 12px; }
.facts dd { margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: 220px 1fr; } .facts dt { margin-top: 0; } }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: start; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Footer */
.site-footer { background: var(--footer-bg, var(--deep)); color: var(--footer-fg, #c9d2d0); font-size: .92rem; padding-top: clamp(36px, 5vw, 64px); }
.site-footer a { color: inherit; }
.site-footer h2 { font-family: var(--font-body); font-size: .76rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; margin: 0 0 14px; color: var(--footer-head, var(--copper)); }
html[lang="ar"] .site-footer h2 { font-size: 1rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .footer-logo { margin-bottom: 18px; color: var(--footer-head, var(--copper)); }
.site-footer .copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin: 36px auto 0; padding-block: 18px; font-size: .82rem; opacity: .7; }

.toast { position: fixed; z-index: 30; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 460px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px;
  background: var(--ivory); color: var(--ink); border-radius: 6px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .55); border-inline-start: 4px solid var(--copper);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s; }
.toast.is-open { opacity: 1; visibility: visible; transform: none; }
.toast a { font-weight: 600; white-space: nowrap; }

/* Scroll reveal and motion: progressive enhancement only */
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
  .steam { animation: steam 3.2s ease-in-out infinite; }
  .steam.s2 { animation-delay: .9s; }
  .steam.s3 { animation-delay: 1.8s; }
}

/* V1 — Modern Heritage: a dark ink frame around ivory content, in ink and copper.
   The page alternates dark and light bands so each section reads as its own part. No decorative drawings.
   The pouch is the same ink as the dark bands, so it stands straight on the ivory page with no panel behind it. On a dark band only the hero moon and the kraft Discovery box carry it. */
:root {
  --night: #07151B;
  --copper-deep: #96562B; /* copper darkened so small text passes contrast on ivory */
  /* Light is the default: every page and band is ivory unless it opts into the dark tokens below. */
  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: #55625f;
  --line: rgba(15, 39, 48, .18);
  --surface: transparent; /* panels are outlined, not filled; white is kept for the fields a customer types into */
  --accent: var(--ink);
  --accent-fg: var(--ivory);
  --accent-text: var(--copper-deep);
  --field-bg: #fff;
  --header-bg: var(--deep);
  --logo: var(--copper);
  --sand: #EADFCB;
}
/* Dark bands: header, hero, Discovery Set and footer. */
.site-header, .hero, .set, .site-footer {
  --fg: var(--ivory);
  --muted: #C2CDC9;
  --line: rgba(196, 129, 79, .32);
  --accent: var(--copper);
  --accent-fg: var(--ink);
  --accent-text: var(--copper);
  color: var(--ivory);
}
h1, h2, h3 { color: inherit; }
html[lang="ar"] :is(h1, h2, h3, legend) { font-weight: 700; }
.eyebrow { color: var(--accent-text); }
.text-link { color: var(--accent-text); }
.button:hover { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.button.ghost:hover { background: transparent; border-color: var(--accent-text); color: var(--accent-text); }
.site-header { border-bottom-color: rgba(196, 129, 79, .32); }

/* Hero (dark): the four pouches standing in front of a rising moon wide enough to hold all of them, on the line above a strip to buy any of them */
.hero { background: radial-gradient(70% 90% at 74% 100%, #153642, var(--deep) 62%, var(--night)); padding-block: clamp(24px, 3.4vw, 48px) 0; overflow: clip; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; }
.hero-text { align-self: center; padding-bottom: clamp(0px, 3vw, 40px); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); max-width: 10ch; margin-bottom: .32em; }
html[lang="ar"] .hero h1 { font-size: clamp(3rem, 6.8vw, 5.2rem); max-width: 9ch; }
.hero .lead { max-width: 40ch; color: #DCE3DE; font-size: 1.2rem; margin: 0; }
.hero-art { position: relative; display: grid; place-items: end center; width: 100%; max-width: 560px; aspect-ratio: 1 / .62; justify-self: center; }
.moon { position: absolute; bottom: 0; left: -12%; width: 124%; height: 100%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--ivory); box-shadow: 0 0 110px 10px rgba(243, 234, 218, .16); }
.hero-art .pouch-set { position: relative; width: 88%; margin-bottom: 5%; }
.quick { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.quick li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px clamp(10px, 1.6vw, 22px); }
.quick li:nth-child(even) { border-inline-start: 1px solid var(--line); }
.quick li:nth-child(n+3) { border-top: 1px solid var(--line); }
.quick-name { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; text-decoration: none; }
.quick-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--f); box-shadow: 0 0 0 1px rgba(243, 234, 218, .5); }
.quick .price { margin-inline-start: auto; color: var(--muted); }
.quick .add { border-color: rgba(243, 234, 218, .55); }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  /* Beside the text the moon stays inside the page gutter; on a phone it runs off both edges of the screen. */
  .hero-art { aspect-ratio: 1 / .58; }
  .moon { left: -8%; width: 116%; }
  .hero-art .pouch-set { width: 82%; margin-bottom: 4%; }
  .quick { grid-template-columns: repeat(4, 1fr); }
  .quick li:nth-child(n) { border-top: 0; }
  .quick li + li { border-inline-start: 1px solid var(--line); }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(3) { animation-delay: .24s; }
  .moon { animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art .pouch-set { animation: rise 1.1s .35s cubic-bezier(.2, .7, .2, 1) both; }
}

/* Flavour picker (light) */
.picker { padding-block: clamp(48px, 7vw, 104px) 0; }
.picker-panel { position: relative; display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.picker-radio { position: absolute; opacity: 0; pointer-events: none; }
.picker-stage { position: relative; display: grid; min-height: clamp(340px, 42vw, 600px); }
.picker-shot { grid-area: 1 / 1; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .5s, visibility .5s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.picker-pouch { width: min(62%, 370px); }
.picker-side { display: flex; flex-direction: column; }
.picker-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: clamp(22px, 3vw, 36px); }
.picker-tab { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-weight: 500; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.picker-tab:hover { border-color: var(--ink); }
.tab-art { flex: none; width: 30px; }
.tab-art .pouch { filter: none; }
.tab-text { display: grid; gap: 2px; min-width: 0; }
.tab-name { letter-spacing: .04em; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; }
html[lang="ar"] .tab-name { font-size: 1rem; }
.tab-price { letter-spacing: 0; text-transform: none; font-size: .78rem; opacity: .85; white-space: nowrap; }
.picker-infos { display: grid; flex: 1; }
.picker-info { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s, visibility .45s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.picker-info h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.picker-tag { font-family: var(--font-italic); font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--f) 62%, var(--ink)); margin: .5em 0 1em; }
html[lang="ar"] .picker-tag { font-family: var(--font-display); font-style: normal; font-size: 1.4rem; }
.picker-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.picker .assurances { margin-top: 18px; color: var(--muted); }
.picker .price.big { font-size: 2rem; }
.picker .perks { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.perks li + li { border-inline-start: 1px solid var(--line); }
@media (max-width: 859px) { .perks li:nth-child(3) { border-inline-start: 0; } .perks li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 560px) { .picker-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 860px) { .picker-panel { grid-template-columns: 1fr 1.08fr; } }

/* Discovery Set (dark) */
.set { background: var(--ink); padding-block: clamp(56px, 8vw, 120px); }
.set .price.big { font-family: var(--font-display); color: var(--copper); font-size: 2.2rem; }
.set .save { color: var(--muted); opacity: 1; }
.set .save strong { display: inline-block; margin-inline-end: 6px; padding: 3px 12px; border-radius: 99px; background: var(--copper); color: var(--ink); }
.set .button:hover { background: var(--ivory); border-color: var(--ivory); }
.set-text p { text-wrap: pretty; }

/* Ritual (light): three steps, no illustration */
.ritual { padding-block: clamp(56px, 8vw, 120px); }
.ritual-grid { grid-template-columns: 1fr; }
.ritual-art { display: none; }
.step-no { color: var(--copper-deep); }
.steps li { border-top: 1px solid var(--ink); padding-top: 16px; }

/* Method (light): brewing steps beside the back of the bag */
.method { padding-block: clamp(56px, 8vw, 120px); }
.method-grid { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
.method-art { padding-inline: 18%; }
.method .sec-head { text-align: start; }
.method .sec-head .sub { margin-inline: 0; }
.method .steps { grid-template-columns: 1fr; gap: 0; }
.method .steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 8px; padding-block: 18px; }
.method-story { margin: 28px 0 0; font-family: var(--font-display); font-size: 1.3rem; }
@media (min-width: 860px) { .method-grid { grid-template-columns: 1fr 1.2fr; } }

/* Questions (sand) */
.faq { background: var(--sand); }
.faq .sec-head { text-align: start; margin-bottom: 20px; }

/* Cards and inner pages (light) */
.sec-head { text-align: center; }
.sec-head .sub { margin-inline: auto; }
.ritual .sec-head { text-align: start; }
.ritual .sec-head .sub { margin-inline: 0; }
.card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding: 0 18px 18px; transition: border-color .3s, transform .3s; }
.card::before { content: ""; height: 4px; margin-inline: -18px; background: var(--f); }
.card:hover { border-color: var(--ink); transform: translateY(-4px); }
.card-art { margin: 0 -18px 16px; padding: 9% 22% 7%; }
.also .card-art { padding-inline: 30%; }
.card-buy { border-top: 1px solid var(--line); padding-top: 14px; }
.badge { background: var(--ink); color: var(--ivory); border: 0; }
.shop-page { padding-top: clamp(40px, 6vw, 80px); }
.product-front { padding: 0 16%; }
.add-form .assurances { color: var(--muted); }
.product-front:has(.pouch-set) { padding: 16% 6%; }
.product-views { border: 1px solid var(--line); border-radius: 6px; }
.product-motif { display: none; }
.f-discovery { --f: var(--copper); }
.price.big { font-family: var(--font-display); }
.prose a, .assure a { color: var(--copper-deep); }
.table th { font-weight: 600; border-bottom-color: var(--ink); }
.site-footer { background: var(--deep); }

/* Flavour colours from src/config.js */
.f-plain{--f:#4A2A1C;--f-on:#F3EADA}
.f-orange{--f:#D05A1E;--f-on:#0F2730}
.f-hazelnut{--f:#B98B56;--f-on:#0F2730}
.f-mint{--f:#2F8062;--f-on:#F3EADA}
.f-discovery{--f:#0F2730;--f-on:#F3EADA}
.picker-panel:has(#pick-plain:checked) [data-for="plain"]{opacity:1;visibility:visible;transform:none}
.picker-panel:has(#pick-plain:checked) [for="pick-plain"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel[data-pick="plain"] [data-for="plain"]{opacity:1;visibility:visible;transform:none}
.picker-panel[data-pick="plain"] [for="pick-plain"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel:has(#pick-plain:focus-visible) [for="pick-plain"]{outline:2px solid var(--ink);outline-offset:3px}
.picker-panel:has(#pick-orange:checked) [data-for="orange"]{opacity:1;visibility:visible;transform:none}
.picker-panel:has(#pick-orange:checked) [for="pick-orange"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel[data-pick="orange"] [data-for="orange"]{opacity:1;visibility:visible;transform:none}
.picker-panel[data-pick="orange"] [for="pick-orange"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel:has(#pick-orange:focus-visible) [for="pick-orange"]{outline:2px solid var(--ink);outline-offset:3px}
.picker-panel:has(#pick-hazelnut:checked) [data-for="hazelnut"]{opacity:1;visibility:visible;transform:none}
.picker-panel:has(#pick-hazelnut:checked) [for="pick-hazelnut"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel[data-pick="hazelnut"] [data-for="hazelnut"]{opacity:1;visibility:visible;transform:none}
.picker-panel[data-pick="hazelnut"] [for="pick-hazelnut"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel:has(#pick-hazelnut:focus-visible) [for="pick-hazelnut"]{outline:2px solid var(--ink);outline-offset:3px}
.picker-panel:has(#pick-mint:checked) [data-for="mint"]{opacity:1;visibility:visible;transform:none}
.picker-panel:has(#pick-mint:checked) [for="pick-mint"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel[data-pick="mint"] [data-for="mint"]{opacity:1;visibility:visible;transform:none}
.picker-panel[data-pick="mint"] [for="pick-mint"]{background:var(--f);color:var(--f-on);border-color:var(--f)}
.picker-panel:has(#pick-mint:focus-visible) [for="pick-mint"]{outline:2px solid var(--ink);outline-offset:3px}
