/* =========================================================================
   NusaBloomStudio — design system
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Buttons, badges, pills
   5. Header & navigation
   6. Hero
   7. Sections & cards
   8. Catalogue (search, filters, grid, modal)
   9. Accordion, licence, support
   10. Footer, back-to-top, toast
   11. Utilities, motion, print
   ========================================================================= */

/* ------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand palette */
  --ink: #24324A;
  --teal: #229C98;
  --teal-dark: #167B78;
  --mint: #DDF4EA;
  --mint-light: #EFF9F7;
  --cream: #FFF7E8;
  --coral: #FF7A2F;
  --gold: #F9D45C;
  --purple: #7746B7;
  --white: #FFFFFF;
  --muted: #5F6F7B;
  --border: #CBDED9;

  /* Derived */
  --coral-dark: #E2620F;
  --purple-dark: #5E3397;
  --ink-80: rgba(36, 50, 74, 0.8);
  --ink-12: rgba(36, 50, 74, 0.12);
  --surface: var(--cream);
  --surface-alt: var(--mint-light);
  --surface-card: var(--white);

  /* Typography */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.65rem, 1.4rem + 1.2vw, 2.35rem);
  --step-4: clamp(2rem, 1.55rem + 2.1vw, 3.25rem);
  --step-5: clamp(2.35rem, 1.7rem + 3vw, 4.05rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.25rem, 2rem + 5vw, 6rem);
  --gutter: clamp(1.1rem, 0.6rem + 2.2vw, 2.5rem);
  --measure: 68ch;
  --wrap: 1200px;
  --wrap-narrow: 760px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(36, 50, 74, 0.06);
  --sh-sm: 0 2px 8px rgba(36, 50, 74, 0.07);
  --sh-md: 0 10px 26px -12px rgba(36, 50, 74, 0.24);
  --sh-lg: 0 24px 56px -24px rgba(36, 50, 74, 0.3);
  --sh-focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--teal-dark);

  /* Motion */
  --t-fast: 130ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-base: 220ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-slow: 420ms cubic-bezier(0.16, 0.8, 0.3, 1);

  --header-h: 68px;
}

/* -------------------------------------------------------- 2. Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background-color: var(--mint-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.012em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); line-height: var(--lh-snug); }
p { margin: 0 0 var(--sp-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

button { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
::selection { background: var(--mint); color: var(--ink); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-3); color: var(--white); }

/* ------------------------------------------------- 3. Layout primitives */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--mint { background: var(--surface-alt); }
.section--mint-strong { background: var(--mint); }
.section--white { background: var(--white); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: var(--sp-4);
}
.eyebrow .bloom-dot { width: 14px; height: 14px; flex: none; }

