/* =========================================================
   TWELLA — editorial wellness · soft maximalism
   ========================================================= */

:root {
  /* palette — taken from the app's theme system */
  --ink:        #18191C;
  --ink-soft:   #2A2B2F;
  --paper:      #FAFAF9;
  --paper-2:    #F3F1EC;
  --cream:      #EAE6DD;
  --line:       #1A1B1E1A;

  --mint:       #91D5BD;
  --mint-deep:  #4C5A6F;
  --coral:      #FF6A5F;
  --lime:       #B1E158;
  --rose:       #EA81C2;
  --sky:        #53D5FF;
  --warning:    #FFD143;

  /* active accent — re-mapped by [data-accent] */
  --accent:        var(--mint);
  --accent-ink:    #18191C;
  --accent-glow:   #91D5BD66;

  --radius-xs: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 30px 60px -30px #0d0e1133, 0 4px 12px -6px #0d0e110f;
  --shadow-card: 0 18px 40px -24px #0d0e1126, 0 2px 6px -2px #0d0e1108;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-elastic: cubic-bezier(.2,.9,.2,1.2);
  --ease-soft:    cubic-bezier(.22,.61,.36,1);
}

/* Accent re-binding when user picks a theme */
body[data-accent="mint"]  { --accent:#91D5BD; --accent-glow:#91D5BD55; }
body[data-accent="coral"] { --accent:#FF6A5F; --accent-glow:#FF6A5F44; }
body[data-accent="lime"]  { --accent:#B1E158; --accent-glow:#B1E15855; }
body[data-accent="rose"]  { --accent:#EA81C2; --accent-glow:#EA81C244; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01','cv11';
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }

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

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

/* =========================================================
   AMBIENT GRADIENT MESH
   ========================================================= */
.ambient {
  position: fixed; inset: -10%; z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  animation: drift 28s var(--ease-soft) infinite alternate;
  will-change: transform;
}
.blob-1 { width: 60vw; height: 60vw; top: -15vw; left: -15vw; background: #BDE5D7; }
.blob-2 { width: 55vw; height: 55vw; top: 20vh; right: -20vw; background: #FFD9D3; animation-delay: -8s; }
.blob-3 { width: 50vw; height: 50vw; bottom: -10vw; left: 10vw; background: #FDE9C4; animation-delay: -14s; }
.blob-4 { width: 40vw; height: 40vw; top: 50vh; left: 40vw; background: #EAD9F3; animation-delay: -20s; opacity:.35; }

@keyframes drift {
  0%   { transform: translate(0,0)     scale(1); }
  50%  { transform: translate(4vw,3vh) scale(1.05); }
  100% { transform: translate(-3vw,2vh) scale(.95); }
}

.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: .08; mix-blend-mode: multiply;
}

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.h-display, .hero-title, .pull-quote {
  font-family: 'Instrument Serif', 'DM Sans', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.02;
}
.h-display em, .hero-title em, .pull-quote em {
  font-style: italic;
  color: var(--ink);
}

.h-display {
  font-size: clamp(40px, 6vw, 84px);
  margin: 0 0 .35em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b5d62;
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: #2A2B2F;
  max-width: 56ch;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex; align-items: center;
  width: min(calc(var(--container) + 32px), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 16px 12px 22px;
  background: #FAFAF9CC;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border: 1px solid #18191C12;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex; width: 22px; height: 18px;
  color: var(--ink);
}
.brand-word {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-word .dot { color: var(--accent); }

/* Original Twella logo (dark wordmark + teal mark, for light surfaces) */
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.foot-brand .brand-logo { height: 32px; }

.nav-links {
  display: flex; gap: 26px; margin-left: 36px;
  font-size: 14.5px; color: #444;
}
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.nav-cta .ghost {
  font-size: 14.5px; padding: 8px 14px; color: var(--ink);
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav { padding: 10px 12px; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  transition:
    transform .25s var(--ease-elastic),
    background .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 28px -16px #18191c66;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 18px 30px -14px var(--accent-glow);
}

.btn-ghost {
  background: #FAFAF9;
  color: var(--ink);
  border: 1px solid #18191C1F;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--accent); color: var(--ink); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: min(var(--container), 100%);
  margin: 70px auto 0;
  padding: 0 var(--gutter) 24px;
  text-align: center;
}

.hero-meta { margin-bottom: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px;
  font-size: 13px;
  background: #FAFAF9;
  border: 1px solid #18191C18;
  border-radius: 999px;
  color: var(--ink);
}
.chip .dot-live {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.hero-title {
  font-size: clamp(46px, 8vw, 124px);
  letter-spacing: -0.025em;
  margin: 0 auto;
  max-width: 16ch;
}
.hero-title em {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
  background-size: 100% 38%;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 .08em;
  font-style: italic;
}

.hero-sub {
  margin: 28px auto 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: #2A2B2F;
  max-width: 58ch;
}

.hero-cta {
  margin: 36px auto 0;
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

.hero-press {
  margin: 30px auto 0;
  font-size: 14px;
  color: #54575C;
  max-width: 54ch;
}
.hero-press .stars {
  color: var(--coral);
  letter-spacing: 2px;
  margin-right: 6px;
}
.hero-press strong { color: var(--ink); margin-right: 6px; }

/* Floating phone stage */
.hero-stage {
  position: relative;
  isolation: isolate;
  margin: 70px auto 0;
  min-height: clamp(640px, 70vw, 780px);
  width: min(1100px, 100%);
}

.phone {
  position: absolute;
  margin: 0;
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px #0d0e1166,
    0 12px 24px -10px #0d0e1133,
    inset 0 0 0 6px #18191C,
    inset 0 0 0 8px #fff;
  background: var(--paper);
  will-change: transform;
  transition: transform .6s var(--ease-soft);
}
.phone img { display: block; width: 100%; }

.phone-c {
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  width: clamp(220px, 26vw, 320px);
  z-index: 3;
  animation: floatY 7s var(--ease-soft) infinite alternate;
}
.phone-l {
  left: 4%;
  top: 16%;
  transform: rotate(-9deg);
  width: clamp(180px, 22vw, 280px);
  z-index: 2;
  animation: floatY 9s var(--ease-soft) infinite alternate -1.5s;
}
.phone-r {
  right: 4%;
  top: 22%;
  transform: rotate(9deg);
  width: clamp(180px, 22vw, 280px);
  z-index: 2;
  animation: floatY 8s var(--ease-soft) infinite alternate -3s;
}

@keyframes floatY {
  from { translate: 0 -10px; }
  to   { translate: 0  14px; }
}

.phone-tag {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.phone-tag-2 { background: var(--accent); color: var(--ink); }

/* Float annotation cards */
.float-note {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  background: #FFFFFFE6;
  backdrop-filter: blur(8px);
  border: 1px solid #18191C12;
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.float-note b { font-weight: 600; }
.float-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
}
.float-note-1 { top: 8%; left: 8%; animation: floatY 6s var(--ease-soft) infinite alternate -2s; }
.float-note-2 { bottom: 4%; right: 8%; animation: floatY 7s var(--ease-soft) infinite alternate -4s; }

@media (max-width: 720px) {
  .hero-stage { height: 520px; }
  .phone-l, .phone-r { display: none; }
  .phone-c { width: 280px; top: 4%; }
  .float-note-1 { left: 2%; top: 18%; }
  .float-note-2 { right: 2%; bottom: 8%; }
}

/* Ticker */
.ticker {
  margin-top: clamp(100px, 12vw, 160px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; gap: 28px; align-items: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 36px);
  white-space: nowrap;
  color: #2A2B2F;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.ticker-track span:nth-child(odd) { color: var(--ink); font-style: italic; }
.ticker-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   SECTION SHELL
   ========================================================= */
section {
  position: relative;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 880px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: #444;
  max-width: 60ch;
  margin: 18px 0 0;
}
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* =========================================================
   PULL QUOTE
   ========================================================= */
.pull {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
  text-align: left;
}
.pull-quote {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08;
  max-width: 22ch;
}
.pull-quote em {
  font-style: italic;
  color: var(--coral);
}
.pull-quote .hl {
  font-style: italic;
  background: var(--accent);
  padding: 0 .1em;
  white-space: nowrap;
}
.pull-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: #54575C;
}
.pull-foot a { color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .how-grid { grid-template-columns: 1fr; } }

.how-card {
  background: #FFFFFFCC;
  border: 1px solid #18191C12;
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease-soft), box-shadow .4s;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.how-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 44px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}
.how-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 8px;
  letter-spacing: -.01em;
}
.how-card p {
  font-size: 14.5px;
  color: #444;
  margin: 0 0 18px;
}
.how-shot {
  margin-top: 14px;
  background: linear-gradient(135deg, #EFF7F2, #FCE9E5);
  border-radius: var(--radius);
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.how-shot img {
  max-height: 130px;
  filter: drop-shadow(0 8px 14px #0001);
}

/* =========================================================
   FEATURE BLOCK / AI / MOOD layout helpers
   ========================================================= */
.feature-block,
.feature-ai {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}
.feature-mood { display: block; }
.feature-visual-left { order: -1; }
@media (max-width: 900px) {
  .feature-block,
  .feature-ai { grid-template-columns: 1fr; }
  .feature-visual-left { order: 0; }
}

.bullet-list {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; gap: 18px;
}
.bullet-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  align-items: start;
}
.bullet-icon {
  margin-top: 6px;
  width: 14px; height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.bullet-list b {
  display: block;
  font-weight: 600; font-size: 17px;
  margin-bottom: 2px;
}
.bullet-list p { margin: 0; color: #54575C; font-size: 14.5px; }

/* Feature block (phones in stack) */
.feature-visual {
  position: relative;
  height: clamp(420px, 50vw, 560px);
}
.phone-tilt {
  position: absolute;
  width: clamp(220px, 30vw, 320px);
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 36px 64px -28px #0d0e1140,
    inset 0 0 0 4px #18191C,
    inset 0 0 0 6px #fff;
}
.feature-block .phone-tilt:first-of-type {
  top: 6%; left: 12%;
  transform: rotate(-8deg);
  z-index: 2;
}
.phone-back {
  top: 24%; right: 8%;
  transform: rotate(7deg);
  width: clamp(220px, 30vw, 320px);
}

/* =========================================================
   AI CHAT MOCK
   ========================================================= */
.chat-mock {
  background: #FFFFFFE6;
  border: 1px solid #18191C12;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid; gap: 14px;
  box-shadow: var(--shadow-soft);
  max-width: 460px;
  margin-left: auto;
}
.chat-bubble {
  padding: 14px 18px;
  border-radius: 22px;
  max-width: 92%;
  font-size: 15px;
  line-height: 1.5;
}
.chat-bubble-user {
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
  justify-self: end;
  animation: bubbleIn .5s var(--ease-elastic) backwards;
}
.chat-bubble-bot {
  background: linear-gradient(135deg, #EAF6F1, #FBE9E4);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  justify-self: start;
  animation: bubbleIn .5s var(--ease-elastic) backwards;
  animation-delay: .3s;
}
.chat-bubble-bot:nth-of-type(2) { animation-delay: .6s; }
.chat-bubble-user + .chat-bubble-user { animation-delay: .9s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.bot-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #2A8060;
  margin-bottom: 6px;
}
.bot-leaf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #91D5BD; color: #2A8060;
}
.chat-typing {
  display: inline-flex; gap: 5px;
  background: linear-gradient(135deg, #EAF6F1, #FBE9E4);
  padding: 14px 18px;
  border-radius: 22px;
  border-bottom-left-radius: 6px;
  justify-self: start;
}
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: typing 1.2s var(--ease-soft) infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.ai-grid {
  margin-top: 28px;
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.ai-card {
  background: #FFFFFFCC;
  border: 1px solid #18191C12;
  border-radius: var(--radius);
  padding: 18px;
}
.ai-card b {
  display: block;
  font-size: 15px; font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -.005em;
}
.ai-card p { margin: 0; font-size: 13.5px; color: #54575C; line-height: 1.45; }

/* =========================================================
   MOOD MOSAIC
   ========================================================= */
.mood-mosaic {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.mosaic-card {
  margin: 0;
  background: #FFFFFFCC;
  border: 1px solid #18191C12;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform .4s var(--ease-soft);
}
.mosaic-card:hover { transform: translateY(-4px); }
.mosaic-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.mosaic-card figcaption {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #FFFFFFCC;
  position: relative;
  z-index: 2;
}
.mosaic-card figcaption b {
  display: block;
  font-weight: 600; font-size: 16px;
  letter-spacing: -.005em;
}
.mosaic-card figcaption span {
  font-size: 13.5px; color: #54575C;
}

.mosaic-1 { grid-column: 1; grid-row: 1; }
.mosaic-2 { grid-column: 2; grid-row: 1; }
.mosaic-3 { grid-column: 3; grid-row: 1 / span 2; }
.mosaic-3 img { aspect-ratio: 9 / 20; }
.mosaic-4 { grid-column: 1; grid-row: 2; }
.mosaic-5 { grid-column: 2; grid-row: 2; }
.mosaic-6 {
  grid-column: 1 / span 3; grid-row: 3;
  display: grid; grid-template-columns: 1fr 1.2fr;
  align-items: center;
}
.mosaic-6 img {
  aspect-ratio: 16 / 7;
  object-fit: cover; object-position: center;
}
.mosaic-6 figcaption { border-top: 0; border-left: 1px solid var(--line); }

@media (max-width: 980px) {
  .mood-mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-1, .mosaic-2, .mosaic-4, .mosaic-5 { grid-column: auto; grid-row: auto; }
  .mosaic-3 { grid-column: 1 / span 2; grid-row: auto; }
  .mosaic-3 img { aspect-ratio: 16 / 10; }
  .mosaic-6  { grid-column: 1 / span 2; grid-row: auto; grid-template-columns: 1fr; }
  .mosaic-6 figcaption { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .mood-mosaic { grid-template-columns: 1fr; }
  .mosaic-3, .mosaic-6 { grid-column: auto; }
}

/* =========================================================
   THEMES
   ========================================================= */
.theme-switcher {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 0 0 36px;
}
.swatch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px;
  background: #FAFAF9;
  border: 1px solid #18191C18;
  border-radius: 999px;
  font-size: 14px;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.swatch-chip {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px #00000010;
}

.theme-gallery {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #EFF7F2, #FCE9E5);
  padding: 50px 30px;
  min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.theme-card {
  position: absolute;
  margin: 0;
  width: clamp(420px, 60%, 720px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px #0d0e1130;
  opacity: 0;
  transform: translateY(30px) scale(.96);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
  background: var(--paper);
}
.theme-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 2;
}
.theme-card img { width: 100%; display: block; }

/* =========================================================
   EXTENSION
   ========================================================= */
.extension {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}
@media (max-width: 900px) { .extension { grid-template-columns: 1fr; } }

.browser {
  background: #FAFAF9;
  border: 1px solid #18191C12;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: #F0EEE9;
  border-bottom: 1px solid #18191C0E;
}
.browser-bar .dot {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
}
.browser-bar .r { background: #FF5F57; }
.browser-bar .y { background: #FEBC2E; }
.browser-bar .g { background: #28C840; }
.browser-url {
  margin-left: 14px; flex: 1;
  background: #FAFAF9;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #444;
  text-align: center;
}
.browser-body {
  padding: 60px 40px;
  background: #FAFAF9;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background-image:
    repeating-linear-gradient(0deg, #00000003 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, #00000003 0 1px, transparent 1px 24px);
}
.ext-card {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 26px;
  border-radius: var(--radius);
  width: 100%; max-width: 380px;
  box-shadow: 0 30px 60px -20px #0d0e1166;
  animation: rise .9s var(--ease-elastic);
}
.ext-leaf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--accent); color: var(--ink);
  border-radius: 12px;
  margin-bottom: 14px;
}
.ext-card h4 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.ext-card p {
  font-size: 14.5px; line-height: 1.5;
  color: #E0E1E3;
  margin: 0 0 18px;
}
.ext-actions { display: flex; gap: 8px; }
.ext-actions .btn-ghost { background: transparent; color: var(--paper); border-color: #FAFAF933; }
.ext-actions .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ext-actions .btn-primary { background: var(--accent); color: var(--ink); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* =========================================================
   NUMBERS / INVESTOR
   ========================================================= */
.numbers {}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 60px;
}
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

.stat {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--accent); opacity: .14;
  filter: blur(20px);
}
.stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1; letter-spacing: -.02em;
  color: var(--paper);
}
.stat-prefix, .stat-suffix {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--accent);
}
.stat-prefix { margin-right: 4px; }
.stat-suffix { margin-left: 4px; }
.stat-label {
  font-size: 13.5px; color: #BFC1C5; margin: 0;
  letter-spacing: .01em;
}

.market-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .market-row { grid-template-columns: 1fr; } }
.market-card {
  background: #FFFFFFCC;
  border: 1px solid #18191C12;
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.market-card h3 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.market-card p { margin: 0; color: #444; font-size: 14.5px; }
.market-card b { color: var(--ink); font-weight: 600; }

.investor-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(120deg, var(--accent), #FAFAF9 70%);
  border-radius: var(--radius-lg);
}
.investor-cta p {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.t-card {
  background: #FFFFFFCC;
  border: 1px solid #18191C12;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
}
.t-card p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 18px;
}
.t-card footer {
  font-size: 13px;
  color: #54575C;
}
.t-1 { transform: rotate(-1deg); background: linear-gradient(135deg, #EAF6F1, #FFFFFFCC); }
.t-2 { transform: rotate(.5deg); background: linear-gradient(135deg, #FFE9E4, #FFFFFFCC); }
.t-3 { transform: rotate(-.5deg); background: linear-gradient(135deg, #F4E9F8, #FFFFFFCC); }

/* =========================================================
   PRICING
   ========================================================= */
.price-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px;
}
@media (max-width: 800px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #FFFFFFCC;
  border: 1px solid #18191C12;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.price-card-pro {
  background: var(--ink);
  color: var(--paper);
}
.price-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #54575C;
  margin: 0 0 14px;
}
.price-card-pro .price-tag { color: #BFC1C5; }

.price-num {
  font-family: 'Instrument Serif', serif;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.price-num span {
  font-size: 18px; font-style: italic;
  color: #54575C;
}
.price-card-pro .price-num span { color: #BFC1C5; }

.price-alt {
  font-size: 13.5px; color: #BFC1C5;
  margin: 0 0 22px;
}
.price-card ul {
  list-style: none; padding: 0; margin: 26px 0 28px;
  display: grid; gap: 10px;
}
.price-card li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  align-items: start;
  font-size: 14.5px;
}
.price-card li::before {
  content: ''; display: inline-block;
  width: 14px; height: 14px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--accent);
}
.price-card-pro li { color: #E0E1E3; }
.price-card-pro li::before { background: var(--accent); }

.ribbon {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--accent);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price-foot {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #BFC1C5;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: grid; gap: 8px; max-width: 880px; }
.faq-list details {
  background: #FFFFFFCC;
  border: 1px solid #18191C14;
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: background .3s, border-color .3s;
}
.faq-list details[open] {
  background: #FFFFFF;
  border-color: #18191C24;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-style: italic;
  letter-spacing: -.005em;
  color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 28px;
  font-weight: 300;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  transition: transform .35s var(--ease-soft);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  margin: 12px 0 0;
  color: #444;
  font-size: 15.5px;
  max-width: 70ch;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
  text-align: center;
}
.dl-inner { max-width: 880px; margin: 0 auto; }
.dl-cta {
  margin-top: 38px;
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px 12px 16px;
  border-radius: 16px;
  transition: transform .25s, background .25s;
}
.store-badge:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: var(--ink);
}
.store-badge span {
  display: flex; flex-direction: column; text-align: left;
}
.store-badge small { font-size: 10.5px; letter-spacing: .04em; opacity: .8; }
.store-badge b { font-size: 16px; font-weight: 600; line-height: 1.1; }
.dl-meta {
  margin: 26px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #54575C;
  letter-spacing: .04em;
}

/* Beta signup form (Netlify) */
.beta-form {
  margin: 40px auto 0;
  max-width: 560px;
  text-align: left;
}
.beta-row {
  display: flex;
  gap: 8px;
  background: #FAFAF9;
  border: 1px solid #18191C1F;
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-card);
}
.beta-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
}
.beta-input::placeholder { color: #80838A; font-style: italic; }
.beta-row .btn { flex-shrink: 0; }
.beta-choice {
  border: 0;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.beta-opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: #2A2B2F;
  cursor: pointer;
}
.beta-opt input {
  width: 17px; height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.dl-ext {
  margin: 26px 0 0;
  font-size: 14.5px;
  color: #54575C;
}
.dl-ext a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
@media (max-width: 520px) {
  .beta-row { flex-direction: column; border-radius: var(--radius-lg); padding: 14px; }
  .beta-row .btn { width: 100%; }
  .beta-input { padding: 6px 4px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 70px var(--gutter) 28px;
  background: linear-gradient(180deg, transparent, #F1EFEA);
}
.foot-grid {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p {
  margin: 0 0 22px;
  color: #54575C;
  font-size: 14.5px;
  max-width: 36ch;
}
.newsletter {
  display: flex; gap: 8px;
  background: #FAFAF9;
  border: 1px solid #18191C18;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  max-width: 380px;
}
.newsletter input {
  flex: 1; border: 0; background: transparent;
  font: inherit; font-size: 14.5px; color: var(--ink);
  outline: none;
}
.newsletter input::placeholder { color: #80838A; font-style: italic; }
.newsletter button { padding: 10px 18px; font-size: 13.5px; }

.foot-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #2A2B2F;
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a {
  font-size: 14.5px; color: #44464A;
  transition: color .2s;
}
.foot-col a:hover { color: var(--ink); }
.socials a { color: #44464A; }

.foot-bottom {
  width: min(var(--container), 100%);
  margin: 50px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #54575C;
}

/* =========================================================
   REVEAL ANIMATION (scroll-triggered)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].in {
  opacity: 1; transform: translateY(0);
}

[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .9s var(--ease-soft) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Keyboard focus visibility (covers nav/footer links, buttons, form inputs) */
a:focus-visible,
button:focus-visible,
.beta-input:focus-visible,
.newsletter input:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
