/* =====================================================================
   feelune.app — site styles (2026-05 redesign)
   Cream + ink + named bubbles, mirroring the app's split aesthetic.
   ===================================================================== */

:root {
  --cream: #f1ede2;
  --cream-soft: #ebe6d8;
  --cream-deep: #e3ddc9;
  --ink: #14130f;
  --ink-soft: #1f1d18;
  --ink-deep: #0b0a08;
  --on-cream: #1a1815;
  --on-cream-mute: #5a5752;
  --on-cream-faint: #8a8680;
  --on-ink: #efe8d6;
  --on-ink-mute: #a39c8b;
  --rule: #d8d2bf;
  --rule-soft: #2a2823;
  --accent: #c8553d;
  --accent-deep: #a23f2c;

  /* Emotion bubble colors (from app palette) */
  --joy: #FFD166;
  --tenderness: #FFAEC9;
  --awe: #A8DADC;
  --longing: #B39DDB;
  --pride: #E9C46A;
  --sadness: #6A8CAF;
  --sweetness: #FFB5C5;
  --shame: #9D4E4F;
  --curiosity: #FFD93D;
  --loneliness: #4A6FA5;
  --hope: #95E1D3;
  --envy: #708238;
  --empathy: #D4A5A5;
  --nostalgia: #C9B1E1;
  --frustration: #D2691E;
  --relief: #B8E0D2;
  --gratitude: #F4A261;
  --love: #FF6B9D;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--on-cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ----------------------------------------------------------------
   Nav
   ---------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(241, 237, 226, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.top.scrolled { border-bottom-color: var(--rule); }

.mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--on-cream);
}

.top .links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-cream-mute);
}
.top .links a:hover { color: var(--on-cream); }

@media (max-width: 640px) {
  .top { padding: 14px 18px; }
  .top .links { gap: 16px; font-size: 13px; }
  .top .links a:not(:last-child) { display: none; }
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
  padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(60px, 8vw, 100px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-text { max-width: 560px; }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-cream-faint);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  color: var(--on-cream);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--on-cream-mute);
  margin: 0 0 32px;
  max-width: 50ch;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.cta.primary { background: var(--ink); color: var(--cream); }
.cta.primary:hover { transform: translateY(-1px); background: #000; }
.cta.ghost { border: 1px solid var(--on-cream); color: var(--on-cream); }
.cta.ghost:hover { background: var(--on-cream); color: var(--cream); }

.fine {
  font-size: 13px;
  color: var(--on-cream-faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: .6;
}

.hero-shot { display: flex; justify-content: center; }
.hero-shot img {
  max-height: min(78vh, 760px);
  width: auto;
  border-radius: 36px;
  box-shadow:
    0 30px 80px rgba(20, 19, 15, 0.20),
    0 8px 24px rgba(20, 19, 15, 0.10);
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-shot { order: -1; margin-bottom: 12px; }
  .hero-shot img { max-height: 420px; }
}

/* ----------------------------------------------------------------
   Generic section
   ---------------------------------------------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  position: relative;
}

.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-cream-faint);
  margin-bottom: 28px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 22ch;
  color: var(--on-cream);
}
.section h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-cream-mute);
  max-width: 62ch;
  margin: 0 0 1.2em;
}
.body strong { color: var(--on-cream); font-weight: 600; }
.body em { font-style: italic; color: var(--on-cream); }
.body.wide { max-width: 70ch; }
.body.subtle { color: var(--on-cream-faint); font-size: 16px; }
.body.aside { margin-top: 40px; font-size: 16px; }

/* ----------------------------------------------------------------
   "What you train" — bubble grid
   ---------------------------------------------------------------- */
.train .bubble-grid {
  margin: 56px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  max-width: 720px;
}

.bub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(20, 19, 15, 0.85);
  letter-spacing: -0.005em;
  background: var(--gratitude);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform .25s ease;
}
.bub:hover { transform: translateY(-2px); }

.bub.b1 { background: var(--joy); }
.bub.b2 { background: var(--tenderness); }
.bub.b3 { background: var(--awe); }
.bub.b4 { background: var(--longing); color: rgba(255,255,255,0.92); }
.bub.b5 { background: var(--pride); }
.bub.b6 { background: var(--sadness); color: rgba(255,255,255,0.92); }
.bub.b7 { background: var(--sweetness); }
.bub.b8 { background: var(--shame); color: rgba(255,255,255,0.92); }
.bub.b9 { background: var(--curiosity); }
.bub.b10 { background: var(--loneliness); color: rgba(255,255,255,0.92); }
.bub.b11 { background: var(--hope); }
.bub.b12 { background: var(--envy); color: rgba(255,255,255,0.92); }
.bub.b13 { background: var(--empathy); }
.bub.b14 { background: var(--nostalgia); }
.bub.b15 { background: var(--frustration); color: rgba(255,255,255,0.92); }
.bub.b16 { background: var(--relief); }
.bub.b17 { background: var(--tenderness); }
.bub.b18 { background: var(--gratitude); }

.big-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--on-cream);
  max-width: 18ch;
}
.big-line em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ----------------------------------------------------------------
   How it works — three pages on dark band
   ---------------------------------------------------------------- */
