/* Royal Crownelle — site styles.
   Built on the Organic design system in tokens.css. The layout, type scale and
   colour come from the Claude Design project; the components below extend it
   for the real 33-product catalogue. */

:root {
  --font-heading: "Figtree", system-ui, sans-serif;
  --font-heading-weight: 500;
  --page: 1280px;
  --gutter: 40px;
}

body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
h1, h2, h3, h4 { letter-spacing: -0.032em; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; height: auto; }

/* A class that sets `display` outranks the user-agent's [hidden] rule, so
   anything toggled with the hidden attribute needs this to actually hide. */
[hidden] { display: none !important; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.band { background: var(--color-surface); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: var(--color-bg);
  padding: 12px 20px; border-radius: 0 0 var(--radius-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--color-bg); }

/* ── announcement + header ──────────────────────────────────────────────── */
.announce {
  background: var(--color-accent-2-800); color: var(--color-accent-2-100);
  text-align: center; font-size: 14px; letter-spacing: 0.02em; padding: 11px 20px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 234, 216, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header > .wrap { padding-block: 18px; display: flex; align-items: center; gap: 44px; }
.brand { display: flex; align-items: center; }
/* multiply warms the gold against the cream ground; the asset carries real
   alpha because this header is only 90% opaque (see README). */
.brand img { height: 38px; width: auto; mix-blend-mode: multiply; }

.site-nav { display: flex; gap: 30px; margin-left: auto; font-size: 14.5px; }
.site-nav a { color: var(--color-text); }
.site-nav a:hover { color: var(--color-accent-700); }
.site-nav a[aria-current="page"] { color: var(--color-accent-700); font-weight: 600; }

.cart-link {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 999px; border: 1px solid var(--color-divider);
  padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--color-text);
  white-space: nowrap;
}
.cart-link:hover { background: var(--color-neutral-200); color: var(--color-text); }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer; border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; padding: 16px 30px;
}
.btn-solid:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-solid:active { background: var(--color-accent-700); }

.btn-outline {
  display: inline-flex; align-items: center;
  border-radius: 999px; border: 1px solid var(--color-neutral-400);
  color: var(--color-text); font-size: 16px; font-weight: 500; padding: 15px 28px;
}
.btn-outline:hover { background: var(--color-neutral-200); color: var(--color-text); }

.btn-add {
  border: 0; cursor: pointer; border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; padding: 11px 20px;
  white-space: nowrap;
}
.btn-add:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-add:active { background: var(--color-accent-700); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding-block: 88px 96px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-block; border-radius: 999px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-800);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 15px; margin: 0 0 26px;
}
.hero h1 { font-size: 62px; line-height: 1.05; margin: 0 0 22px; font-weight: 500; text-wrap: balance; }
.hero-lede {
  font-size: 19px; line-height: 1.62; color: var(--color-neutral-800);
  margin: 0 0 34px; text-wrap: pretty; max-width: 500px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 30px 0 0; font-size: 14px; color: var(--color-neutral-700); }

.hero-media { position: relative; isolation: isolate; }
.hero-media::before {          /* soft sage disc peeking out behind the photo */
  content: ""; position: absolute; left: -56px; bottom: -40px; z-index: 0;
  width: 210px; height: 210px; border-radius: 999px;
  background: var(--color-accent-2-300); opacity: 0.55;
}
/* The frame takes the artwork's exact ratio rather than a fixed height, so the
   product is never cropped at any viewport width. Keep this in step with
   assets/editorial/hero-product.jpg if that image is ever re-rendered. */
.hero-frame {
  position: relative; z-index: 1; aspect-ratio: 1100 / 1014;
  border-radius: var(--radius-lg); overflow: hidden;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── section furniture ─────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 44px;
}
.section-head h2 { font-size: 44px; margin: 0 0 12px; font-weight: 500; }
.section-head p { margin: 0; font-size: 17px; color: var(--color-neutral-800); max-width: 460px; }
.section-head .more { font-size: 16px; font-weight: 600; white-space: nowrap; color: var(--color-accent-700); }

