/* The FAQ, the blog index and the articles. Same tokens as the shop (docs/design/smartcom-site/shop.html);
   if a colour or size changes there, change it here too. */
:root {
  --page: #FBF8F2;
  --page-2: #F4EEE2;
  --card: #FFFFFF;
  --line: #E8E1D3;
  --line-strong: #8A8170;
  --ink: #1B1A16;
  --ink-2: #5C5648;
  --chip: #F1ECE1;
  --green: #1E3A24;
  --green-hover: #16301C;
  --orange: #B4501A;
  --orange-hover: #9C4415;
  --whatsapp: #0F6B3A;
  --whatsapp-hover: #0B5A30;
  --t-cream: #F3EBD9;
  --t-butter: #F4EDCF;
  --t-sand: #EFE3D0;
  --t-sage: #E3EBDC;
  --t-stone: #E5E9E6;
  --t-honey: #F6E2CB;
  --t-rose: #F3DFD8;
  --t-mint: #E2ECE4;
  --t-clay: #F0E0D2;
  --t-oat: #ECE6DC;

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 0.875rem;
  --step-1: 1rem;
  --step-2: 1.25rem;
  --step-3: 2.5rem;
  --prose: 1.0625rem;

  --gutter: 48px;
  --measure: 1280px;
  --read: 42rem;
  --r-tile: 14px;
  --r-card: 18px;
  --r-stage: 24px;
  --r-pill: 999px;
  --target: 48px;
  --t-fast: 160ms;
  --lift: 0 18px 40px -24px rgba(60, 40, 15, .35);
  --jar-shadow: drop-shadow(0 14px 14px rgba(60, 40, 15, .22));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: var(--step-1); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--target); padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 700; font-size: var(--step-0); line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--t-fast), border-color var(--t-fast); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-hover); }
.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: var(--whatsapp-hover); }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.marks { display: flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; min-height: var(--target); }
.marks img { height: 34px; width: auto; }
.marks .sep { width: 1px; height: 26px; background: var(--line); }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 14px; text-decoration: none; font-weight: 600; font-size: var(--step-0); color: var(--ink-2); border-radius: var(--r-pill); }
.nav a:hover { color: var(--ink); background: var(--chip); }
.nav a[aria-current] { color: var(--ink); background: var(--chip); }

/* ---------- breadcrumbs ---------- */
.crumbs { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; text-underline-offset: 3px; }

/* ---------- article ---------- */
.post-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding: 20px 0 48px; }
.kicker { margin: 0 0 12px; font-size: var(--step--1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.post-head h1 { margin: 0 0 16px; font-size: 3rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.post-head .lede { margin: 0 0 20px; font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.byline { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--step-0); color: var(--ink-2); }
.byline b { color: var(--ink); font-weight: 700; }
.hero-tile { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-stage); background: var(--tile, var(--t-cream)); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 2%; padding: 0 8% 9%; }
.hero-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 60% at 50% 45%, rgba(255,255,255,.75), transparent 72%); }
.hero-tile img { position: relative; width: 30%; height: auto; max-height: 78%; object-fit: contain; filter: var(--jar-shadow); }
.hero-tile img:only-child { width: 44%; }

.post-body { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 1fr); gap: 72px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 100px; order: 2; padding: 20px 22px; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: var(--step-0); }
.toc h2 { margin: 0 0 8px; font-size: var(--step-0); font-weight: 800; letter-spacing: 0; }
.toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 2px; }
.toc ol a { display: inline-block; padding: 4px 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc ol a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.toc .toc-cta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.toc .toc-cta p { margin: 0 0 10px; color: var(--ink-2); }
.toc .toc-cta .btn { width: 100%; }

.prose { font-size: var(--prose); line-height: 1.75; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; font-size: 1.75rem; line-height: 1.2; font-weight: 800; }
.prose h3 { margin: 1.8em 0 .4em; font-size: 1.25rem; line-height: 1.3; font-weight: 800; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--green); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--orange); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); color: var(--ink-2); }
.prose .table { margin: 1.5em 0; overflow-x: auto; border-radius: var(--r-tile); box-shadow: 0 0 0 1px var(--line); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-0); line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--page-2); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.prose caption { caption-side: bottom; padding: 10px 14px; text-align: left; font-size: var(--step--1); color: var(--ink-2); }

