/* =========================================================
   yunamuv · design system
   Feel: Solenne-style editorial (tight display sans + italic serif accents,
   blush canvas, floating pill nav, soft motion). Colors: yunamuv brand book.
   ========================================================= */

:root {
  --bg: #F3E8E2;            /* blush canvas */
  --bg-2: #EEDFD7;
  --card: #FAF3EF;          /* raised cards */
  --white: #FFFFFF;
  --ink: #2E1F21;           /* deep rosewood-brown text */
  --ink-2: #5E4A4C;
  --muted: #8F7A78;
  --line: #E6D4CC;
  --rose: #81595D;          /* Muted Rosewood (brand) */
  --rose-deep: #5E3E42;
  --sand: #E4D7C5;          /* Soft Sand (brand) */
  --blush: #E9CFC6;
  --accent: #B67B6B;

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --f-body: "DM Sans", "Inter", system-ui, sans-serif;

  --r-sm: 14px; --r: 22px; --r-lg: 30px; --r-xl: 40px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --sec: clamp(64px, 11vw, 160px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 70px -40px rgba(46, 31, 33, .45);
  --shadow-sm: 0 12px 30px -18px rgba(46, 31, 33, .35);
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; max-width: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip; max-width: 100%;
}
body.is-loading { overflow: hidden; height: 100%; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); position: relative; }

