/* ============================================================
   Moodly — landing page
   Identity-preserving: reuses the extension's committed tokens
   (cream / olive / coral / ink) from gallery.css.
   ============================================================ */

:root {
  /* surface — white-dominant, cream as a rhythm band */
  --bg: #ffffff;
  --cream: #f2eee6;
  --cream-deep: #ece5d7;
  --panel: #ffffff;

  /* ink ramp (ink-soft darkened from extension's #6b6a63 for AA on cream) */
  --ink: #2b2a28;
  --ink-soft: #5b5a53;
  --ink-faint: #74726a;

  /* lines */
  --line: #e7e2d6;
  --line-soft: #f0ece3;

  /* brand accents */
  --accent: #6e6f4a;          /* olive */
  --accent-deep: #565738;
  --accent-tint: #edebdf;
  --coral: #f39b78;
  --coral-deep: #df7f57;

  /* radii */
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* elevation */
  --shadow-card: 0 1px 2px rgba(43,42,40,.05), 0 14px 34px -14px rgba(43,42,40,.20);
  --shadow-lift: 0 2px 4px rgba(43,42,40,.06), 0 28px 64px -22px rgba(43,42,40,.30);

  /* type */
  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-out-soft: cubic-bezier(.16, 1, .3, 1);

  /* semantic z-index scale */
  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-toast: 300;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-toast);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .18s var(--ease-out);
}
.skip-link:focus { top: 16px; }

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

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 13px 20px; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .chrome { opacity: .95; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(86,87,56,.25); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 8px 22px -8px rgba(86,87,56,.6); transform: translateY(-1px); }

.btn--cream { background: var(--cream); color: var(--accent-deep); }
.btn--cream:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(0,0,0,.4); }

.btn--lg { font-size: 16.5px; padding: 16px 26px; }

/* ───────────── Brand / nav ───────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; place-items: center; }
.brand__word { font-family: var(--font-serif); font-weight: 500; font-size: 21px; letter-spacing: -.01em; color: var(--ink); }

.nav { position: sticky; top: 0; z-index: var(--z-sticky); transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.nav__inner { display: flex; align-items: center; gap: 20px; max-width: 1120px; margin-inline: auto; padding: 14px clamp(20px, 5vw, 40px); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: 24px; }
.nav.is-stuck { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.01); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ───────────── Hero ───────────── */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 92px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.55rem, 5vw, 3.55rem); line-height: 1.04; letter-spacing: -.02em;
  max-width: 15ch; color: var(--ink); text-wrap: balance;
}
.hero__sub {
  margin-top: 22px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6; color: var(--ink-soft); text-wrap: balance;
}
.hero__cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.microtrust { font-size: 13.5px; color: var(--ink-faint); letter-spacing: .01em; }

@media (max-width: 1080px) {
  .hero__title { font-size: clamp(2.5rem, 5vw, 3.35rem); }
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__sub { max-width: 46ch; }
  .hero__cta { align-items: flex-start; }
}

/* ── Hero live demo: hover → Save → lands on board ── */
.browser {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: #fbfaf7; border-bottom: 1px solid var(--line-soft);
}
.browser__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #e0dccf; }
.browser__bar .dot:nth-child(1) { background: #e7b9a3; }
.browser__url {
  margin-left: 10px; font-size: 12px; color: var(--ink-faint);
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-pill);
  padding: 4px 12px; flex: 1; max-width: 240px;
}

.demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(160px, .9fr);
  grid-template-rows: minmax(0, 1fr);   /* lock the row to the fixed height so a tall column can't grow it and clip the thumbnails */
  gap: 16px;
  padding: 16px;
  height: 400px;
}

.demo__web { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.demo__shot { position: relative; flex: 1; min-height: 0; border-radius: var(--r-md); overflow: hidden; background: var(--cream-deep); }
.demo__shot img { width: 100%; height: 100%; object-fit: cover; }
.demo__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 84px; }
.demo__thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; opacity: .8; }