.page-head { padding-block: 72px 40px; }
.page-head h1 { font-size: 54px; margin: 0 0 16px; font-weight: 500; }
.page-head > p { font-size: 19px; line-height: 1.6; color: var(--color-neutral-800); margin: 0; max-width: 620px; }

/* ── skin-type cards ───────────────────────────────────────────────────── */
.cats { padding-block: 84px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--color-bg); border-radius: var(--radius-lg);
  padding: 30px 28px 26px; color: var(--color-text);
  border: 1px solid transparent; transition: border-color .15s ease;
}
.cat-card:hover { border-color: var(--color-accent-400); color: var(--color-text); }
.cat-card h3 { font-size: 21px; margin: 0; font-weight: 600; }
.cat-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); flex: 1; }
.cat-count {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--color-accent-700);
}

/* ── product grid ──────────────────────────────────────────────────────── */
.range { padding-block: 92px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

.product {
  display: flex; flex-direction: column;
  background: var(--color-neutral-100); border-radius: var(--radius-lg);
  padding: 20px 20px 24px;
}
.band .product { background: var(--color-bg); }
.product-media {
  display: block; height: 280px; border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 20px;
}
/* The product shots are photographed on white. multiply drops that white into
   the card's own tint instead of punching a bright rectangle out of the cream,
   and keeps the soft contact shadows intact. It only works over an opaque
   backdrop, which is why .product always sets a solid background. */
.product-media img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply;
}
.product-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-accent-2-700); margin: 0 0 8px;
}
.product-name { font-size: 20px; font-weight: 600; margin: 0 0 8px; line-height: 1.25; }
.product-name a { color: var(--color-text); }
.product-name a:hover { color: var(--color-accent-700); }
.product-desc { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); }
.product-claims {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.product-claims li {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--color-accent-2-100); color: var(--color-accent-2-800);
}
.band .product-claims li { background: var(--color-accent-2-200); }
.product-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { font-size: 19px; font-weight: 600; display: flex; flex-direction: column; }
.product-size { font-size: 12.5px; font-weight: 400; color: var(--color-neutral-700); }

/* ── shop filters ──────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filter {
  cursor: pointer; border-radius: 999px;
  border: 1px solid var(--color-neutral-400); background: transparent;
  color: var(--color-text); font-family: var(--font-body);
  font-size: 14.5px; font-weight: 500; padding: 10px 20px;
}
.filter:hover { background: var(--color-neutral-200); }
.filter.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.shop-section { padding-block: 40px 24px; scroll-margin-top: 110px; }
.shop-section[hidden] { display: none; }

/* ── routine ───────────────────────────────────────────────────────────── */
.routine {
  padding-block: 96px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
}
.routine-copy h2 { font-size: 42px; margin: 0 0 16px; font-weight: 500; }
.routine-copy > p { font-size: 17px; line-height: 1.62; color: var(--color-neutral-800); margin: 0 0 34px; max-width: 520px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  flex: none; width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent-2-800); color: var(--color-accent-2-100);
  font-size: 14px; font-weight: 600;
}
.step h3 { font-size: 19px; margin: 4px 0 2px; font-weight: 600; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--color-neutral-800); }
.step-product { color: var(--color-accent-700) !important; font-weight: 600; margin-bottom: 4px !important; }
.routine-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; height: 560px; }
.routine-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── spotlight ─────────────────────────────────────────────────────────── */
.spotlight {
  padding-block: 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px; align-items: center;
}
/* No fixed height and no letterboxing: the image keeps its own proportions, so
   a wide editorial shot never gets white bars down its sides. */
.spotlight-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.spotlight-media img { width: 100%; height: auto; }
/* A packshot still sits on its white sweep, so give it the card treatment. */
.spotlight-media--product { background: var(--color-neutral-100); }
.spotlight-media--product img { mix-blend-mode: multiply; }
.spotlight-copy { max-width: 540px; }
.spotlight-copy h2 { font-size: 40px; margin: 0 0 18px; font-weight: 500; }
.spotlight-copy h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-accent-2-700); margin: 26px 0 8px;
}
/* :not(.eyebrow) — this rule is later and more specific than .eyebrow, so
   without it the pill would inherit body type and lose its own size and colour. */
