/* ============================================
   ROYAL NEO — Variant C (Lovable-inspired)
   Design tokens derived from the Lovable design-md spec:
   - Warm parchment background (#f7f4ed) — never pure white
   - Opacity-derived gray scale, all from #1c1c1c
   - Humanist sans with tight negative letter-spacing at display sizes
   - Borders (not shadows) for containment
   - Signature multi-layer inset shadow on dark buttons
   ============================================ */

/* ---- tokens ---- */
:root {
  --cream: #f7f4ed;
  --cream-surface: #f7f4ed;
  --charcoal: #1c1c1c;
  --off-white: #fcfbf8;
  --muted: #5f5f5d;

  --border-passive: #eceae4;
  --border-interactive: rgba(28, 28, 28, 0.4);

  --text-body: rgba(28, 28, 28, 0.82);
  --text-secondary: rgba(28, 28, 28, 0.83);
  --tint-hover: rgba(28, 28, 28, 0.04);
  --tint-faint: rgba(28, 28, 28, 0.03);

  --focus-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --ring-blue: rgba(59, 130, 246, 0.5);

  --btn-inset:
    rgba(255, 255, 255, 0.2) 0 0.5px 0 0 inset,
    rgba(0, 0, 0, 0.2) 0 0 0 0.5px inset,
    rgba(0, 0, 0, 0.05) 0 1px 2px 0;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic UI",
    Meiryo, sans-serif;

  --radius-micro: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --container: 1200px;
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring-blue);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- typographic primitives ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.display-xl {
  font-size: clamp(40px, 7.2vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--charcoal);
  margin: 0;
}
.display-light {
  font-weight: 480;
  letter-spacing: -0.5px;
}
.section-heading {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -1.2px;
  color: var(--charcoal);
  margin: 0;
}
.sub-heading {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.9px;
  color: var(--charcoal);
  margin: 0;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: opacity 120ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { opacity: 0.8; }
.btn:focus-visible { box-shadow: var(--focus-shadow); outline: none; }

.btn--primary {
  background: var(--charcoal);
  color: var(--off-white);
  box-shadow: var(--btn-inset);
}
.btn--primary:hover { opacity: 0.92; }

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border-interactive);
}
.btn--ghost:hover { background: var(--tint-hover); }

.btn--cream {
  background: var(--cream-surface);
  color: var(--charcoal);
  border: 1px solid var(--border-passive);
}
.btn--cream:hover { background: var(--tint-hover); }

.btn--lg {
  padding: 14px 24px;
  font-size: 17px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--cream-surface);
  color: var(--charcoal);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-passive);
  font-size: 13px;
  font-weight: 400;
}

/* ---- navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 237, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-passive);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--charcoal);
}
.nav__brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: -5px;
  border-radius: 50%;
  background: var(--charcoal);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  transition: opacity 120ms ease;
}
.nav__links a:hover { opacity: 0.7; }
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--charcoal);
  margin: 2.5px 0;
  transition: transform 150ms ease, opacity 150ms ease;
}

.drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border-passive);
  padding: 16px 24px;
  z-index: 49;
}
.drawer.is-open { display: flex; flex-direction: column; gap: 14px; }
.drawer a { font-size: 15px; color: var(--charcoal); padding: 6px 0; }

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 96px 24px 112px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 18% 22%, rgba(248, 215, 201, 0.55), transparent 60%),
    radial-gradient(ellipse 55% 50% at 82% 78%, rgba(215, 227, 244, 0.5), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(240, 228, 208, 0.55), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow { justify-content: center; display: inline-block; }
.hero__title {
  margin: 0 0 22px;
}
.hero__title .italic {
  font-style: italic;
  font-weight: 480;
}
.hero__lede {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__media {
  margin: 64px auto 0;
  max-width: 680px;
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-surface);
}
.hero__media img {
  width: 100%;
  height: auto;
  display: block;
}
.hero__mini {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- generic section ---- */
.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section__head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- product intro ---- */
.product {
  padding: 88px 0;
}
.product__card {
  background: var(--cream-surface);
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.product__media {
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
}
.product__media img { width: 100%; height: auto; display: block; }
.product__title {
  margin: 14px 0 18px;
}
.product__body {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.product__spec {
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.product__spec div {
  border-top: 1px solid var(--border-passive);
  padding-top: 10px;
}
.product__spec dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.product__spec dd {
  margin: 0;
  font-size: 15px;
  color: var(--charcoal);
}
.product__price {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--charcoal);
  margin: 0 0 6px;
}
.product__price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}

/* ---- ingredient cards ---- */
.ingredients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ing-card {
  background: var(--cream-surface);
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 160ms ease;
}
.ing-card:hover { background: var(--tint-hover); }
.ing-card__index {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ing-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--charcoal);
  margin: 0;
}
.ing-card__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ---- daily ritual (bookmark metaphor) ---- */
.daily {
  background:
    linear-gradient(180deg, var(--cream) 0%, rgba(247, 244, 237, 1) 100%);
}
.daily__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.daily-card {
  background: var(--cream-surface);
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.daily-card__tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
}
.daily-card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: var(--charcoal);
  margin: 0 0 10px;
}
.daily-card__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ---- craft (notes-from-the-kitchen) ---- */
.craft {
  padding: 112px 0;
  border-top: 1px solid var(--border-passive);
  border-bottom: 1px solid var(--border-passive);
}
.craft__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.craft__aside {
  border-left: 1px solid var(--border-passive);
  padding-left: 28px;
}
.craft__aside-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.craft__notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.craft__note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
  padding-left: 16px;
  border-left: 2px solid var(--border-passive);
}
.craft__prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 20px;
}
.craft__prose p:first-of-type {
  font-size: 18px;
  color: var(--charcoal);
}