/* Real Moodly save control: white split pill [ Save | ▾ ], dark when saved */
.msave {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  display: inline-flex; align-items: stretch;
  border-radius: var(--r-pill); box-shadow: 0 2px 10px rgba(0,0,0,.28);
  font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; letter-spacing: -.01em;
}
.msave__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; color: #1a1a1a; border: none; cursor: pointer;
  border-radius: var(--r-pill) 0 0 var(--r-pill); padding: 7px 12px 7px 11px; line-height: 1;
}
.msave__caret {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #1a1a1a; border: none; border-left: 1px solid rgba(0,0,0,.12);
  border-radius: 0 var(--r-pill) var(--r-pill) 0; padding: 0 8px; cursor: pointer;
}
.msave__ico { flex-shrink: 0; }
.msave__t { display: inline-flex; align-items: center; gap: 4px; }
.msave__t--saved { position: absolute; inset: 0; justify-content: center; opacity: 0; }
.msave--static .msave__t--saved { display: none; }

/* real logo lockup */
.brand__logo { height: 26px; width: auto; display: block; }
.brand__logo--foot { height: 22px; }

.cursor { position: absolute; left: 30%; top: 60%; z-index: 8; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); pointer-events: none; }

.demo__board {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden;
}
.demo__board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; margin-bottom: 10px; }
.demo__board-title { font-weight: 600; font-size: 13px; }
.demo__count { min-width: 28px; text-align: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: 3px 8px; }
.demo__masonry {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  min-height: 0;
}
.demo__masonry img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; margin: 0; min-width: 0; }
.demo__new { transform-origin: top center; }

.flyer { position: absolute; width: 74px; aspect-ratio: 1.2; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.3); opacity: 0; z-index: 5; pointer-events: none; }

/* Toast (matches the extension's dark toast with green check) */
.mtoast {
  position: absolute; right: 16px; bottom: 12px; z-index: 7;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(50% - 26px);
  background: #1a1a1a; color: #fff; font-size: 11.5px; font-weight: 650;
  padding: 8px 11px; border-radius: 11px; box-shadow: 0 8px 26px rgba(0,0,0,.3);
  opacity: 0; transform: translateX(16px) scale(.96);
  white-space: nowrap;
}
.mtoast__i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #4ade80; color: #06301a; flex-shrink: 0; }

/* Animated state — only when motion is allowed (added on <html> by JS) */
.motion .demo .demo__new { transform: scale(0); }
.motion .demo .cursor { animation: cursorPath 7s var(--ease-out-soft) infinite; }
.motion .demo .msave__btn { animation: saveFlip 7s ease infinite; }
.motion .demo .msave__caret { animation: caretFlip 7s ease infinite; }
.motion .demo .msave__ico,
.motion .demo .msave__t--save { animation: labelOut 7s ease infinite; }
.motion .demo .msave__t--saved { animation: labelIn 7s ease infinite; }
.motion .demo .flyer { animation: fly 7s var(--ease-out-soft) infinite; }
.motion .demo .demo__new { animation: tilePop 7s var(--ease-out) infinite; }
.motion .demo .mtoast { animation: toastIn 7s var(--ease-out) infinite; }