.lead { font-size: var(--step-1); color: var(--muted); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

/* ------------------------------------------ 4. Buttons, badges, pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--buy { background: var(--coral); color: var(--white); box-shadow: var(--sh-sm); }
.btn--buy:hover { background: var(--coral-dark); color: var(--white); }

.btn--primary { background: var(--teal); color: var(--white); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--teal-dark); color: var(--white); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--ghost { background: var(--white); color: var(--teal-dark); border-color: var(--border); }
.btn--ghost:hover { background: var(--mint-light); color: var(--teal-dark); border-color: var(--teal); }

.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { background: var(--purple-dark); color: var(--white); }

.btn--sm { min-height: 40px; padding: 0.45rem 1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.35;
}
.badge--gold { background: var(--gold); color: #5A4300; }
.badge--purple { background: #EFE6FA; color: var(--purple-dark); }
.badge--teal { background: var(--mint); color: var(--teal-dark); }
.badge--coral { background: #FFE7D6; color: #9A3D00; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
}

.price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* -------------------------------------------- 5. Header & navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img { height: 34px; width: auto; }
.brand:hover { color: var(--ink); }

.nav { display: none; margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: var(--mint); color: var(--teal-dark); }
.nav__link[aria-current] {
  color: var(--teal-dark);
  background: var(--mint);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.header__tools { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--mint); }
.icon-btn svg { width: 22px; height: 22px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  padding: 3px;
  gap: 2px;
}
.lang-switch__btn {
  min-width: 40px;
  min-height: 36px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch__btn[aria-pressed='true'] { background: var(--teal); color: var(--white); }
.lang-switch__btn:hover[aria-pressed='false'] { background: var(--mint); color: var(--teal-dark); }

.header__cta { display: none; }

/* Header search */
.header-search {
  display: none;
  padding-bottom: var(--sp-4);
}
.header-search.is-open { display: block; }
.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  box-shadow: var(--sh-xs);
}
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.search-field input:focus { outline: none; }
.search-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--mint); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
}
.drawer.is-open { display: block; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 50, 74, 0.45);
}
.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 90vw);
  background: var(--cream);
  padding: var(--sp-4) var(--sp-5) var(--sp-7);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--sh-lg);
  animation: slideIn var(--t-base) both;
}
@keyframes slideIn { from { transform: translateX(16px); opacity: 0; } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list li { margin: 0; border-bottom: 1px solid var(--border); }
.drawer__list a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.drawer__list a[aria-current] { color: var(--teal-dark); }

/* ------------------------------------------------------------- 6. Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section-y);
  background:
    radial-gradient(120% 90% at 88% 0%, var(--mint) 0%, rgba(221, 244, 234, 0) 58%),
    var(--cream);
}
.hero__grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp-5); }
.hero__sub { font-size: var(--step-1); color: var(--muted); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero__art { position: relative; }
.hero__stack { position: relative; display: grid; gap: var(--sp-4); }
.floating-card {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--sh-md);
}
.floating-card img {
  width: 84px;
  height: 84px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex: none;
}
.floating-card__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  margin: 0 0 0.2rem;
  line-height: var(--lh-snug);
}
.floating-card__meta { font-size: var(--step--1); color: var(--muted); margin: 0; }

.trustbar { border-block: 1px solid var(--border); background: var(--white); }
.trustbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  list-style: none;
  margin: 0;
  padding: var(--sp-5) 0;
}
.trustbar li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}
.trustbar svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

/* ------------------------------------------------- 7. Sections & cards */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-xs);
}
.card h3 { margin-bottom: var(--sp-3); }
.card ul { padding-left: 1.1rem; color: var(--muted); margin-bottom: 0; }

.audience-card { border-top: 4px solid var(--teal); }
.audience-card:nth-child(2) { border-top-color: var(--purple); }
.audience-card:nth-child(3) { border-top-color: var(--coral); }
.audience-card:nth-child(4) { border-top-color: var(--gold); }
.audience-card__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--mint-light);
  color: var(--teal-dark);
  margin-bottom: var(--sp-4);
}
.audience-card__icon svg { width: 22px; height: 22px; }

/* Steps — genuinely a sequence, so numbered */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: var(--sp-6);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.steps p { color: var(--muted); margin: 0; }

.notice {
  display: flex;
  gap: var(--sp-4);
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  color: var(--ink);
}
.notice svg { width: 22px; height: 22px; color: var(--teal-dark); flex: none; margin-top: 2px; }
.notice--cream { background: var(--cream); }
.notice p { margin-bottom: var(--sp-3); }