.how {
  background: var(--ink);
  color: var(--on-ink);
  max-width: none;
}
.how .overline { color: rgba(239, 232, 214, 0.55); }
.how h2 { color: var(--on-ink); }
.how h2 em { color: #f0a17a; }
.how .body { color: var(--on-ink-mute); }
.how .body strong, .how .body em { color: var(--on-ink); }

.how > .overline,
.how > h2,
.how > .body {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.three {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.page-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-card.center { transform: translateY(-12px); }

.page-card .phone {
  width: 100%;
  max-width: 260px;
  margin-bottom: 28px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    0 6px 18px rgba(0,0,0,0.30);
}
.page-card .phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}

.page-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--on-ink);
  margin: 0 0 12px;
}
.page-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-ink-mute);
  margin: 0;
  max-width: 28ch;
}

@media (max-width: 880px) {
  .three { grid-template-columns: 1fr; gap: 56px; }
  .page-card.center { transform: none; }
  .page-card .phone { max-width: 280px; }
}

/* ----------------------------------------------------------------
   Mine / Author / Everyone
   ---------------------------------------------------------------- */
.compare-shots {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}

.compare-shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; }

.phone.tall {
  width: 100%;
  max-width: 280px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 24px 60px rgba(20, 19, 15, 0.18),
    0 6px 16px rgba(20, 19, 15, 0.10);
}
.phone.tall img { width: 100%; display: block; }

.phone.tall.pending {
  background: var(--cream-deep);
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.pending-inner { text-align: center; padding: 24px; }
.pending-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--on-cream-mute);
  margin-bottom: 8px;
}
.pending-sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-cream-faint);
}

.compare-shots figcaption {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-cream-mute);
  max-width: 26ch;
}
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

@media (max-width: 880px) {
  .compare-shots { grid-template-columns: 1fr; gap: 56px; }
}

/* ----------------------------------------------------------------
   Practice library
   ---------------------------------------------------------------- */
.lib-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.lib-shot img {
  width: 100%;
  max-width: 320px;
  border-radius: 30px;
  margin: 0 auto;
  display: block;
  box-shadow:
    0 24px 60px rgba(20, 19, 15, 0.18),
    0 6px 16px rgba(20, 19, 15, 0.10);
}
@media (max-width: 880px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-shot { order: -1; }
}

/* ----------------------------------------------------------------
   Why
   ---------------------------------------------------------------- */
.why { max-width: 760px; }
.why h2 { max-width: 18ch; }

.signoff {
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--on-cream-mute);
}

/* ----------------------------------------------------------------
   Principles
   ---------------------------------------------------------------- */
.principles { max-width: 800px; }
.principle-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.principle-list li {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  color: var(--on-cream-mute);
}
.principle-list li:last-child { border-bottom: 1px solid var(--rule); }
.principle-list li strong { color: var(--on-cream); font-weight: 600; }

/* ----------------------------------------------------------------
   Download
   ---------------------------------------------------------------- */
.download { text-align: left; max-width: 820px; }

.badges {
  margin: 40px 0 64px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px 14px 18px;
  border-radius: 14px;
  transition: transform .15s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge svg { width: 22px; height: 22px; }
.badge .stack { display: flex; flex-direction: column; line-height: 1.05; }
.badge .small { font-size: 10px; letter-spacing: 0.06em; opacity: .8; }
.badge .big { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }

.closer {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--on-cream);
  max-width: 18ch;
  margin: 0;
}
.closer em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--on-cream-faint);
  max-width: var(--maxw);
  margin: 0 auto;
}
footer .links { display: flex; gap: 18px; align-items: center; }
footer .links a:hover { color: var(--on-cream); }
.bullet { opacity: .5; }
.locale-sep { opacity: .4; }
.locale-active { color: var(--on-cream); font-weight: 600; }

/* ----------------------------------------------------------------
   Reveal on scroll
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .cta, .badge, .bub { transition: none; }
}
