/* =====================================================================
   ANGELA · Beauty Planner independiente — Incellderm by RIMAN
   Design system: "Leaf Water" — botanical apothecary meets dermatology
   Palette: deep pine + muted sage + warm cream, antique-gold hairline
   ===================================================================== */

:root {
  /* --- Color --- */
  --pine:      #2E3D30;   /* deep botanical green — headlines, primary btn */
  --pine-soft: #445041;
  --sage:      #8FA383;   /* brand green — accents */
  --sage-deep: #63775B;   /* darker sage — secondary text on light */
  --sage-mist: #DEE5D8;   /* pale sage — section fills, cards */
  --sage-wash: #EBEFE6;   /* faintest sage tint */
  --cream:     #F6F2E9;   /* page background */
  --porcelain: #FCFAF6;   /* raised card background */
  --gilt:      #B08A4E;   /* muted antique gold — signature hairline only */
  --ink:       #2F312B;   /* body text */
  --muted:     #6C7064;   /* secondary text */
  --line:      rgba(46,61,48,.14);

  /* --- Type --- */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Rhythm --- */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; color: var(--pine); }

/* ---------- Reusable bits ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gilt);
}

.btn {
  --pad-y: 15px; --pad-x: 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--sans);
  font-size: .82rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
.btn-primary { background: var(--pine); color: var(--cream); }
.btn-primary:hover { background: var(--pine-soft); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pine); background: rgba(46,61,48,.04); }
.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: #fff; }
.btn svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,233,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  letter-spacing: .01em; color: var(--pine); white-space: nowrap;
}
.brand__name em { font-style: italic; font-weight: 400; color: var(--gilt); font-size: .82em; }
.brand__role {
  font-family: var(--sans); font-size: .58rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--sage-deep);
  margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a.nav__link {
  font-size: .82rem; letter-spacing: .06em; color: var(--pine-soft); font-weight: 400;
  position: relative;
}
.nav a.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--gilt); transition: width .35s var(--ease);
}
.nav a.nav__link:hover::after { width: 100%; }
.nav .btn { --pad-y: 11px; --pad-x: 22px; }
.nav__links { display: flex; gap: 34px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(2.9rem, 6vw, 4.7rem);
  font-optical-sizing: auto;
  letter-spacing: -.01em;
  margin: 22px 0 0;
}
.hero__title em { font-style: italic; color: var(--sage-deep); }
.hero__lead {
  margin: 26px 0 0; max-width: 42ch;
  font-size: 1.08rem; color: var(--muted); font-weight: 300;
}
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__meta span {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-deep); display: inline-flex; align-items: center; gap: .5em;
}
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gilt); }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; border-radius: 6px;
  aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 70% 30%;
  box-shadow: 0 30px 70px -40px rgba(46,61,48,.55);
}
.hero__badge {
  position: absolute; left: -26px; bottom: 34px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px -28px rgba(46,61,48,.5);
  max-width: 210px;
}
.hero__badge strong {
  display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--pine); line-height: 1;
}
.hero__badge span { font-size: .72rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* decorative leaf line */
.leaf-motif { position: absolute; pointer-events: none; opacity: .5; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 118px); position: relative; }
.section--mist { background: var(--sage-wash); }
.section__head { max-width: 60ch; margin-bottom: clamp(38px, 5vw, 62px); }
.section__head.centered { margin-inline: auto; text-align: center; }
.section__head.centered .eyebrow::before { display: none; }
.section__head.centered .eyebrow { padding-left: 0; }
.section__title { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 16px; letter-spacing: -.01em; }
.section__intro { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Ritual by functions (real ICD sequence) ---------- */
.ritual { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.ritual__step {
  position: relative; padding: 0 20px; text-align: center;
}
.ritual__step:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; right: -0; width: 100%;
  height: 1px; background: var(--line); transform: translateX(50%);
  z-index: 0;
}
.ritual__icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border: 1px solid var(--sage); border-radius: 50%;
  background: var(--cream); position: relative; z-index: 1;
  color: var(--sage-deep);
}
.ritual__icon svg { width: 26px; height: 26px; }
.ritual__num {
  font-family: var(--serif); font-style: italic; font-size: .9rem;
  color: var(--gilt); display: block; margin-bottom: 6px;
}
.ritual__name {
  font-family: var(--serif); font-size: 1.15rem; color: var(--pine); margin-bottom: 6px;
}
.ritual__desc { font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* ---------- Signature: Leaf-water concentration ---------- */
.leafwater { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px,6vw,80px); align-items: center; }
.leafwater__copy p { color: var(--muted); }
.leafwater__copy .ingredient {
  margin-top: 26px; display: flex; flex-direction: column; gap: 14px;
}
.ingredient__row { display: flex; align-items: baseline; gap: 14px; }
.ingredient__row span:first-child {
  font-family: var(--serif); font-size: 1.1rem; color: var(--pine); min-width: 12ch;
}
.ingredient__row span:last-child { font-size: .9rem; color: var(--muted); }

