:root {
  --ink: #0C0B09;
  --cream: #F8F4EE;
  --warm: #EFE9DF;
  --rust: #C8451C;
  --rust-d: #A33714;
  --rust-l: #F5E6DF;
  --sage: #38584A;
  --sage-l: #D6E9DF;
  --gold: #BF8C1A;
  --gold-l: #F5EDCC;
  --stone: #7A756C;
  --border: #DDD6CA;
  --white: #FDFCFA;
  --r: 15px;
  --rs: 9px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ════════════════════════════════
   PUBLIC LANDING
════════════════════════════════ */
#landing {
  display: block;
}

#app {
  display: none;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(248, 244, 238, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--rust);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-logo em {
  font-style: italic;
  color: var(--rust);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .2s;
}

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

.nav-end {
  display: flex;
  gap: 10px;
}

.nbtn {
  border: none;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: all .2s;
  letter-spacing: 0.01em;
}

.nbtn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.nbtn-ghost:hover {
  border-color: var(--ink);
}

.nbtn-fill {
  background: var(--rust);
  color: #fff;
}

.nbtn-fill:hover {
  background: var(--rust-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 69, 28, .28);
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 48px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 70% 40%, rgba(200, 69, 28, .06) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 20% 80%, rgba(191, 140, 26, .05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 24px;
  padding: 6px 14px;
  background: var(--rust-l);
  border-radius: 50px;
  border: 1px solid rgba(200, 69, 28, .18);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--rust);
}

.hero-sub {
  font-size: 16px;
  color: var(--stone);
  line-height: 1.85;
  margin-bottom: 38px;
  max-width: 480px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.cbtn {
  border: none;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: all .2s;
  letter-spacing: .02em;
}

.cbtn-rust {
  background: var(--rust);
  color: #fff;
}

.cbtn-rust:hover {
  background: var(--rust-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 69, 28, .3);
}

.cbtn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

.cbtn-outline:hover {
  border-color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}

.hstat {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}

.hstat:last-child {
  border-right: none;
}

.hstat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hstat-l {
  font-size: 11px;
  color: var(--stone);
  margin-top: 3px;
  line-height: 1.4;
  font-weight: 500;
}

/* PHONE */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-outer {
  width: 295px;
  background: var(--ink);
  border-radius: 50px;
  padding: 14px;
  box-shadow: 0 60px 100px rgba(12, 11, 9, .22), 0 0 0 1px rgba(255, 255, 255, .05);
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.ph-notch {
  width: 82px;
  height: 24px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 10px;
}

.ph-screen {
  background: var(--cream);
  border-radius: 36px;
  overflow: hidden;
}

.ph-bar {
  padding: 7px 18px 3px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
}

.ph-nav {
  padding: 9px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ph-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ph-logo em {
  color: var(--rust);
  font-style: italic;
}

.ph-xp {
  font-size: 9px;
  font-weight: 700;
  background: var(--gold-l);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 5px;
}

.ph-greet {
  padding: 11px 15px 7px;
}

.ph-hi {
  font-size: 11px;
  color: var(--stone);
  font-weight: 400;
  margin-bottom: 3px;
}

.ph-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.ph-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0 15px 10px;
}

.ph-chip {
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 700;
  border: 1.5px solid;
}

.ph-c1 {
  background: rgba(200, 69, 28, .07);
  border-color: rgba(200, 69, 28, .25);
  color: var(--rust-d);
}

.ph-c2 {
  background: rgba(56, 88, 74, .07);
  border-color: rgba(56, 88, 74, .25);
  color: var(--sage);
}

.ph-c3 {
  background: rgba(191, 140, 26, .09);
  border-color: rgba(191, 140, 26, .3);
  color: var(--gold);
}

.ph-c4 {
  background: rgba(50, 100, 200, .06);
  border-color: rgba(50, 100, 200, .22);
  color: #1A5FA5;
}

.ph-c5 {
  background: rgba(140, 60, 180, .06);
  border-color: rgba(140, 60, 180, .22);
  color: #7A30C0;
}

.ph-card {
  margin: 0 15px 10px;
  background: var(--white);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(12, 11, 9, .07);
}

.ph-cimg {
  height: 82px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: linear-gradient(135deg, #F5956A, #C8451C);
}

.ph-cbody {
  padding: 8px 11px;
}

.ph-cname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.ph-cmeta {
  font-size: 9px;
  color: var(--stone);
  display: flex;
  gap: 8px;
}

.ph-xpbar-wrap {
  margin: 0 15px;
  background: var(--warm);
  border-radius: 3px;
  height: 4px;
}

.ph-xpbar-fill {
  height: 4px;
  border-radius: 3px;
  background: var(--gold);
  width: 62%;
}

.ph-xplabel {
  padding: 3px 15px 8px;
  font-size: 9px;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
}

.ph-bot {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.ph-bi {
  flex: 1;
  text-align: center;
  padding: 6px 3px;
  font-size: 7px;
  color: var(--stone);
  font-weight: 600;
}

.ph-bi.on {
  color: var(--rust);
}

.ph-bico {
  font-size: 14px;
  display: block;
  margin-bottom: 1px;
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 69, 28, .1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.phone-ring {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  border: 1px solid rgba(200, 69, 28, .08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinr 40s linear infinite;
  z-index: 0;
}

.phone-ring2 {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px dashed rgba(191, 140, 26, .1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinr 25s linear infinite reverse;
  z-index: 0;
}

@keyframes spinr {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ABOUT */
.about-sec {
  background: var(--ink);
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}

.about-sec::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 69, 28, .08) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.about-header {
  margin-bottom: 70px;
}

.about-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.about-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 680px;
}

.about-h em {
  font-style: italic;
  color: var(--rust);
}

.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-bottom: 80px;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r);
  overflow: hidden;
}

.mvv-card {
  background: var(--ink);
  padding: 40px 36px;
  transition: background .2s;
}

.mvv-card:hover {
  background: rgba(255, 255, 255, .04);
}

.mvv-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.mvv-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}

.mvv-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.mvv-text {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.85;
  font-weight: 400;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

.val-card {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .2s, background .2s;
}

.val-card:hover {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .03);
}

.val-ico {
  font-size: 24px;
  margin-bottom: 12px;
}

.val-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.val-text {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.7;
  font-weight: 400;
}

/* TEAM */
.team-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.team-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.team-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
  font-weight: 400;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  transition: background .2s;
}

.team-card:hover {
  background: rgba(255, 255, 255, .07);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust-l), rgba(200, 69, 28, .3));
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 14px;
}

