/* ===========================================================
   within — beautifully, alive
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Lato:wght@300;400;700;900&display=swap');

:root {
  /* Brand */
  --w-navy:     #354252;
  --w-navy-700: #2a3542;
  --w-navy-900: #1c242e;
  --w-mint:     #06c6a8;
  --w-mint-600: #04a88f;
  --w-mint-50:  #e6f9f5;
  --w-mint-100: #c6f0e6;

  /* Neutrals — warm slate; not Future-Tales cool */
  --w-cream:    #f7f4ee;
  --w-paper:    #fbf9f4;
  --w-bone:     #f1ece3;
  --w-ink:      #2a3542;
  --w-ink-2:    #5b6877;
  --w-ink-3:    #8a95a3;
  --w-line:     #e6e0d4;
  --w-line-2:   #d8d1c2;

  /* Type */
  --font-display: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Lato', ui-sans-serif, system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--w-ink);
  background: var(--w-paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== TYPE ========== */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--w-ink);
  margin: 0;
}
.h1 { font-size: clamp(46px, 8vw, 124px); }
.h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
.h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 500; }
.h4 { font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-mint-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--w-mint);
  border-radius: 50%;
}

.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--w-ink-2);
  max-width: 56ch;
}

.fine {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--w-ink-3);
}

/* The mint dot as a re-usable mark */
.dot {
  display: inline-block;
  width: 0.42em; height: 0.42em;
  background: var(--w-mint);
  border-radius: 50%;
  vertical-align: 0.5em;
  position: relative;
}
.dot.breathe {
  animation: breathe 3.4s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 0px rgba(6,198,168,0)); }
  50%      { transform: scale(1.18); filter: drop-shadow(0 0 12px rgba(6,198,168,0.55)); }
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 280ms var(--ease), backdrop-filter 280ms;
}
.nav.scrolled {
  background: rgba(251, 249, 244, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(216, 209, 194, 0.5);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--w-ink);
  flex-shrink: 0;
}
.nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 720px) { .nav-brand img { height: 30px; } }
.nav-links { display: flex; gap: 32px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--w-ink-3);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--w-line);
  background: transparent;
  transition: border-color 180ms var(--ease), color 180ms;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--w-ink-2); color: var(--w-ink); }
.lang-toggle .active { color: var(--w-mint); }
.lang-toggle .sep { color: var(--w-line-2); font-weight: 300; }
@media (max-width: 560px) { .lang-toggle { display: none; } }
.nav-links a {
  font-size: 14.5px; color: var(--w-ink-2);
  font-weight: 400;
  white-space: nowrap;
  transition: color 180ms;
}
.nav-links a:hover { color: var(--w-ink); }
@media (max-width: 1040px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 200ms var(--ease), background 200ms, color 200ms, box-shadow 200ms;
}
.btn-primary {
  background: var(--w-ink);
  color: var(--w-paper);
}
.btn-primary:hover {
  background: var(--w-navy-900);
  box-shadow: 0 16px 36px -16px rgba(42,53,66,0.55);
}
.btn-mint {
  background: var(--w-mint);
  color: var(--w-navy-900);
}
.btn-mint:hover {
  background: var(--w-mint-600);
  color: white;
  box-shadow: 0 16px 36px -16px rgba(6,198,168,0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--w-ink);
}
.btn-ghost:hover { background: rgba(42,53,66,0.06); }
.btn-on-dark {
  background: white; color: var(--w-ink);
}
.btn-on-dark:hover { background: var(--w-mint); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: var(--w-paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.hero h1 {
  font-feature-settings: "ss01" 1;
  position: relative;
}
.hero h1 .word {
  display: inline-block;
}
.hero h1 .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--w-ink-2);
}
.hero h1 .accent-i {
  position: relative;
  display: inline-block;
}
.hero h1 .accent-i::after {
  content: "";
  position: absolute;
  width: 0.22em; height: 0.22em;
  background: var(--w-mint);
  border-radius: 50%;
  left: 50%;
  top: 0.04em;
  transform: translateX(-50%);
  animation: breathe 3.4s var(--ease) infinite;
  box-shadow: 0 0 32px rgba(6,198,168,0);
}
.hero h1 .underlight {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underlight::after {
  content: "";
  position: absolute; left: 4%; right: 4%; bottom: 0.06em;
  height: 0.12em;
  background: var(--w-mint);
  border-radius: 999px;
  opacity: 0.32;
  transform-origin: left;
  animation: underlight 1.4s var(--ease) forwards;
}
@keyframes underlight {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-lede {
  margin-top: 32px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--w-ink-2);
  font-weight: 300;
  max-width: 30em;
  line-height: 1.55;
}
.hero-cta {
  margin-top: 36px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  max-width: 540px;
}
@media (max-width: 560px) {
  .hero-meta { gap: 24px; margin-top: 40px; }
}
.hero-meta .m .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--w-ink);
  letter-spacing: -0.02em;
}
.hero-meta .m .lbl {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--w-ink-3);
  margin-top: 4px;
}