/* ---------- Type ---------- */
.d1, .d2, .d3, .d4 { font-family: var(--f-display); font-weight: 500; color: var(--ink); }
.d1 { font-size: clamp(52px, 7.6vw, 108px); line-height: .98; letter-spacing: -.055em; }
.d2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.05em; }
.d3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.d4 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.03em; }
.it { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.caps { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: -.04em; }
.lead { font-size: clamp(16.5px, 1.25vw, 18.5px); color: var(--ink-2); line-height: 1.6; max-width: 520px; }
.small { font-size: 14px; color: var(--muted); }

.pill-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7);
  font-size: 13px; font-weight: 500; color: var(--ink); backdrop-filter: blur(8px);
}
.pill-tag--dark { background: rgba(46, 31, 33, .08); border-color: transparent; }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.head__l { flex: 1 1 560px; max-width: 800px; }
.head__l .pill-tag { margin-bottom: 18px; }
.head__r { flex: 0 1 330px; max-width: 330px; color: var(--muted); font-size: 15.5px; }
.head--center { flex-direction: column; align-items: center; text-align: center; }
.head--center .head__r { max-width: 540px; }
.head--center .head__l, .head--center .head__r { flex: none; } /* flex-basis would become height in a column */

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rose);
  transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(46, 31, 33, .6); }
}
.btn .arr { transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn--light { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(10px); }
.btn--light::before { background: #fff; }
.btn--rose { background: var(--rose); }
.btn--rose::before { background: var(--ink); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; color: #fff; pointer-events: auto; cursor: pointer; background: #5E3E42; } /* solid from first paint; JS clears it when the logo starts flying */
.loader.is-flying { background: transparent; }
.loader__tpl { display: none; }
.loader__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader__draw line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__word { position: absolute; left: 50%; width: 170px; transform: translate(-50%, 14px); opacity: 0; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.loader.is-word .loader__word { opacity: 1; transform: translate(-50%, 0); }
.loader__tag { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-serif); font-style: italic; font-size: 18px; color: rgba(243, 232, 226, .6); opacity: 0; transition: opacity .9s var(--ease-out); }
.loader.is-word .loader__tag { opacity: 1; }
.loader__line { position: absolute; left: 50%; width: 120px; height: 1px; transform: translateX(-50%); background: rgba(243, 232, 226, .18); overflow: hidden; border-radius: 1px; opacity: 0; transition: opacity .6s var(--ease-out); }
.loader.is-word .loader__line { opacity: 1; }
.loader__line i { display: block; height: 100%; width: 0; background: rgba(243, 232, 226, .85); }
.loader.is-flying .loader__word, .loader.is-flying .loader__tag, .loader.is-flying .loader__line { opacity: 0; transition: opacity .45s var(--ease-out), transform .9s var(--ease-out); }
.loader.is-flying .loader__word { transform: translate(-50%, -10px) scale(.96); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1120px, calc(100% - 24px));
}
.nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(250, 243, 239, .6); border: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -24px rgba(46, 31, 33, .45);
  transition: background .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__bar { background: rgba(250, 243, 239, .86); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 40px; }
.brand__word { width: 96px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .3s, background .3s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .7); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__acct { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); transition: background .3s; }
.nav__acct:hover { background: #fff; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.7); place-items: center; }
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform .4s var(--ease-out); }
.nav__burger span::after { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out), top .4s; }
.nav.is-open .nav__burger span { transform: rotate(45deg) translate(2px, 2px); }
.nav.is-open .nav__burger span::after { top: 0; transform: rotate(-90deg); }
.nav__sheet { display: none; }
@media (max-width: 900px) {
  .nav__links, .nav__acct { display: none; }
  .nav__burger { display: grid; }
  .nav__sheet {
    /* absolutely placed so the closed sheet never makes the fixed header tall enough to swallow taps */
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    display: grid; gap: 4px; padding: 10px; border-radius: 26px;
    background: #FAF3EF; box-shadow: var(--shadow);
    clip-path: inset(0 0 100% 0 round 26px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: clip-path .6s var(--ease-out), opacity .3s, visibility 0s .6s;
  }
  .nav.is-open .nav__sheet { clip-path: inset(0 0 0 0 round 26px); opacity: 1; visibility: visible; pointer-events: auto; transition: clip-path .6s var(--ease-out), opacity .3s; }
  .nav__sheet a { padding: 14px 16px; border-radius: 16px; font-family: var(--f-display); font-weight: 500; font-size: 24px; letter-spacing: -.03em; }
  .nav__sheet a:hover { background: #fff; }
  .nav__sheet .btn { margin-top: 6px; padding: 0 18px; font-family: var(--f-body); font-size: 15px; letter-spacing: 0; border-radius: 999px; }
  .nav__sheet .btn .was { opacity: .55; text-decoration: line-through; font-weight: 500; }
}
@media (max-width: 420px) { .nav__cta { display: none; } .brand__word { width: 84px; } }
@media (max-width: 900px) {
  /* phones: a solid bar (no live blur, which also made scrolling stutter) so it reads over dark photos */
  .nav .nav__bar, .nav.is-scrolled .nav__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FAF3EF; border-color: #EADCD5; }
  .nav__burger, .nav__acct { background: #F1E4DE; }
}

/* ---------- Reveal motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); filter: blur(8px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="fade"] { transform: none; filter: none; }
/* The mask is padded on every side (and pulled back with negative margins) so tight tracking and italic overhang aren't clipped */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .14em .12em; margin: -.1em -.14em -.12em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }
.no-js [data-reveal], .no-js .split .w > span { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .loader { display: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Footer ---------- */
.foot { position: relative; padding-top: var(--sec); overflow: hidden; text-align: center; }
.foot__cta .lead { margin: 18px auto 30px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 70px; font-size: 14.5px; color: var(--ink-2); }
.foot__links a:hover { color: var(--ink); }
.foot__meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.foot__giant { margin-top: clamp(40px, 6vw, 80px); padding: 0 var(--pad) clamp(24px, 3vw, 40px); }
.foot__giant img { width: 100%; max-width: 1400px; margin-inline: auto; opacity: .95; }

/* ---------- Price ---------- */
.was { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .55; font-weight: 500; }
.btn .was { opacity: .6; margin-right: 2px; }
.save { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }

/* ---------- Generic cards & bits ---------- */
.card { background: var(--card); border-radius: var(--r-lg); }
.chk { display: grid; gap: 10px; }
.chk li { display: flex; gap: 12px; align-items: flex-start; }
.chk li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 20px; overflow: hidden; transition: background .3s; }
.faq details[open] { background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath stroke='%232E1F21' stroke-width='2' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .5s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--ink-2); max-width: 680px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 200; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 999px; font-size: 14.5px; transition: transform .6s var(--ease-out); box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }

[id] { scroll-margin-top: 110px; }