.spotlight-copy p:not(.eyebrow) { font-size: 16px; line-height: 1.62; color: var(--color-neutral-800); margin: 0; }
.spotlight-benefit { font-size: 18.5px !important; line-height: 1.6 !important; text-wrap: pretty; }
.ingredients { font-size: 15px !important; color: var(--color-neutral-700) !important; }
.spotlight-price { margin: 26px 0 24px !important; font-size: 20px !important; font-weight: 600; color: var(--color-text) !important; }

/* ── promises ──────────────────────────────────────────────────────────── */
.promises { padding-block: 88px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px; }
.promises-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.promises h2 { font-size: 23px; margin: 0 0 12px; font-weight: 600; }
.promises p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--color-neutral-800); }

/* ── prose pages ───────────────────────────────────────────────────────── */
.prose { padding-block: 24px 88px; max-width: 860px; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.68; color: var(--color-neutral-800); margin: 0 0 16px; text-wrap: pretty; }
.table-plain { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 16px; }
.table-plain th {
  text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-700); padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--color-divider);
}
.table-plain td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--color-neutral-300); }

/* ── gallery ───────────────────────────────────────────────────────────── */
.gallery { padding-block: 24px 104px; }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 32px;
}
.gallery-head h2 { font-size: 42px; margin: 0; font-weight: 500; }
.gallery-head p { margin: 0; font-size: 15px; color: var(--color-neutral-700); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 240px; gap: 20px;
}
.gallery-grid figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid > .wide { grid-column: span 2; grid-row: span 2; }

/* ── terms strip ───────────────────────────────────────────────────────── */
.terms { background: var(--color-accent-2-800); color: var(--color-neutral-100); }
.terms > .wrap {
  padding-block: 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: start;
}
.terms h2 {
  font-size: 15px; margin: 0 0 10px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-accent-2-300);
}
.terms p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.terms p.has-link { margin-bottom: 18px; }
.terms a {
  color: var(--color-neutral-100); font-size: 16px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.terms a:hover { color: var(--color-accent-2-200); }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-bg); padding-block: 72px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; mix-blend-mode: multiply; }
.footer-brand p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-700); max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.footer-col h2 { font-size: inherit; font-weight: 600; margin: 0 0 4px; letter-spacing: normal; }
.footer-col a { color: var(--color-neutral-800); }
.footer-col a:hover { color: var(--color-accent-700); }