/* Featured product */
.featured {
  display: grid;
  gap: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 0.6rem + 2.4vw, 2.5rem);
  box-shadow: var(--sh-md);
}
.featured__media { position: relative; }
.featured__media img { border-radius: var(--r-lg); width: 100%; }
.featured__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.featured h2 { font-size: var(--step-3); margin-bottom: var(--sp-2); }
.featured__subtitle { color: var(--purple-dark); font-weight: 600; margin-bottom: var(--sp-4); }
.featured__list { columns: 1; column-gap: var(--sp-5); padding-left: 1.05rem; color: var(--muted); font-size: var(--step--1); }
.featured__list li { break-inside: avoid; }
.featured__buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.product-card:hover,
.product-card:focus-within {
  box-shadow: var(--sh-md);
  border-color: var(--teal);
  transform: translateY(-3px);
}
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--mint-light); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__flags { position: absolute; top: var(--sp-3); left: var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2); max-width: calc(100% - 5rem); }
.product-card__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); flex: 1; }
.product-card__cat { font-size: var(--step--1); font-weight: 700; color: var(--purple-dark); letter-spacing: 0.01em; }
.product-card__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: var(--lh-snug); margin: 0; }
.product-card__title a { color: var(--ink); text-decoration: none; }
.product-card__title a::after { content: ''; position: absolute; inset: 0; }
.product-card__title a:hover { color: var(--teal-dark); }
.product-card__desc { font-size: var(--step--1); color: var(--muted); margin: 0; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.product-card__actions { position: relative; z-index: 2; display: flex; gap: var(--sp-2); }
.fav-btn {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn:hover { color: var(--coral); border-color: var(--coral); }
.fav-btn[aria-pressed='true'] { color: var(--coral); border-color: var(--coral); background: #FFE7D6; }
.fav-btn[aria-pressed='true'] svg { fill: currentColor; }

/* ------------------------------------------------------- 8. Catalogue */
.catalog-toolbar {
  display: grid;
  gap: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--sp-5);
}
.filter-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--ink);
}
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 2.2rem 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6F7B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 18px;
  font: inherit;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}
.field select:focus-visible { border-color: var(--teal); }

.catalog-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.catalog-status__count { font-weight: 700; }

.empty-state {
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-5);
}
.empty-state svg { width: 48px; height: 48px; color: var(--teal); margin: 0 auto var(--sp-4); }
.empty-state p { margin-inline: auto; color: var(--muted); }

.skeleton-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow: hidden;
}
.skeleton-card__media { aspect-ratio: 4 / 3; }
.skeleton-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-3); }
.sk {
  background: linear-gradient(90deg, var(--mint-light) 25%, var(--mint) 37%, var(--mint-light) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-xs);
  height: 0.9rem;
}
.sk--title { height: 1.3rem; width: 78%; }
.sk--line { width: 100%; }
.sk--short { width: 55%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Modal / quick view */
.modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(36, 50, 74, 0.55); }
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 0.8rem + 1.8vw, 2rem);
  box-shadow: var(--sh-lg);
  animation: popIn var(--t-base) both;
}
@keyframes popIn { from { transform: translateY(10px) scale(0.99); opacity: 0; } }
.modal__close { position: absolute; top: var(--sp-3); right: var(--sp-3); background: var(--mint-light); border-radius: 50%; }
.modal__grid { display: grid; gap: var(--sp-5); }
.modal__grid img { border-radius: var(--r-md); }
.modal h2 { font-size: var(--step-2); margin-bottom: var(--sp-2); padding-right: 3rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* Product detail */
.breadcrumbs { padding-block: var(--sp-5) 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: '/'; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

.pdp { display: grid; gap: var(--sp-7); align-items: start; padding-block: var(--sp-6) var(--section-y); }
.pdp__media img { border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--sh-md); }
.pdp h1 { font-size: var(--step-4); margin-bottom: var(--sp-3); }
.pdp__subtitle { font-size: var(--step-1); color: var(--purple-dark); font-weight: 600; margin-bottom: var(--sp-4); }
.pdp__flags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.pdp__price { display: flex; align-items: baseline; gap: var(--sp-3); margin-block: var(--sp-5); }
.pdp__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.pdp__utils { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

.spec-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.spec-list div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.spec-list dt { color: var(--muted); font-size: var(--step--1); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }

.feature-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.feature-list svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--gutter);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -18px rgba(36, 50, 74, 0.5);
  transform: translateY(110%);
  transition: transform var(--t-base);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__price { font-weight: 700; }
.sticky-cta .btn { margin-left: auto; }

/* Demo card */
.demo-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.demo-card__skills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.demo-card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: auto; }

/* --------------------------------- 9. Accordion, licence, support */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  min-height: 56px;
  padding: var(--sp-4) 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.accordion__btn:hover { color: var(--teal-dark); }