/* Hero artwork */
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 540px;
}
/* breathing rings */
.rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  contain: layout style;
}
.rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--w-line-2);
  animation: ring-pulse 6s ease-out infinite;
  will-change: transform, opacity;
}
.rings .ring:nth-child(1) { width: 30%; height: 30%; }
.rings .ring:nth-child(2) { width: 52%; height: 52%; animation-delay: 0.7s; }
.rings .ring:nth-child(3) { width: 74%; height: 74%; animation-delay: 1.4s; }
.rings .ring:nth-child(4) { width: 96%; height: 96%; animation-delay: 2.1s; }
@keyframes ring-pulse {
  0%   { transform: scale(0.92); opacity: 0; border-color: rgba(6,198,168, 0.55); }
  25%  { opacity: 0.9; }
  100% { transform: scale(1.08); opacity: 0; border-color: rgba(216,209,194,0.0); }
}

/* hero phone */
.phone-frame {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 660px;
  background: var(--w-ink);
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 60px 120px -40px rgba(42,53,66,0.45),
    0 24px 48px -24px rgba(42,53,66,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: linear-gradient(180deg, #fbf9f4 0%, #f1ece3 100%);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px; background: var(--w-ink); border-radius: 16px;
  z-index: 4;
}

/* floating cards */
.float-card {
  position: absolute;
  background: white;
  border: 1px solid var(--w-line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -18px rgba(42,53,66,0.25);
  display: flex; gap: 12px; align-items: center;
  z-index: 3;
}
.float-card .ic {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--w-mint-50);
  color: var(--w-mint-600);
  flex-shrink: 0;
}
.float-card .ic.ink { background: var(--w-ink); color: var(--w-mint); }
.float-card .ic.bone { background: var(--w-bone); color: var(--w-navy); }
.float-card .lbl { font-size: 11px; color: var(--w-ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.float-card .val { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--w-ink); letter-spacing: -0.01em; }
.float-card .val em { font-style: normal; color: var(--w-mint-600); font-weight: 600; }

.fc-1 { top: 8%;  left: -2%;  animation: float 7s ease-in-out infinite; }
.fc-2 { top: 35%; right: -6%; animation: float 9s ease-in-out -2s infinite; }
.fc-3 { bottom: 12%; left: -8%; animation: float 8s ease-in-out -4s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---- mobile hero art overrides (must come after base rules) ---- */
@media (max-width: 720px) {
  .hero-art { min-height: 420px; }
  .phone-frame { width: 200px; height: 414px; border-radius: 34px; padding: 7px; }
  .phone-screen { border-radius: 27px; }
  .phone-notch { width: 65px; height: 18px; top: 7px; }
  .fc-1, .fc-2, .fc-3 { display: none; }
}

/* ========== SECTION SCAFFOLD ========== */
.section { padding: 120px 0; position: relative; }
.section-head {
  display: grid; gap: 18px;
  max-width: 760px;
}
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 4px; }

/* ========== MANIFESTO ========== */
.manifesto {
  background: var(--w-paper);
  padding: 120px 0 80px;
  border-top: 1px solid var(--w-line);
}
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--w-ink);
  max-width: 22ch;
  margin: 0;
}
.manifesto-text strong { font-weight: 500; }
.manifesto-text .mark {
  background: linear-gradient(180deg, transparent 60%, var(--w-mint-100) 60%);
  padding: 0 4px;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; gap: 40px; } }

