/* MojanFit marketing site — shared design system.
   Dark theme aligned with the app: slate surfaces, teal→purple brand gradient. */

:root {
  --bg: #0B1120;
  --bg-2: #0F172A;
  --surface: #1E293B;
  --surface-2: #223047;
  --border: #334155;
  --border-soft: #26344a;
  --text: #F1F5F9;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --teal: #00C9A7;
  --purple: #7C3AED;
  --purple-2: #8B5CF6;
  --blue: #3B82F6;
  --rose: #FB7185;
  --amber: #F59E0B;
  --green: #22C55E;
  --grad: linear-gradient(135deg, #00C9A7 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,201,167,.18) 0%, rgba(124,58,237,.18) 100%);
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(124,58,237,.35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(124,58,237,.5); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #43536b; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Keyboard focus — visible on every interactive element, and never shown for
   mouse users thanks to :focus-visible */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* A text button that reads as a link but keeps button semantics */
.link-btn {
  background: none; border: 0; padding: 0; margin-top: 12px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--teal);
  transition: color .15s;
}
.link-btn:hover { color: #4fe3c6; }

/* ---------- Icon tiles ----------
   Stroked SVGs on a tinted tile. Each feature gets its own accent so the grid
   carries colour without six different card treatments. */
.ico svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ico.i-teal   { color: var(--teal);   background: rgba(0,201,167,.12);  border-color: rgba(0,201,167,.22); }
.ico.i-purple { color: var(--purple-2); background: rgba(139,92,246,.13); border-color: rgba(139,92,246,.24); }
.ico.i-blue   { color: var(--blue);   background: rgba(59,130,246,.13); border-color: rgba(59,130,246,.24); }
.ico.i-amber  { color: var(--amber);  background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.24); }
.ico.i-rose   { color: var(--rose);   background: rgba(251,113,133,.13); border-color: rgba(251,113,133,.24); }
.ico.i-cyan   { color: #38BDF8;       background: rgba(56,189,248,.13); border-color: rgba(56,189,248,.24); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11,17,32,.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
/* Log in is a button in .nav-cta on desktop — the drawer copy would duplicate it */
.nav-only-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 640px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 20% 10%, rgba(0,201,167,.20), transparent 70%),
    radial-gradient(620px 340px at 85% 0%, rgba(124,58,237,.28), transparent 70%);
  filter: blur(6px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--teal); background: rgba(0,201,167,.1); border: 1px solid rgba(0,201,167,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--text-2); margin-top: 22px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
/* Divided stat bar — rules between the figures group them into one object
   instead of three loose text blocks */
.hero-proof { display: flex; gap: 0; margin-top: 44px; flex-wrap: wrap; }
.hero-proof .stat { padding-right: 26px; }
.hero-proof .stat + .stat { padding-left: 26px; border-left: 1px solid var(--border-soft); }
.hero-proof .stat b { font-size: 27px; font-weight: 800; display: block; letter-spacing: -.02em; line-height: 1.15; }
.hero-proof .stat span { font-size: 13px; color: var(--text-3); }

/* ---------- Phone mockup ----------
   A miniature of the real dashboard — same header, calorie ring, macro bars
   and floating tab bar — so the hero shows the actual product. */
.phone {
  position: relative; width: 300px; margin: 0 auto;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(155deg, #3a4761 0%, #1b2437 40%, #131c30 100%);
  border: 1px solid #46566f;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
}
/* Machined side buttons — small detail, but their absence is what makes a
   mockup read as a rounded rectangle rather than a phone */
.phone-btn { position: absolute; background: linear-gradient(180deg, #465573, #29344a); border-radius: 2px; }
.phone-btn-silent { left: -2px; top: 92px; width: 3px; height: 24px; }
.phone-btn-vol-up { left: -2px; top: 130px; width: 3px; height: 44px; }
.phone-btn-vol-dn { left: -2px; top: 186px; width: 3px; height: 44px; }
.phone-btn-power { right: -2px; top: 152px; width: 3px; height: 66px; }

.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: var(--bg-2); border: 1px solid #223047; }
.phone-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 82px; height: 24px; background: #05080f; border-radius: 999px; z-index: 3; }

/* Status bar sits either side of the island */
.mock-status { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 2px; }
.mock-time { font-size: 11px; font-weight: 700; letter-spacing: -.01em; }
.mock-status-icons { display: inline-flex; align-items: center; gap: 5px; }
.mock-status-icons svg { height: 9px; width: auto; fill: currentColor; }

.mock-head { padding: 10px 16px 15px; background: linear-gradient(160deg, rgba(0,201,167,.14), rgba(124,58,237,.14)); }
.mock-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mock-head .name { font-size: 13.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; white-space: nowrap; }
.mock-head .greet { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.mock-streak { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 9.5px; font-weight: 700; color: #60A5FA; background: #1E3A5F; border-radius: 999px; padding: 4px 9px; }
.mock-streak svg { width: 9px; height: 9px; fill: currentColor; }

.mock-ring { display: flex; align-items: center; gap: 13px; margin-top: 13px; }
.ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-fg { filter: drop-shadow(0 0 5px rgba(0,201,167,.45)); }
.ring i { position: relative; font-style: normal; font-weight: 800; font-size: 15px; line-height: 1.1; text-align: center; }
.ring small { display: block; font-size: 7.5px; color: var(--text-3); font-weight: 600; margin-top: 1px; }

.mock-macros { flex: 1; display: grid; gap: 6px; }
.mbar { font-size: 10px; }
.mbar .top { display: flex; justify-content: space-between; color: var(--text-2); margin-bottom: 3px; }
.mbar .track { height: 5px; border-radius: 3px; background: #26344a; overflow: hidden; }
.mbar .fill { height: 100%; border-radius: 3px; }
.mock-left { font-size: 9.5px; font-weight: 700; color: var(--green); }

.mock-body { padding: 12px 12px 4px; display: grid; gap: 8px; }
.mock-card { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; }
/* Real recipe photo, with the recipe's emoji sitting underneath as the
   fallback if the image fails (onerror removes the img) */
.mock-card .thumb { position: relative; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, #24324c, #1a2436); }
.mock-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock-card .thumb b { font-size: 15px; font-weight: 400; }
.mock-card .t { font-size: 12px; font-weight: 600; line-height: 1.25; }
.mock-card .s { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.mock-card .kcal { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--teal); }

/* The app's floating tab bar — blurred pill, tinted active icon */
.mock-home-bar { width: 108px; height: 4px; border-radius: 999px; background: rgba(241,245,249,.32); margin: 0 auto 8px; }
.mock-tabs {
  margin: 8px 11px 10px; display: flex; align-items: center; gap: 1px;
  /* No backdrop-filter here: inside the rounded, overflow-hidden screen it
     fails to composite and the whole bar paints blank. A flat translucent
     fill reads the same at this size. */
  background: rgba(30,41,59,.92);
  border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 5px 4px;
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
}
.mt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 6.5px; font-weight: 700; color: #475569; letter-spacing: .01em; }
.mt svg { width: 14px; height: 14px; padding: 4px; box-sizing: content-box; border-radius: 9px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mt.active { color: #60A5FA; }
.mt.active svg { background: rgba(59,130,246,.2); box-shadow: 0 0 10px rgba(59,130,246,.25); }

/* ---------- Section headers ---------- */
.sec { padding: 84px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-head .tag { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; margin-top: 12px; font-weight: 800; }
.sec-head p { color: var(--text-2); font-size: 17px; margin-top: 14px; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-4px); border-color: #43536b; }
.feat .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 18px; transition: transform .2s ease; }
.feat:hover .ico { transform: scale(1.06); }
.feat h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.feat p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* ---------- Rail (AI section trio) ----------
   Chrome-free counterpart to .feat-grid so two consecutive three-up sections
   don't read as the same component twice. */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.rail-item { display: flex; gap: 16px; align-items: flex-start; }
.rail-item .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); flex-shrink: 0;
}
.rail-item h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.rail-item p { color: var(--text-2); font-size: 14.5px; margin-top: 7px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 10px; position: relative; }
.step .num {
  position: relative; z-index: 1;
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(124,58,237,.35);
}
/* Dashed connector running between the circles, drawn from each step except
   the first so it never overhangs the row */
.step + .step::before {
  content: ''; position: absolute; top: 27px; right: 50%; width: 100%;
  border-top: 2px dashed var(--border);
}
.step h3 { font-size: 18px; font-weight: 700; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* ---------- Recipe cards ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease; cursor: pointer; display: flex; flex-direction: column;
}
.rcard:hover { transform: translateY(-5px); border-color: #43536b; }
.rcard .cover { height: 132px; display: grid; place-items: center; position: relative; overflow: hidden; }
.rcard .cover .emoji { font-size: 54px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); position: relative; z-index: 0; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.rcard:hover .cover-img { transform: scale(1.04); transition: transform .4s ease; }
.rcard .cover .cat { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 700; text-transform: capitalize; background: rgba(11,17,32,.6); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; }
.rcard .cover .time { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 11px; font-weight: 600; background: rgba(11,17,32,.6); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; }
.rcard .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.rcard h3 { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.rcard .desc { color: var(--text-3); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard .macros { display: flex; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.rcard .macros .m { font-size: 12px; }
.rcard .macros .m b { display: block; font-size: 15px; font-weight: 800; }
.rcard .macros .m.kcal b { color: var(--teal); }
.rcard .macros .m.p b { color: var(--blue); }
.rcard .macros .m.c b { color: var(--amber); }
.rcard .macros .m.f b { color: var(--rose); }
.rcard .macros .m span { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.chip {
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all .15s;
}
.chip:hover { color: var(--text); border-color: #43536b; }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.searchbar { max-width: 440px; margin: 0 auto 26px; position: relative; }
.searchbar input {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 13px 20px 13px 46px; color: var(--text); font-size: 15px; font-family: inherit;
}
.searchbar input::placeholder { color: var(--text-3); }
.searchbar input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,.15); }
.searchbar svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

/* ---------- CTA band ---------- */
.cta-band { padding: 30px 0 100px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: 60px 30px;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% 0%, rgba(124,58,237,.35), transparent 70%); }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.cta-inner p { color: var(--text-2); font-size: 17px; margin: 14px auto 28px; max-width: 480px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer .copy { color: var(--text-3); font-size: 13px; }

/* ---------- Recipe detail page ---------- */
.detail-hero { height: 220px; display: grid; place-items: center; border-radius: 24px; position: relative; margin-bottom: 28px; overflow: hidden; }
.detail-hero .emoji { font-size: 92px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); position: relative; z-index: 0; }
.detail-hero .cover-img { border-radius: 24px; }
.detail-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; margin: 20px 0; }
.detail-back:hover { color: var(--text); }
.detail-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.detail-desc { color: var(--text-2); font-size: 17px; margin-top: 12px; max-width: 680px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 30px; }
.pill { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.macro-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.macro-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-align: center; }
.macro-box b { font-size: 26px; font-weight: 800; display: block; }
.macro-box span { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.macro-box.kcal b { color: var(--teal); }
.macro-box.p b { color: var(--blue); }
.macro-box.c b { color: var(--amber); }
.macro-box.f b { color: var(--rose); }
.detail-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.detail-cols h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.ing-list { list-style: none; display: grid; gap: 10px; }
.ing-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; }
.ing-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 8px; flex-shrink: 0; }
.step-list { list-style: none; display: grid; gap: 16px; counter-reset: s; }
.step-list li { display: flex; gap: 16px; font-size: 15.5px; line-height: 1.6; }
.step-list li::before { counter-increment: s; content: counter(s); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.detail-cta { margin-top: 44px; padding: 28px; background: var(--grad-soft); border: 1px solid var(--border); border-radius: 20px; text-align: center; }
.detail-cta h3 { font-size: 22px; font-weight: 800; }
.detail-cta p { color: var(--text-2); margin: 8px auto 20px; max-width: 420px; }

.empty { text-align: center; color: var(--text-3); padding: 60px 0; grid-column: 1 / -1; }

/* ---------- AI planner ---------- */
section[id] { scroll-margin-top: 80px; }
.planner {
  margin-top: 40px; padding: 32px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 24px; position: relative; overflow: hidden;
}
.planner::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 420px; height: 320px; background: radial-gradient(closest-side, rgba(124,58,237,.22), transparent); pointer-events: none; }
.planner > * { position: relative; }
.planner-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.planner-head p { color: var(--text-2); margin-top: 6px; max-width: 580px; font-size: 15px; }
.planner-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.p-goal {
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); transition: all .15s;
}
.p-goal:hover { color: var(--text); border-color: #43536b; }
.p-goal.active { background: var(--grad); color: #fff; border-color: transparent; }
.p-cal {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.p-actions { margin-left: auto; display: flex; gap: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.mini-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: block; transition: transform .18s ease, border-color .18s ease;
}
.mini-card:hover { transform: translateY(-3px); border-color: #43536b; }
.mini-card .mc-img { height: 92px; position: relative; display: grid; place-items: center; overflow: hidden; }
.mini-card .mc-img .emoji { font-size: 34px; }
.mini-card .mc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-card .mc-body { padding: 10px 13px 13px; }
.mini-card .mc-cat { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.mini-card h4 { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-top: 3px; }
.mini-card .mc-macros { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.plan-totals { margin-top: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.pt-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pt-row b { font-size: 22px; font-weight: 800; color: var(--teal); }
.pt-row .pt-target { color: var(--text-3); font-size: 13px; }
.pt-row .pt-macros { margin-left: auto; display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.pt-row .pt-macros .p { color: var(--blue); }
.pt-row .pt-macros .c { color: var(--amber); }
.pt-row .pt-macros .f { color: var(--rose); }
.pt-bar { height: 8px; border-radius: 5px; background: #26344a; overflow: hidden; margin-top: 12px; }
.pt-bar i { display: block; height: 100%; border-radius: 5px; background: var(--grad); transition: width .5s ease; }
.pt-note { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; transition: border-color .15s; }
.faq details:hover { border-color: #43536b; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 22px; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq .a { color: var(--text-2); font-size: 14.5px; line-height: 1.65; padding: 0 0 18px; }
.faq-cta { text-align: center; margin-top: 28px; }

/* ---------- Mojan AI chat widget ---------- */
.mf-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 30px rgba(124,58,237,.5); transition: transform .15s ease;
}
.mf-fab:hover { transform: scale(1.07); }
.mf-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 90;
  width: 375px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 130px);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  display: none; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
}
.mf-panel.open { display: flex; }
.mf-head { padding: 14px 16px; background: var(--grad); display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.mf-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 18px; }
.mf-head .t b { display: block; font-size: 15px; color: #fff; }
.mf-head .t small { font-size: 11.5px; color: rgba(255,255,255,.75); }
.mf-close { margin-left: auto; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.mf-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mf-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.mf-msg.bot { background: var(--surface); border: 1px solid var(--border-soft); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--text); }
.mf-msg.user { background: var(--purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mf-msg a { color: var(--teal); font-weight: 600; }
.mf-rec { display: flex; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; margin-top: 8px; align-items: center; transition: border-color .15s; }
.mf-rec:hover { border-color: #43536b; }
.mf-rec img { width: 50px; height: 50px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.mf-rec .r b { font-size: 13px; display: block; color: var(--text); line-height: 1.3; }
.mf-rec .r span { font-size: 11px; color: var(--text-3); }
.mf-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.mf-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: mfb 1s infinite; }
.mf-typing i:nth-child(2) { animation-delay: .15s; }
.mf-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mfb { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.mf-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; flex-shrink: 0; }
.mf-chip { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all .15s; }
.mf-chip:hover { color: var(--text); border-color: var(--teal); }
.mf-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-soft); flex-shrink: 0; }
.mf-form input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; color: var(--text); font-family: inherit; font-size: 14px; }
.mf-form input:focus { outline: none; border-color: var(--teal); }
.mf-send { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; flex-shrink: 0; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .planner { padding: 22px 18px; }
  .p-actions { margin-left: 0; width: 100%; }
  .mf-panel { right: 8px; bottom: 86px; }
  .mf-fab { right: 14px; bottom: 16px; }
}

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Reveal starts at opacity 0 and only animates in via JS, so anyone who has
   asked for less motion — or who loads the page without scripts — would be
   left staring at blank sections. Both cases get the content outright. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feat:hover, .rcard:hover, .mini-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .feat-grid, .steps, .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-template-columns: 1fr; gap: 26px; max-width: 560px; margin: 0 auto; }
  .detail-cols { grid-template-columns: 1fr; gap: 30px; }
  /* Connector only makes sense while all three sit on one row */
  .step + .step::before { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 4px; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .nav-links.open .nav-only-mobile { display: block; }
  .hero { padding: 54px 0 40px; }
  .sec { padding: 60px 0; }
  .feat-grid, .steps, .recipe-grid, .macro-row { grid-template-columns: 1fr; }
  .macro-row { grid-template-columns: repeat(2, 1fr); }
  /* Three even columns instead of a wrapping flex row — wrapping left a
     stray divider hanging at the start of the second line. The rules go too:
     labels wrap to different heights here, so they'd read as ragged. */
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  .hero-proof .stat, .hero-proof .stat + .stat { padding: 0; border: 0; }
  .hero-proof .stat b { font-size: 22px; }
  .hero-proof .stat span { font-size: 12px; line-height: 1.45; display: block; }
  .nav-cta .btn-ghost { display: none; }
}