@keyframes saveFlip {
  0%, 30%   { background: #fff; color: #1a1a1a; }
  34%, 88%  { background: #1a1a1a; color: #fff; }
  92%, 100% { background: #fff; color: #1a1a1a; }
}
@keyframes caretFlip {
  0%, 30%   { background: #fff; border-left-color: rgba(0,0,0,.12); color: #1a1a1a; }
  34%, 88%  { background: #1a1a1a; border-left-color: rgba(255,255,255,0); color: #1a1a1a; }
  92%, 100% { background: #fff; border-left-color: rgba(0,0,0,.12); color: #1a1a1a; }
}
@keyframes labelOut { 0%, 30% { opacity: 1; } 34%, 88% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes labelIn  { 0%, 30% { opacity: 0; } 34%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes toastIn {
  0%, 30%   { opacity: 0; transform: translateX(16px) scale(.96); }
  37%, 82%  { opacity: 1; transform: translateX(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateX(16px) scale(.96); }
}

@keyframes cursorPath {
  0%   { left: 22%; top: 58%; }
  18%  { left: 74%; top: 8%; }             /* arrive on the Save button */
  26%  { left: 74%; top: 8%; }
  30%  { left: 73%; top: 10%; }            /* click dip */
  34%  { left: 74%; top: 8%; }
  60%  { left: 90%; top: 40%; }            /* drift away after saving */
  100% { left: 22%; top: 58%; }
}
@keyframes fly {
  0%, 32%  { opacity: 0; left: 30%; top: 16%; transform: scale(1); }
  36%      { opacity: 1; left: 30%; top: 16%; transform: scale(1); }
  52%      { opacity: 1; left: 74%; top: 60%; transform: scale(.5); }
  58%      { opacity: 0; left: 76%; top: 62%; transform: scale(.4); }
  100%     { opacity: 0; }
}
@keyframes tilePop {
  0%, 52%  { transform: scale(0); opacity: 0; }
  60%      { transform: scale(1.06); opacity: 1; }
  66%      { transform: scale(1); }
  100%     { transform: scale(1); opacity: 1; }
}

@media (max-width: 880px) { .demo { height: 340px; } .hero__title { max-width: 12ch; } }
@media (max-width: 520px) {
  .demo { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .demo__board { order: -1; min-height: 230px; }
  .demo__masonry { min-height: 174px; }
  .motion .demo .cursor, .motion .demo .flyer, .motion .demo .mtoast { display: none; }
  .motion .demo .msave__btn, .motion .demo .msave__caret,
  .motion .demo .msave__ico, .motion .demo .msave__t--save { animation: none; }
  .motion .demo .msave__t--saved { animation: none; opacity: 0; }
  .motion .demo .demo__new { transform: scale(1); opacity: 1; animation: none; }
}

/* ───────────── Trust strip ───────────── */
.strip { border-block: 1px solid var(--line-soft); background: #fcfbf8; }
.strip__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 26px; padding: 22px 0; }
.strip__lead { font-size: 13.5px; color: var(--ink-faint); font-weight: 500; }
.strip__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 0; }
.strip__logos li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.strip__logos svg { color: var(--ink); opacity: .82; }
.strip__logos img { width: 20px; height: 20px; opacity: .9; }
.strip__any { color: var(--accent) !important; }
.strip__any svg { color: var(--accent); opacity: 1; }

/* ───────────── Features (full-bleed alternating screenshots) ───────────── */
.features { padding: 0; overflow-x: clip; }
.feature {
  --edge: max(20px, calc(50vw - 560px));   /* viewport edge → 1120px content column */
  --text: minmax(0, 460px);
  display: grid;
  align-items: center;
  column-gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) 0;
  position: relative;
  overflow-x: clip;                         /* clip the bleeding screenshot, keep vertical visible */
}
.feature + .feature { border-top: 1px solid var(--line-soft); }

.feature--imgright { grid-template-columns: var(--edge) var(--text) 1fr; }
.feature--imgright .feature__text   { grid-column: 2; }
.feature--imgright .feature__visual { grid-column: 3; }

.feature--imgleft { grid-template-columns: 1fr var(--text) var(--edge); }
.feature--imgleft .feature__visual { grid-column: 1; }
.feature--imgleft .feature__text   { grid-column: 2; }

.feature--organize {
  min-height: 0;
  padding-top: 80px;
  padding-bottom: 0;
  align-items: center;
}
.feature--organize .feature__visual {
  align-self: end;
  overflow: visible;
}
.feature--organize .shot {
  width: clamp(640px, 58vw, 900px);
  max-width: none;
  transform: translateX(-8vw);
}

.feature--links {
  min-height: 0;
  padding-top: 80px;
  padding-bottom: 0;
  align-items: center;
}
.feature--links .feature__visual {
  align-self: end;
  overflow: visible;
}
.feature--links .shot {
  width: clamp(640px, 58vw, 900px);
  max-width: none;
  transform: translateX(8vw);
}

.feature__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.feature__body { margin-top: 16px; max-width: 42ch; color: var(--ink-soft); font-size: 1.0625rem; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; color: var(--accent-deep);
  background: var(--accent-tint); border-radius: var(--r-pill); padding: 5px 12px;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* the bleeding product screenshots (own shadows baked into the PNGs) */
.feature__visual { display: flex; align-items: center; min-width: 0; }
.bleed-right { justify-content: flex-start; }
.bleed-left  { justify-content: flex-end; }
.shot { flex: none; height: auto; display: block; width: clamp(520px, 56vw, 840px); }

/* Feature 1 — image flush to the section's top & bottom edges (desktop) */
@media (min-width: 861px) {
  .feature--flush { padding-block: 0; }
}

/* Feature 4 — export window bleeds left; text + iPad stack in the right column */
.feature--figma {
  grid-template-columns: 1fr minmax(0, 540px) var(--edge);
  padding-top: 80px;
  padding-bottom: 0;
  align-items: start;
}
.feature--figma .feature__visual {
  grid-column: 1;
  align-self: start;
  overflow: visible;
}
.feature--figma .feature__visual .shot {
  width: clamp(640px, 58vw, 900px);
  max-width: none;
  transform: translateX(-8vw);
}
.feature--figma .feature__right {
  grid-column: 2; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px);
  align-self: start;
  padding-block: 0;
}
.shot--ipad {
  width: clamp(220px, 26vw, 360px); height: auto; align-self: flex-start;
  transform: translateX(-24px);
  filter: drop-shadow(0 26px 44px rgba(43,42,40,.24));
}

@media (max-width: 860px) {
  .feature,
  .feature--imgright, .feature--imgleft, .feature--figma {
    grid-template-columns: 1fr; gap: 26px; padding: 52px 0;
    padding-inline: clamp(20px, 5vw, 40px);
  }
  .feature__text, .feature__visual { grid-column: 1 !important; }
  .feature--organize { min-height: 0; padding-bottom: 52px; }
  .feature--organize .shot { width: min(112%, 600px); max-width: 100%; transform: none; }
  .feature--links { min-height: 0; padding-bottom: 52px; }
  .feature--links .shot { width: min(112%, 600px); max-width: 100%; transform: none; }
  .feature--figma .feature__visual .shot { width: min(112%, 600px); max-width: 100%; transform: none; }
  .feature--figma .feature__right { padding-block: 0; }
  .feature--imgleft .feature__visual,
  .feature--imgright .feature__visual,
  .feature--figma .feature__visual { order: -1; }     /* image above text */
  .bleed-right, .bleed-left { justify-content: center; }
  .shot { width: min(112%, 600px); }
  .shot--ipad { position: static; width: min(62%, 300px); margin-top: 16px; align-self: flex-start; transform: none; }
}

/* ───────────── How it works ───────────── */
.how {
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), transparent 18%, transparent 82%, rgba(255,255,255,.38)),
    linear-gradient(90deg, rgba(110,111,74,.08) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--cream);
  border-block: 1px solid var(--line);
  padding: clamp(72px, 10vw, 124px) 0;
  overflow: hidden;
}
.how__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}
.how__intro {
  position: relative;
  z-index: var(--z-base);
}
.how__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(110,111,74,.16);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.how__label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(243,155,120,.16);
}
.how__title {
  max-width: 18ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.how__lede {
  margin-top: 22px;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.62;
}
.how__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }

.steps {
  position: relative;
  z-index: var(--z-base);
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  isolation: isolate;
}
.steps::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(180deg, var(--coral), var(--accent) 78%);
  opacity: .72;
  box-shadow: 0 0 0 5px rgba(242,238,230,.82);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 88px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 18px 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,253,248,.9)),
    #fff;
  border: 1px solid rgba(110,111,74,.24);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 1px 2px rgba(43,42,40,.04),
    0 26px 52px -34px rgba(43,42,40,.38);
  transition: transform .22s var(--ease-out), box-shadow .22s ease, border-color .22s ease;
}
.step::after {
  content: "";
  position: absolute;
  inset: 8px 10px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,111,74,.18), transparent);
}
.step:nth-child(2) {
  transform: translateX(28px);
  border-color: rgba(243,155,120,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 1px 2px rgba(43,42,40,.04),
    0 30px 58px -34px rgba(111,74,48,.42);
}
.step:nth-child(3) { transform: translateX(56px); }
.step:hover {
  border-color: rgba(110,111,74,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 2px 6px rgba(43,42,40,.05),
    0 30px 60px -36px rgba(43,42,40,.42);
}
.step__n {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--cream), inset 0 1px 0 rgba(255,255,255,.2);
}
.step__icon {
  position: relative;
  width: 88px;
  height: 72px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(242,238,230,.9)),
    #f8f5ed;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 20px -18px rgba(43,42,40,.5);
}
.step__icon--install {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  grid-template-rows: repeat(2, 18px);
  place-content: center;
  gap: 4px;
}
.step__icon--install span { border-radius: 4px; background: var(--ink); }
.step__icon--install span:nth-child(2) { background: var(--coral); }
.step__icon--install span:nth-child(3) { background: #8f9478; }
.step__icon--install span:nth-child(4) { background: var(--line); }
.step__icon--save::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c7d8ce, #f5b26f 55%, #6e6f4a);
}
.step__mini-photo {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 42px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.58);
}
.step__save-pill {
  position: absolute;
  right: 8px;
  top: 10px;
  border-radius: var(--r-pill);
  padding: 5px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(43,42,40,.22);
}
.step__save-pill::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--coral);
  vertical-align: 1px;
}
.step__icon--board {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 10px;
}
.step__icon--board span {
  border-radius: 7px;
  background: #d6d1c2;
}
.step__icon--board span:nth-child(1) { grid-row: span 2; background: #a99a80; }
.step__icon--board span:nth-child(2) { background: var(--coral); }
.step__icon--board span:nth-child(3) { background: var(--accent); }
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 5px; letter-spacing: 0; }
.step p { max-width: 34ch; font-size: .98rem; color: var(--ink-soft); line-height: 1.55; text-wrap: pretty; }
@media (max-width: 860px) {
  .how__layout { grid-template-columns: 1fr; gap: 36px; }
  .step:nth-child(2),
  .step:nth-child(3) { transform: none; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 42px 1fr; }
  .step__icon { grid-column: 2; width: 100%; max-width: 180px; }
  .steps::before { left: 36px; }
}

