/* =========================================================
   Memorably — site
   ========================================================= */

:root {
  --bg: #efede7;            /* crème (fond du site) */
  --bg-2: #e7e4dc;
  --surface: #f6f4ef;        /* cartes */
  --surface-2: #fbfaf6;      /* survol carte */
  --line: rgba(45, 43, 38, 0.12);
  --line-strong: rgba(45, 43, 38, 0.20);
  --text: #5c5c58;           /* gris (écritures) */
  --muted: rgba(60, 58, 54, 0.78);
  --muted-2: rgba(60, 58, 54, 0.52);

  --purple: #7c86e1;
  --purple-btn: #5d60d6;
  --purple-deep: #5756ce;
  --mint: #bae5e7;
  --cream: #e4dec1;
  --coral: #ec6d6d;
  --sky: #6ebceb;
  --pale: #e0edef;
  --gold: #ff9500;

  --font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', ui-sans-serif, sans-serif;
  --font-hand: 'Bricolage Grotesque', ui-sans-serif, sans-serif;   /* bold accents (was Caveat) */
  --font-mono: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif; /* labels: clean tracked sans (was mono) */

  --maxw: 1200px;
  --radius: 28px;
  --radius-lg: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--purple); color: #fff; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { position: relative; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
}
.script { font-family: var(--font-hand); font-weight: 700; font-style: normal; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }

/* Brand display headings — Bricolage Grotesque, sentence case (Gen-Z) */
.hero h1,
.section-title,
.feature-text h2,
.photobook h2,
.cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.02;
}