.accordion__icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  transition: transform var(--t-base), background var(--t-fast);
}
.accordion__icon svg { width: 16px; height: 16px; }
.accordion__btn[aria-expanded='true'] .accordion__icon { transform: rotate(45deg); background: var(--teal); color: var(--white); }
.accordion__panel { padding: 0 0 var(--sp-5); color: var(--muted); }
.accordion__panel[hidden] { display: none; }

.licence-grid { display: grid; gap: var(--sp-5); }
.licence-card { border-left: 4px solid var(--teal); }
.licence-card--no { border-left-color: var(--coral); }
.licence-card--no ul { color: var(--ink); }

.support-panel {
  display: grid;
  gap: var(--sp-6);
  background: var(--ink);
  color: var(--mint);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
}
.support-panel h2 { color: var(--white); }
.support-panel p { color: rgba(255, 255, 255, 0.86); }
.support-panel ul { color: rgba(255, 255, 255, 0.86); }
.support-panel .btn--buy { align-self: start; }

/* ------------------------------- 10. Footer, back-to-top, toast */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--sp-8) var(--sp-6);
  margin-top: auto;
}
.footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer__brand img { height: 36px; margin-bottom: var(--sp-4); }
.footer__brand p { color: rgba(255, 255, 255, 0.72); font-size: var(--step--1); margin-bottom: var(--sp-2); }
.footer h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--sp-3); font-size: var(--step--1); }
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.72);
}
.footer__status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.66);
}

.back-to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 95;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; }

.toast-region {
  position: fixed;
  left: 50%;
  bottom: var(--sp-5);
  z-index: 200;
  transform: translateX(-50%);
  display: grid;
  gap: var(--sp-2);
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-pill);
  padding: 0.7rem 1.2rem;
  box-shadow: var(--sh-lg);
  font-size: var(--step--1);
  font-weight: 600;
  animation: toastIn var(--t-base) both;
}
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* Error / 404 */
.error-page { display: grid; place-items: center; text-align: center; padding-block: var(--sp-9); }
.error-page .bloom-lg { width: clamp(120px, 22vw, 190px); margin-bottom: var(--sp-5); }
.error-page .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }

/* --------------------------------- 11. Utilities, motion, print */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.text-muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

.noscript-note {
  background: var(--gold);
  color: #4A3700;
  padding: var(--sp-3) var(--gutter);
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
}

/* ------------------------------------------------------- Breakpoints */
@media (min-width: 640px) {
  .featured__list { columns: 2; }
  .featured__media img { max-height: 420px; object-fit: cover; }
  .licence-grid { grid-template-columns: 1fr 1fr; }
  .modal__grid { grid-template-columns: 260px 1fr; }
  .support-panel { grid-template-columns: 1.2fr 1fr; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__stack { padding-left: var(--sp-6); }
  .hero__stack .floating-card:nth-child(1) { transform: translateX(-8%); }
  .hero__stack .floating-card:nth-child(3) { transform: translateX(-4%); }
  .featured { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
  .pdp { grid-template-columns: 1fr 1fr; }
  .steps--row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
  .steps--row li { margin-bottom: 0; padding-left: 0; padding-top: 3.4rem; }
  .steps--row li::before { top: 0; }
}

@media (min-width: 1040px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
  .header-search { display: block; padding-bottom: 0; margin-left: var(--sp-3); }
  .header-search .search-field { min-width: 220px; }
  .header__search-toggle { display: none; }
  .sticky-cta { display: none; }
}

/* --------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .product-card:hover { transform: none; }
}

/* ---------------------------------------------------- Forced colours */
@media (forced-colors: active) {
  .btn, .card, .product-card, .pill { border: 1px solid CanvasText; }
}

/* ---------------------------------------------------------- Printing */
@media print {
  .header, .footer, .back-to-top, .sticky-cta, .toast-region, .catalog-toolbar { display: none !important; }
  body { background: #fff; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