.manifesto-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.manifesto-stats .stat {
  border-top: 1px solid var(--w-ink);
  padding-top: 18px;
}
.manifesto-stats .stat .n {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--w-ink);
}
.manifesto-stats .stat .n em { font-style: normal; color: var(--w-mint-600); font-weight: 500; }
.manifesto-stats .stat .l { margin-top: 10px; font-size: 14px; color: var(--w-ink-2); line-height: 1.4; }

/* ========== FOUR MODULES ========== */
.modules {
  background: var(--w-paper);
  padding: 100px 0 120px;
}
.modules-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .modules-head { grid-template-columns: 1fr; gap: 24px; } }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .modules-grid { grid-template-columns: 1fr; } }
.module {
  background: white;
  border: 1px solid var(--w-line);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  transition: transform 320ms var(--ease), box-shadow 320ms;
}
.module:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px -28px rgba(42,53,66,0.25);
}
.module-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  color: var(--w-ink-3);
  letter-spacing: 0.04em;
  display: flex; gap: 12px; align-items: center;
}
.module-num .l { width: 32px; height: 1px; background: var(--w-ink-3); display: inline-block; }
.module h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--w-ink);
}
.module h3 .accent { color: var(--w-mint-600); }
.module p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--w-ink-2);
  margin: 0;
}
.module-viz {
  margin-top: 8px;
  height: 110px;
  position: relative;
}

/* viz styles */
.viz-profile {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: flex-end; height: 100%;
}
.viz-profile .chip {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--w-bone);
  color: var(--w-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.viz-profile .chip.on {
  background: var(--w-ink);
  color: var(--w-mint);
}
.viz-profile .chip.mint {
  background: var(--w-mint-50);
  color: var(--w-mint-600);
}

.viz-engine {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 6px;
  align-items: end;
  height: 100%;
}
.viz-engine .bar {
  background: linear-gradient(180deg, var(--w-mint) 0%, var(--w-mint-600) 100%);
  border-radius: 4px 4px 0 0;
  animation: bar-rise 1.6s var(--ease) backwards;
}
.viz-engine .bar:nth-child(1) { height: 35%; animation-delay: 0.0s; }
.viz-engine .bar:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.viz-engine .bar:nth-child(3) { height: 42%; animation-delay: 0.2s; }
.viz-engine .bar:nth-child(4) { height: 72%; animation-delay: 0.3s; }
.viz-engine .bar:nth-child(5) { height: 58%; animation-delay: 0.4s; }
.viz-engine .bar:nth-child(6) { height: 88%; animation-delay: 0.5s; background: var(--w-ink); }
.viz-engine .bar:nth-child(7) { height: 65%; animation-delay: 0.6s; }
@keyframes bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); }
}

.viz-community {
  position: relative; height: 100%; width: 100%;
}
.viz-community .av {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--w-bone);
  box-shadow: 0 6px 12px -4px rgba(42,53,66,0.2);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--w-ink);
}
.viz-community .av.mint { background: var(--w-mint); color: white; }
.viz-community .av.ink { background: var(--w-ink); color: var(--w-mint); }
.viz-community .line {
  position: absolute;
  background: var(--w-line-2);
  height: 1px;
  transform-origin: left;
  z-index: 0;
}

.viz-feedback {
  position: relative; height: 100%; width: 100%;
}
.viz-feedback svg { width: 100%; height: 100%; }
.viz-feedback .heart {
  position: absolute; right: 8px; top: 6px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--w-mint-600);
  letter-spacing: -0.01em;
}