/* Rotating word ("... for parties / vacations / weddings / birthdays") */
.rotator {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15;
  color: var(--purple);
  transform: translateZ(0);   /* stable compositing layer → no clip-edge flicker */
}
.rotator-list {
  display: flex;
  flex-direction: column;
  animation: rotate-words 10s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.rotator-item {
  display: block;
  flex: 0 0 1.15em;
  height: 1.15em;
  line-height: 1.15;
  white-space: nowrap;
}
/* 5 words × 2s = 10s; each word holds ~1.4s, then glides (~0.6s) to the next.
   The 6th item duplicates the 1st for a seamless loop. */
@keyframes rotate-words {
  0%,   14%  { transform: translateY(0); }
  20%,  34%  { transform: translateY(-1.15em); }
  40%,  54%  { transform: translateY(-2.30em); }
  60%,  74%  { transform: translateY(-3.45em); }
  80%,  94%  { transform: translateY(-4.60em); }
  100%       { transform: translateY(-5.75em); }
}
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  max-width: 42ch;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 100px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-purple { background: var(--purple-btn); color: #fff; }
.btn-purple:hover { background: var(--purple-deep); transform: translateY(-2px); }
.btn-lg { height: 60px; padding: 0 34px; font-size: 1.06rem; border-radius: 16px; }
.btn-ghost { background: rgba(45,43,38,0.06); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(45,43,38,0.12); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 0.92rem; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badges img { height: 52px; width: auto; transition: transform 0.25s var(--ease); }
.store-badges a:hover img { transform: translateY(-3px); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(239, 237, 231, 0.55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, border-color 0.35s;
}
.header.scrolled {
  background: rgba(239, 237, 231, 0.82);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 2.1rem; letter-spacing: -0.02em; text-transform: lowercase;
  display: flex; align-items: center; gap: 9px; line-height: 1;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 100px;
  font-weight: 500; font-size: 0.82rem; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.09em;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.nav-link:hover { background: rgba(45,43,38,0.06); }
.nav-link .chev { width: 9px; height: 9px; transition: transform 0.25s var(--ease); opacity: 0.6; }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }

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

/* Dropdowns */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: rgba(250,249,245,0.94);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border: 1px solid var(--line-strong); border-radius: 22px;
  padding: 12px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 30px 70px rgba(40,38,34,0.18);
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown.wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dd-group-title {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); padding: 8px 12px 6px;
}
.dd-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 13px; font-weight: 500; font-size: 0.96rem;
  transition: background 0.18s;
}
.dd-link:hover { background: rgba(45,43,38,0.06); }
.dd-link .ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: rgba(124,134,225,0.14);
}
.dd-link .ico img { width: 20px; height: 20px; }
.dd-link small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.dd-col { display: flex; flex-direction: column; }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(45,43,38,0.06); }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: 0.3s var(--ease); }
.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(239,237,231,0.98); backdrop-filter: blur(20px);
  padding: 90px 24px 40px; overflow-y: auto;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.4s;
}
.drawer.open { transform: translateY(0); opacity: 1; visibility: visible; }
.drawer h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin: 22px 0 6px; }
.drawer a { display: block; padding: 12px 4px; font-size: 1.3rem; font-weight: 700; border-bottom: 1px solid var(--line); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 150px 0 60px;
  min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -20%; right: -5%;
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124,134,225,0.12), rgba(124,134,225,0) 62%);
  filter: blur(30px); z-index: 0;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: start;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 14px; border-radius: 100px;
  background: rgba(45,43,38,0.05); border: 1px solid var(--line-strong);
  font-size: 0.84rem; color: var(--muted); margin-bottom: 26px; font-weight: 500;
}
.hero-badge b { color: var(--text); font-weight: 700; }
.hero-badge .stars { color: var(--gold); letter-spacing: 1px; }
.hero-badge .pill { background: var(--purple); color: #fff; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.08;
}
.hero p.lead {
  margin: 24px 0 34px; color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem); max-width: 40ch; line-height: 1.45;
}
.hero-cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-cta .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; }
/* scène du deck : pas de clip, chaque carte a son propre radius + ombre */
.hero-phone-stack {
  position: relative; width: 100%; max-width: 440px;
  aspect-ratio: 4160 / 4680;            /* cadre 8/9 par carte */
  margin-inline: auto;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: bottom;   /* garde le bas, coupe le haut */
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.45);
  transform-origin: 50% 100%;                    /* pivot en bas → éventail/bouquet */
  backface-visibility: hidden; will-change: transform;
  transition: transform 1s cubic-bezier(0.5, 0.05, 0.2, 1), box-shadow 1s ease;
}
/* les trois positions de l'éventail */
.hero-img.pos-front {
  transform: translate(0, 0) rotate(0deg) scale(1);
  z-index: 3; box-shadow: 0 34px 70px rgba(0,0,0,0.6);
}
.hero-img.pos-right {
  transform: translate(15%, 0) rotate(10deg) scale(0.9);
  z-index: 2;
}
.hero-img.pos-left {
  transform: translate(-15%, 0) rotate(-10deg) scale(0.9);
  z-index: 1;
}
.hero-tag {
  position: absolute; z-index: 3; font-family: var(--font-hand); font-weight: 600; font-style: normal;
  font-size: 1.55rem; color: var(--text); padding: 6px 16px; border-radius: 100px;
  background: var(--purple); transform: rotate(-6deg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4); white-space: nowrap;
}
.hero-tag.t1 { top: 8%; right: -2%; background: var(--coral); }
.hero-tag.t2 { bottom: 14%; left: -4%; background: var(--purple); transform: rotate(5deg); }

@keyframes scroll-x { to { transform: translateX(-50%); } }

/* "4.9 WORLDWIDE" rating block under hero */
.hero-rating {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 0 40px; color: var(--muted);
}
.hero-rating .laurel { font-size: 2.4rem; opacity: 0.5; line-height: 1; }
.hero-rating .laurel.r { transform: scaleX(-1); }
.hero-rating .rate-main {
  font-family: var(--font-display); text-transform: none; letter-spacing: 0;
  font-size: 1.9rem; color: var(--text); display: flex; align-items: center; gap: 8px;
}
.hero-rating .rate-main .s { color: var(--gold); }
.hero-rating .rate-sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.hero-rating .rate-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }

/* =========================================================
   GENERIC SECTION SHELL
   ========================================================= */