.team-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.team-role {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.team-bio {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.65;
  font-weight: 400;
}

/* MOOD SECTION */
.mood-sec {
  background: var(--white);
  padding: 90px 48px;
}

.sec-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.sec-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}

.sec-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.sec-lead {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.85;
  max-width: 520px;
  font-weight: 400;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.mood-card {
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}

.mood-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(12, 11, 9, .1);
}

.mc-top {
  height: 148px;
  display: grid;
  place-items: center;
  font-size: 52px;
}

.mct1 {
  background: linear-gradient(135deg, #C8F0D8, #52B788);
}

.mct2 {
  background: linear-gradient(135deg, #FAE0D0, #C8451C);
}

.mct3 {
  background: linear-gradient(135deg, #F5EDCF, #BF8C1A);
}

.mct4 {
  background: linear-gradient(135deg, #E4D8F5, #9B59B6);
}

.mct5 {
  background: linear-gradient(135deg, #D8EAF5, #2980B9);
}

.mc-body {
  padding: 16px;
  background: var(--cream);
}

.mc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.mc-desc {
  font-size: 11px;
  color: var(--stone);
  line-height: 1.6;
  font-weight: 400;
}

.mc-xp {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 8px;
}

/* FEATURES */
.features-sec {
  background: var(--cream);
  padding: 90px 48px;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}

.feat-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 30px;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}

.feat-card:hover {
  box-shadow: 0 10px 32px rgba(12, 11, 9, .07);
  transform: translateY(-3px);
}

.feat-ico {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.fi1 {
  background: var(--rust-l);
}

.fi2 {
  background: var(--sage-l);
}

.fi3 {
  background: var(--gold-l);
}

.fi4 {
  background: #E8F0FF;
}

.feat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feat-text {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.75;
  font-weight: 400;
}

/* RECIPES PREVIEW */
.recs-sec {
  background: var(--white);
  padding: 90px 48px;
}

.rtabs {
  display: flex;
  gap: 8px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.rtab {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--stone);
  font-family: 'Syne', sans-serif;
  transition: all .15s;
  letter-spacing: .02em;
}

.rtab:hover,
.rtab.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rcard {
  background: var(--cream);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.rcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(12, 11, 9, .09);
}

.rimg {
  height: 118px;
  display: grid;
  place-items: center;
  font-size: 44px;
}

.ri1 {
  background: linear-gradient(135deg, #FFE8D6, #FFB088);
}

.ri2 {
  background: linear-gradient(135deg, #D4F5E5, #84DDB4);
}

.ri3 {
  background: linear-gradient(135deg, #FFF3CE, #FFD97D);
}

.ri4 {
  background: linear-gradient(135deg, #E8D5FF, #C89FEE);
}

.ri5 {
  background: linear-gradient(135deg, #FFD7D7, #FF9F9F);
}

.ri6 {
  background: linear-gradient(135deg, #D5EEFF, #90C7F5);
}

.ri7 {
  background: linear-gradient(135deg, #FFEEDD, #FFB347);
}

.ri8 {
  background: linear-gradient(135deg, #E8F5EE, #66BB6A);
}

.rbody {
  padding: 12px;
}

.rname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.rmeta {
  font-size: 10px;
  color: var(--stone);
  margin-bottom: 6px;
  font-weight: 400;
}

.rfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rregion {
  font-size: 9px;
  font-weight: 700;
  background: var(--rust);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .03em;
}

.rxp {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

/* PRICING */
.pricing-sec {
  background: var(--cream);
  padding: 90px 48px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.plan {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px;
  border: 1.5px solid var(--border);
}

.plan.feat {
  border-color: var(--rust);
}

.plan-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--rust);
  color: #fff;
  padding: 3px 10px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.plan-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.plan-desc {
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-period {
  font-size: 11px;
  color: var(--stone);
  margin-bottom: 22px;
  font-weight: 400;
}

.pdivider {
  height: 1px;
  background: var(--border);
  margin: 14px 0 12px;
}

.pgroup {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--stone);
  margin-bottom: 8px;
  margin-top: 4px;
}

.pf {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 7px;
  line-height: 1.4;
}

.pfy {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sage-l);
  border: 1.5px solid var(--sage);
  display: grid;
  place-items: center;
  font-size: 8px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

.pfn {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--warm);
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--stone);
}

.plan-btn {
  width: 100%;
  padding: 13px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: all .2s;
  border: none;
  margin-top: 18px;
  letter-spacing: .02em;
}

.pb-ghost {
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.pb-ghost:hover {
  border-color: var(--ink);
}

.pb-rust {
  background: var(--rust);
  color: #fff;
}

.pb-rust:hover {
  background: var(--rust-d);
}

.pb-ink {
  background: var(--ink);
  color: #fff;
}

.pb-ink:hover {
  background: #333;
}

.vnote {
  font-size: 11px;
  color: var(--stone);
  background: var(--gold-l);
  border: 1px solid rgba(191, 140, 26, .22);
  border-radius: var(--rs);
  padding: 8px 12px;
  margin-top: 8px;
  line-height: 1.5;
  font-weight: 400;
}

/* COMMUNITY */
.community-sec {
  background: var(--white);
  padding: 90px 48px;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.wcard {
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s;
  border: 1px solid var(--border);
}

.wcard:hover {
  transform: scale(1.02);
}

.wimg {
  height: 130px;
  display: grid;
  place-items: center;
  font-size: 46px;
}

.wi1 {
  background: linear-gradient(135deg, #FFE8D6, #FFB088);
}

.wi2 {
  background: linear-gradient(135deg, #D4F5E5, #84DDB4);
}

.wi3 {
  background: linear-gradient(135deg, #FFF3CE, #FFD97D);
}

.wi4 {
  background: linear-gradient(135deg, #E8D5FF, #C89FEE);
}

.wi5 {
  background: linear-gradient(135deg, #FFD7D7, #FF9F9F);
}

.wi6 {
  background: linear-gradient(135deg, #D5EEFF, #90C7F5);
}

.wbody {
  padding: 11px;
}

.wuser {
  font-size: 12px;
  font-weight: 700;
}

.wdish {
  font-size: 11px;
  color: var(--stone);
  margin-top: 1px;
  font-weight: 400;
}

.wfoot {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11px;
  color: var(--stone);
}

.wxp {
  font-weight: 700;
  color: var(--gold);
}

/* CTA */
.cta-sec {
  background: var(--rust);
  padding: 100px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-sec::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.cta-h em {
  font-style: italic;
}

.cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
  max-width: 500px;
  margin: 0 auto 38px;
  line-height: 1.8;
  font-weight: 400;
}

.cta-btn {
  background: #fff;
  color: var(--rust);
  border: none;
  padding: 17px 42px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .02em;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(12, 11, 9, .2);
}

/* FOOTER */
.footer {
  background: var(--ink);
  padding: 50px 48px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.foot-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.foot-brand em {
  font-style: italic;
  color: var(--rust);
}

.foot-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.7;
  font-weight: 400;
  max-width: 240px;
}

.foot-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: 400;
  transition: color .2s;
}

.foot-col a:hover {
  color: #fff;
}

.foot-bottom {
  max-width: 1300px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foot-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  font-weight: 400;
}

/* ════════════════════════════════
   MODALS
════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 11, 9, .6);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--cream);
  border-radius: var(--r);
  padding: 38px;
  width: 100%;
  max-width: 430px;
  position: relative;
  box-shadow: 0 40px 100px rgba(12, 11, 9, .3);
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--stone);
  line-height: 1;
  padding: 6px;
}

.mlogo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.mlogo em {
  font-style: italic;
  color: var(--rust);
}

.msub {
  font-size: 13px;
  color: var(--stone);
  text-align: center;
  margin-bottom: 22px;
  font-weight: 400;
}

.sbtn {
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  transition: border-color .2s;
  color: var(--ink);
}

.sbtn:hover {
  border-color: var(--ink);
}

.mdiv {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 12px;
  color: var(--stone);
}

.mdiv::before,
.mdiv::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.mlabel {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  display: block;
}

.minput {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  font-size: 14px;
  font-family: 'Syne', sans-serif;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  margin-bottom: 11px;
}

.minput:focus {
  border-color: var(--rust);
}

.msubmit {
  width: 100%;
  padding: 13px;
  background: var(--rust);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  margin-top: 4px;
  transition: background .2s;
  letter-spacing: .02em;
}

.msubmit:hover {
  background: var(--rust-d);
}

.mswitch {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--stone);
  font-weight: 400;
}

.mswitch a {
  color: var(--rust);
  cursor: pointer;
  font-weight: 700;
}

/* ════════════════════════════════
   APP / DASHBOARD
════════════════════════════════ */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  background: var(--ink);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.sb-logo {
  padding: 22px 24px 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sb-logo em {
  font-style: italic;
  color: var(--rust);
}

.sb-user {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust-l), rgba(200, 69, 28, .4));
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sb-uname {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sb-uplan {
  font-size: 10px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 1px;
}

.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sb-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  padding: 10px 24px 6px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.sb-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .04);
}

.sb-item.on {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-left-color: var(--rust);
}

.sb-item-ico {
  font-size: 16px;
  flex-shrink: 0;
}

.sb-xp {
  margin: 16px;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--rs);
  padding: 14px;
}

.sb-xp-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sb-xp-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  font-weight: 400;
}

.sb-xp-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.sb-xp-bar {
  height: 4px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
}

.sb-xp-fill {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #E8C040);
  width: 62%;
}

.sb-xp-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, .3);
  margin-top: 5px;
  font-weight: 400;
}

.sb-logout {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .15s;
  font-weight: 400;
}

.sb-logout:hover {
  color: #fff;
}

/* MAIN AREA */
.main-area {
  flex: 1;
  overflow-y: auto;
  background: var(--cream);
}

.main-area::-webkit-scrollbar {
  width: 3px;
}

.main-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.panel {
  display: none;
  padding: 36px 40px;
  min-height: 100%;
}

.panel.show {
  display: block;
}

.panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.panel-sub {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 32px;
  font-weight: 400;
}

/* DASHBOARD HOME */
.dash-greeting {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.1;
}

.dash-greeting em {
  font-style: italic;
  color: var(--rust);
}

.dash-sub {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 28px;
  font-weight: 400;
}

.mood-row-app {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.mood-pill {
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--stone);
  font-family: 'Syne', sans-serif;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mood-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.mood-pill.sel {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}

.dash-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.dash-rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 20px;
  border: 1px solid var(--border);
}

.stat-ico {
  font-size: 22px;
  margin-bottom: 8px;
}

.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-size: 11px;
  color: var(--stone);
  margin-top: 3px;
  font-weight: 500;
}

/* CHAT PANEL */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.chat-box {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}

.chat-hd {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warm);
}

.chat-live {
  width: 9px;
  height: 9px;
  background: #52B788;
  border-radius: 50%;
}

.chat-hd-name {
  font-size: 13px;
  font-weight: 700;
}

.chat-hd-status {
  font-size: 11px;
  color: var(--stone);
  margin-left: auto;
  font-weight: 400;
}

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
}

.chat-body::-webkit-scrollbar {
  width: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: var(--border);
}

.cmsg {
  max-width: 88%;
}

.cmsg.ai {
  align-self: flex-start;
}

.cmsg.usr {
  align-self: flex-end;
}

.cmsg-from {
  font-size: 10px;
  color: var(--stone);
  margin-bottom: 3px;
  font-weight: 500;
}

.cbubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}

.cmsg.ai .cbubble {
  background: var(--warm);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}

.cmsg.usr .cbubble {
  background: var(--rust);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat-sugs {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--warm);
}

.csug {
  padding: 5px 11px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--stone);
  font-family: 'Syne', sans-serif;
  transition: all .15s;
}

.csug:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.chat-inp {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-inp input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: var(--white);
  font-size: 13px;
  font-family: 'Syne', sans-serif;
  color: var(--ink);
  outline: none;
  font-weight: 400;
}

.chat-inp button {
  padding: 12px 18px;
  background: var(--rust);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: background .2s;
}

.chat-inp button:hover {
  background: var(--rust-d);
}

/* CHECKLIST */
.cl-box-wrap {
  background: var(--white);
  border-radius: var(--r);
  padding: 22px;
  border: 1px solid var(--border);
}

.cl-recipe-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.cl-recipe-sub {
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 16px;
  font-weight: 400;
}

.portions-wrap {
  display: flex;
  align-items: center;
  background: var(--warm);
  border-radius: var(--rs);
  padding: 10px 14px;
  margin-bottom: 14px;
  gap: 10px;
  border: 1px solid var(--border);
}

.portions-lbl {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}

.pctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbtn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
  transition: all .15s;
  font-family: 'Syne', sans-serif;
}

.pbtn:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.pnum {
  font-size: 15px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.cl-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.cl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--rs);
  cursor: pointer;
  transition: background .15s;
}

.cl-item:hover {
  background: var(--warm);
}

.cl-chk {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .15s;
}

.cl-item.done .cl-chk {
  background: var(--sage);
  border-color: var(--sage);
}

.cl-item.done .cl-chk::after {
  content: '✓';
  font-size: 10px;
  color: #fff;
  font-weight: 700;
}

.cl-item.done .cl-itxt {
  text-decoration: line-through;
  color: var(--stone);
}

.cl-itxt {
  font-size: 13px;
  flex: 1;
  font-weight: 400;
}

.cl-iqty {
  font-size: 11px;
  color: var(--stone);
  font-weight: 400;
}

.cl-find-btn {
  width: 100%;
  padding: 11px;
  background: var(--rust);
  color: #fff;
  border: none;
  border-radius: var(--rs);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: background .2s;
  letter-spacing: .01em;
}

.cl-find-btn:hover {
  background: var(--rust-d);
}

/* MAP PANEL */
.map-vis {
  background: var(--warm);
  border-radius: var(--r);
  height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.map-bg-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 32% 38%, rgba(56, 88, 74, .1), transparent 55%), radial-gradient(circle at 70% 65%, rgba(200, 69, 28, .07), transparent 50%), linear-gradient(155deg, #EDF5EF, #EFE9DF);
  position: relative;
}

.mpin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mpin-d {
  width: 12px;
  height: 12px;
  background: var(--rust);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(200, 69, 28, .4);
}

.mpin-l {
  background: var(--white);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(12, 11, 9, .1);
  margin-top: 4px;
  white-space: nowrap;
}

.upin {
  position: absolute;
  top: 44%;
  left: 46%;
}

.upin-r {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(200, 69, 28, .12);
  border: 2px solid rgba(200, 69, 28, .35);
  display: grid;
  place-items: center;
}

.upin-i {
  width: 12px;
  height: 12px;
  background: var(--rust);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.map-lck {
  position: absolute;
  inset: 0;
  background: rgba(248, 244, 238, .88);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r);
}

.mlck-ico {
  font-size: 30px;
}

.mlck-txt {
  font-size: 14px;
  font-weight: 700;
}

.mlck-sub {
  font-size: 12px;
  color: var(--stone);
  text-align: center;
  max-width: 180px;
  line-height: 1.5;
  font-weight: 400;
}

.mlck-btn {
  background: var(--rust);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  margin-top: 2px;
}

.store-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-c {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--warm);
  border-radius: var(--rs);
  border: 1px solid var(--border);
}

.sc-name {
  font-size: 13px;
  font-weight: 700;
}

.sc-dist {
  font-size: 11px;
  color: var(--stone);
  margin-top: 1px;
  font-weight: 400;
}

.sc-open {
  font-size: 11px;
  font-weight: 700;
  color: var(--sage);
  background: var(--sage-l);
  padding: 3px 9px;
  border-radius: 5px;
}

/* GAMIFICATION */
.gamif-grid-app {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.gc {
  background: var(--white);
  border-radius: var(--r);
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow .15s;
}

.gc:hover {
  box-shadow: 0 4px 16px rgba(12, 11, 9, .07);
}

.gc-ico {
  font-size: 24px;
  margin-bottom: 10px;
}

.gc-t {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gc-d {
  font-size: 12px;
  color: var(--stone);
  line-height: 1.6;
  font-weight: 400;
}

.gc-b {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 7px;
}

.progress-track {
  background: var(--warm);
  border-radius: 3px;
  height: 6px;
  margin-top: 6px;
}

.progress-fill {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), #E8C040);
}

/* RANKING */
.rank-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rrow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  transition: box-shadow .15s;
}

.rrow:hover {
  box-shadow: 0 3px 12px rgba(12, 11, 9, .06);
}

.rrow.me {
  border-color: var(--rust);
  background: var(--rust-l);
}

.rpos {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  width: 28px;
  text-align: center;
  color: var(--stone);
}

.rgold {
  color: var(--gold);
}

.rsilver {
  color: #999;
}

.rbronze {
  color: #C47A3A;
}

.ravatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warm);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rn {
  font-size: 13px;
  font-weight: 700;
}

.rc {
  font-size: 11px;
  color: var(--stone);
  font-weight: 400;
}

.rp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.lv-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lvc {
  background: var(--white);
  border-radius: var(--r);
  padding: 18px;
  border: 1px solid var(--border);
}

.lvl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--stone);
  margin-bottom: 5px;
}

.lvv {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.lv-bar-w {
  height: 5px;
  background: var(--warm);
  border-radius: 3px;
}

.lv-bar-f {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), #E8C040);
}

.lv-sub {
  font-size: 11px;
  color: var(--stone);
  margin-top: 5px;
  font-weight: 400;
}

.bdg-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bdg {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--stone);
  background: var(--cream);
  font-weight: 500;
}

.bdg.on {
  background: var(--gold-l);
  border-color: rgba(191, 140, 26, .3);
  color: var(--gold);
  font-weight: 700;
}

/* PROFILE */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust-l), rgba(200, 69, 28, .3));
  display: grid;
  place-items: center;
  font-size: 36px;
  margin: 0 auto 14px;
}

