/* ==========================================================================
   Megu — megucloset.com
   Fonts — SELF-HOSTED ON PURPOSE
   --------------------------------------------------------------------------
   Instrument Serif (SIL Open Font License 1.1, see assets/fonts/OFL.txt) is
   served from our own origin rather than fonts.gstatic.com. Loading it from
   Google would transmit every visitor's IP address to Google on page load —
   which German courts have treated as a GDPR violation, and this site ships
   /de/ pages aimed squarely at that audience. Self-hosting also keeps the
   site's "no cookies, no analytics, no third parties" claim literally true.
   Do NOT reintroduce a <link> to fonts.googleapis.com.

   Subsets and unicode-ranges below are copied verbatim from Google's own
   css2 output, so the browser still downloads only the range it needs.
   ========================================================================== */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --accent: #5F7FA6;          /* brand slate-blue; the one knob worth turning */
  --accent-soft: #7E9CC0;
  --accent-light: #9DB6D2;

  --ink: #16130F;
  --ink-deep: #14110E;
  --cream: #EEEAE3;
  --cream-light: #F6F3EE;
  --card: #F7F4EF;
  --muted: #56504A;
  --faint: #948C81;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1180px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine-grain paper noise over the whole page. Purely decorative. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%224%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22 opacity=%220.32%22/%3E%3C/svg%3E');
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

::selection { background: var(--accent); color: var(--cream-light); }

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

/* Every <img> carries width/height attributes so the browser can reserve
   space before load. `height: auto` is mandatory alongside them — without it
   the height attribute is honoured literally and the image stretches. */
img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link — visible only once focused. */
.skip {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream-light);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: translateY(0); color: var(--cream-light); }

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: italic; }

.eyebrow {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.lede {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .45s var(--ease), box-shadow .45s ease,
              background .4s ease, border-color .4s ease;
}

.btn--dark {
  background: var(--ink);
  color: var(--cream-light);
  padding: 17px 32px;
  font-size: 15px;
  box-shadow: 0 18px 40px -18px rgba(22, 19, 15, .8);
}
.btn--dark:hover {
  color: var(--cream-light);
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -18px rgba(22, 19, 15, .85);
}

.btn--outline {
  padding: 17px 28px;
  border: 1px solid rgba(22, 19, 15, .16);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  gap: 9px;
}
.btn--outline:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  border-color: rgba(22, 19, 15, .3);
}

.btn--light {
  background: var(--cream);
  color: var(--ink-deep);
  padding: 18px 34px;
  font-size: 15.5px;
}
.btn--light:hover {
  color: var(--ink-deep);
  transform: translateY(-3px);
  box-shadow: 0 24px 46px -20px rgba(0, 0, 0, .9);
}

.btn--outline-light {
  padding: 18px 30px;
  border: 1px solid rgba(238, 234, 227, .22);
  color: var(--cream);
  font-size: 15.5px;
  font-weight: 500;
  gap: 9px;
}
.btn--outline-light:hover {
  color: var(--cream);
  border-color: rgba(238, 234, 227, .5);
  background: rgba(238, 234, 227, .06);
}