.section-pad { padding: clamp(70px, 10vw, 130px) 0; }
.head-block { max-width: 720px; margin: 0 auto 60px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.head-block .eyebrow { margin-bottom: -4px; }

/* Split feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start;
}
.feature.reverse .feature-media { order: 2; }
.feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.feature-text h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.feature-text p { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.feature-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1/1; display: grid; place-items: center;
}
.feature-media img { width: 100%; height: 100%; object-fit: contain; }
.feature-media--crop { aspect-ratio: 8 / 9; }              /* image rognée d'1/4 par le haut */
.feature-media--crop img { object-fit: cover; object-position: bottom; }  /* garde le bas */
.tinted { background: linear-gradient(160deg, rgba(124,134,225,0.18), rgba(87,86,206,0.06)); }
.tinted-mint { background: linear-gradient(160deg, rgba(186,229,231,0.16), rgba(110,188,235,0.05)); }
.tinted-cream { background: linear-gradient(160deg, rgba(228,222,193,0.16), rgba(236,109,109,0.05)); }

/* Feature bullet chips */
.feat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 100px; font-size: 0.92rem; font-weight: 500;
  background: rgba(45,43,38,0.05); border: 1px solid var(--line-strong);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }

/* =========================================================
   TRAILER
   ========================================================= */
.trailer-frame {
  position: relative; margin-top: 50px; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; border: 1px solid var(--line-strong);
  background: #08080b;
  display: grid; place-items: center;
}
/* blurred fill so the portrait photo can span the wide cinematic frame */
.trailer-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(38px) brightness(0.42) saturate(1.15);
  transform: scale(1.18);
}
/* the sharp full photo, centered at frame height (absolute so it stays out of
   grid flow — otherwise it displaces the centered play button) */
.trailer-still {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.play-btn {
  position: relative; z-index: 3;
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(252,252,254,0.94); color: #000; display: grid; place-items: center;
  transition: transform 0.3s var(--ease); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.play-ring { position: absolute; z-index: 2; width: 92px; height: 92px; border-radius: 50%; border: 2px solid rgba(252,252,254,0.6); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.trailer-caption { position: absolute; z-index: 3; bottom: 22px; left: 24px; font-family: var(--font-mono); font-size: 0.8rem; color: rgba(252,252,254,0.85); letter-spacing: 0.05em; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }

/* placeholder skeleton — shown until the trailer media is added */
.trailer-skeleton {
  background: var(--surface);
  overflow: hidden;
}
.trailer-skeleton::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    transparent 20%,
    rgba(252,252,254,0.06) 40%,
    rgba(252,252,254,0.10) 50%,
    rgba(252,252,254,0.06) 60%,
    transparent 80%);
  transform: translateX(-100%);
  animation: skeleton-sweep 1.8s ease-in-out infinite;
}
.skeleton-play {
  position: relative; z-index: 2;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
.skeleton-caption {
  position: absolute; z-index: 2; bottom: 24px; left: 24px;
  width: 180px; height: 12px; border-radius: 100px;
  background: var(--surface-2);
}
@keyframes skeleton-sweep {
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .trailer-skeleton::before { animation: none; }
}

/* feature list — two columns, replaces the trailer skeleton */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.feat-item {
  display: flex; gap: 18px; padding: 26px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.feat-item:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.feat-num {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(124,134,225,0.14);
  font-family: var(--font-mono); font-weight: 700; color: var(--purple); font-size: 0.95rem;
}
.feat-body h3 { font-size: 1.18rem; letter-spacing: -0.02em; margin-bottom: 7px; }
.feat-body p { color: var(--muted); font-size: 0.97rem; line-height: 1.5; }

/* =========================================================
   HOW IT WORKS (icon grid)
   ========================================================= */
.hiw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.hiw-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.hiw-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.hiw-icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(124,134,225,0.14); display: grid; place-items: center; }
.hiw-icon img { width: 32px; height: 32px; }
.hiw-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--purple); letter-spacing: 0.1em; }
.hiw-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.hiw-card p { color: var(--muted); font-size: 0.97rem; }