.vials { display: flex; gap: clamp(22px, 5vw, 46px); justify-content: center; }
.vial { text-align: center; }
.vial__glass {
  width: clamp(88px, 12vw, 116px); height: 220px;
  border: 1px solid var(--sage);
  border-radius: 8px 8px 40px 40px;
  position: relative; overflow: hidden;
  background: var(--porcelain);
}
.vial__fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--sage) 0%, var(--sage-deep) 100%);
  height: 0; transition: height 1.6s var(--ease);
}
.vial__fill::before {
  content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 8px;
  background: var(--sage-mist); opacity: .5; border-radius: 50%;
}
.vial__pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.1rem; color: var(--pine); z-index: 2;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.vial__label { margin-top: 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); }
.vial__sub { font-size: .74rem; color: var(--muted); }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  background: var(--porcelain); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(46,61,48,.5); }
.product__thumb {
  aspect-ratio: 4 / 3; position: relative;
  background: linear-gradient(150deg, var(--sage-mist), var(--sage-wash));
  display: grid; place-items: center; overflow: hidden;
}
.product__thumb .leaf { width: 46%; opacity: .32; color: var(--sage-deep); }
.product__thumb .art { width: 62%; color: var(--sage-deep); opacity: .7; }
.product__tag {
  position: absolute; top: 14px; left: 14px;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--cream); color: var(--sage-deep);
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line);
}
.product__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product__name { font-family: var(--serif); font-size: 1.35rem; color: var(--pine); }
.product__vol { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gilt); margin-top: 4px; }
.product__desc { margin-top: 12px; font-size: .92rem; color: var(--muted); flex: 1; }
.product__link {
  margin-top: 20px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pine); font-weight: 500; display: inline-flex; align-items: center; gap: .5em;
  align-self: flex-start;
}
.product__link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.product:hover .product__link svg { transform: translateX(4px); }

/* ---------- Featured pack ---------- */
.feature { background: var(--pine); color: var(--cream); border-radius: 8px; overflow: hidden; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; }
.feature__media {
  background: linear-gradient(160deg, var(--sage-deep), var(--pine));
  min-height: 100%; position: relative; display: grid; place-items: center; padding: 40px;
}
.feature__media .leaf { width: 55%; opacity: .28; color: var(--sage-mist); }
.feature__ring {
  position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(222,229,216,.35);
  border-radius: 50%;
}
.feature__body { padding: clamp(34px, 5vw, 60px); }
.feature__body .eyebrow { color: var(--sage-mist); }
.feature__body .eyebrow::before { background: var(--gilt); }
.feature__title { color: var(--cream); font-size: clamp(1.9rem, 3vw, 2.7rem); margin-top: 16px; }
.feature__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.feature__list li { display: flex; gap: 12px; font-size: .96rem; color: rgba(246,242,233,.86); }
.feature__list svg { width: 18px; height: 18px; color: var(--sage-mist); flex-shrink: 0; margin-top: 3px; }
.feature__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.tstm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tstm__card {
  background: var(--porcelain); border: 1px solid var(--line); border-radius: 6px;
  padding: 34px 30px; display: flex; flex-direction: column;
}
.tstm__mark { font-family: var(--serif); font-size: 3.4rem; line-height: .5; color: var(--gilt); height: 26px; }
.tstm__quote { font-family: var(--serif); font-size: 1.16rem; font-style: italic; color: var(--pine-soft); margin: 22px 0 0; line-height: 1.5; }
.tstm__author { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 12px; }
.tstm__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sage-mist); display: grid; place-items: center; font-family: var(--serif); color: var(--sage-deep); font-size: 1.1rem; }
.tstm__who strong { display: block; font-weight: 500; font-size: .92rem; color: var(--pine); font-family: var(--sans); }
.tstm__who span { font-size: .78rem; color: var(--muted); }
.tstm__note { margin-top: 28px; text-align: center; font-size: .78rem; color: var(--muted); font-style: italic; }

/* ---------- About Angela ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 76px); align-items: center; }
.about__portrait { position: relative; }
.about__portrait img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; box-shadow: 0 24px 50px -36px rgba(46,61,48,.5); }
.about__portrait .sig {
  position: absolute; right: -14px; bottom: -14px;
  background: var(--gilt); color: var(--cream); font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; padding: 12px 20px; border-radius: 4px;
}
.about__body .section__title { margin-bottom: 20px; }
.about__body p { color: var(--muted); margin: 0 0 16px; }
.about__body p strong { color: var(--pine); font-weight: 500; }

/* ---------- Closing CTA ---------- */
.cta-band { background: var(--sage-mist); border-radius: 8px; padding: clamp(44px, 6vw, 76px); text-align: center; }
.cta-band .section__title { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band p { color: var(--sage-deep); max-width: 50ch; margin: 18px auto 0; }
.cta-band .hero__actions { justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: rgba(246,242,233,.72); padding-block: 60px 34px; margin-top: clamp(60px,8vw,90px); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(222,229,216,.16); }
.footer__brand .brand__name { color: var(--cream); }
.footer__brand p { margin: 12px 0 0; font-size: .88rem; max-width: 34ch; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-mist); margin: 0 0 14px; font-weight: 500; }
.footer__col a { display: block; font-size: .9rem; padding: 5px 0; color: rgba(246,242,233,.72); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--cream); }
.footer__legal { padding-top: 26px; font-size: .74rem; line-height: 1.7; color: rgba(246,242,233,.52); max-width: 92ch; }
.footer__legal strong { color: rgba(246,242,233,.7); font-weight: 500; }
.footer__meta { margin-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .74rem; color: rgba(246,242,233,.42); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__figure { order: -1; max-width: 460px; }
  .leafwater, .about, .feature__grid { grid-template-columns: 1fr; }
  .products, .tstm { grid-template-columns: 1fr 1fr; }
  .ritual { grid-template-columns: 1fr 1fr; gap: 30px 10px; }
  .ritual__step::after { display: none; }
  .feature__media { min-height: 260px; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .products, .tstm, .ritual { grid-template-columns: 1fr; }
  .hero__badge { left: 12px; }
  .about__portrait { max-width: 320px; }
  .footer__top { flex-direction: column; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .vial__fill { transition: none; }
}