/* key points at the top of an article */
.takeaways { margin: 0 0 2em; padding: 22px 24px; border-radius: var(--r-card); background: var(--t-sage); }
.takeaways h2 { margin: 0 0 8px; font-size: var(--step-1); font-weight: 800; letter-spacing: 0; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li::marker { color: var(--green); }

/* a note to read before acting: safety, storage, claims */
.note { margin: 1.5em 0; padding: 18px 22px; border-radius: var(--r-card); background: var(--t-butter); font-size: var(--step-1); line-height: 1.6; }
.note b:first-child { display: block; margin-bottom: 4px; }
.note p:last-child { margin-bottom: 0; }

/* a jar from the shop, inside an article */
.product { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 1.8em 0; padding: 10px 20px 10px 10px; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; line-height: 1.45; }
.prose a.product { color: var(--ink); font-weight: 400; }
.product:hover { box-shadow: 0 0 0 1px var(--line), var(--lift); }
.product .pt { position: relative; aspect-ratio: 1; border-radius: var(--r-tile); background: var(--tile); }
.product .pt img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; filter: var(--jar-shadow); }
.product .pb { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.product b { display: block; font-size: var(--step-1); font-weight: 800; }
.product .pd { display: block; font-size: var(--step-0); color: var(--ink-2); }
.product .pp { font-weight: 800; color: var(--orange); white-space: nowrap; font-size: var(--step-1); }
.product .go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: var(--step-0); font-weight: 700; white-space: nowrap; }

/* questions at the foot of an article, and the FAQ page */
.qa { margin: 0; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-of-type { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center; min-height: var(--target); padding: 16px 0; cursor: pointer; font-weight: 700; font-size: var(--step-1); line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--chip); font-weight: 800; transition: transform var(--t-fast); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--green); }
.qa .a { padding: 0 44px 18px 0; color: var(--ink-2); font-size: var(--step-1); line-height: 1.7; }
.qa .a p { margin: 0 0 .8em; }
.qa .a p:last-child { margin-bottom: 0; }
.qa .a a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }

.sources { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: var(--step-0); color: var(--ink-2); line-height: 1.6; }
.sources h2 { margin: 0 0 .6em; font-size: var(--step-1); }
.sources ol { padding-left: 20px; }
.sources a { color: var(--ink-2); font-weight: 500; word-break: break-word; }

/* ---------- cards: blog index and related reading ---------- */
.section-head { margin: 0 0 24px; }
.section-head h2 { margin: 0; font-size: 2rem; line-height: 1.1; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cards li { display: contents; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); padding: 8px 8px 20px; text-decoration: none; color: var(--ink); transition: box-shadow var(--t-fast); }
.post-card:hover { box-shadow: 0 0 0 1px var(--line), var(--lift); }
.post-card .hero-tile { aspect-ratio: 16 / 10; border-radius: var(--r-tile); margin-bottom: 16px; }
.post-card .kicker { margin: 0 12px 6px; }
.post-card h3 { margin: 0 12px 8px; font-size: 1.25rem; line-height: 1.25; font-weight: 800; }
.post-card p { margin: 0 12px; color: var(--ink-2); font-size: var(--step-0); line-height: 1.55; }
.post-card .meta { margin-top: auto; padding-top: 14px; font-size: var(--step--1); font-weight: 600; }
.related { padding: 72px 0; background: var(--page-2); }

/* ---------- page heads: blog index, FAQ ---------- */
.page-head { padding: 20px 0 40px; max-width: 46rem; }
.page-head h1 { margin: 0 0 14px; font-size: 3rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin: 0; font-size: 1.1875rem; color: var(--ink-2); }
.blog-list { padding-bottom: 88px; }
.faq { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, var(--read)); gap: 72px; align-items: start; padding-bottom: 72px; }
.faq-nav { position: sticky; top: 100px; display: grid; gap: 2px; font-size: var(--step-0); font-weight: 600; }
.faq-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; }
.faq-nav a:hover { background: var(--chip); color: var(--ink); }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; }

/* ---------- ask + footer ---------- */
.ask { padding: 72px 0; }
.ask-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px 48px; border-radius: var(--r-stage); background: var(--t-sage); }
.ask h2 { margin: 0 0 8px; font-size: 2rem; line-height: 1.1; font-weight: 800; }
.ask p { margin: 0; color: var(--ink-2); max-width: 34em; }
.ask .ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; font-size: var(--step-0); color: var(--ink-2); }
.foot .marks { margin-right: 0; }
.foot .marks img { height: 28px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.foot nav a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 600; text-underline-offset: 3px; }