/* ========== EXPERIENCE STRIPE (dark) ========== */
.experience {
  background: var(--w-navy-900);
  color: var(--w-paper);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.experience::before {
  content: "";
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,198,168, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.experience::after {
  content: "";
  position: absolute;
  bottom: -150px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,198,168, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.experience .eyebrow { color: var(--w-mint); }
.experience h2 { color: white; }
.experience .lede { color: rgba(255,255,255,0.65); }

.screens-stage {
  margin-top: 80px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .screens-stage { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .screens-stage { grid-template-columns: 1fr; } }

.screen-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  min-height: 380px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 16px;
  transition: transform 320ms var(--ease), background 320ms, border-color 320ms;
}
.screen-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(6,198,168,0.5);
}
.screen-card .sn {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--w-mint);
  letter-spacing: 0.04em;
}
.screen-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: white;
  line-height: 1.2;
}
.screen-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
  margin: 0;
}
.screen-card .mini {
  height: 110px;
  border-radius: 14px;
  background: rgba(6,198,168,0.06);
  border: 1px solid rgba(6,198,168,0.18);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

/* ========== AI COMPANION ========== */
.companion {
  padding: 140px 0;
  background: var(--w-paper);
}
.companion-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .companion-grid { grid-template-columns: 1fr; gap: 48px; } }

.chat-card {
  background: white;
  border: 1px solid var(--w-line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 80px -40px rgba(42,53,66,0.3);
  position: relative;
}
.chat-card::before {
  content: "";
  position: absolute;
  inset: -20px -20px auto auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--w-mint);
  filter: blur(0px);
  z-index: -1;
  animation: breathe 3.4s var(--ease) infinite;
}
.chat-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--w-line);
  margin-bottom: 18px;
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--w-ink);
  position: relative;
  display: grid; place-items: center;
}
.chat-avatar::after {
  content: "";
  width: 14px; height: 14px;
  background: var(--w-mint);
  border-radius: 50%;
  animation: breathe 2.4s var(--ease) infinite;
}
.chat-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--w-ink); letter-spacing: -0.01em; }
.chat-status { font-size: 12px; color: var(--w-ink-3); display: flex; gap: 6px; align-items: center; }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--w-mint); }

.msgs { display: grid; gap: 14px; }
.msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  animation: msg-in 480ms var(--ease) backwards;
}
.msg.ai {
  background: var(--w-bone);
  color: var(--w-ink);
  border-bottom-left-radius: 6px;
  justify-self: start;
}
.msg.you {
  background: var(--w-ink);
  color: white;
  border-bottom-right-radius: 6px;
  justify-self: end;
}
.msg .mint { color: var(--w-mint); font-weight: 700; }
.msg .ai-strong { font-weight: 700; color: var(--w-mint-600); }
.msg.delay-1 { animation-delay: 0.0s; }
.msg.delay-2 { animation-delay: 0.6s; }
.msg.delay-3 { animation-delay: 1.2s; }
.msg.delay-4 { animation-delay: 1.8s; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-input {
  margin-top: 22px;
  display: flex; gap: 10px;
  background: var(--w-paper);
  border: 1px solid var(--w-line-2);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  align-items: center;
}
.chat-input input {
  flex: 1; border: 0; background: 0; outline: 0;
  font: inherit; color: var(--w-ink); padding: 8px 0;
}
.chat-input input::placeholder { color: var(--w-ink-3); }
.chat-input button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--w-mint); color: var(--w-navy);
  display: grid; place-items: center;
}

.suggest {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.suggest .sg {
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--w-paper);
  border: 1px solid var(--w-line);
  font-size: 13px;
  color: var(--w-ink-2);
  transition: all 180ms;
}
.suggest .sg:hover { background: var(--w-mint-50); border-color: var(--w-mint); color: var(--w-mint-600); }

/* ========== COMMUNITY ========== */
.community {
  padding: 140px 0;
  background: var(--w-cream);
}
.community-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
.com-card {
  background: white;
  border-radius: 22px;
  border: 1px solid var(--w-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease), box-shadow 320ms;
  position: relative;
}
.com-card:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -28px rgba(42,53,66,0.25); }

