/* ==========================================================================
   1. Self-Hosted Manrope Font (Variable 400-700)
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-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;
}

/* ==========================================================================
   2. Design Tokens & Variables
   ========================================================================== */

:root {
  /* Typography */
  --font-family: "Manrope", sans-serif;

  /* Colors */
  --color-primary: #20201f;
  --color-secondary: #38613f;
  --color-text-muted: #4e4d49;
  --color-background: #f7f4ee;
  --color-surface: #f7f3ec;
  --color-surface-alt: #eee9df;
  --color-surface-soft: #dfe4d9;
  --color-border: rgba(32, 32, 31, 0.12);
  --color-on-dark: #fffdfa;

  /* Radius scale */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-lg: 0 24px 80px rgba(44, 41, 34, 0.13);

  /* Backward-compatible aliases */
  --ink: var(--color-primary);
  --muted: var(--color-text-muted);
  --paper: var(--color-background);
  --paper-2: var(--color-surface-alt);
  --white: var(--color-surface);
  --line: var(--color-border);
  --accent: var(--color-secondary);
  --soft: var(--color-surface-soft);
  --radius: var(--radius-xl);
  --shadow: var(--shadow-lg);
}

/* ==========================================================================
   3. Base Reset & Structure
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-family);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.nav {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 50;
  width: min(1210px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(46, 42, 35, 0.07);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 700 21px/1 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 38px;
  height: 38px;
}

.brand-dot,
.eyebrow,
.step-num {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  color: #55534e;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  background: #2d4e33;
  border-color: #2d4e33;
  box-shadow: 0 10px 25px rgba(56, 97, 63, 0.3);
}

.btn.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn.btn-accent:hover {
  background: #2d4e33;
  border-color: #2d4e33;
  box-shadow: 0 10px 25px rgba(56, 97, 63, 0.3);
}

.btn.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.btn.btn-dark:hover {
  background: #2e2e2d;
  border-color: #2e2e2d;
  box-shadow: 0 10px 25px rgba(32, 32, 31, 0.15);
}

.btn.light {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.light:hover {
  background: rgba(32, 32, 31, 0.04);
  border-color: var(--ink);
}

/* Mobile Hamburger Menu */
.menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5.5px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
  z-index: 60;
}

.menu:hover {
  background: rgba(32, 32, 31, 0.06);
}

.menu-line {
  display: block;
  width: 24px;
  height: 2.2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
  transform-origin: center;
}

.menu.is-open .menu-line:nth-child(1) {
  transform: translateY(7.7px) rotate(45deg);
}

.menu.is-open .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu.is-open .menu-line:nth-child(3) {
  transform: translateY(-7.7px) rotate(-45deg);
}

/* ==========================================================================
   Typography & Shared Section Styles
   ========================================================================== */

.eyebrow {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-family);
  margin: 0;
  letter-spacing: -0.045em;
  color: var(--ink);
}

h1 {
  font-size: clamp(58px, 7.4vw, 84px);
  line-height: 0.98;
  font-weight: 600;
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.18;
}

section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-head p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.55;
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  padding: 150px 0 90px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-top: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p {
  max-width: 560px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 22px;
  color: #55534e;
  font-size: 13px;
}

.phone-stage {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: #e4dfd2;
  filter: blur(1px);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(325px, 77vw);
  border-radius: 48px;
  transform: rotate(2.5deg);
}

.phone img {
  width: 100%;
}

.float-note {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 105px;
  width: 220px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 18px 50px rgba(45, 40, 32, 0.14);
  font-size: 14px;
}

.float-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-family);
  color: var(--ink);
}

/* ==========================================================================
   2. Why Yutova Section
   ========================================================================== */

.why-yutova {
  background: var(--paper);
  text-align: center;
}

.why-yutova-content {
  max-width: 820px;
  margin: 0 auto;
}

.why-yutova h2 {
  max-width: 740px;
  margin: 0 auto 52px;
}

.why-thread-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 48px;
  max-width: 760px;
  flex-wrap: wrap;
}

.why-thread-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  color: #4a4945;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(44, 41, 34, 0.03);
  max-width: 100%;
}

