/* ==========================================================================
   Dreamy Books — styles
   Palette sampled from the @dreamybooks.am Instagram feed:
   violet ink of the post headlines, lavender reels, butter-yellow, blush & gold logo.
   ========================================================================== */

:root {
  --ink: #2c2276;
  --violet: #4b3aa8;
  --violet-2: #6355c4;
  --lavender: #8f84d6;
  --lilac: #cfc8f2;
  --mist: #f1eefc;
  --butter: #fff6c8;
  --honey: #fce4a6;
  --blush: #fde4dc;
  --rose: #f6c4c2;
  --cream: #fffaf3;
  --night: #241b63;
  --night-2: #3a2d8f;

  --gold-1: #fbe7ae;
  --gold-2: #e6bd6a;
  --gold-3: #c18a3c;
  --gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);

  --text: #2b2550;
  --muted: #645d8c;
  --line: rgba(75, 58, 168, .14);

  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 24px 60px -28px rgba(44, 34, 118, .45);
  --shadow-soft: 0 12px 34px -18px rgba(44, 34, 118, .35);

  --font-display: "Playfair Display", "Noto Serif Armenian", Georgia, serif;
  --font-body: "Google Sans", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }

.container {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.center { text-align: center; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.h2 em, .hero-title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--violet-2), #a46bd0 60%, #d77ea8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
/* Armenian has no true italic in these faces — keep it upright */
:lang(hy) .h2 em, :lang(hy) .hero-title em { font-style: normal; }
:lang(hy) .h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.85rem); line-height: 1.2; }

.lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--muted); line-height: 1.7; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--gold-2); }
.eyebrow-light { color: #fff; }
.eyebrow-light svg { color: var(--gold-1); }

.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--violet); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 30px; font-size: 1.04rem; }
.btn-small { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-violet { box-shadow: 0 14px 30px -14px rgba(75, 58, 168, .8); }
.btn-violet:hover { background: var(--violet-2); box-shadow: 0 18px 34px -14px rgba(75, 58, 168, .9); }
.btn-gold {
  --btn-fg: var(--night);
  background: var(--gold);
  box-shadow: 0 14px 30px -14px rgba(193, 138, 60, .9), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold:hover { box-shadow: 0 18px 36px -14px rgba(193, 138, 60, 1), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost {
  --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .24); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); }
.btn-outline:hover { --btn-bg: var(--violet); --btn-fg: #fff; }

/* ---------- Logo (mask so it can be tinted violet or gold) ---------- */
.logo {
  display: block;
  width: 128px; aspect-ratio: 1092 / 396;
  -webkit-mask: url("../assets/img/logo-mask.png") center / contain no-repeat;
          mask: url("../assets/img/logo-mask.png") center / contain no-repeat;
  background: var(--gold);
  transition: background .3s ease;
}
.logo-gold { background: var(--gold); }
.logo-lg { width: 210px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; margin-right: auto; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; color: #fff;
  padding-block: 6px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.lang-switch button {
  border: 0; background: transparent; color: #fff; cursor: pointer;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--violet); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s ease, top .3s ease, background .3s;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* scrolled state */
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(255, 250, 243, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(44, 34, 118, .35);
}
.site-header.is-scrolled .logo { background: var(--violet); }
.site-header.is-scrolled .main-nav a { color: var(--ink); }
.site-header.is-scrolled .lang-switch { background: var(--mist); box-shadow: none; }
.site-header.is-scrolled .lang-switch button { color: var(--violet); }
.site-header.is-scrolled .lang-switch button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.site-header.is-scrolled .menu-toggle { background: var(--mist); }
.site-header.is-scrolled .menu-toggle span { background: var(--violet); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(110px, 12vw, 170px);
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(255, 214, 230, .45), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(255, 220, 200, .5), transparent 60%),
    linear-gradient(165deg, #4f40b0 0%, #6a5cc8 30%, #9a8ad8 58%, #d9b2d8 82%, #f7d5cf 100%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
}
.cloud.c1 { width: 520px; height: 180px; left: -120px; top: 58%; animation: drift 26s ease-in-out infinite alternate; }
.cloud.c2 { width: 640px; height: 200px; right: -200px; top: 18%; opacity: .35; animation: drift 32s ease-in-out infinite alternate-reverse; }
.cloud.c3 { width: 420px; height: 150px; left: 35%; bottom: 40px; opacity: .45; animation: drift 22s ease-in-out infinite alternate; }

.sparkle { position: absolute; color: var(--gold-1); filter: drop-shadow(0 0 8px rgba(255, 236, 170, .9)); animation: twinkle 3.6s ease-in-out infinite; }
.sparkle.s1 { width: 22px; left: 6%; top: 24%; }
.sparkle.s2 { width: 14px; left: 44%; top: 16%; animation-delay: -1.2s; }
.sparkle.s3 { width: 28px; right: 7%; top: 60%; animation-delay: -2.1s; }
.sparkle.s4 { width: 12px; left: 30%; bottom: 26%; animation-delay: -.6s; }
.sparkle.s5 { width: 18px; right: 40%; top: 30%; animation-delay: -1.8s; }
.dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .7); animation: twinkle 2.8s ease-in-out infinite; }
.dot.d1 { left: 14%; top: 14%; }
.dot.d2 { left: 52%; top: 40%; animation-delay: -1s; }
.dot.d3 { left: 24%; top: 70%; animation-delay: -2s; }
.dot.d4 { right: 22%; top: 12%; animation-delay: -.4s; }
.dot.d5 { right: 12%; top: 38%; animation-delay: -1.6s; }
.dot.d6 { left: 40%; top: 86%; animation-delay: -2.4s; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(44, 34, 118, .25);
}
:lang(hy) .hero-title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.14; }
.hero-title em {
  background: var(--gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(120, 70, 20, .25));
}
.hero-sub { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); line-height: 1.65; color: rgba(255, 255, 255, .92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: rgba(255, 255, 255, .95); }
.hero-points svg { width: 20px; height: 20px; color: var(--gold-1); }

.hero-art { position: relative; justify-self: center; width: min(100%, 470px); }
.arch {
  position: relative;
  border-radius: 999px 999px 32px 32px;
  padding: 10px;
  background: var(--gold);
  box-shadow: 0 40px 80px -30px rgba(36, 27, 99, .7), 0 0 0 1px rgba(255, 255, 255, .25);
  animation: float 7s ease-in-out infinite;
}
.arch img {
  width: 100%; aspect-ratio: 4 / 4.9; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 24px 24px;
}
.moon { position: absolute; width: 64px; top: -6px; right: -6px; z-index: 3; color: var(--gold-1); filter: drop-shadow(0 0 22px rgba(255, 230, 160, .8)); animation: float 6s ease-in-out infinite reverse; }

.name-tag {
  position: absolute; left: -38px; bottom: 64px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite; animation-delay: -2s;
}
.name-tag svg { width: 20px; height: 20px; color: var(--gold-2); }
.name-tag-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.name-tag-name {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--violet); min-width: 4.2em;
  border-right: 2px solid var(--violet); padding-right: 3px; animation: caret 1s steps(1) infinite;
}