.footer-fine { border-top: 1px solid var(--color-divider); padding-top: 24px; }
.footer-fine p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--color-neutral-700); max-width: 780px; }
.footer-bottom {
  border-top: 1px solid var(--color-divider); margin-top: 16px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 14px; color: var(--color-neutral-700);
}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 64px 72px; }
  .hero h1 { font-size: 50px; }
  .hero-copy, .hero-lede { max-width: none; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routine, .spotlight { grid-template-columns: 1fr; gap: 48px; padding-block: 76px; }
  .routine-media { height: 420px; }
  .spotlight-media { order: 2; }
  .spotlight-copy, .routine-copy > p { max-width: none; }
  .promises, .promises-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 68px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .site-header > .wrap { flex-wrap: wrap; gap: 14px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .cart-link { margin-left: auto; }
  .hero h1 { font-size: 38px; }
  .hero-media::before { left: -18px; width: 140px; height: 140px; }
  .section-head, .gallery-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head h1 { font-size: 36px; }
  .section-head h2, .routine-copy h2, .spotlight-copy h2, .gallery-head h2 { font-size: 30px; }
  .cat-grid, .product-grid { grid-template-columns: 1fr; }
  .promises, .promises-4 { grid-template-columns: 1fr; gap: 32px; }
  .terms > .wrap { grid-template-columns: 1fr; gap: 30px; padding-block: 52px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .routine-media { height: 320px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ── toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  z-index: 80; max-width: min(420px, calc(100vw - 32px));
  background: var(--color-accent-2-800); color: var(--color-accent-2-100);
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-size: 15px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ── product detail ────────────────────────────────────────────────────── */
.crumbs { padding-block: 26px 0; font-size: 14px; color: var(--color-neutral-700); display: flex; gap: 10px; }
.crumbs a { color: var(--color-neutral-700); }
.crumbs a:hover { color: var(--color-accent-700); }

.pdp {
  padding-block: 40px 88px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: start;
}
.pdp-media {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-neutral-100);
}
.pdp-media img { width: 100%; height: auto; mix-blend-mode: multiply; }
.pdp-copy { max-width: 560px; }
.pdp-copy h1 { font-size: 40px; margin: 0 0 16px; font-weight: 500; line-height: 1.12; }
.pdp-benefit { font-size: 18px; line-height: 1.6; color: var(--color-neutral-800); margin: 0 0 26px; text-wrap: pretty; }
.pdp-price { font-size: 28px; font-weight: 600; margin: 0 0 22px; display: flex; align-items: baseline; gap: 12px; }
.pdp-size { font-size: 15px; font-weight: 400; color: var(--color-neutral-700); }
.btn-block { width: 100%; justify-content: center; }

.pdp-reassure { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pdp-reassure li { font-size: 14.5px; color: var(--color-neutral-700); padding-left: 22px; position: relative; }
.pdp-reassure li::before {
  content: "✦"; position: absolute; left: 0; color: var(--color-accent-500);
}
.pdp-detail { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--color-divider); }
.pdp-detail h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-accent-2-700); margin: 0 0 10px;
}
.pdp-detail p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--color-neutral-800); }
.pdp-claims { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-claims li {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: var(--color-accent-2-100); color: var(--color-accent-2-800);
}

/* ── cart & checkout ───────────────────────────────────────────────────── */
.cart-empty { padding-block: 20px 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cart-empty p { margin: 0; font-size: 18px; color: var(--color-neutral-800); }

.cart-layout, .checkout-layout {
  padding-block: 20px 96px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 52px; align-items: start;
}
.cart-lines { display: flex; flex-direction: column; gap: 20px; }
.line {
  display: grid; grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 20px; align-items: start;
  background: var(--color-neutral-100); border-radius: var(--radius-lg); padding: 18px;
}
.line-media { display: block; border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.line-media img { width: 100%; height: auto; mix-blend-mode: multiply; }
.line-name { font-size: 17px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.line-name a { color: var(--color-text); }
.line-name a:hover { color: var(--color-accent-700); }
.line-size, .line-unit { margin: 0; font-size: 13.5px; color: var(--color-neutral-700); }
.line-controls { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.line-total { font-size: 17px; font-weight: 600; margin: 0; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-neutral-400); border-radius: 999px; }
.qty-btn {
  width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer;
  font-size: 17px; line-height: 1; color: var(--color-text); border-radius: 999px;
}
.qty-btn:hover { background: var(--color-neutral-200); }
.qty-input {
  width: 44px; border: 0; background: transparent; text-align: center;
  font: inherit; font-size: 15px; color: var(--color-text);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-remove {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  font: inherit; font-size: 14px; color: var(--color-neutral-700); text-decoration: underline;
  text-underline-offset: 3px;
}
.line-remove:hover { color: var(--color-accent-700); }

.cart-summary {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 28px 26px; position: sticky; top: 120px;
}
.cart-summary h2 { font-size: 21px; margin: 0 0 18px; font-weight: 600; }
.sum-lines { margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--color-divider); }
.sum-line { display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; padding: 7px 0; }
.sum-line em { font-style: normal; color: var(--color-neutral-700); font-size: 13.5px; display: block; }
.sum-name { color: var(--color-neutral-800); }
.sum-total {
  border-top: 1px solid var(--color-divider); margin-top: 8px; padding-top: 14px;
  font-size: 19px; font-weight: 600;
}
.sum-note { margin: 12px 0 20px; font-size: 13px; line-height: 1.5; color: var(--color-neutral-700); }
.cart-continue { display: block; text-align: center; margin-top: 14px; font-size: 15px; }

.checkout-fields { display: flex; flex-direction: column; gap: 28px; }
.checkout-fields fieldset { border: 0; margin: 0; padding: 0; }
.checkout-fields legend {
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-accent-2-700); padding: 0 0 14px;
}
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; margin-bottom: 6px; color: var(--color-neutral-800); }
.field > span em { font-style: normal; color: var(--color-neutral-600); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 16px; font: inherit; font-size: 16px;
  color: var(--color-text); background: var(--color-neutral-100);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.field input:focus-visible, .field select:focus-visible {
  border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 1px;
}
.field input:user-invalid { border-color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); }

.checkout-notice {
  background: var(--color-accent-100); border: 1px solid var(--color-accent-300);
  border-radius: var(--radius-md); padding: 14px 16px; margin: 16px 0;
}
.checkout-notice p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--color-accent-900); }
.checkout-notice p:last-child { margin-bottom: 0; }
.checkout-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: var(--color-accent-200); padding: 1px 5px; border-radius: 4px;
}
.btn-solid:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 1080px) {
  .pdp { grid-template-columns: 1fr; gap: 40px; }
  .pdp-copy { max-width: none; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 36px; }
  .cart-summary { position: static; }
}
@media (max-width: 760px) {
  .pdp-copy h1 { font-size: 30px; }
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line-total { grid-column: 2; margin-top: 6px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ── the formulator ────────────────────────────────────────────────────── */
.expert {
  padding-block: 96px;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 68px; align-items: center;
}
.expert-media { position: relative; isolation: isolate; }
.expert-media::before {
  content: ""; position: absolute; right: -34px; top: -30px; z-index: 0;
  width: 168px; height: 168px; border-radius: 999px;
  background: var(--color-accent-2-300); opacity: 0.5;
}
.expert-frame {
  position: relative; z-index: 1; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden;
}
.expert-frame img { width: 100%; height: auto; }
.expert-id { margin-top: 20px; }
.expert-name { font-size: 21px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.02em; }
.expert-role {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-accent-2-700);
}
.expert-handle { font-size: 14.5px; }

.expert-copy { max-width: 620px; }
.expert-copy h2 { font-size: 40px; margin: 0 0 20px; font-weight: 500; line-height: 1.12; text-wrap: balance; }
.expert-copy p:not(.eyebrow) { font-size: 17px; line-height: 1.65; color: var(--color-neutral-800); margin: 0 0 16px; text-wrap: pretty; }

.cred-grid {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.cred {
  background: var(--color-neutral-100); border-radius: var(--radius-md);
  padding: 20px 22px;
}
.band .cred { background: var(--color-bg); }
.cred h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 6px; }
.expert-copy .cred p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--color-neutral-700); }