.why-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.why-entry-label {
  text-align: left;
  line-height: 1.35;
}

.why-thread-connector {
  width: 24px;
  height: 1.5px;
  background: repeating-linear-gradient(to right,
      var(--accent) 0 4px,
      transparent 4px 8px);
}

.why-summary {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 10px;
}

.why-individual {
  color: #55534e;
  font-size: 17px;
  margin: 0 0 8px;
}

.why-connected {
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   3. How Yutova Works Section
   ========================================================================== */

.how-works {
  background: var(--white);
}

.steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(44, 41, 34, 0.06);
}

.step-flow-arrow {
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  opacity: 0.6;
  user-select: none;
}

.step-num {
  font: 700 13.5px "Manrope";
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.step-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 600;
}

.step-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.how-cta-wrap {
  text-align: center;
}

/* ==========================================================================
   4. Reflection Demo Section
   ========================================================================== */

.reflection-demo {
  background: var(--paper);
  text-align: center;
}

.reflection-demo-heading {
  max-width: 650px;
  margin: 0 auto 48px;
}

.reflection-demo-heading h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.25;
}

.reflection-demo-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17.5px;
}

.reflection-demo-phone {
  width: min(100%, 480px);
  height: 540px;
  margin: 0 auto;
  padding: 30px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 44px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(43, 42, 38, 0.18);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.reflection-demo-notch {
  width: 124px;
  height: 8px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #e5e0d6;
  flex-shrink: 0;
}

.reflection-demo-date {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  flex-shrink: 0;
}

.reflection-demo-entry,
.reflection-demo-response {
  padding: 22px 24px;
  border-radius: 20px;
  font-size: 17.5px;
  line-height: 1.5;
}

.reflection-demo-entry {
  height: 106px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: #f7f3ec;
  flex-shrink: 0;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  margin-left: 3px;
  background: var(--ink);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}

.reflection-demo-response {
  height: 246px;
  border: 1px solid #dce2d3;
  background: #eff1ea;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reflection-demo-response.show {
  opacity: 1;
  transform: translateY(0);
}

.reflection-demo-response span {
  display: block;
  margin-bottom: 12px;
  color: #5b6a54;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reflection-demo-response p {
  margin: 0;
}

.reflection-demo-caption {
  max-width: 620px;
  margin: 44px auto 28px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.reflection-demo-caption strong {
  color: var(--ink);
}

.demo-cta-wrap {
  text-align: center;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ==========================================================================
   Background Image Sections (#1, #2, #3, #4)
   ========================================================================== */

.bg-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fffdfa;
  border-top: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 600px;
  max-height: 880px;
  padding: 80px 0;
}

.bg-section::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(24, 28, 25, 0.82) 0%,
      rgba(24, 28, 25, 0.58) 55%,
      rgba(24, 28, 25, 0.22) 100%);
  content: "";
  z-index: 1;
}

.bg-section .wrap {
  position: relative;
  z-index: 2;
}

.bg-section-copy {
  max-width: 640px;
}

.bg-section .eyebrow {
  color: #d1dcce;
}

.bg-section h2 {
  color: #fffdfa;
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.bg-section p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 253, 250, 0.88);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.bg-action {
  margin-top: 32px;
}

/* BG #0: When Something Is On Your Mind */
.bg-section-0 {
  background-image: url("../assets/bg0.webp");
  background-position: center 40%;
}

/* BG #1: Emotional Pause */
.bg-section-1 {
  background-image: url("../assets/bg1.webp");
  background-position: center 35%;
}

/* BG #2: Lifestyle / Habit */
.bg-section-2 {
  background-image: url("../assets/bg2.webp");
  background-position: center 45%;
}

/* BG #3: Space to Notice */
.bg-section-3 {
  background-image: url("../assets/bg3.webp");
  background-position: center 50%;
}

.bg-section-3::before {
  background: linear-gradient(90deg,
      rgba(30, 32, 28, 0.80) 0%,
      rgba(30, 32, 28, 0.48) 60%,
      rgba(30, 32, 28, 0.15) 100%);
}

/* BG #4: Final Conversion CTA */
.bg-section-4 {
  background-image: url("../assets/bg4.webp");
  background-position: center 40%;
}

.final-cta-copy {
  max-width: 680px;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.final-cta-subline {
  color: rgba(255, 253, 250, 0.75);
  font-size: 14px;
}

.final-platform-badges {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.platform-badge {
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.platform-badge-active {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fffdfa;
}

.platform-badge-muted {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 253, 250, 0.6);
}

/* ==========================================================================
   6. Memory & Patterns Section
   ========================================================================== */

.memory-section {
  background: var(--white);
}

.memory-section .wrap {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.memory-section-head {
  max-width: 590px;
  margin: 0 auto 60px;
  text-align: center;
}

.memory-section-head h2 {
  margin-bottom: 16px;
}

.memory-section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.memory-thread {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 10px 0 0;
  margin-bottom: 44px;
}

.memory-thread::before {
  position: absolute;
  top: 19px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: repeating-linear-gradient(to right,
      var(--line) 0 6px,
      transparent 6px 12px);
  content: "";
}

.memory-thread-node {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 8px;
  text-align: center;
}

.memory-node-dot {
  width: 19px;
  height: 19px;
  margin: 0 auto 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.memory-node-date {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.memory-node-entry {
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.45;
}

.memory-thread-node.is-current .memory-node-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(106, 143, 112, 0.16);
}

.memory-thread-node.is-current .memory-node-entry {
  font-weight: 600;
}

.memory-insight {
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.memory-insight span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-insight p {
  margin: 0;
  line-height: 1.65;
  font-size: 15.5px;
}

/* ==========================================================================
   7. Inside Yutova Showcase
   ========================================================================== */

.showcase {
  background: #20201f;
  color: white;
  overflow: hidden;
}

.showcase h2 {
  color: white;
}

.showcase .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.showcase .section-head .eyebrow {
  color: #dfe4d9;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.tab {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 500;
  font-size: 14.5px;
  transition: all 0.25s ease;
}

.tab:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.tab.active {
  background: white;
  color: var(--ink);
  border-color: white;
  font-weight: 600;
}

.showcase-stage {
  min-height: 700px;
  border-radius: 34px;
  background: #282826;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.showcase-stage::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: #383f36;
}

.showcase-phone {
  position: relative;
  width: 320px;
  border-radius: 44px;
  transition: 0.35s ease;
}

.showcase-phone img {
  border-radius: 36px;
}

.showcase-cta {
  text-align: center;
  margin-top: 36px;
}

.showcase-cta .btn.light {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.showcase-cta .btn.light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ==========================================================================
   9. Features Grid
   ========================================================================== */

.features-section {
  background: var(--paper);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(44, 41, 34, 0.05);
}

.feature-icon {
  display: block;
  width: 34px;
  height: 34px;
  background-color: var(--accent);
  mask: var(--feature-icon) center / contain no-repeat;
  -webkit-mask: var(--feature-icon) center / contain no-repeat;
  margin-bottom: 24px;
}

.feature-icon-reflections {
  --feature-icon: url("../assets/icons/reflections.svg");
}

.feature-icon-voice {
  --feature-icon: url("../assets/icons/voice.svg");
}

.feature-icon-insights {
  --feature-icon: url("../assets/icons/insights.svg");
}

.feature-icon-pattern,
.feature-icon-memory {
  --feature-icon: url("../assets/icons/pattern-memory.svg");
}

.feature-icon-journal {
  --feature-icon: url("../assets/icons/journal.svg");
}

.feature-icon-library {
  --feature-icon: url("../assets/icons/library.svg");
}

.feature h3 {
  font-size: 21px;
  margin: 0 0 8px;
  font-weight: 600;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

/* ==========================================================================
   10. Library Section
   ========================================================================== */

.library {
  background: var(--paper-2);
  overflow: hidden;
}

.library-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 6px 0 16px;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%);
}

.library-blur-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 3;
  pointer-events: none;
}

.library-blur-left {
  left: 0;
  background: linear-gradient(to right, var(--paper-2) 0%, rgba(238, 233, 223, 0.6) 50%, transparent 100%);
}

.library-blur-right {
  right: 0;
  background: linear-gradient(to left, var(--paper-2) 0%, rgba(238, 233, 223, 0.6) 50%, transparent 100%);
}

.library-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: libraryMarquee 38s linear infinite;
  will-change: transform;
}

.library-marquee:hover .library-track {
  animation-play-state: paused;
}

@keyframes libraryMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.library-card {
  width: 377px;
  min-height: 490px;
  padding: 28px 24px 20px;
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(44, 41, 34, 0.04);
}

.library-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
  font-weight: 600;
}

.library-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.library-card .phone {
  width: 190px;
  margin: auto auto 0;
  text-align: center;
  transform: rotate(0);
}

.library-card .phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   12. Privacy & Trust Section
   ========================================================================== */

.privacy {
  text-align: center;
}

.privacy-card {
  background: var(--ink);
  color: var(--color-on-dark);
  border-radius: var(--radius-2xl);
  padding: 86px 48px;
  text-align: center;
}

.privacy-card .eyebrow {
  color: #a5cca9;
  margin-bottom: 22px;
}

.privacy-card h2 {
  font-family: var(--font-family);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fffdfa;
  max-width: 720px;
  margin: 0 auto;
}

.privacy-lead {
  max-width: 680px;
  margin: 26px auto 0;
  color: rgba(255, 253, 250, 0.76);
  font-size: 17px;
  line-height: 1.55;
}

.privacy-disclaimer {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(255, 253, 250, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.privacy-footer-note {
  max-width: 680px;
  margin: 36px auto 0;
  color: rgba(255, 253, 250, 0.36);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-footer-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-footer-note a:hover {
  color: rgba(255, 253, 250, 0.65);
}

/* ==========================================================================
   13. Social Proof Section
   ========================================================================== */

.social-proof {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid #2f2f2d;
}

.social-proof .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.social-proof-stat {
  flex: 0 0 auto;
}

.social-proof-number {
  font-family: var(--font-family);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: 1;
}

.social-proof-label {
  margin-top: 10px;
  color: rgba(247, 244, 238, 0.72);
  font-size: 14px;
}

.social-proof-quote {
  max-width: 580px;
  margin: 0;
}

.quote-eyebrow {
  color: #a5cca9;
  margin-bottom: 12px;
}

.social-proof-quote p {
  margin: 0;
  font-family: var(--font-family);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 400;
  line-height: 1.45;
  color: #fffdfa;
}

.social-proof-quote footer {
  border: 0;
  padding: 0;
  margin-top: 16px;
  color: rgba(247, 244, 238, 0.82);
  font-size: 14px;
  background: none;
}

/* ==========================================================================
   14. Pricing Section
   ========================================================================== */

.pricing-section-head {
  max-width: 550px;
  margin: 0 auto 54px;
  text-align: center;
}

.pricing-section-head .eyebrow {
  margin-bottom: 18px;
}

.pricing-section-head h2 {
  font-family: var(--font-family);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.pricing-section-head p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1060px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-card-featured {
  background: #e8eee4;
  border-color: var(--accent);
  box-shadow: 0 12px 30px -14px rgba(76, 90, 71, 0.28);
}

.pricing-save-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font: 700 12px var(--font-family);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(20, 114, 92, 0.28);
  z-index: 2;
}

.pricing-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  min-height: 26px;
}

.pricing-amount {
  margin: 12px 0 2px;
  font-family: var(--font-family);
  font-size: 38px;
  line-height: 1;
}

.pricing-subprice {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  min-height: 18px;
  line-height: 1.4;
}

.pricing-period {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-family);
  font-size: 14px;
}

.pricing-description {
  min-height: 42px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-card ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.pricing-card li::before {
  color: var(--muted);
  content: "—";
  flex-shrink: 0;
  line-height: 1.45;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-action {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-action .btn {
  width: 100%;
}

.pricing-trial-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  min-height: 17px;
}

.pricing-card-featured .pricing-trial-note {
  color: #3b5a3f;
  font-weight: 500;
}

.pricing-card-featured .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pricing-card-featured .btn:hover {
  background: #5b7d60;
  border-color: #5b7d60;
  box-shadow: 0 10px 25px rgba(106, 143, 112, 0.35);
}

/* ==========================================================================
   15. FAQ Section
   ========================================================================== */

.faq-section {
  background: var(--white);
}

.faq-accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item[open] {
  background: var(--white);
  border-color: #cfc8be;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s ease;
  margin-left: 16px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

footer {
  padding: 60px 0 50px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand-col {
  max-width: 260px;
}

.footer-copy {
  margin-top: 16px;
  color: #4a4945;
  font-size: 13.5px;
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-col a {
  color: #4a4945;
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-subtext {
  color: #4a4945;
  font-size: 13.5px;
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    padding: 24px 20px;
    background: var(--white);
    border-radius: 20px;
    flex-direction: column;
    gap: 18px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 16px 40px rgba(46, 42, 35, 0.14);
    border: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .menu {
    display: inline-flex;
  }

  .nav>.btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-flow-arrow {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .social-proof .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 36px;
  }

  .footer-links-group {
    flex-wrap: wrap;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 50px, 1180px);
  }

  section {
    padding: 84px 0;
  }

  .hero {
    padding-top: 115px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .why-thread-visual {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .why-thread-step {
    padding: 9px 15px;
    font-size: 13px;
    border-radius: 24px;
    max-width: 100%;
  }

  .why-thread-connector {
    width: 1.5px;
    height: 16px;
    background: repeating-linear-gradient(to bottom,
        var(--accent) 0 4px,
        transparent 4px 8px);
  }

  .phone-stage {
    min-height: 520px;
  }

  .float-note {
    bottom: 40px;
    left: 4%;
    width: 190px;
    padding: 14px 16px;
  }

  .reflection-demo-phone {
    height: 500px;
    padding: 22px 18px 28px;
  }

  .reflection-demo-entry {
    height: 94px;
    padding: 16px 18px;
    font-size: 16px;
    margin-bottom: 16px;
  }

  .reflection-demo-response {
    height: 255px;
    padding: 18px 20px;
    font-size: 16px;
  }

  .library-card {
    width: min(80vw, 290px);
    min-height: 420px;
    padding: 20px 18px 16px;
    border-radius: 20px;
  }

  .library-card h3 {
    font-size: 18px;
  }

  .library-card p {
    font-size: 13px;
    margin: 6px 0 12px;
  }

  .library-card .phone {
    width: 150px;
  }

  .library-track {
    gap: 16px;
    animation-duration: 26s;
  }

  .bg-section {
    min-height: clamp(440px, 56vh, 540px);
    padding: 70px 0;
  }

  .bg-section-0 {
    background-image: url("../assets/bg0-mobile.webp");
  }

  .bg-section-1 {
    background-image: url("../assets/bg1-mobile.webp");
  }

  .bg-section-2 {
    background-image: url("../assets/bg2-mobile.webp");
  }

  .bg-section-3 {
    background-image: url("../assets/bg3-mobile.webp");
  }

  .bg-section-4 {
    background-image: url("../assets/bg4-mobile.webp");
  }

  .bg-section h2 {
    font-size: 34px;
  }

  .bg-section::before {
    background: rgba(24, 28, 25, 0.72);
  }

  .memory-thread {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 4px 14px;
    margin-bottom: 30px;
  }

  .memory-thread::-webkit-scrollbar {
    display: none;
  }

  .memory-thread-node {
    flex: 0 0 135px;
    min-width: 135px;
  }

  .memory-thread::before {
    top: 19px;
    left: 42px;
    right: auto;
    width: calc(135px * 3);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    padding: 50px 24px;
    border-radius: 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px 20px;
    font-size: 14.5px;
  }
}

/* ==========================================================================
   Coming Soon Modal
   ========================================================================== */

.coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.coming-soon-modal[hidden] {
  display: none;
}

.coming-soon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 31, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.coming-soon-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.coming-soon-dialog .eyebrow {
  margin-bottom: 8px;
}

.coming-soon-dialog h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
}

.coming-soon-dialog p {
  margin: 0 0 24px;
  color: var(--muted);
}

.coming-soon-dialog .btn {
  min-width: 140px;
}

.coming-soon-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.coming-soon-close:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}