.seal {
  position: absolute; right: -30px; bottom: -26px; z-index: 3;
  width: 124px; height: 124px; border-radius: 50%;
  background: var(--butter); color: var(--violet);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.seal > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; fill: currentColor; }
.seal-heart { width: 34px; height: 34px; color: var(--violet); }

.cloud-edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 120px); fill: var(--cream); z-index: 1; }

/* ---------- Ribbon / marquee ---------- */
.ribbon {
  position: relative; z-index: 4;
  margin-top: -36px; transform: rotate(-1.6deg);
  background: var(--violet); color: var(--butter);
  padding-block: 16px; overflow: hidden;
  box-shadow: 0 18px 30px -20px rgba(44, 34, 118, .8);
}
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon-track span {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.ribbon-track svg { width: 16px; height: 16px; color: var(--gold-2); }

/* ---------- Photo → Tale ---------- */
.transform-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.transform-art { position: relative; padding: 18px; }
.photo-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--blush); box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.photo-card img { width: 100%; aspect-ratio: 1088 / 780; object-fit: cover; }
.tape {
  position: absolute; width: 110px; height: 30px; background: rgba(252, 228, 166, .85);
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .3);
}
.tape-l { top: 4px; left: 30px; transform: rotate(-10deg); }
.tape-r { bottom: 8px; right: 30px; transform: rotate(-6deg); background: rgba(207, 200, 242, .9); }
.pill-label {
  position: absolute; z-index: 2;
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}
.pl-photo { left: -6px; bottom: 26%; background: #fff; color: var(--violet); transform: rotate(-6deg); }
.pl-book { right: -6px; top: 22%; background: var(--violet); color: #fff; transform: rotate(5deg); }

.transform-copy .lead { margin-top: 20px; }
.features { display: grid; gap: 22px; margin-top: 34px; }
.features li { display: flex; gap: 18px; align-items: flex-start; }
.features h3 { font-size: 1.08rem; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.features p { color: var(--muted); font-size: .98rem; }
.feat-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; }
.feat-icon svg { width: 24px; height: 24px; }
.fi-1 { background: var(--blush); color: #c8587e; }
.fi-2 { background: var(--butter); color: #b07c19; }
.fi-3 { background: var(--mist); color: var(--violet); }

/* ---------- How it works ---------- */
.how { background: var(--butter); overflow: hidden; }
.how::before, .how::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), transparent);
}
.how::before { left: -120px; top: -120px; }
.how::after { right: -140px; bottom: -160px; }
.how .container { position: relative; z-index: 1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; margin-bottom: 52px; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--lilac);
}
.step-icon {
  width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--violet); color: #fff;
  box-shadow: 0 12px 24px -12px rgba(75, 58, 168, .9);
}
.step:nth-child(2) .step-icon { background: #e58aa6; box-shadow: 0 12px 24px -12px rgba(229, 138, 166, .9); }
.step:nth-child(3) .step-icon { background: var(--lavender); box-shadow: 0 12px 24px -12px rgba(143, 132, 214, .9); }
.step:nth-child(4) .step-icon { background: var(--gold); color: var(--night); box-shadow: 0 12px 24px -12px rgba(193, 138, 60, .9); }
.step-icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Story worlds ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.theme-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.theme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.theme-media { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; }
.theme-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.theme-card:hover .theme-media img { transform: scale(1.06); }
.theme-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 255, 255, .92); color: var(--violet);
}
.theme-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.theme-body h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); line-height: 1.2; }
.theme-body p { margin-top: 8px; color: var(--muted); font-size: .97rem; flex: 1; }
.theme-pick {
  margin-top: 18px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: var(--mist); color: var(--violet); cursor: pointer;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  transition: background .25s, color .25s, gap .25s;
}
.theme-pick svg { width: 18px; height: 18px; }
.theme-pick:hover { background: var(--violet); color: #fff; gap: 12px; }

.theme-card.is-custom {
  background:
    radial-gradient(500px 300px at 80% 0%, rgba(255, 214, 230, .35), transparent 60%),
    linear-gradient(160deg, #6a5cc8, #4b3aa8 70%);
  color: #fff;
}
.theme-card.is-custom .theme-media { display: grid; place-items: center; }
.theme-card.is-custom .theme-media svg { width: 40%; color: var(--gold-1); filter: drop-shadow(0 0 20px rgba(255, 230, 160, .55)); }
.theme-card.is-custom h3 { color: #fff; }
.theme-card.is-custom p { color: rgba(255, 255, 255, .85); }
.theme-card.is-custom .theme-pick { background: var(--gold); color: var(--night); }

/* ---------- Gift ---------- */
.gift { background: linear-gradient(180deg, var(--cream), var(--blush)); }
.gift-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.gift-art { position: relative; }
.gift-art img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 30% 70%;
  border-radius: 46% 54% 42% 58% / 38% 40% 60% 62%;
  box-shadow: var(--shadow);
}
.gift-bow { position: absolute; width: 110px; top: -24px; left: 50%; transform: translateX(-50%); color: var(--violet); }
.quote-mark { width: 52px; color: var(--gold-2); margin-bottom: 18px; }
.gift-quote {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem); line-height: 1.22; color: var(--ink);
  text-wrap: balance;
}
.gift-copy .lead { margin-top: 22px; }
.chips-label { margin-top: 30px; margin-bottom: 12px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .93rem;
  box-shadow: 0 1px 0 var(--line), 0 6px 16px -10px rgba(44, 34, 118, .35);
}
.chips li::before { content: "✦"; color: var(--gold-2); margin-right: 8px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--mist); overflow: hidden; }
.reviews::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(253, 228, 220, .9), transparent 60%);
}
.reviews .container { position: relative; }
.rating-line { margin-top: 18px; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }

.stars { display: inline-flex; gap: 3px; color: #f2b544; }
.stars svg { width: 18px; height: 18px; }
.stars-lg svg { width: 24px; height: 24px; }

.review-track { columns: 3 320px; column-gap: 24px; }
.review {
  break-inside: avoid; margin-bottom: 24px;
  position: relative; background: #fff; border-radius: var(--radius); padding: 28px 26px 24px;
  box-shadow: var(--shadow-soft);
}
.review::after {
  content: "”"; position: absolute; top: 6px; right: 22px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--mist);
}
.review blockquote { margin: 16px 0 22px; font-size: 1.02rem; line-height: 1.65; color: var(--text); }
.review footer { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff;
}
.review cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.review .review-meta { font-size: .85rem; color: var(--muted); }

/* ---------- Instagram feed ---------- */
.feed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.feed-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.feed-grid a { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-soft); }
.feed-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feed-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(75, 58, 168, .0); transition: background .3s ease;
}
.feed-grid a:hover img { transform: scale(1.06); }
.feed-grid a:hover::after { background: rgba(75, 58, 168, .18); }

/* ---------- Order ---------- */
.order { background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%); }
.order-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.order-copy { position: sticky; top: calc(var(--header-h) + 30px); }
.order-copy .lead { margin-top: 20px; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: ""; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; margin-top: 1px;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ig-card {
  margin-top: 36px; display: flex; align-items: center; gap: 16px;
  padding: 14px 20px 14px 14px; border-radius: 22px; text-decoration: none;
  background: #fff; box-shadow: var(--shadow-soft); max-width: 420px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ig-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ig-avatar {
  width: 58px; height: 58px; border-radius: 50%; padding: 3px; flex-shrink: 0;
  background: conic-gradient(from 200deg, #f6c4c2, #e6bd6a, #8f84d6, #f6c4c2);
}
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.ig-text { display: grid; line-height: 1.35; flex: 1; }
.ig-text b { color: var(--ink); }
.ig-text span { color: var(--muted); font-size: .92rem; }
.ig-card > svg { width: 22px; height: 22px; color: var(--violet); }

.order-form {
  position: relative;
  background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.form-sparkle {
  position: absolute; top: -22px; right: 30px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: var(--shadow-soft);
}
.form-sparkle svg { width: 26px; height: 26px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.order-form { grid-template-columns: minmax(0, 1fr); }
/* grid children must be allowed to shrink below their content width on phones */
.hero-inner > *, .transform-inner > *, .gift-inner > *, .order-inner > *, .faq-inner > *,
.footer-inner > *, .theme-grid > *, .steps > *, .field input, .field select, .field textarea { min-width: 0; }
.field > span { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--cream); padding: 13px 16px; font-size: 1rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-height: 50px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234b3aa8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #a39dc0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet-2); background: #fff; box-shadow: 0 0 0 4px rgba(99, 85, 196, .14);
}
.field-error { display: none; color: #c43d6b; font-size: .85rem; font-weight: 600; }
.field.has-error input { border-color: #e06b92; background: #fff6f8; }
.field.has-error .field-error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 30px); margin-bottom: 0; }
.faq-door {
  margin-top: 34px; width: 150px; aspect-ratio: 120 / 160; padding: 22px 20px 0;
  border-radius: 999px 999px 24px 24px;
  background: linear-gradient(170deg, #7f73c5, #5b4db8); color: var(--gold-1);
  box-shadow: var(--shadow-soft);
}
.faq-door svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(255, 230, 160, .5)); }
.faq-more { margin-top: 26px; color: var(--muted); }
.faq-more a { color: var(--violet); font-weight: 700; }

.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-soft);
  transition: box-shadow .3s ease;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%234b3aa8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .3s ease, background-color .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--butter); }