/* =========================================================
   SHARE TABS
   ========================================================= */
.share-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; margin-top: 40px; }
.tabs { display: flex; flex-direction: column; gap: 14px; }
.tab {
  text-align: left; border: 1px solid var(--line); border-radius: 24px; padding: 24px 26px;
  transition: all 0.35s var(--ease); background: var(--surface); position: relative; overflow: hidden;
}
.tab:hover { border-color: var(--line-strong); }
.tab.active { background: var(--surface-2); border-color: var(--purple); }
.tab-head { display: flex; align-items: center; gap: 14px; }
.tab-badge { width: 40px; height: 40px; border-radius: 12px; background: rgba(124,134,225,0.16); display: grid; place-items: center; font-weight: 900; color: var(--purple); }
.tab h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.tab p { color: var(--muted); font-size: 1rem; margin-top: 14px; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s var(--ease); }
.tab.active p { max-height: 160px; opacity: 1; margin-top: 14px; }
.share-panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, rgba(124,134,225,0.16), rgba(20,20,26,0.4));
  border: 1px solid var(--line-strong); display: grid; place-items: center;
}
.share-panel img { position: absolute; inset: 0; margin: auto; max-width: 78%; max-height: 82%; width: auto; object-fit: contain; opacity: 0; transform: scale(0.94) translateY(10px); transition: all 0.6s var(--ease); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); }
.share-panel img.active { opacity: 1; transform: scale(1) translateY(0); }

/* =========================================================
   PHOTOBOOK
   ========================================================= */