@media (max-width: 1080px) {
  .expert { grid-template-columns: 1fr; gap: 44px; padding-block: 76px; }
  .expert-copy { max-width: none; }
  .expert-media { max-width: 420px; }
}
@media (max-width: 760px) {
  .expert-copy h2 { font-size: 30px; }
  .cred-grid { grid-template-columns: 1fr; }
  .expert-media::before { right: -14px; width: 120px; height: 120px; }
}

/* ── in practice ───────────────────────────────────────────────────────── */
.practice { padding-block: 88px; }
.practice-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px;
}
.practice-tile { margin: 0; }
.practice-tile.wide { grid-column: 1 / -1; }
.practice-tile img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg);
  aspect-ratio: 6 / 7;
}
.practice-tile.wide img { aspect-ratio: 20 / 9; }
.practice-tile figcaption {
  margin-top: 12px; font-size: 14px; line-height: 1.5;
  color: var(--color-neutral-700);
}

@media (max-width: 760px) {
  .practice { padding-block: 64px; }
  .practice-grid { grid-template-columns: 1fr; gap: 22px; }
  .practice-tile img, .practice-tile.wide img { aspect-ratio: 4 / 3; }
}
.pay-check { margin-top: 10px !important; color: var(--color-neutral-700); font-size: 14px; }

/* ── policy & FAQ pages ────────────────────────────────────────────────── */
.policy-section { margin-bottom: 30px; }
.policy-section h2 { font-size: 22px; margin: 0 0 10px; font-weight: 600; }
.policy-section p { margin: 0; }

.faq-group { margin-bottom: 40px; }
.faq-group h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-accent-2-700); margin: 0 0 14px;
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
  font-size: 17.5px; font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--color-accent-700); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--color-accent-700); }
.faq-item p { margin: 0 0 18px; }