/* ---------- standalone product screen --------------------------------- */
.product-screen-page { background: var(--card); }
.product-screen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100svh; max-width: 1000px; margin: 0 auto; background: var(--card); }
.product-screen__tile { position: relative; min-height: 420px; background: var(--tile); overflow: hidden; }
.product-screen__tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,255,255,.75), transparent 72%); }
.product-screen__tile img { position: absolute; left: 50%; top: 50%; width: 78%; height: 84%; object-fit: contain; transform: translate(-50%, -50%); filter: var(--jar-shadow); }
.product-screen__close { position: absolute; z-index: 2; top: 12px; left: 12px; width: var(--target); height: var(--target); display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); font-size: 2rem; font-weight: 400; line-height: 1; text-decoration: none; box-shadow: 0 2px 10px rgba(30, 20, 5, .12); }
.product-screen__close:hover { background: #fff; }
.product-screen__body { display: flex; flex-direction: column; padding: 40px 40px 32px; }
.product-screen__brand { margin: 0 0 6px; font-size: var(--step--1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.product-screen h1 { margin: 0 0 8px; font-size: 2rem; line-height: 1.1; font-weight: 800; }
.product-screen__desc { margin: 0 0 12px; color: var(--ink-2); line-height: 1.55; }
.product-screen__more { display: inline-block; align-self: flex-start; margin-bottom: 18px; color: var(--green); font-size: var(--step-0); font-weight: 700; text-underline-offset: 3px; }
.product-screen__sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.product-screen__sizes legend { width: 100%; margin-bottom: 4px; font-size: var(--step--1); font-weight: 800; color: var(--ink-2); }
.product-screen__chip { position: relative; display: inline-flex; cursor: pointer; }
.product-screen__chip input { position: absolute; opacity: 0; pointer-events: none; }
.product-screen__chip span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--card); font-size: var(--step-0); font-weight: 700; }
.product-screen__chip input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.product-screen__chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.product-screen__only-size { margin: 0 0 14px; font-weight: 700; }
.product-screen__price { margin: 2px 0 6px; font-size: 1.75rem; line-height: 1.1; font-weight: 800; }
.product-screen__price small { margin-right: 4px; font-size: var(--step--1); letter-spacing: .06em; }
.product-screen__note { margin: auto 0 14px; padding-top: 16px; color: var(--ink-2); font-size: var(--step--1); }
.product-screen__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product-screen__add { flex: 1; min-height: var(--target); border: 0; border-radius: var(--r-pill); background: var(--green); color: #fff; font: inherit; font-size: var(--step-1); font-weight: 800; cursor: pointer; }
.product-screen__add:hover { background: var(--green-hover); }
.product-screen__stepper { display: inline-flex; align-items: center; min-height: var(--target); overflow: hidden; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); }
.product-screen__stepper button { width: var(--target); align-self: stretch; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.product-screen__stepper button:hover { background: var(--chip); }
.product-screen__stepper output { min-width: 32px; text-align: center; font-weight: 800; }
.product-screen__bag-link { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink); font-size: var(--step-0); font-weight: 800; text-align: center; text-decoration: none; }
.product-screen__bag-link:hover { border-color: var(--ink); }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .post-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; order: 0; margin-bottom: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .post-head { grid-template-columns: 1fr; gap: 28px; }
  .post-head h1, .page-head h1 { font-size: 2.25rem; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
  .faq-nav a { background: var(--chip); }
  .ask-card { grid-template-columns: 1fr; }
  .ask .ctas { justify-content: flex-start; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --prose: 1rem; }
  html { scroll-padding-top: 76px; }
  .top .wrap { height: 60px; gap: 8px; }
  .marks { gap: 10px; }
  .marks img { height: 26px; }
  .marks .sep { height: 20px; }
  .nav a { padding: 0 10px; }
  .top .btn--wa { display: none; }
  /* Nothing here is tied to the screen's height or its bottom edge, so it behaves like the home
     page: when an in-app browser (X/Twitter) slides its own panel up, the page stays put and the
     panel simply covers the bottom. The picture is sized from the width; Add sits in the page. */
  .product-screen { display: flex; flex-direction: column; min-height: 0; }
  .product-screen__tile { flex: none; min-height: 0; height: auto; aspect-ratio: 4 / 3; max-height: 400px; }
  /* The extra room at the foot keeps the page scrollable even when the product is short, so a swipe
     reaches the in-app browser (X lowers its panel when the page scrolls) and Add can be scrolled
     clear of a panel that stays. */
  .product-screen__body { flex: none; padding: 14px 16px calc(24px + 35vh); }
  .product-screen__sizes, .product-screen__only-size { margin-bottom: 10px; }
  .product-screen__desc { margin-bottom: 8px; }
  .product-screen__more { margin-bottom: 12px; }
  .product-screen__note { margin: 0 0 12px; padding-top: 4px; }
  .product-screen h1 { font-size: 1.5rem; }
  .product-screen__price { margin: 4px 0 8px; font-size: 1.5rem; }
  .product-screen__actions { padding-bottom: env(safe-area-inset-bottom); }
  .crumbs { margin-top: 16px; }
  .post-head { padding: 12px 0 32px; }
  .post-head h1, .page-head h1 { font-size: 1.875rem; }
  .post-head .lede, .page-head p { font-size: 1.0625rem; }
  .prose h2 { font-size: 1.4375rem; }
  .product { grid-template-columns: 80px minmax(0, 1fr); padding-right: 14px; }
  .product .go { grid-column: 2; justify-self: start; }
  .cards { grid-template-columns: 1fr; }
  .qa .a { padding-right: 0; }
  .ask { padding: 48px 0; }
  .ask-card { padding: 28px 20px; }
  .ask .ctas .btn { width: 100%; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .nav a:not([aria-current]):nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