.faq-item p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
  color: rgba(255, 255, 255, .8);
  padding-top: clamp(110px, 12vw, 160px);
}
.cloud-edge-top { top: -1px; bottom: auto; fill: var(--cream); }
.footer-stars { position: absolute; inset: 0; pointer-events: none; }
.footer-stars .sparkle.s1 { width: 18px; left: 70%; top: 40%; }
.footer-stars .sparkle.s2 { width: 12px; left: 18%; top: 70%; }
.footer-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 50px; }
.footer-brand p { margin-top: 18px; max-width: 30em; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; font-weight: 600; color: #fff; opacity: .85; width: fit-content; }
.footer-nav a:hover { opacity: 1; color: var(--gold-1); }
.footer-cta { display: grid; gap: 14px; justify-items: start; }
.footer-handle { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.footer-bottom {
  position: relative; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: rgba(255, 255, 255, .6);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--violet); color: #fff;
  box-shadow: 0 18px 40px -14px rgba(44, 34, 118, .8);
  transform: translateY(140%); transition: transform .35s ease;
}
.sticky-cta svg { width: 18px; height: 18px; color: var(--gold-1); }
.sticky-cta.is-visible { transform: translateY(0); }
/* when Netlify's badge is present (bottom-right, ~44px tall) keep the button above it */
.has-nf-badge .sticky-cta { bottom: calc(64px + env(safe-area-inset-bottom)); }

/* ---------- Dialog ---------- */
.msg-dialog {
  border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100% - 32px));
  box-shadow: 0 40px 100px -30px rgba(36, 27, 99, .7);
  background: #fff; color: var(--text);
}
.msg-dialog::backdrop { background: rgba(36, 27, 99, .45); backdrop-filter: blur(4px); }
.msg-inner { position: relative; padding: 32px; display: grid; gap: 14px; }
.msg-inner h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); padding-right: 36px; }
.msg-inner > p { color: var(--muted); }
.dialog-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--mist); color: var(--violet); font-size: 1.5rem; line-height: 1;
}
.msg-preview {
  margin: 0; padding: 18px; border-radius: 18px; background: var(--cream); border: 1.5px dashed var(--lilac);
  font-family: var(--font-body); font-size: .95rem; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto;
}
.msg-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .theme-grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.steps .reveal:nth-child(3), .theme-grid .reveal:nth-child(3n) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Animations ---------- */
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(80px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes caret { 50% { border-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 0; z-index: -1;
    flex-direction: column; gap: 4px;
    padding: calc(var(--header-h) + 12px) var(--gutter) 28px;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 30px 60px -30px rgba(44, 34, 118, .5);
    transform: translateY(-105%); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  }
  .main-nav a { color: var(--ink); font-size: 1.15rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .site-header.menu-open .main-nav { transform: none; }
  .site-header.menu-open .logo { background: var(--violet); }
  .site-header.menu-open .lang-switch { background: var(--mist); box-shadow: none; }
  .site-header.menu-open .lang-switch button { color: var(--violet); }
  .site-header.menu-open .lang-switch button[aria-pressed="true"] { background: var(--violet); color: #fff; }
  .site-header.menu-open .menu-toggle { background: var(--mist); }
  .site-header.menu-open .menu-toggle span { background: var(--violet); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero-art { width: min(100%, 400px); margin-top: 20px; }

  .transform-inner, .gift-inner, .order-inner, .faq-inner { grid-template-columns: 1fr; }
  .order-copy, .faq .section-head { position: static; }
  .gift-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .faq-door { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .header-cta { display: none; }
  .logo { width: 108px; }
  .lang-switch button { padding: 6px 8px; font-size: .7rem; }

  .hero-ctas .btn { width: 100%; }
  .name-tag { left: -6px; bottom: 40px; padding: 10px 14px 10px 12px; }
  .name-tag-name { font-size: 1.1rem; }
  .seal { width: 96px; height: 96px; right: -6px; bottom: -20px; }
  .seal-heart { width: 26px; height: 26px; }
  .moon { width: 48px; right: 4px; }

  .steps { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feed-grid a:nth-child(n+5) { display: none; }

  .review-track {
    columns: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 24px; scrollbar-width: none;
  }
  .review-track::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 86%; scroll-snap-align: center; margin-bottom: 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .has-nf-badge .site-footer { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .sticky-cta { display: flex; }
  .msg-actions .btn { width: 100%; }

  /* comfortable thumb targets (≥ 40px) */
  .lang-switch button { min-height: 38px; padding: 8px 9px; }
  .footer-nav { gap: 2px; }
  .footer-nav a, .footer-handle { display: inline-block; padding-block: 9px; }
  .faq-item summary { padding: 18px 18px; }
  .faq-item p { padding: 0 18px 20px; }
}

/* very small phones (iPhone SE 1st gen, small Androids) */
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .logo { width: 92px; }
  .lang-switch button { padding: 8px 6px; font-size: .66rem; }
  .menu-toggle { width: 40px; height: 40px; }
  .menu-toggle span { left: 11px; right: 11px; }
  .menu-toggle span:first-child { top: 16px; }
  .menu-toggle span:last-child { top: 23px; }
  .menu-toggle[aria-expanded="true"] span { top: 19px !important; }
  .hero-title { font-size: 2.05rem; }
  .btn-lg { padding: 16px 22px; }
  .name-tag-label { display: none; }
}

/* touch devices: no hover lift / sticky hover states, no grey tap flash */
@media (hover: none) {
  .btn:hover, .step:hover, .theme-card:hover, .ig-card:hover { transform: none; }
  .theme-card:hover .theme-media img, .feed-grid a:hover img { transform: none; }
}
a, button, summary, label { -webkit-tap-highlight-color: transparent; }

/* iOS Safari renders empty date inputs collapsed and centred — normalise */
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