/* Official App Store badge (Apple's artwork, assets/appstore-badge-*.svg,
   from toolbox.marketingtools.apple.com — never redraw it). Sized by height
   with width:auto: the fr badge is wider than en/de/es, so a fixed width
   would distort it. The black variant carries its own white keyline, which
   is what lets one asset sit on both the cream hero and the dark download
   band. */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  transition: transform .45s var(--ease);
}
.appstore-badge:hover { transform: translateY(-3px); }
.appstore-badge img { display: block; height: 50px; width: auto; }
.nav__appstore:hover { transform: translateY(-2px); }
.nav__appstore img { height: 40px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(238, 234, 227, 0);
  border-bottom: 1px solid rgba(22, 19, 15, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .5s ease, border-color .5s ease,
              backdrop-filter .5s ease, -webkit-backdrop-filter .5s ease;
}

/* Toggled by main.js once the page has scrolled past the hero lip. */
.nav.is-stuck {
  background: rgba(238, 234, 227, .78);
  border-bottom-color: rgba(22, 19, 15, .09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.32em;
  color: var(--ink);
  padding-left: 4px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.nav__link {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.nav__link:hover { color: var(--ink); }

/* Press sits outside .nav__links on purpose: that group is hidden below 900px
   (there is no drawer menu), and a media contact should stay reachable from
   every page on a phone too. */
.nav__link--press { white-space: nowrap; }
.nav__link--press[aria-current="page"] { color: var(--ink); }

.nav__cta {
  padding: 11px 20px;
  font-size: 13.5px;
  gap: 8px;
  letter-spacing: 0.01em;
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(22, 19, 15, .75);
}

/* ==========================================================================
   Phone mockups
   ========================================================================== */

.phone {
  position: relative;
  background: var(--ink-deep);
  padding: 10px;
  border-radius: 54px;
  box-shadow: 0 70px 120px -40px rgba(22, 19, 15, .7),
              0 2px 0 rgba(255, 255, 255, .4) inset;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 45px;
}
.phone img { display: block; width: 100%; height: auto; }

/* Smaller flanking devices */
.phone--sm {
  padding: 8px;
  border-radius: 42px;
  box-shadow: 0 50px 90px -34px rgba(22, 19, 15, .55),
              0 2px 0 rgba(255, 255, 255, .35) inset;
}
.phone--sm img { border-radius: 35px; }

/* Pale-bezel device used on the dark stylist section */
.phone--pale {
  background: var(--cream);
  padding: 8px;
  border-radius: 46px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8);
}
.phone--pale img { border-radius: 39px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(140px, 17vh, 200px) var(--gutter) 0;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -180px; left: 50%;
  width: min(1100px, 120vw);
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(95, 127, 166, .20), rgba(95, 127, 166, 0) 62%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--measure);
  margin: 0 auto;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(22, 19, 15, .14);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.hero__title {
  margin: 26px 0 0;
  text-align: center;
  font-size: clamp(46px, 8.4vw, 122px);
  line-height: .94;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero__title span { display: block; }

.hero__sub {
  margin: 26px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero__stage {
  position: relative;
  margin: clamp(48px, 7vw, 96px) auto -90px;
  max-width: var(--measure);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__device { width: clamp(150px, 19vw, 258px); margin-bottom: 4.5%; z-index: 1; }
.hero__device--left  { margin-right: -3.5%; }
.hero__device--left  .phone { transform: rotate(-8deg); }
.hero__device--right { margin-left: -3.5%; }
.hero__device--right .phone { transform: rotate(8deg); }
.hero__device--main  { width: clamp(210px, 27vw, 350px); z-index: 3; position: relative; margin-bottom: 0; }

/* Sweeping accent light across the main screenshot. */
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 26%;
  background: linear-gradient(180deg,
              rgba(95, 127, 166, 0) 0%,
              rgba(95, 127, 166, .28) 55%,
              rgba(95, 127, 166, .7) 100%);
  animation: megu-scan 4.6s cubic-bezier(.55, 0, .45, 1) infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  position: relative;
  margin-top: 90px;
  background: var(--ink-deep);
  color: var(--cream);
  padding: 26px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: megu-marquee 34s linear infinite;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee__group em { font-style: italic; }
.marquee__sep { color: var(--accent-soft); font-size: 15px; }

/* ==========================================================================
   How it works — sticky scrub
   ========================================================================== */

.how__head {
  padding: clamp(80px, 10vw, 150px) var(--gutter) 0;
  max-width: var(--measure);
  margin: 0 auto;
}
.how__title {
  margin: 18px 0 0;
  max-width: 780px;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.02;
}

.sticky-wrap {
  position: relative;
  height: 320vh;
  padding: 0 var(--gutter);
}
.sticky-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.sticky-row {
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 90px);
}

.steps {
  flex: 1 1 380px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step {
  display: flex;
  gap: 20px;
  opacity: .26;
  transform: translate3d(0, 6px, 0);
  transition: opacity .6s ease, transform .6s var(--ease);
}
.step.is-active { opacity: 1; transform: translate3d(0, 0, 0); }

.step__num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  min-width: 44px;
}
.step__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.step__body {
  margin: 10px 0 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.shots { flex: 0 0 auto; width: clamp(230px, 27vw, 330px); }
.shots .phone { padding: 9px; border-radius: 50px;
  box-shadow: 0 60px 110px -40px rgba(22, 19, 15, .65),
              0 2px 0 rgba(255, 255, 255, .4) inset; }
.shots .phone__screen { border-radius: 42px; }

.shot { opacity: 0; transition: opacity .7s ease; }
.shot.is-active { opacity: 1; }
/* Every frame after the first is stacked on top of the first. */
.shot + .shot { position: absolute; inset: 0; }

.dots { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.dot {
  width: 26px; height: 3px;
  border-radius: 999px;
  background: rgba(22, 19, 15, .16);
  transition: background .5s ease, width .5s ease;
}
.dot.is-active { background: var(--accent); width: 34px; }

/* ==========================================================================
   Features
   ========================================================================== */

.features { padding: clamp(70px, 8vw, 120px) var(--gutter); }
.features__inner { max-width: var(--measure); margin: 0 auto; }

.features__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 4vw, 60px);
}
.features__title {
  max-width: 640px;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.04;
}
.features__note {
  margin: 0;
  max-width: 340px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(22, 19, 15, .07);
  border-radius: 26px;
  padding: 32px 30px 34px;
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(22, 19, 15, .4);
}
.card__num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.card__title {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card__body {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   Stylist (dark)
   ========================================================================== */

.stylist {
  background: var(--ink-deep);
  color: var(--cream);
  padding: clamp(70px, 9vw, 130px) var(--gutter);
  overflow: hidden;
}
.stylist__inner { max-width: var(--measure); margin: 0 auto; }
.stylist__head { max-width: 760px; }
.stylist .eyebrow { color: #8B8378; }
.stylist__title {
  margin: 18px 0 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.03;
}
.stylist__title em { color: var(--accent-light); }
.stylist__lede {
  margin: 20px 0 0;
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.62;
  color: rgba(238, 234, 227, .66);
  text-wrap: pretty;
}

.stylist__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(44px, 6vw, 80px);
}
.stylist__device { width: clamp(200px, 23vw, 288px); }
.stylist__device--left  .phone { transform: rotate(-4deg); }
.stylist__device--right .phone { transform: rotate(4deg); }

.stylist__mid { flex: 0 1 330px; min-width: 250px; }
.stylist__pull {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.stylist__copy {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(238, 234, 227, .6);
  text-wrap: pretty;
}

/* Faux composer showing rotating example prompts */
.composer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 16px;
  background: rgba(238, 234, 227, .06);
  border: 1px solid rgba(238, 234, 227, .16);
  border-radius: 999px;
}
.composer__plus {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent-light);
  line-height: 1;
}
.composer__text {
  flex: 1;
  font-size: 14.5px;
  color: rgba(238, 234, 227, .72);
  transition: opacity .45s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer__send {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-light);
  font-size: 14px;
  flex: 0 0 auto;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  padding: 7px 14px;
  border: 1px solid rgba(238, 234, 227, .2);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(238, 234, 227, .7);
}

/* ==========================================================================
   Icon + voices
   ========================================================================== */

.icon-section { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.icon-row {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}

.icon-tilt { flex: 0 0 auto; width: clamp(190px, 24vw, 280px); perspective: 900px; }
.icon-tilt__inner {
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}
.icon-tilt img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23%;
  box-shadow: 0 40px 70px -28px rgba(22, 19, 15, .55);
}

.icon-copy { flex: 1 1 380px; min-width: 280px; }
.icon-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.06;
  max-width: 560px;
}
.icon-copy p {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.voices {
  max-width: var(--measure);
  margin: clamp(56px, 7vw, 100px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.voices[hidden] { display: none; }

.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid rgba(22, 19, 15, .07);
  border-radius: 26px;
  padding: 32px 30px;
}
.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.quote footer {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: 0 var(--gutter) clamp(80px, 9vw, 130px); }
.faq__inner { max-width: 860px; margin: 0 auto; }
.faq__title {
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.05;
}

.faq__item {
  border-top: 1px solid rgba(22, 19, 15, .12);
  padding: 4px 0;
}
.faq__item:last-of-type { border-bottom: 1px solid rgba(22, 19, 15, .12); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }

.faq__sign {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
  flex: 0 0 auto;
}
/* Driven entirely by [open] — no JS needed to flip the glyph. */
.faq__sign::before { content: "+"; }
.faq__item[open] .faq__sign::before { content: "\2013"; }

.faq__a {
  margin: 0 0 26px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   Download + footer
   ========================================================================== */

.download {
  background: var(--ink-deep);
  color: var(--cream);
  padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(50px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.download__glow {
  position: absolute;
  bottom: -320px; left: 50%;
  width: min(1000px, 130vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(95, 127, 166, .30), rgba(95, 127, 166, 0) 65%);
  pointer-events: none;
}
.download__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.download__title {
  font-size: clamp(38px, 6.8vw, 96px);
  line-height: .98;
  letter-spacing: -0.025em;
}
.download__sub {
  margin: 22px auto 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(238, 234, 227, .66);
  text-wrap: pretty;
}
.download__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.footer {
  max-width: var(--measure);
  margin: clamp(70px, 9vw, 120px) auto 0;
  position: relative;
}
.footer__wordmark {
  font-family: var(--serif);
  font-size: clamp(56px, 17vw, 260px);
  line-height: .8;
  letter-spacing: 0.14em;
  text-align: center;
  color: rgba(238, 234, 227, .1);
  user-select: none;
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 26px;
  border-top: 1px solid rgba(238, 234, 227, .12);
  font-size: 13px;
  color: rgba(238, 234, 227, .5);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { color: rgba(238, 234, 227, .5); }
.footer__links a:hover { color: var(--cream); }

/* ==========================================================================
   Scroll reveal — set up in CSS so nothing flashes before JS boots
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity .95s var(--ease), transform 1.05s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translate3d(0, 0, 0); }

/* Parallax elements are positioned by JS, so let it own the transform. */
.reveal.par { transform: none; }

/* If JS never runs, show everything rather than an empty page. */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes megu-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes megu-scan {
  0%   { transform: translateY(-6%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(106%); opacity: 0; }
}

/* ==========================================================================
   Narrow layout
   The design threshold is 900px: below it the sticky scrub is meaningless
   (there is no room for phone + copy side by side), so it unrolls into a
   plain stacked column with all three steps shown at once.
   ========================================================================== */

@media (max-width: 899px) {
  /* No drawer menu here: the in-page section links drop away, but Press stays
     — it is the one nav destination that is a page rather than an anchor. */
  .nav__links { display: none; }
  .nav { gap: 14px; }
  .nav__right { gap: 16px; }

  .sticky-wrap {
    height: auto;
    padding: 48px var(--gutter) 0;
  }
  .sticky-inner { position: static; height: auto; }
  .sticky-row { flex-direction: column; gap: 44px; }

  .shots { order: -1; width: min(250px, 62vw); }
  .steps { min-width: 0; width: 100%; }

  /* No scrubbing without the sticky track — show every step, first shot only. */
  .step { opacity: 1; transform: translate3d(0, 0, 0); }
  .shot { opacity: 0; }
  .shot:first-child { opacity: 1; }

  .dots { display: none; }
}

@media (max-width: 620px) {
  .hero__stage { margin-bottom: -40px; }
  .hero__device--left,
  .hero__device--right { display: none; }
  .hero__device--main { width: min(280px, 68vw); }
  .marquee { margin-top: 60px; }
  .features__head { flex-direction: column; align-items: flex-start; }
}

/* Smallest phones: the brand, Press and the longest localised CTA
   ("Bientôt disponible") together overrun 360px at the desktop scale. */
@media (max-width: 420px) {
  .nav__brand { font-size: 18px; letter-spacing: 0.26em; }
  .nav__link--press { font-size: 12.5px; }
  .nav__cta { padding: 10px 15px; font-size: 12.5px; }
  .nav__appstore img { height: 34px; }
}

/* ==========================================================================
   Reduced motion
   Ambient loops (marquee, scanline) and the tilt/parallax are decorative;
   drop them entirely rather than merely shortening them.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee__track,
  .scanline { animation: none; }
  .scanline { opacity: .35; top: 0; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn, .card, .icon-tilt__inner, .step, .shot, .dot, .nav {
    transition-duration: .01ms;
  }
  .btn:hover, .card:hover { transform: none; }
}

/* ==========================================================================
   Landing pages
   Shared by the intent pages under /digital-closet-app, /what-to-wear-app,
   /ai-stylist-app and /outfit-planner-app. They reuse the home page's tokens,
   buttons, cards and FAQ styles — only the layout pieces below are new.
   ========================================================================== */

.lp-hero {
  padding: clamp(130px, 16vh, 180px) var(--gutter) clamp(50px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.lp-hero__glow {
  position: absolute;
  top: -240px; left: 50%;
  width: min(1000px, 120vw);
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(95, 127, 166, .18), rgba(95, 127, 166, 0) 62%);
  pointer-events: none;
}

/* Copy on the left, a single device on the right. */
.lp-split {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.lp-split__copy { flex: 1 1 420px; min-width: 300px; }
.lp-split__device { flex: 0 0 auto; width: clamp(210px, 24vw, 290px); margin: 0 auto; }

.lp-title {
  margin: 18px 0 0;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lp-sub {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

/* Factual claims only — never invented metrics. */
.proof {
  max-width: var(--measure);
  margin: clamp(40px, 5vw, 64px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 0 var(--gutter);
}
.proof__item {
  padding: 22px 24px;
  border: 1px solid rgba(22, 19, 15, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .4);
}
.proof__k {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.proof__v {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.lp-section { padding: clamp(60px, 8vw, 110px) var(--gutter); }
.lp-section__inner { max-width: var(--measure); margin: 0 auto; }
.lp-h2 {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.05;
}
.lp-lede {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

/* Alternating copy/device band. */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  margin-top: clamp(40px, 5vw, 70px);
}
.band--flip { flex-direction: row-reverse; }
.band__copy { flex: 1 1 380px; min-width: 290px; }
.band__device { flex: 0 0 auto; width: clamp(200px, 22vw, 270px); margin: 0 auto; }
.band__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.band__body {
  margin: 12px 0 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

/* Cross-links between the intent pages — the internal linking that makes a
   set of landing pages act like one site rather than four orphans. */
.crosslinks {
  border-top: 1px solid rgba(238, 234, 227, .12);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 30px;
}
.crosslinks__label {
  margin: 0 0 18px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 234, 227, .45);
}
.crosslinks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.crosslink {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(238, 234, 227, .16);
  border-radius: 18px;
  color: var(--cream);
  transition: border-color .4s ease, background .4s ease;
}
.crosslink:hover {
  color: var(--cream);
  border-color: rgba(238, 234, 227, .4);
  background: rgba(238, 234, 227, .05);
}
.crosslink strong { display: block; font-size: 15.5px; font-weight: 600; }
.crosslink span {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(238, 234, 227, .55);
}

/* Breadcrumb */
.crumb { font-size: 12.5px; letter-spacing: 0.02em; color: var(--faint); }
.crumb a { color: var(--faint); }
.crumb a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .band, .band--flip { flex-direction: column; }
  .lp-split { flex-direction: column; }
  .lp-split__device { width: min(250px, 62vw); }
}

/* ==========================================================================
   Language switcher
   Sits in the dark footer bar on every page and links to the SAME page in
   each other locale — never to the home page, which is a common and
   frustrating shortcut.
   ========================================================================== */

.langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.langs a { color: rgba(238, 234, 227, .5); }
.langs a:hover { color: var(--cream); }
.langs__current {
  color: var(--cream);
  border-bottom: 1px solid rgba(238, 234, 227, .35);
  padding-bottom: 1px;
}

/* ==========================================================================
   Legal pages (/privacy/, /terms/, /support/)
   Plain prose pages sharing the site chrome. English only — every locale
   footer links here. No reveal animations: legal text should never be
   hidden behind JS.
   ========================================================================== */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(120px, 16vw, 170px) var(--gutter) clamp(60px, 8vw, 100px);
}
.legal__title {
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 10px;
}
.legal__meta {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 8px;
}
.legal__lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 18px 0 0;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.15;
  margin: 54px 0 14px;
}
.legal h3 {
  font-size: 15px;
  margin: 26px 0 8px;
}
.legal p, .legal li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 0 0 8px; }
.legal b, .legal strong { color: var(--ink); font-weight: 600; }
.legal .caps {
  text-transform: none;
  font-size: 14px;
  letter-spacing: .01em;
}
.legal .path { white-space: nowrap; font-weight: 600; color: var(--ink); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid rgba(22, 19, 15, .12);
  color: var(--muted);
  line-height: 1.55;
}
.legal th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal-foot {
  border-top: 1px solid rgba(22, 19, 15, .12);
  padding: 26px var(--gutter) 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--faint);
}
.legal-foot nav { display: flex; gap: 18px; }
.legal-foot a { color: var(--muted); }
.legal-foot a:hover { color: var(--ink); }

/* ---------------------------------------------------------------------------
   Forms (press enquiry)
   Reuses the .legal page shell; only the controls are new. Netlify Forms posts
   these as plain HTML, so there is no JS state to style around.
   --------------------------------------------------------------------------- */
.form { margin: 30px 0 0; }
.form__field { margin: 0 0 20px; }
.form__label {
  display: block;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.form__req { color: var(--faint); font-weight: 400; }
.form__input,
.form__textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream-light);
  border: 1px solid rgba(22, 19, 15, .14);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--faint); }
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 127, 166, .16);
}
.form__textarea { min-height: 200px; resize: vertical; }
/* iOS Safari zooms the entire page when a focused field is under 16px, which
   throws the layout off mid-typing. The site's .95rem is 15.2px, so bump just
   these controls on small screens. */
@media (max-width: 640px) {
  .form__input,
  .form__textarea { font-size: 16px; }
}
.form__submit {
  width: 100%;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--cream-light);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  transition: transform .35s var(--ease), background .35s ease;
}
.form__submit:hover { background: var(--ink-deep); transform: translateY(-2px); }
.form__submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__note { font-size: .8rem; color: var(--faint); margin: 16px 0 0; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .form__submit { transition: background .35s ease; }
  .form__submit:hover { transform: none; }
}
