/* Trendling website. The app's own look: lavender-white pages, purple brand, sunny yellow
   calls to action, glossy 3D buttons, Nunito. */

:root {
  --bg: #f5f4fb;
  --surface: #ffffff;
  --ink: #1c1838;
  --muted: #5d5980;
  --faint: #726e96;
  --border: #e7e4f2;
  --brand: #6c4bf4;
  --brand-dark: #4a2fc9;
  --brand-soft: #eeeafe;
  --hero-from: #7b5cff;
  --hero-to: #3a2bb8;
  --gold: #ffc83a;
  --gold-top: #ffda6b;
  --gold-dark: #e29c00;
  --gold-ink: #2b1a00;
  --gold-text: #a36a00;
  --green: #22c57a;
  --red: #ff4f61;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(42, 31, 107, 0.12);
  --shadow-lg: 0 24px 60px rgba(42, 31, 107, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-weight: 900; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-size: 22px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.kicker { font-size: 14px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 18px;
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-top), var(--gold)); color: var(--gold-ink); box-shadow: 0 5px 0 var(--gold-dark), var(--shadow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-dark), var(--shadow-lg); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
/* the light sweep the app's big buttons have */
.btn-gold::after {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 60px;
  left: -90px;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(20deg);
  animation: sweep 3.6s ease-in-out infinite;
}
@keyframes sweep { 0%, 70% { left: -90px; } 100% { left: 110%; } }

.store-note { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-top: 12px; }

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; padding-top: max(18px, env(safe-area-inset-top)); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-size: 26px; }
.logo img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.logo b { color: var(--gold); font-weight: 900; }
.nav { display: flex; gap: 24px; }
.nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 800; font-size: 16px; }
.nav a:hover { color: #fff; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); padding: 140px 0 110px; }
.hero::before {
  /* slowly turning light rays, as on the app's reward screens */
  content: '';
  position: absolute;
  width: 1500px;
  height: 1500px;
  left: 62%;
  top: 50%;
  margin: -750px 0 0 -750px;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.07) 0 6deg, transparent 6deg 30deg);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, 0.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; height: 560px; }
.hero-art .toro { position: absolute; width: 330px; left: -10px; bottom: 0; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3)); animation: float 4s ease-in-out infinite; }
.hero-art .phone { position: absolute; right: 0; top: 0; width: 270px; transform: rotate(4deg); }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero .kicker { color: var(--gold); }
@media (max-width: 900px) {
  .hero { padding: 120px 0 70px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-art .toro { width: 240px; }
  .hero-art .phone { width: 210px; }
}

/* ---------- phone frame ---------- */
.phone { border-radius: 42px; padding: 10px; background: #14112c; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 32px; width: 100%; height: auto; }

/* ---------- strip ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding-top: 22px; padding-bottom: 22px; }
.strip div { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--muted); font-size: 16px; }
.strip b { color: var(--brand); font-size: 22px; }

/* ---------- sections ---------- */
section { padding: 100px 0; }
.center { text-align: center; }
.center .lead { margin: 16px auto 0; }
.section-head { margin-bottom: 56px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--surface); border-radius: 28px; padding: 28px 26px 0; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 900; }
.step p { color: var(--muted); font-size: 16px; }
.step .phone { margin: 18px auto -60px; width: 78%; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* the path */
.path { background: linear-gradient(180deg, #9ee4fc, #d9f3ff 60%, var(--bg)); }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: end; }
.level { text-align: center; }
.level img { width: 92%; height: 170px; object-fit: contain; margin: 0 auto; animation: float 4.5s ease-in-out infinite; }
.level:nth-child(2) img { animation-delay: -1.1s; }
.level:nth-child(3) img { animation-delay: -2.2s; }
.level:nth-child(4) img { animation-delay: -3.3s; }
.level h3 { margin-top: 14px; }
.level p { color: var(--muted); font-size: 16px; }
.level .tag { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; letter-spacing: 0.06em; }
.tag-free { background: #e4f8ee; color: #0f8a50; }
.tag-pro { background: #fff6dc; color: var(--gold-text); }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } }

/* charts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .phone { width: 300px; margin: 0 auto; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.ticks li::before { content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 900; margin-top: 2px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 2; } }

/* mascots */
.duo-card { background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: #fff; border-radius: 36px; padding: 50px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.duo-card img { width: 100%; max-width: 420px; animation: float 4s ease-in-out infinite; }
.duo-card .lead { color: rgba(255, 255, 255, 0.88); }
.bios { display: grid; gap: 16px; margin-top: 24px; }
.bio { background: rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.bio img { width: 58px; height: 58px; object-fit: contain; animation: none; }
.bio b { color: var(--gold); }
@media (max-width: 900px) { .duo-card { grid-template-columns: 1fr; padding: 34px 24px; text-align: center; } .duo-card img { margin: 0 auto; } .bio { text-align: left; } }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform 0.2s ease; }
.card:hover { transform: translateY(-4px); }
.card .icon { width: 62px; height: 62px; object-fit: contain; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--surface); border-radius: 30px; padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.plan.pro { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); position: relative; }
.plan .price { font-size: 44px; font-weight: 900; }
.plan .price small { font-size: 18px; color: var(--muted); font-weight: 700; }
.plan .badge { position: absolute; top: -16px; right: 26px; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 13px; letter-spacing: 0.08em; padding: 6px 14px; border-radius: 999px; }
.plan .ticks { margin-top: 6px; }
.fine { font-size: 14px; color: var(--faint); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* principles */
.promise { background: var(--surface); border-radius: 30px; padding: 40px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.promise img { width: 150px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; text-align: center; } .promise img { margin: 0 auto; } }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
details { background: var(--surface); border-radius: 20px; padding: 20px 24px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 900; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--brand); font-size: 26px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* final call */
.final { text-align: center; color: #fff; background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); position: relative; overflow: hidden; }
.final img { width: 260px; margin: 0 auto 10px; animation: float 4s ease-in-out infinite; }
.final .lead { color: rgba(255, 255, 255, 0.88); margin: 16px auto 30px; }

/* footer */
footer { padding: 50px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--brand); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- legal / support pages ---------- */
.page-head { background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: #fff; padding: 130px 0 60px; }
.page-head p { color: rgba(255, 255, 255, 0.85); margin-top: 12px; }
.doc { max-width: 760px; margin: 0 auto; padding: 60px 0 40px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }

/* back to top: a glossy round button, bottom right, once you have scrolled down */
.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #8f74ff, var(--brand));
  box-shadow: 0 4px 0 var(--brand-dark), var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-dark); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