.com-card .visual {
  aspect-ratio: 5/4;
  position: relative;
  overflow: hidden;
}
.com-card .visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,53,66,0.55) 100%);
}
.com-card .visual .ph-label {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--w-ink);
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 1;
}
.com-card .visual .members {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex;
  z-index: 1;
}
.com-card .visual .members .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  background: var(--w-bone);
}
.com-card .visual .members .av:first-child { margin-left: 0; }
.com-card .visual .members .av.a1 { background: linear-gradient(135deg, #ffb997, #f6c89f); }
.com-card .visual .members .av.a2 { background: linear-gradient(135deg, #a8e6cf, #06c6a8); }
.com-card .visual .members .av.a3 { background: linear-gradient(135deg, #c9b9ec, #908aff); }
.com-card .visual .members .more {
  width: 26px; height: 26px;
  border-radius: 50%;
  margin-left: -8px;
  background: var(--w-ink);
  color: var(--w-mint);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.com-card .body {
  padding: 22px 24px 26px;
  flex: 1;
  display: grid; gap: 8px;
  align-content: start;
}
.com-card .body .ttl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--w-ink);
  line-height: 1.2;
}
.com-card .body .meta {
  font-size: 13px;
  color: var(--w-ink-3);
  letter-spacing: 0.02em;
  display: flex; gap: 12px; align-items: center;
}
.com-card .body .meta .sep { width: 3px; height: 3px; background: var(--w-ink-3); border-radius: 50%; }

.com-card.span-5 { grid-column: span 5; }
.com-card.span-4 { grid-column: span 4; }
.com-card.span-3 { grid-column: span 3; }
.com-card.span-7 { grid-column: span 7; }
.com-card.span-6 { grid-column: span 6; }
@media (max-width: 980px) {
  .com-card.span-3, .com-card.span-4, .com-card.span-5, .com-card.span-6, .com-card.span-7 { grid-column: span 12; }
}

/* photo placeholders (gradient + texture) */
.ph-1 { background: radial-gradient(at 30% 30%, #fde0c5, transparent 60%), linear-gradient(135deg, #ffb997 0%, #f47a5a 100%); }
.ph-2 { background: radial-gradient(at 60% 30%, #cbe9da, transparent 60%), linear-gradient(135deg, #a8e6cf 0%, #06c6a8 100%); }
.ph-3 { background: radial-gradient(at 40% 30%, #d6e5ff, transparent 60%), linear-gradient(135deg, #6b87b8 0%, #354252 100%); }
.ph-4 { background: radial-gradient(at 70% 30%, #ffe0e6, transparent 60%), linear-gradient(135deg, #f0c9c9 0%, #c98686 100%); }
.ph-5 { background: radial-gradient(at 50% 40%, #fff5d3, transparent 60%), linear-gradient(135deg, #f3d77d 0%, #c9a44e 100%); }
.ph-6 { background: radial-gradient(at 30% 60%, #d5dffa, transparent 60%), linear-gradient(135deg, #b4c4e8 0%, #6f86b8 100%); }

/* photo iconography overlay */
.ph-glyph {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  z-index: 0;
}
.ph-glyph svg {
  width: 55%; height: 55%;
  opacity: 0.35;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
}

/* ========== PASSPORT ========== */
.passport {
  padding: 140px 0;
  background: var(--w-paper);
}
.passport-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .passport-grid { grid-template-columns: 1fr; gap: 48px; } }

.passport-card {
  background: linear-gradient(135deg, #2a3542 0%, #1c242e 100%);
  border-radius: 28px;
  padding: 36px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px -50px rgba(42,53,66,0.5);
}
.passport-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,198,168,0.4) 0%, transparent 70%);
}
.passport-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 36px;
}
.passport-head .label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--w-mint); font-weight: 700; }
.passport-head .name { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin-top: 4px; letter-spacing: -0.01em; }
.passport-head .id { font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); margin-top: 4px; }
.passport-score {
  display: flex; align-items: center; gap: 32px;
  margin-bottom: 40px;
}
.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.score-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}
.score-ring {
  position: relative;
  width: 140px; height: 140px;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .bg { stroke: rgba(255,255,255,0.1); stroke-width: 10; fill: none; }
.score-ring .fg { stroke: var(--w-mint); stroke-width: 10; fill: none; stroke-linecap: round; }
.score-ring .num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: white;
}
.score-text .h { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.score-text .s {
  margin-top: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.5;
}
.score-text .delta {
  margin-top: 10px;
  color: var(--w-mint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 6px;
}

.passport-tracks {
  display: grid; gap: 16px;
}
.passport-track {
  display: grid;
  grid-template-columns: 90px 1fr 64px;
  gap: 16px;
  align-items: center;
}
.passport-track .lb { font-size: 13px; color: rgba(255,255,255,0.7); }
.passport-track .bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.passport-track .bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--w-mint);
  border-radius: 999px;
  animation: bar-fill 1.6s var(--ease) backwards;
}
@keyframes bar-fill {
  from { width: 0; }
}
.passport-track .vl { font-family: var(--font-display); font-size: 14px; color: white; text-align: right; }

/* ========== CTA ========== */
.cta {
  padding: 140px 0;
  background: var(--w-paper);
  position: relative;
  overflow: hidden;
}
.cta-card {
  background: linear-gradient(135deg, #354252 0%, #1c242e 100%);
  border-radius: 36px;
  padding: 100px 64px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: auto auto -300px 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,198,168, 0.18) 0%, transparent 60%);
}
.cta-card .eyebrow { color: var(--w-mint); justify-content: center; }
.cta-card h2 {
  color: white;
  margin-top: 14px;
  max-width: 18ch;
  margin-left: auto; margin-right: auto;
}
.cta-card p {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  margin-top: 18px;
  max-width: 44ch;
  margin-left: auto; margin-right: auto;
}
.cta-actions {
  margin-top: 36px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

@media (max-width: 720px) {
  .cta-card { padding: 64px 28px; }
}

/* ========== FOOTER ========== */
footer {
  background: var(--w-paper);
  border-top: 1px solid var(--w-line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
footer h5 { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--w-ink); margin: 0 0 16px; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer ul a { font-size: 14.5px; color: var(--w-ink-2); transition: color 180ms; }
footer ul a:hover { color: var(--w-mint-600); }
.footer-brand p { font-size: 14px; color: var(--w-ink-2); margin-top: 16px; max-width: 36ch; }
.footer-brand img { height: 32px; width: auto; display: block; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--w-line);
  font-size: 13px;
  color: var(--w-ink-3);
}
.footer-bottom .links { display: flex; gap: 24px; }

/* ========== LEGAL PAGES ========== */
.legal-page {
  background: var(--w-paper);
  padding: 140px 0 100px;
}
.legal-container {
  max-width: 760px;
}
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--w-line);
}
.legal-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--w-ink-3);
  letter-spacing: 0.04em;
}
.legal-intro {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--w-ink-2);
  line-height: 1.65;
  margin-bottom: 56px;
  font-weight: 300;
}
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--w-line);
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--w-ink);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.legal-section p {
  font-size: 15.5px;
  color: var(--w-ink-2);
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-list {
  margin: 12px 0 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.legal-list li {
  font-size: 15.5px;
  color: var(--w-ink-2);
  line-height: 1.6;
}
.legal-item {
  font-size: 15.5px;
  color: var(--w-ink-2);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--w-line);
}
.legal-item strong {
  color: var(--w-ink);
  font-weight: 600;
}
.legal-highlight {
  background: linear-gradient(135deg, var(--w-navy-700), var(--w-navy-900));
  color: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.65;
  border-left: 3px solid var(--w-mint);
}
.legal-note {
  margin-top: 18px;
  background: var(--w-mint-50);
  border-left: 3px solid var(--w-mint);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--w-ink-2);
  line-height: 1.6;
}
.legal-contact {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--w-ink);
  font-weight: 500;
  display: grid;
  gap: 4px;
}
.legal-contact div:last-child {
  color: var(--w-mint-600);
}

/* ========== Scroll reveal ========== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