.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.profile-plan {
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  background: var(--rust-l);
  padding: 3px 10px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 12px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ps-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
}

.ps-l {
  font-size: 10px;
  color: var(--stone);
  font-weight: 500;
}

.profile-form {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid var(--border);
}

.pf-section {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.pf-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pf-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  font-size: 13px;
  font-family: 'Syne', sans-serif;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  font-weight: 400;
}

.pf-input:focus {
  border-color: var(--rust);
}

.pf-save {
  background: var(--rust);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: background .2s;
}

.pf-save:hover {
  background: var(--rust-d);
}

/* ============================================
   RESPONSIVE MEJORADO - PARA TODOS LOS DISPOSITIVOS
   ============================================ */

/* Variables para breakpoints */
:root {
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* MÓVILES PEQUEÑOS (hasta 480px) */
@media (max-width: 480px) {
  /* General */
  body {
    font-size: 14px;
  }

  /* NAV */
  .nav {
    padding: 0 16px;
    height: 58px;
  }

  .nav-logo {
    font-size: 20px;
    gap: 6px;
  }

  .nav-logo-mark {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .nav-end .nbtn {
    padding: 6px 14px;
    font-size: 11px;
  }

  .nav-end .nbtn-ghost {
    display: none;
  }

  /* HERO */
  .hero {
    padding: 80px 16px 50px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }

  .cbtn {
    padding: 12px 24px;
    font-size: 13px;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hstat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .hstat:last-child {
    border-bottom: none;
  }

  /* PHONE MOCKUP */
  .phone-outer {
    width: 260px;
    transform: scale(0.9);
  }

  /* SECCIONES */
  .about-sec,
  .mood-sec,
  .features-sec,
  .recs-sec,
  .pricing-sec,
  .community-sec,
  .cta-sec {
    padding: 50px 16px;
  }

  .about-h {
    font-size: 32px;
  }

  .sec-h {
    font-size: 32px;
  }

  .sec-lead {
    font-size: 14px;
  }

  /* Mood Grid */
  .mood-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mood-card {
    display: flex;
    align-items: center;
  }

  .mc-top {
    height: 100px;
    width: 100px;
    font-size: 40px;
  }

  .mc-body {
    flex: 1;
  }

  /* Features */
  .feat-grid {
    grid-template-columns: 1fr;
  }

  /* Recetas Grid */
  .rec-grid,
  .dash-rec-grid,
  .wall-grid {
    grid-template-columns: 1fr;
  }

  /* Planes */
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 20px;
  }

  /* CTA */
  .cta-h {
    font-size: 32px;
  }

  .cta-sub {
    font-size: 14px;
    padding: 0 16px;
  }

  .cta-btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 40px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* MODALES */
  .modal {
    padding: 24px;
    margin: 16px;
    max-width: calc(100% - 32px);
  }

  .mlogo {
    font-size: 20px;
  }

  /* APP DASHBOARD */
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    height: auto;
    padding: 8px 0;
  }

  .sb-logo {
    display: none;
  }

  .sb-user {
    padding: 8px 12px;
    min-width: auto;
  }

  .sb-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .sb-uname {
    font-size: 11px;
  }

  .sb-uplan {
    font-size: 9px;
  }

  .sb-nav {
    display: flex;
    overflow-x: auto;
    padding: 0;
  }

  .sb-section {
    display: none;
  }

  .sb-item {
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 12px;
  }

  .sb-xp {
    display: none;
  }

  .sb-logout {
    padding: 8px 14px;
    font-size: 12px;
  }

  .main-area {
    height: calc(100vh - 60px);
  }

  .panel {
    padding: 16px;
  }

  .panel-title {
    font-size: 24px;
  }

  .dash-greeting {
    font-size: 28px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-val {
    font-size: 22px;
  }

  .mood-row-app {
    gap: 8px;
  }

  .mood-pill {
    padding: 7px 12px;
    font-size: 11px;
  }

  /* Chat */
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-box {
    order: 2;
  }

  .cl-box-wrap {
    order: 1;
    margin-bottom: 16px;
  }

  .chat-body {
    max-height: 280px;
  }

  .chat-sugs {
    flex-wrap: wrap;
  }

  .csug {
    font-size: 10px;
    padding: 4px 10px;
  }

  /* Ranking */
  .rank-wrap {
    grid-template-columns: 1fr;
  }

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

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

  /* Gamificación */
  .gamif-grid-app {
    grid-template-columns: 1fr;
  }
}

/* TABLET (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 90px 24px 60px;
  }

  .hero h1 {
    font-size: 48px;
  }

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

  .hero-phone {
    order: -1;
  }

  .about-h {
    font-size: 40px;
  }

  .sec-h {
    font-size: 36px;
  }

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

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

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

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

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

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

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

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .rank-wrap {
    grid-template-columns: 1fr;
  }

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

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

  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    height: auto;
  }

  .sb-nav {
    display: flex;
    overflow-x: auto;
  }

  .sb-section {
    display: none;
  }

  .sb-item {
    white-space: nowrap;
  }

  .main-area {
    height: calc(100vh - 70px);
  }
}

/* TABLET GRANDE / LAPTOP PEQUEÑA (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .mood-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rec-grid,
  .dash-rec-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .rank-wrap {
    grid-template-columns: 1fr;
  }

  .about-sec,
  .mood-sec,
  .features-sec,
  .recs-sec,
  .pricing-sec,
  .community-sec,
  .cta-sec {
    padding: 70px 32px;
  }
}

/* PANTALLAS GRANDES (1400px+) */
@media (min-width: 1400px) {
  .hero-inner,
  .about-inner,
  .sec-inner,
  .footer-inner {
    max-width: 1400px;
  }

  .hero h1 {
    font-size: 82px;
  }

  .about-h {
    font-size: 60px;
  }

  .sec-h {
    font-size: 52px;
  }

  .rec-grid,
  .dash-rec-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .panel {
    padding: 48px 56px;
  }
}

/* ORIENTACIÓN HORIZONTAL EN MÓVIL */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 60px 24px;
  }

  .hero-phone {
    transform: scale(0.7);
  }

  .modal {
    max-height: 90vh;
    overflow-y: auto;
  }

  .sidebar {
    height: auto;
  }

  .main-area {
    height: calc(100vh - 80px);
  }
}