/* ───────────── Privacy ───────────── */
.privacy { padding: clamp(64px, 9vw, 110px) 0; }
.privacy__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.privacy__icon { display: grid; place-items: center; }
.privacy__text h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 14px; text-wrap: balance; }
.privacy__text p { max-width: 56ch; color: var(--ink-soft); margin-inline: auto; }
.link { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; border-bottom: 1.5px solid var(--accent-tint); transition: border-color .15s ease; }
.link:hover { border-bottom-color: var(--accent); }
@media (max-width: 680px) { .privacy__icon svg { width: 88px; height: 88px; } }

/* ───────────── FAQ ───────────── */
.faq { padding: 0 0 clamp(64px, 9vw, 110px); }
.faq__wrap { max-width: 760px; }
.faq__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.faq__list { display: flex; flex-direction: column; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-size: 1.08rem; font-weight: 600; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__i { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.qa__i::before, .qa__i::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s ease; }
.qa__i::before { left: 0; top: 7px; width: 16px; height: 2px; }
.qa__i::after { left: 7px; top: 0; width: 2px; height: 16px; }
.qa[open] .qa__i::after { transform: scaleY(0); opacity: 0; }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 4px 22px; max-width: 62ch; color: var(--ink-soft); }
.qa[open] summary { color: var(--accent-deep); }