/* ---- numbers ---- */
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.num {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.num__value {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--charcoal);
}
.num__value small {
  font-size: 18px;
  font-weight: 400;
  margin-left: 4px;
  color: var(--muted);
  letter-spacing: 0;
}
.num__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- voices ---- */
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.voice {
  background: var(--cream-surface);
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.voice__quote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0 0 18px;
}
.voice__meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- faq ---- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--cream-surface);
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: background 160ms ease;
}
.faq__item:hover { background: var(--tint-hover); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
  color: var(--charcoal);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign {
  font-size: 20px;
  color: var(--muted);
  transition: transform 200ms ease;
}
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__ans {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- final CTA ---- */
.cta-final {
  padding: 128px 0;
  text-align: center;
}
.cta-final__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: var(--charcoal);
  margin: 0 0 20px;
}
.cta-final__title .italic {
  font-style: italic;
  font-weight: 480;
}
.cta-final__lede {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.cta-final__email {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.cta-final__email a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--border-passive);
  padding: 48px 0 36px;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--charcoal);
}
.footer__tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.footer__links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__copy {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-passive);
}

/* ---- reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- product detail page ---- */
.pdp {
  padding: 72px 0 96px;
}
.pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
}
.pdp__media {
  border: 1px solid var(--border-passive);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-surface);
  position: sticky;
  top: 88px;
  align-self: start;
}
.pdp__media img { width: 100%; height: auto; display: block; }
.pdp__title {
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.1px;
  color: var(--charcoal);
  margin: 6px 0 14px;
}
.pdp__tagline {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}
.pdp__price {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--charcoal);
  margin: 0 0 24px;
}
.pdp__price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.pdp__h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--charcoal);
  margin: 36px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-passive);
}
.pdp__p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 12px;
}
.pdp__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
}
.pdp__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-passive);
  font-size: 14px;
  color: var(--text-body);
}
.pdp__list li span:last-child { color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }

  .section { padding: 64px 0; }
  .hero { padding: 72px 20px 88px; }

  .product__card { grid-template-columns: 1fr; }
  .ingredients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily__grid { grid-template-columns: 1fr; }
  .craft { padding: 72px 0; }
  .craft__grid { grid-template-columns: 1fr; gap: 32px; }
  .craft__aside { border-left: none; border-top: 1px solid var(--border-passive); padding: 28px 0 0; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .voices__grid { grid-template-columns: 1fr; }
  .cta-final { padding: 88px 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }

  .pdp__grid { grid-template-columns: 1fr; gap: 28px; }
  .pdp__media { position: static; }
}

@media (max-width: 540px) {
  .ingredients__grid { grid-template-columns: 1fr; }
  .num__value { font-size: 40px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