.photobook {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 80% 15%, rgba(228,222,193,0.22), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(124,134,225,0.22), transparent 45%),
    var(--surface);
  border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(36px, 5vw, 70px);
}
.photobook .pb-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.photobook h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.photobook p { color: var(--muted); font-size: 1.1rem; max-width: 44ch; }
.photobook-media img { width: 100%; filter: drop-shadow(0 40px 70px rgba(0,0,0,0.5)); }
.pb-price { display: flex; align-items: baseline; gap: 8px; }
.pb-price b { font-size: 2rem; font-weight: 900; }
.pb-price span { color: var(--muted); }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { overflow: hidden; }
.reviews-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 44px; }
.rating-big { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.rating-num { font-size: 3.4rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.rating-meta { text-align: left; }
.rating-stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 2px; }
.rating-meta small { color: var(--muted); display: block; font-size: 0.95rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.review-card .rc-stars { color: var(--gold); letter-spacing: 1px; font-size: 0.95rem; }
.review-card h4 { font-size: 1.12rem; letter-spacing: -0.02em; }
.review-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.review-card .rc-author { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.04em; margin-top: auto; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { max-width: 820px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; padding: 28px 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.02em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--purple); }
.faq-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; transition: 0.3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--text); border-radius: 2px; }
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-icon { background: var(--purple); border-color: var(--purple); }
.faq-item.open .faq-icon::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { color: var(--muted); padding: 0 8px 28px; font-size: 1.05rem; max-width: 62ch; line-height: 1.6; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  padding: clamp(48px, 7vw, 90px);
  background:
    radial-gradient(circle at 20% 20%, rgba(124,134,225,0.5), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(87,86,206,0.4), transparent 50%),
    linear-gradient(135deg, #15152a, #0a0a12);
  border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center;
}
.cta h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 18px; }
.cta p { color: rgba(252,252,254,0.72); font-size: 1.15rem; max-width: 40ch; margin-bottom: 28px; }
.cta-toggle { display: inline-flex; padding: 5px; border-radius: 100px; background: rgba(0,0,0,0.3); border: 1px solid var(--line-strong); margin-bottom: 26px; }
.cta-toggle button { padding: 9px 22px; border-radius: 100px; font-weight: 700; font-size: 0.95rem; color: var(--muted); transition: 0.25s var(--ease); }
.cta-toggle button.active { background: var(--text); color: #000; }
.cta-qr { background: #fff; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.cta-qr img { width: 170px; height: 170px; }
.cta-qr small { color: #444; font-weight: 600; font-size: 0.85rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 30ch; font-size: 0.96rem; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(45,43,38,0.05); border: 1px solid var(--line); display: grid; place-items: center; transition: 0.25s var(--ease); }
.footer-social a:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; color: var(--muted); font-size: 0.96rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.88rem; }

/* Minimal footer (live) — Support & Legal only, horizontal */
.footer--min { padding: 26px 0; }
.footer-min-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.footer-min-copy { color: var(--muted-2); font-size: 0.88rem; }
.footer-min-links { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; }
.footer-min-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-min-links a:hover { color: var(--text); }
@media (max-width: 640px) { .footer-min-row { justify-content: center; text-align: center; } }

/* =========================================================
   REVEAL ANIMATION
   Hidden state applies ONLY when JS has added .reveal-on to <html>,
   so content is never permanently hidden if JS fails to run.
   ========================================================= */
.reveal-on .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-actions .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-badge { margin-inline: auto; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { align-items: center; }
  .hero-visual { order: -1; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .feature-text { align-items: center; text-align: center; }
  .feature-text p { max-width: 52ch; }
  .hiw-grid { grid-template-columns: repeat(2, 1fr); }
  .share-wrap { grid-template-columns: 1fr; }
  .share-panel { max-width: 460px; margin: 0 auto; width: 100%; }
  .photobook { grid-template-columns: 1fr; text-align: center; }
  .photobook .pb-text { align-items: center; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta p { margin-inline: auto; }
  .cta-qr { max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 120px; }
  .hiw-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .store-badges img { height: 46px; }
  .btn { height: 50px; }
  .feature-text, .head-block { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* Keep the word rotator running even under reduced-motion (deliberate brand animation) */
  .rotator-list { animation-duration: 10s !important; }
}

/* =========================================================
   LEGAL / POLICY PAGES
   ========================================================= */
.legal { padding: 130px 0 90px; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.legal-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-head h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.04;
}
.legal-head .updated { margin-top: 14px; color: var(--muted-2); font-size: 0.92rem; }
.legal-intro { color: var(--muted); font-size: 1.06rem; line-height: 1.7; margin-bottom: 8px; }
.legal-toc {
  margin: 30px 0 10px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal-toc h2 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { color: var(--muted); font-size: 0.96rem; display: inline-flex; gap: 8px; padding: 4px 0; transition: color 0.2s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--purple); font-family: var(--font-mono); font-size: 0.82rem; }
.legal-toc a:hover { color: var(--text); }
.legal-section { padding-top: 34px; scroll-margin-top: 90px; }
.legal-section h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: 1.5rem; margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px;
}
.legal-section h2 .n { color: var(--purple); font-family: var(--font-mono); font-size: 1rem; font-weight: 500; }
.legal-section h3 { font-size: 1.1rem; margin: 24px 0 8px; letter-spacing: -0.01em; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 1rem; line-height: 1.72; }
.legal-section p { margin-bottom: 14px; }
.legal-section ul { list-style: disc; padding-left: 1.3em; margin: 4px 0 18px; }
.legal-section li { margin-bottom: 8px; }
.legal-section strong { color: var(--text); font-weight: 700; }
.legal-section a { color: var(--purple); font-weight: 600; }
.legal-section a:hover { text-decoration: underline; }
.legal-note {
  margin: 8px 0 18px; padding: 16px 20px; border-radius: 16px;
  background: rgba(124,134,225,0.10); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem; line-height: 1.65;
}
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 50px; color: var(--purple); font-weight: 700; }
.legal-table-wrap { overflow-x: auto; margin: 10px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.94rem; }
.legal-table th, .legal-table td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table thead th {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); background: var(--surface); font-weight: 600;
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table td { color: var(--muted); line-height: 1.55; }
.legal-table td strong { color: var(--text); }
@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}