/* ───────────── Closing CTA (olive drench) ───────────── */
.closing { background: var(--accent); color: #fff; padding: clamp(72px, 11vw, 130px) 0; position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(243,155,120,.28), transparent); pointer-events: none; }
.closing__inner { text-align: center; position: relative; }
.closing__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.closing__sub { margin: 18px auto 32px; max-width: 42ch; color: rgba(255,255,255,.92); font-size: 1.1rem; }
.microtrust--light { color: rgba(255,255,255,.92); margin-top: 16px; }
.closing .btn--cream { box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }

/* ───────────── Footer ───────────── */
.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot__inner { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.brand--foot .brand__word { font-size: 18px; }
.foot__links { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.foot__links a { font-size: 14px; color: var(--ink-soft); transition: color .15s ease; }
.foot__links a:hover { color: var(--ink); }
.foot__copy { font-size: 13px; color: var(--ink-faint); width: 100%; margin-top: 4px; }
@media (min-width: 640px) { .foot__copy { width: auto; margin-top: 0; } }

/* ───────────── Scroll reveal (enhances an already-visible default) ───────────── */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .steps .step { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal, .motion .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .motion .demo * { animation: none !important; }
  .motion .demo .msave__t--saved { opacity: 0; }
  .motion .demo .demo__new { transform: scale(1); opacity: 1; }
  .motion .demo .flyer, .motion .demo .cursor, .motion .demo .mtoast { display: none; }
  * { scroll-behavior: auto !important; }
}

/* Wider content column on large displays (placed last so it overrides base widths) */
@media (min-width: 1500px) {
  .wrap, .nav__inner { max-width: 1320px; }
  .feature { --edge: max(20px, calc(50vw - 660px)); }  /* match 1320px column */
}
