/* Learnimals — shared design system
   Palette derived from the app's PaywallView / Color+Extension.
*/

:root {
  /* Brand palette */
  --c-cream: #FFF9EC;
  --c-cream-deep: #FFE9BF;
  --c-sun: #FFF4C9;

  --c-coral: #FF623F;
  --c-coral-light: #FF7856;
  --c-coral-dark: #E64218;
  --c-coral-shadow: #A52A00;

  --c-mint: #23D0A4;
  --c-sky: #47D0FF;
  --c-pink: #FF4285;
  --c-yellow: #F9BE00;
  --c-blue: #5788E9;
  --c-green: #8BC34A;

  --c-gold-light: #FFE38A;
  --c-gold-mid: #FFD347;
  --c-gold-amber: #FFA81E;

  --c-ink: #1F1A17;
  --c-ink-muted: #5E524A;
  --c-ink-soft: #9A8E86;
  --c-headline: #6B2E00;

  --c-white: #ffffff;
  --c-border: rgba(107, 46, 0, 0.10);

  /* Layout tokens */
  --r-card: 22px;
  --r-button: 999px;
  --r-pill: 14px;

  /* Type scale */
  --font-display: 'Shantell Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--c-ink);
  background: var(--c-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ------ Page background: radial cream → soft amber ------ */
.bg-paywall {
  background:
    radial-gradient(ellipse at 50% 0%, var(--c-cream-deep) 0%, var(--c-cream) 60%) fixed,
    var(--c-cream);
}

/* ------ Container ------ */
.container-wide {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container-wide { padding-inline: 40px; }
}

/* ------ Buttons ------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-button);
  font: 700 17px/1 var(--font-display);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-coral {
  color: #fff;
  background: linear-gradient(180deg, var(--c-coral-light) 0%, var(--c-coral) 65%, var(--c-coral-dark) 100%);
  box-shadow:
    0 5px 0 0 var(--c-coral-shadow),
    0 14px 26px -8px rgba(255, 98, 63, 0.55);
}
.btn-coral:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-coral:active { box-shadow: 0 2px 0 0 var(--c-coral-shadow), 0 8px 18px -8px rgba(255,98,63,.55); }

.btn-dark {
  color: #fff;
  background: #1c1c1e;
  box-shadow: 0 5px 0 0 #000, 0 14px 26px -10px rgba(0,0,0,.35);
}
.btn-dark:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-ghost {
  color: var(--c-headline);
  background: rgba(255,255,255,0.75);
  border: 2px solid #fff;
  box-shadow: 0 6px 18px -6px rgba(107,46,0,.18);
}
.btn-ghost:hover { background: #fff; }

.btn-lg { padding: 16px 32px; font-size: 18px; }

/* ------ Language switcher (top-right pill) ------ */
.language-switcher {
  position: fixed; top: 18px; right: 18px; z-index: 100;
  background: rgba(255,255,255,.92);
  border: 2px solid #fff;
  backdrop-filter: saturate(160%) blur(8px);
  padding: 6px;
  border-radius: var(--r-button);
  display: flex; gap: 4px;
  box-shadow: 0 8px 22px -8px rgba(107,46,0,.20);
}
.lang-btn {
  border: none; background: transparent;
  padding: 7px 12px;
  border-radius: var(--r-button);
  font: 700 13px/1 var(--font-display);
  color: var(--c-ink-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { background: var(--c-cream-deep); color: var(--c-coral-dark); }
.lang-btn.active {
  background: var(--c-coral);
  color: #fff;
}
@media (max-width: 520px) {
  .language-switcher { top: 10px; right: 10px; padding: 4px; }
  .lang-btn { padding: 6px 9px; font-size: 11px; }
}

/* ------ Sparkles (decorative) ------ */
.sparkle {
  position: absolute;
  color: var(--c-gold-mid);
  font-weight: 900;
  opacity: .8;
  pointer-events: none;
  animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { transform: scale(.7) rotate(-10deg); opacity: .35; }
  50%      { transform: scale(1.25) rotate(10deg); opacity: 1; }
}
.bob { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

/* ------ Hero ------ */
.hero {
  position: relative;
  padding: 130px 0 100px;
  min-height: min(92vh, 880px);
  display: flex; align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--c-mint), #1bb189);
  color: #fff;
  border: 3px solid #fff;
  padding: 8px 16px;
  border-radius: var(--r-button);
  font: 800 13px/1 var(--font-display);
  letter-spacing: .6px;
  transform: rotate(-2deg);
  box-shadow: 0 12px 22px -10px rgba(35,208,164,.55);
  white-space: nowrap;
}
.h1 {
  font: 800 clamp(2.4rem, 5vw, 4rem)/1.05 var(--font-display);
  color: var(--c-headline);
  margin: 22px 0 14px;
  text-shadow: 0 3px 0 rgba(255,255,255,.55);
  letter-spacing: -.5px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.h1 .accent { color: var(--c-coral); }
.lede {
  font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.5 var(--font-display);
  color: var(--c-ink-muted);
  max-width: 580px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font: 600 14px/1.3 var(--font-display);
  color: var(--c-ink-muted);
}
.hero-meta strong {
  display: block; font-size: 26px; color: var(--c-coral);
  font-weight: 800; margin-bottom: 4px;
}

/* Hero device frame */
.device {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #FFE38A 100%);
  padding: 18px;
  border-radius: 44px;
  box-shadow:
    0 30px 60px -20px rgba(107, 46, 0, .35),
    0 0 0 6px rgba(255,255,255,.5);
  max-width: 540px;
  margin: 0 auto;
  transform: rotate(-1.2deg);
}
.device img {
  border-radius: 30px;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.device-floats { position: absolute; inset: -10px; pointer-events: none; }

/* ------ Generic section ------ */
.section {
  padding: 100px 0;
  position: relative;
}
.section + .section { padding-top: 0; }
.section-title {
  font: 800 clamp(1.9rem, 3.5vw, 2.6rem)/1.1 var(--font-display);
  color: var(--c-headline);
  text-align: center;
  margin: 0 0 14px;
}
.section-sub {
  font: 500 17px/1.55 var(--font-display);
  color: var(--c-ink-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ------ Feature grid (perks) ------ */
.perks {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.perk {
  background: #fff;
  border: 2px solid #fff;
  border-radius: var(--r-card);
  padding: 22px 22px 20px;
  box-shadow: 0 18px 30px -22px rgba(107,46,0,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.perk:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -18px rgba(107,46,0,.30); }
.perk-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--c-cream) 0%, var(--c-gold-light) 100%);
  font-size: 30px;
  margin-bottom: 14px;
}
.perk-icon.mint   { background: linear-gradient(140deg, #d9f9ee, var(--c-mint)); }
.perk-icon.coral  { background: linear-gradient(140deg, #ffe2d8, var(--c-coral-light)); }
.perk-icon.sky    { background: linear-gradient(140deg, #d8f1ff, var(--c-sky)); }
.perk-icon.pink   { background: linear-gradient(140deg, #ffd8e6, var(--c-pink)); }
.perk-icon.gold   { background: linear-gradient(140deg, var(--c-gold-light), var(--c-gold-amber)); }
.perk-icon.blue   { background: linear-gradient(140deg, #dde6ff, var(--c-blue)); }
.perk h3 {
  font: 800 19px/1.25 var(--font-display);
  color: var(--c-headline);
  margin: 0 0 6px;
}
.perk p {
  font: 500 14.5px/1.55 var(--font-display);
  color: var(--c-ink-muted);
  margin: 0;
}

/* ------ Categories strip ------ */
.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 36px;
}
@media (min-width: 720px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat-tile {
  background: #fff;
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 12px 26px -16px rgba(107,46,0,.30);
}
.cat-emoji {
  font-size: 38px; line-height: 1; margin-bottom: 8px;
}
.cat-title {
  font: 800 16px/1.2 var(--font-display);
  color: var(--c-headline);
}
.cat-note {
  font: 500 13px/1.3 var(--font-display);
  color: var(--c-ink-soft);
  margin-top: 4px;
}

/* ------ Screenshot strip ------ */
.shots {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 30px;
}
.shot {
  background: linear-gradient(180deg, #fff, #FFE38A);
  padding: 12px;
  border-radius: 28px;
  box-shadow: 0 22px 44px -18px rgba(107,46,0,.30);
  transform: rotate(-1deg);
  transition: transform .25s ease;
}
.shot:nth-child(even) { transform: rotate(1deg); }
.shot:hover { transform: rotate(0) translateY(-4px); }
.shot img { border-radius: 18px; }

/* ------ Pricing ------ */
.pricing {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: #fff;
  border: 3px solid #fff;
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 14px 28px -16px rgba(107,46,0,.25);
}
.plan.best {
  border-color: var(--c-coral);
  transform: scale(1.04);
}
.plan .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--c-gold-mid), var(--c-gold-amber));
  color: var(--c-headline);
  padding: 5px 12px; border-radius: 999px;
  font: 800 10.5px/1 var(--font-display); letter-spacing: 1px;
  border: 2px solid #fff; box-shadow: 0 6px 12px -4px rgba(107,46,0,.25);
  white-space: nowrap;
}
.plan-period {
  font: 800 13px/1 var(--font-display);
  color: var(--c-ink-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.plan-price {
  font: 800 30px/1 var(--font-display);
  color: var(--c-ink);
  margin-bottom: 4px;
}
.plan-per {
  font: 500 13px/1 var(--font-display);
  color: var(--c-ink-soft);
}
.plan-save {
  position: absolute; top: 12px; right: 12px;
  background: var(--c-mint); color: #fff;
  font: 800 10px/1 var(--font-display);
  padding: 4px 8px; border-radius: 999px;
}

/* ------ FAQ ------ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq details {
  background: #fff;
  border: 2px solid #fff;
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 10px 20px -16px rgba(107,46,0,.30);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font: 800 17px/1.4 var(--font-display);
  color: var(--c-headline);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '＋';
  color: var(--c-coral);
  font-size: 22px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '－'; }
.faq p {
  font: 500 15.5px/1.6 var(--font-display);
  color: var(--c-ink-muted);
  margin: 12px 0 0;
}

/* ------ CTA strip ------ */
.cta-strip {
  background:
    radial-gradient(80% 100% at 50% 0%, var(--c-gold-light) 0%, var(--c-cream-deep) 60%, var(--c-cream) 100%);
  border-radius: 36px;
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip .h1 { margin-top: 0; }

/* ------ Legal pages (privacy / terms / support) ------ */
.legal {
  background: var(--c-cream);
  min-height: 100vh;
  padding: 130px 0 100px;
}
.legal-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: 48px 36px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 22px 44px -20px rgba(107,46,0,.20);
}
.legal-card h1 {
  font: 800 clamp(1.8rem, 3.2vw, 2.4rem)/1.1 var(--font-display);
  color: var(--c-headline);
  margin: 0 0 28px;
}
.legal-card h2 {
  font: 800 22px/1.25 var(--font-display);
  color: var(--c-headline);
  margin: 28px 0 12px;
}
.legal-card p, .legal-card li {
  font: 500 16px/1.65 var(--font-display);
  color: var(--c-ink-muted);
}
.legal-card a { color: var(--c-coral); text-decoration: underline; }
.legal-card ul { padding-left: 22px; }
.legal-card .meta {
  font-size: 13px; color: var(--c-ink-soft);
  margin-bottom: 14px;
}

/* ------ Footer ------ */
.footer {
  background: #1F1A17;
  color: #d6cdc6;
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 {
  color: #fff;
  font: 800 17px/1.2 var(--font-display);
  margin: 0 0 14px;
}
.footer a { color: #d6cdc6; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; max-width: 360px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px; padding-top: 22px;
  font-size: 13px; color: #8a7e76; text-align: center;
}
.brand-mark {
  font: 800 28px/1 var(--font-display);
  background: linear-gradient(90deg, var(--c-gold-mid), var(--c-coral));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ------ Decorative floating shapes (subtle) ------ */
.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
  pointer-events: none;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* ------ Small utilities ------ */
.center { text-align: center; }
.muted { color: var(--c-ink-muted); }
.headline { color: var(--c-headline); }
.coral { color: var(--c-coral); }

/* === Product switcher + LeoFind theme === */

/* Product switcher (top-left pill, mirrors language-switcher style) */
.product-switcher {
  position: fixed; top: 18px; left: 18px; z-index: 100;
  background: rgba(255,255,255,.92);
  border: 2px solid #fff;
  backdrop-filter: saturate(160%) blur(8px);
  padding: 6px;
  border-radius: var(--r-button);
  display: flex; gap: 4px;
  box-shadow: 0 8px 22px -8px rgba(107,46,0,.20);
}
.product-btn {
  border: none; background: transparent;
  padding: 8px 14px;
  border-radius: var(--r-button);
  font: 800 13px/1 var(--font-display);
  color: var(--c-ink-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
  text-decoration: none;
  letter-spacing: .3px;
}
.product-btn:hover { background: var(--c-cream-deep); color: var(--c-coral-dark); }
.product-btn.active {
  background: var(--c-coral);
  color: #fff;
}
.product-btn[data-target="leofind"].active {
  background: var(--c-green);
  color: #fff;
}
.product-btn:active { transform: scale(.95); }
@media (max-width: 520px) {
  .product-switcher { top: 10px; left: 10px; padding: 4px; }
  .product-btn { padding: 6px 10px; font-size: 11px; }
}

/* Toggle visibility based on active product */
body[data-product="learnimals"] [data-product-view="leofind"]   { display: none !important; }
body[data-product="leofind"]    [data-product-view="learnimals"] { display: none !important; }

/* LeoFind-specific brand button (green pill) */
.btn-green {
  color: #fff;
  background: linear-gradient(180deg, #A8D96A 0%, var(--c-green) 65%, #6CA634 100%);
  box-shadow:
    0 5px 0 0 #4A7B22,
    0 14px 26px -8px rgba(139, 195, 74, 0.55);
}
.btn-green:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-green:active { box-shadow: 0 2px 0 0 #4A7B22, 0 8px 18px -8px rgba(139,195,74,.55); }

/* Green perk-icon variant */
.perk-icon.green { background: linear-gradient(140deg, #e3f3ce, var(--c-green)); }

/* LeoFind body theme: subtle green tint background */
body[data-product="leofind"].bg-paywall {
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c-green) 22%, var(--c-cream)) 0%, var(--c-cream) 60%) fixed,
    var(--c-cream);
}

/* Within LeoFind view: nudge accent colors to green */
[data-product-view="leofind"] .h1 .accent { color: var(--c-green); }
[data-product-view="leofind"] .hero-meta strong { color: var(--c-green); }
[data-product-view="leofind"] .eyebrow {
  background: linear-gradient(90deg, var(--c-green), #6CA634);
  box-shadow: 0 12px 22px -10px rgba(139, 195, 74, .55);
}
[data-product-view="leofind"] .plan.best { border-color: var(--c-green); }
[data-product-view="leofind"] .faq summary::after { color: var(--c-green); }
[data-product-view="leofind"] .brand-mark {
  background: linear-gradient(90deg, var(--c-gold-mid), var(--c-green));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* LeoFind icon block in hero */
.leofind-icon {
  width: 132px; height: 132px;
  border-radius: 30px;
  display: block;
  margin-bottom: 18px;
  box-shadow: 0 18px 36px -14px rgba(107,46,0,.35), 0 0 0 4px #fff;
}
@media (min-width: 520px) {
  .leofind-icon { width: 152px; height: 152px; }
}

/* === Pricing hidden — prices shown inside the apps === */
#pricing,
#leofind-pricing {
  display: none !important;
}

/* === Mobile polish (≤ 520px) === */
@media (max-width: 520px) {
  /* Tighter hero so it doesn't eat the screen */
  .hero { padding: 90px 0 60px; min-height: auto; }
  .hero-grid { gap: 32px; }

  /* H1 / lede / section titles scale down */
  .h1 { font-size: clamp(1.9rem, 9.5vw, 2.6rem); letter-spacing: -.3px; margin: 14px 0 10px; }
  .lede { font-size: 1rem; line-height: 1.5; margin-bottom: 22px; }
  .section { padding: 64px 0; }
  .section-title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .section-sub { font-size: 1rem; }

  /* Hero CTA stacks full-width, no horizontal scroll */
  .hero-cta { flex-direction: column; gap: 12px; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 18px; }
  .hero-meta strong { font-size: 22px; }

  /* Device frame less rotation, smaller padding so the screenshot dominates */
  .device { padding: 12px; border-radius: 36px; transform: rotate(-0.6deg); }
  .device img { border-radius: 24px; }

  /* LeoFind hero icon a tad smaller */
  .leofind-icon { width: 108px; height: 108px; border-radius: 24px; margin-bottom: 14px; }

  /* Product + Language switchers: keep them from colliding on narrow screens */
  .product-switcher { top: 8px; left: 8px; padding: 4px; gap: 2px; }
  .product-btn { padding: 6px 10px; font-size: 11px; }
  .language-switcher { top: 8px; right: 8px; padding: 4px; gap: 2px; }
  .lang-btn { padding: 6px 8px; font-size: 11px; }

  /* Floating decorative shapes are too heavy on small screens */
  .float-shape, .sparkle { display: none; }

  /* CTA strip + footer breathing */
  .cta-strip { padding: 40px 22px !important; }
  .footer { padding: 56px 0 36px; }
}
