/* Landing page. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.btn.big { min-height: 58px; padding: 0 28px; font-size: 18px; border-radius: 18px; }
.btn.glass { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.kicker { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; opacity: .85; }
.kicker.accent { color: var(--accent); opacity: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 241, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--sep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav { background: rgba(18, 18, 20, .88); } }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 24px; letter-spacing: -.02em; }
.logo .paw { width: 30px; height: 30px; color: var(--accent); }
.logo.small { font-size: 20px; }
.logo.small .paw { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 700; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* Hero */
.hero {
  color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(1200px 600px at 85% 10%, #C2B2FA 0%, transparent 60%), linear-gradient(160deg, #A895F5 0%, #8A73F0 55%, #7660E8 100%);
}
.hero::after { /* soft paw-print texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='90' height='90'%3E%3Cg fill='%23fff' transform='rotate(-18 32 32)'%3E%3Cellipse cx='32' cy='42' rx='10' ry='8.5'/%3E%3Cellipse cx='19' cy='30' rx='4.5' ry='5.5'/%3E%3Cellipse cx='27' cy='21' rx='4.5' ry='6'/%3E%3Cellipse cx='37' cy='21' rx='4.5' ry='6'/%3E%3Cellipse cx='45' cy='30' rx='4.5' ry='5.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 24px 88px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(48px, 7vw, 86px); font-weight: 900; letter-spacing: -.035em; line-height: .98; color: #1D1A22; }
.hero .lede { font-size: 21px; margin: 22px 0 30px; max-width: 30em; color: rgba(29, 26, 34, .78); font-weight: 600; }
.hero .kicker { color: #1D1A22; opacity: .7; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row .btn.white { color: #5B47F0; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; color: rgba(29, 26, 34, .75); font-size: 15px; }
.trust li::before { content: "✓"; margin-right: 6px; color: #1D1A22; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 16px 64px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; font-size: 19px; }
  .cta-row, .trust { justify-content: center; }
}
@media (max-width: 480px) { .cta-row .btn { flex: 1 1 100%; } }

.card-elevated { background: var(--card); color: var(--text); border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(40, 20, 90, .45), 0 2px 6px rgba(40, 20, 90, .12); }
.demo { padding: 20px; max-width: 460px; width: 100%; justify-self: center; text-align: left; transition: box-shadow .3s; }
.demo.solved { box-shadow: 0 0 0 4px #4CC98A, 0 30px 60px -20px rgba(40, 20, 90, .45); }
.demo-head, .demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-head strong { font-size: 18px; font-weight: 800; }
.demo-status { font-weight: 800; color: var(--accent); font-size: 15px; white-space: nowrap; }
.demo-board { aspect-ratio: 1; margin: 14px 0; }
.demo-foot .muted { font-size: 14px; flex: 1; min-height: 2.6em; display: flex; align-items: center; }
.demo-foot a { color: var(--accent); font-weight: 800; }
.demo-actions { display: flex; gap: 6px; }

/* Sections */
.section { padding: 96px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2, .feature h2, .app-section h2, .final-cta h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; letter-spacing: -.03em; }
.section-head p.muted { font-size: 19px; margin-top: 14px; }

.rules-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rules-grid li { background: var(--card); border-radius: 24px; padding: 18px 18px 22px; box-shadow: var(--shadow); }
.rule-board { margin-bottom: 16px; }
.rules-grid h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.rules-grid p { color: var(--muted); }
@media (max-width: 900px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .rules-grid { gap: 10px; } .rules-grid li { padding: 12px 12px 16px; border-radius: 18px; } .rules-grid h3 { font-size: 17px; } .rules-grid p { font-size: 15px; } }
.controls-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.controls-strip div { background: var(--accent-soft); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; }
.controls-strip strong { color: var(--accent); font-weight: 900; font-size: 18px; }
.controls-strip span { color: var(--text); opacity: .8; }
@media (max-width: 700px) { .controls-strip { grid-template-columns: 1fr; } }

/* Features */
.features { padding-top: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; border-radius: 36px; padding: 56px 64px 0; margin-bottom: 28px; overflow: hidden; color: #1D1A22; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy { padding-bottom: 56px; }
.feature-copy > p:not(.kicker) { font-size: 19px; margin-top: 16px; color: rgba(29, 26, 34, .8); font-weight: 600; }
.feature-copy .fine { font-size: 15px !important; opacity: .8; }
.feature-shot { align-self: end; display: flex; justify-content: center; }
.feature-shot img { width: min(100%, 340px); height: auto; border-radius: 13% 13% 0 0 / 6.5% 6.5% 0 0; display: block; margin-bottom: -4px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .18)); }
.f-orange { background: linear-gradient(170deg, #FFCB98 0%, #FF9E6E 100%); }
.f-orange .feature-shot img { mask-image: linear-gradient(#000 80%, transparent); -webkit-mask-image: linear-gradient(#000 80%, transparent); }
.f-green { background: linear-gradient(170deg, #A8DFA4 0%, #6DC283 100%); }
.f-purple { background: linear-gradient(170deg, #D9CEFB 0%, #B4A3F6 100%); padding-bottom: 56px; }
.f-purple .feature-copy { padding-bottom: 0; }
.daily-btn { display: flex; width: fit-content; margin-top: 22px; color: #2F7D4F; }
@media (max-width: 860px) { .daily-btn { margin-left: auto; margin-right: auto; } }
.share-sample { display: inline-block; margin-top: 16px; background: rgba(255, 255, 255, .75); border-radius: 16px; padding: 14px 18px; font: 700 17px/1.5 var(--font); color: #1D1A22; }
.pet-parade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; justify-items: center; }
.pet-parade .sticker { width: min(140px, 26vw); height: auto; aspect-ratio: 1; animation: bob 3.4s ease-in-out infinite; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 8px 10px rgba(40, 20, 90, .25)); }
.pet-parade .sticker:nth-child(2n) { animation-delay: -1.7s; }
.pet-parade .sticker:nth-child(3n) { animation-delay: -.8s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; padding: 40px 24px 0; gap: 8px; border-radius: 28px; text-align: center; }
  .feature.reverse .feature-copy { order: 0; }
  .feature-copy { padding-bottom: 24px; }
  .feature-copy > p:not(.kicker) { font-size: 17px; }
  .f-purple { padding-bottom: 40px; }
  .feature-shot img { width: min(80%, 320px); }
}
.mini-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 12px; }
.mini-features > div { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.mf-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.mini-features h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.mini-features p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .mini-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .mini-features { grid-template-columns: 1fr; } }


/* App section */
.app-section { background: linear-gradient(180deg, #2A2350 0%, #1A1530 100%); color: #fff; overflow: hidden; padding-bottom: 0; }
.app-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.app-copy { padding-bottom: 96px; }
.app-copy .lede { font-size: 19px; color: rgba(255, 255, 255, .78); margin: 18px 0 28px; max-width: 30em; }
.app-section .kicker { color: #FF9D74; opacity: 1; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; }
.plan { background: rgba(255, 255, 255, .07); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.plan.plus { background: linear-gradient(160deg, rgba(139, 123, 255, .35), rgba(139, 123, 255, .12)); box-shadow: inset 0 0 0 1.5px rgba(160, 145, 255, .6); }
.plan h3 { font-size: 17px; font-weight: 800; }
.price { font-size: 34px; font-weight: 900; margin: 4px 0 10px; letter-spacing: -.02em; }
.price small { font-size: 15px; font-weight: 700; opacity: .7; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.plan li::before { content: "✓ "; color: #8B7BFF; font-weight: 900; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; background: #000; color: #fff; border-radius: 14px; padding: 10px 20px 10px 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.store-badge svg { width: 30px; height: 30px; }
.store-badge span { display: flex; flex-direction: column; font-weight: 800; font-size: 22px; line-height: 1.05; }
.store-badge small { font-weight: 600; font-size: 12px; opacity: .85; }
.app-shots { display: flex; justify-content: center; }
.app-shots img { width: min(100%, 340px); height: auto; border-radius: 13% 13% 0 0 / 6.5% 6.5% 0 0; display: block; margin-bottom: -6px; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
@media (max-width: 860px) {
  .app-inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .app-copy { padding-bottom: 32px; }
  .app-copy .lede { margin-left: auto; margin-right: auto; }
  .plans { margin: 0 auto; text-align: left; }
  .app-shots img { width: min(75%, 300px); }
}
@media (max-width: 460px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
details { background: var(--card); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 800; font-size: 18px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 20px; color: var(--muted); }

/* Final CTA + footer */
.final-cta { background: linear-gradient(160deg, #A895F5 0%, #7660E8 100%); text-align: center; padding: 80px 0; color: #1D1A22; }
.final-cta .sticker { width: 96px; height: 96px; margin-bottom: 12px; }
.final-cta h2 { margin-bottom: 10px; }
.final-sub { font-size: 19px; font-weight: 600; opacity: .8; margin-bottom: 26px; }
.final-cta .btn.white { color: #5B47F0; }
.footer { padding: 36px 0 48px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; font-weight: 700; color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer p { margin-left: auto; font-size: 14px; }
@media (max-width: 640px) { .footer-inner { flex-direction: column; text-align: center; } .footer p { margin: 0; } }

/* Simple content pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: 44px; font-weight: 900; margin-bottom: 12px; }
.page h2 { font-size: 22px; font-weight: 800; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }
.page a { color: var(--accent); font-weight: 700; }
