/* Nare — nareapp.com
   Aesthetic: "juicy fruit-soft" — playful pomegranate mascot brand, purple+mint,
   blob atmosphere, bouncy-but-refined motion. Display: Unbounded; body: Plus
   Jakarta Sans (ties to the app's typography). */

:root {
  --ink: #2a2440;
  --ink-soft: #6b6385;
  --purple: #7b5cf0;
  --purple-deep: #5b4fe0;
  --purple-ghost: #efeafe;
  --mint: #5dd4a8;
  --mint-soft: #8ee5c0;
  --cream: #faf8ff;
  --card: #ffffff;
  --peach: #ffb38a;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 50px -18px rgba(91, 79, 224, 0.25);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Slim branded scrollbar (the default chrome scrollbar read as heavy). */
html { scrollbar-width: thin; scrollbar-color: rgba(123, 92, 240, 0.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(123, 92, 240, 0.3); border-radius: 999px;
  border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(123, 92, 240, 0.55); background-clip: content-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Atmosphere: drifting gradient blobs + grain ────────────────────────── */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-1 { width: 48vw; height: 48vw; background: #d9ccff; top: -18vw; right: -12vw; }
.blob-2 { width: 38vw; height: 38vw; background: #c2f2de; bottom: 4vh; left: -14vw; animation-delay: -8s; }
.blob-3 { width: 26vw; height: 26vw; background: #ffe0cc; top: 48vh; right: 8vw; opacity: 0.4; animation-delay: -16s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, -5vh) scale(1.12); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 6vw, 72px);
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 255, 0.75);
  border-bottom: 1px solid rgba(123, 92, 240, 0.08);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-brand span {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--purple-deep); letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-size: 13px !important;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--purple-deep); transform: translateY(-1px); }
.lang-switch { font-size: 13px; opacity: 0.7; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; min-height: calc(92vh - 64px);
  padding: clamp(36px, 7vh, 80px) clamp(20px, 6vw, 72px);
  max-width: 1240px; margin: 0 auto;
}
.hero-copy h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -0.01em;
}
.hero-copy h1 .squiggle {
  position: relative; white-space: nowrap; color: var(--purple);
}
.hero-copy h1 .squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.28em;
  background: var(--mint-soft); z-index: -1; border-radius: 4px;
  transform: rotate(-1deg);
}
.hero-sub {
  margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 13px 24px; border-radius: 16px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  box-shadow: 0 14px 30px -12px rgba(42, 36, 64, 0.45);
}
.store-badge:hover { transform: translateY(-3px) scale(1.02); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .small { font-size: 11px; opacity: 0.75; }
.store-badge .big { font-size: 17px; font-weight: 700; }
.hero-note { font-size: 13px; color: var(--ink-soft); }
.hero-note strong { color: var(--purple-deep); }

/* Hero visual: phone + orbiting chips + mascot */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: clamp(240px, 24vw, 300px); border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #322a52, #1d1833);
  box-shadow: 0 40px 80px -30px rgba(60, 48, 130, 0.55);
  transform: rotate(3deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-visual:hover .phone { transform: rotate(1deg) translateY(-6px); }
.phone img { width: 100%; border-radius: 34px; display: block; }
.float-chip {
  position: absolute; background: var(--card); border-radius: var(--radius-md);
  padding: 10px 16px; box-shadow: var(--shadow-soft);
  font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px;
  animation: bob 5s ease-in-out infinite;
}
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip-cal { top: 12%; left: -4%; animation-delay: -1s; }
.chip-cal .dot { background: var(--peach); }
.chip-protein { bottom: 20%; right: -6%; animation-delay: -2.6s; }
.chip-protein .dot { background: var(--mint); }
.chip-ai { top: 42%; right: -10%; animation-delay: -4s; font-size: 12px; color: var(--ink-soft); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-mascot {
  position: absolute; bottom: -22px; left: 2%;
  width: clamp(90px, 9vw, 132px); height: auto;
  filter: drop-shadow(0 16px 24px rgba(91, 79, 224, 0.35));
  animation: bob 6s ease-in-out infinite;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: clamp(56px, 9vh, 110px) clamp(20px, 6vw, 72px); max-width: 1240px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint);
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; margin-top: 12px;
  max-width: 22ch;
}
.section-lede { margin-top: 14px; color: var(--ink-soft); max-width: 56ch; }

/* Reveal on scroll — hidden state only when JS is present (html.js),
   so content stays visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* How it works — diagonal steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step {
  background: var(--card); border-radius: var(--radius-xl); padding: 30px 26px;
  box-shadow: var(--shadow-soft); position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step:hover { transform: translateY(-8px) rotate(-0.5deg); }
.step:nth-child(2) { transform: translateY(22px); }
.step:nth-child(2):hover { transform: translateY(14px) rotate(0.5deg); }
.step:nth-child(3) { transform: translateY(44px); }
.step:nth-child(3):hover { transform: translateY(36px) rotate(-0.5deg); }
.step-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  color: var(--purple-ghost); -webkit-text-stroke: 1.5px var(--purple);
  line-height: 1;
}
.step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 16px 0 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Features — asymmetric bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 48px; }
.tile {
  border-radius: var(--radius-xl); padding: 32px; position: relative; overflow: hidden;
  transition: transform 0.3s ease;
}
.tile:hover { transform: scale(1.015); }
.tile h3 { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; max-width: 16ch; position: relative; z-index: 1; }
.tile p { margin-top: 10px; font-size: 15px; max-width: 38ch; position: relative; z-index: 1; }
.tile-ai { grid-column: span 7; background: var(--ink); color: #fff; min-height: 320px; }
.tile-ai p { color: rgba(255, 255, 255, 0.72); }
.tile-ai .shot { position: absolute; right: -30px; bottom: -90px; width: 240px; border-radius: 26px; transform: rotate(-7deg); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.tile-birlikte { grid-column: span 5; background: linear-gradient(150deg, var(--mint-soft), var(--mint)); min-height: 320px; }
.tile-birlikte p { color: rgba(26, 56, 44, 0.75); }
.tile-birlikte .shot { position: absolute; right: -20px; bottom: -120px; width: 200px; border-radius: 24px; transform: rotate(6deg); box-shadow: 0 22px 44px rgba(20, 80, 56, 0.35); }
.tile-stats { grid-column: span 5; background: var(--purple-ghost); min-height: 280px; }
.tile-stats p { color: var(--ink-soft); }
.tile-stats .shot { position: absolute; right: -16px; bottom: -100px; width: 190px; border-radius: 24px; transform: rotate(-5deg); box-shadow: var(--shadow-soft); }
.tile-free { grid-column: span 7; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff; display: flex; flex-direction: column; justify-content: center; min-height: 280px; }
.tile-free p { color: rgba(255, 255, 255, 0.8); }
.tile-free .big-num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; }

/* FAQ */
.faq { max-width: 760px; }
.faq-item {
  background: var(--card); border-radius: var(--radius-lg); margin-top: 14px;
  box-shadow: 0 8px 26px -14px rgba(91, 79, 224, 0.18); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-display); font-size: 20px; color: var(--purple);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 20px; color: var(--ink-soft); font-size: 15px; }

/* Final CTA */
.cta-final {
  text-align: center; background: var(--ink); border-radius: var(--radius-xl);
  color: #fff; padding: clamp(48px, 8vh, 90px) 24px; position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 92, 240, 0.55), transparent);
  top: -180px; left: -120px;
}
.cta-final::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(93, 212, 168, 0.35), transparent);
  bottom: -160px; right: -100px;
}
.cta-final h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; position: relative; z-index: 1; }
.cta-final p { color: rgba(255, 255, 255, 0.7); margin-top: 12px; position: relative; z-index: 1; }
.cta-final .store-badge { margin-top: 30px; background: #fff; color: var(--ink); position: relative; z-index: 1; }
.cta-mascot { width: 88px; height: auto; margin: 0 auto 18px; display: block; position: relative; z-index: 1; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.3)); animation: bob 5s ease-in-out infinite; }

/* Footer */
footer {
  padding: 38px clamp(20px, 6vw, 72px); max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 13px;
}
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--purple); }

/* ── Legal / doc pages ─────────────────────────────────────────────────── */
.doc {
  max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vh, 64px) clamp(20px, 5vw, 40px) 90px;
}
.doc h1 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin-bottom: 8px; }
.doc .effective { color: var(--ink-soft); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 36px 0 12px; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; }
.doc p, .doc li { color: #463f5e; font-size: 15.5px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--purple-ghost); }
.doc th { font-weight: 700; color: var(--purple-deep); }
.doc a { color: var(--purple); }
.doc strong { color: var(--ink); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: unset; text-align: center; }
  .hero-sub, .section-title, .section-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 26px; }
  .hero-mascot { left: 8%; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2), .step:nth-child(3) { transform: none; }
  .bento { grid-template-columns: 1fr; }
  .tile { grid-column: span 1 !important; min-height: 240px; }
  .nav-links a:not(.nav-cta):not(.lang-switch) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