/* MEJORAS PARA TOUCH (móviles) */
@media (hover: none) and (pointer: coarse) {
  .rcard:hover,
  .mood-card:hover,
  .feat-card:hover,
  .plan:hover,
  .team-card:hover {
    transform: none;
  }

  button,
  .sb-item,
  .mood-pill,
  .rcard,
  .csug {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  button:active,
  .sb-item:active,
  .mood-pill:active {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

/* ANIMACIONES SUAVES PARA TODOS LOS DISPOSITIVOS */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Ajustes de texto para pantallas pequeñas */
@media (max-width: 768px) {
  p, li, .feat-text, .mvv-text, .val-text, .team-bio {
    font-size: 14px;
    line-height: 1.6;
  }

  h1, h2, h3, .hero h1, .about-h, .sec-h, .cta-h {
    letter-spacing: -0.02em;
  }
}

/* Contenedores flexibles */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Scroll suave en móviles */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
  
  body {
    -webkit-font-smoothing: antialiased;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  animation: fadeUp .7s ease both;
}

.hero-phone {
  animation: fadeUp .7s ease .25s both;
}
/* Soporte para notch en iPhone */
@supports (padding: max(0px)) {
  .hero,
  .about-sec,
  .mood-sec,
  .features-sec,
  .recs-sec,
  .pricing-sec,
  .community-sec,
  .cta-sec {
    padding-left: max(48px, env(safe-area-inset-left));
    padding-right: max(48px, env(safe-area-inset-right));
  }
  
  @media (max-width: 768px) {
    .hero,
    .about-sec,
    .mood-sec,
    .features-sec,
    .recs-sec,
    .pricing-sec,
    .community-sec,
    .cta-sec {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}
/* Aumentar tamaño de elementos táctiles en móvil */
@media (max-width: 768px) {
  button,
  .nbtn,
  .cbtn,
  .msubmit,
  .plan-btn,
  .mood-pill,
  .sb-item,
  .rcard,
  .csug {
    min-height: 44px; /* Tamaño mínimo recomendado para touch */
  }
  
  .chat-inp input,
  .chat-inp button {
    min-height: 44px;
  }
  
  .minput,
  .pf-input {
    font-size: 16px; /* Evita zoom en iOS */
  }
}
/* Transiciones suaves para cambios de tamaño */
.nav,
.hero,
.sidebar,
.panel,
.modal,
.rcard,
.mood-card {
  transition: all 0.3s ease;
}

/* Prevenir scroll horizontal */
body {
  overflow-x: hidden;
  width: 100%;
}

#landing,
#app {
  overflow-x: hidden;
  width: 100%;
}
