﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-2: #eef2ea;
  --ink: #1c2420;
  --ink-2: #4a554f;
  --ink-3: #66716b;
  --line: #e2e6de;
  --brand: #234d38;
  --brand-2: #2f6a4c;
  --brand-soft: #dfeadf;
  --clay: #a4522f;
  --clay-soft: #f6e6dc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28,36,32,.04), 0 8px 24px rgba(28,36,32,.06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121714; --surface: #1a211d; --surface-2: #202a24; --ink: #eef2ee; --ink-2: #c2cbc5; --ink-3: #9aa59f;
    --line: #2c3631; --brand: #7fc29b; --brand-2: #96d3ae; --brand-soft: #22372b; --clay: #e7a07f; --clay-soft: #3a2a22;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #121714; --surface: #1a211d; --surface-2: #202a24; --ink: #eef2ee; --ink-2: #c2cbc5; --ink-3: #9aa59f;
  --line: #2c3631; --brand: #7fc29b; --brand-2: #96d3ae; --brand-soft: #22372b; --clay: #e7a07f; --clay-soft: #3a2a22;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 18px; }
.eyebrow.clay { background: var(--clay-soft); color: var(--clay); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 .95rem var(--sans); padding: 14px 24px; border-radius: 12px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: .85rem; border-radius: 10px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; color: var(--brand); }
.logo b { color: var(--brand); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); padding: 8px 14px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .login { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); cursor: pointer; }

/* page heading for inner pages */
.page-head { padding: 56px 0 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head p { max-width: 560px; margin: 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-width: 280px; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 12px 0; width: 100%; }
.search svg { width: 18px; color: var(--ink-3); flex: none; }

/* layout with sidebar */
.with-side { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-bottom: 80px; align-items: start; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 12px 6px; }
.side button { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; font: 600 .92rem var(--sans); color: var(--ink-2); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.side button:hover { background: var(--surface-2); color: var(--ink); }
.side button.active { background: var(--brand-soft); color: var(--brand); }
.side .count { margin-left: auto; font-size: .78rem; color: var(--ink-3); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* media placeholder (swap for real photos/thumbnails) */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); display: grid; place-items: center; color: var(--brand); }
.ph::after { content: attr(data-label); position: absolute; left: 12px; bottom: 10px; font: 600 .72rem var(--sans); color: var(--ink-3); letter-spacing: .03em; }
.ph.clay { background: linear-gradient(135deg, var(--clay-soft), var(--surface-2)); }
.play { width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 90%, transparent); display: grid; place-items: center; box-shadow: var(--shadow); }
.play svg { width: 20px; margin-left: 3px; color: var(--brand); }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(20,28,24,.82); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }

.icon { width: 22px; height: 22px; flex: none; }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.chip.clay { background: var(--clay-soft); color: var(--clay); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .88rem; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer p { color: var(--ink-3); max-width: 620px; margin: 0; font-size: .82rem; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .login { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px; }
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-label { display: none; }
  .side button { white-space: nowrap; border: 1px solid var(--line); }
  .side .count { display: none; }
  .search { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-actions .btn { display: none; }
}

/* ---------- Plans (Starter / Complete) ---------- */
:root { --neon: #c4161c; --neon-line: #ff3b3b; --neon-bg: rgba(255,59,59,.07); --neon-glow: rgba(255,59,59,.38); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --neon: #ff6b6b; --neon-line: #ff4d4d; --neon-bg: rgba(255,77,77,.1); --neon-glow: rgba(255,77,77,.45); } }
.plans-wrap { scroll-margin-top: 96px; }
.plans-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 28px 26px; box-shadow: var(--shadow); }
.plan.best { border-color: var(--clay); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.plan .badge-best { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--clay); color: var(--bg); font-size: .78rem; font-weight: 800; padding: 5px 14px; border-radius: 99px; white-space: nowrap; }
.plan-name { font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.plan.best .plan-name { color: var(--clay); }
.plan-price { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: 8px 0 4px; color: var(--ink); }
.plan-price small { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.plan-sub { font-size: .93rem; margin: 6px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; font-size: .94rem; font-weight: 600; color: var(--ink); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 900; flex: none; }
.plan li.no { color: var(--ink-2); font-weight: 500; text-decoration: line-through; }
.plan li.no::before { content: "–"; color: var(--ink-2); }
.plan li.plus { color: var(--clay); }
.plan li.plus::before { content: "+"; color: var(--clay); }
.plan .plan-btn { margin-top: auto; justify-content: center; padding: 15px; font-size: 1rem; background: var(--brand); color: var(--bg); }
.plan.best .plan-btn { background: var(--clay); }
.plans-note { text-align: center; margin: 20px 0 0; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.plan-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; color: var(--neon); border: 1.5px solid var(--neon-line); background: var(--neon-bg); box-shadow: 0 0 10px var(--neon-glow), inset 0 0 6px var(--neon-glow); text-shadow: 0 0 6px var(--neon-glow); }
.plan-tag svg { width: 13px; height: 13px; }
.plan-tag.complete { color: var(--clay); border-color: var(--clay); background: var(--clay-soft); box-shadow: none; text-shadow: none; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } .plan.best { order: -1; } }
.plans.three { grid-template-columns: repeat(3, 1fr); max-width: 1120px; }
.plan.pro { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 40%); }
.plan.pro .plan-name { color: var(--brand); }
.pro-badge { background: var(--brand) !important; }
.pro-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-decoration: none; margin: 0 0 24px; padding: 14px 18px; border-radius: 16px; background: var(--brand); color: var(--bg); }
.pro-banner b { display: block; }
.pro-banner small { display: block; opacity: .95; font-size: .88rem; }
.pro-banner .go { margin-left: auto; background: var(--bg); color: var(--brand); font-weight: 800; padding: 8px 14px; border-radius: 10px; white-space: nowrap; }
@media (max-width: 980px) { .plans.three { grid-template-columns: 1fr; max-width: 520px; } .plans.three .plan.best { order: 0; } }


/* ---- owner preview mode ---- */
.preview-bar { background: #1c2420; color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 8px 16px; }
.preview-bar a { color: #f6c9b0; margin-left: 8px; }
.preview-all .plan-tag, .preview-all .lp { color: var(--brand) !important; border-color: var(--brand) !important; background: var(--brand-soft) !important; box-shadow: none !important; text-shadow: none !important; animation: none !important; }
.preview-all .unlock-bar, .preview-all .pro-banner, .preview-all .upgrade { display: none !important; }
a.mini { text-decoration: none; color: inherit; cursor: pointer; }
.preview-all a.mini { pointer-events: auto; cursor: pointer; }
.preview-all a.mini:hover { border-color: var(--brand); }
a.mini .bk b::after { content: "  ·  View →"; font-size: .78rem; color: var(--brand); font-weight: 700; }

a.card { text-decoration: none; color: inherit; }

a.mini:hover { border-color: var(--brand); }
.dl-btn { display: inline-flex !important; }

/* ---- light theme: darker, bolder text ---- */
:root[data-theme="light"] { --ink: #0f1613; --ink-2: #27312c; --ink-3: #3f4a44; --line: #d6ddd5; }
body { font-weight: 500; }
p, li { color: var(--ink-2); }
h1, h2, h3 { font-weight: 700; color: var(--ink); }
b, strong { font-weight: 800; }
.nav-links a, .nav-actions .login { color: var(--ink-2); font-weight: 700; }
.muted, .hint, small { color: var(--ink-3); }
.btn { font-weight: 800; }

/* ---- clearer boxes on the light theme ---- */
:root[data-theme="light"] { --bg: #f1efe8; --surface: #ffffff; --surface-2: #e9eee6; --line: #cfd7cd; --shadow: 0 1px 2px rgba(20,30,25,.06), 0 6px 18px rgba(20,30,25,.08); }
.card { border: 1px solid var(--line); box-shadow: var(--shadow); }
.qz, .card.qz { border: 1.5px solid #c3cfc4; box-shadow: 0 2px 4px rgba(20,30,25,.06), 0 14px 34px rgba(20,30,25,.10); }
.qz-opt { background: #fff; border-color: #cdd6cc; }
.mini { background: #fff !important; border-color: #cdd6cc !important; }
.search { border-color: #cdd6cc; }

/* line icons (replace emojis) */
.ic { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.ic svg { width: 100%; height: 100%; }

.qz-ic, .sc-hero-ic, .sc-cta-ic { color: var(--brand); }
.stat strong .ic { width: .8em; height: .8em; margin-right: .15em; color: var(--clay); }
.task small .ic { width: 1.3em; height: 1.3em; color: var(--brand); }
.badge-best .ic, .pro-banner .ic, .unlock-bar .ic { color: inherit; }

:root[data-theme="light"] { --bg: #edf1ec; --surface-2: #e2e9e1; }

/* =================== MOTION =================== */
/* scroll reveal */
.motion:not(.reduce) .reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms); }
.motion:not(.reduce) .reveal.in { opacity: 1; transform: none; }

/* scroll progress ("skin clearing" line) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #c4512f, #d9925f 45%, #3c8a62); }

/* hero entrance */
.motion:not(.reduce) .hero .eyebrow, .motion:not(.reduce) .hero h1, .motion:not(.reduce) .hero .lead, .motion:not(.reduce) .hero-ctas, .motion:not(.reduce) .hero .trust { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.motion:not(.reduce) .hero h1 { animation-delay: .1s; } .motion:not(.reduce) .hero .lead { animation-delay: .22s; }
.motion:not(.reduce) .hero-ctas { animation-delay: .34s; } .motion:not(.reduce) .hero .trust { animation-delay: .46s; }
.motion:not(.reduce) .collage .ba.before { animation: popRot1 .9s cubic-bezier(.3,1.3,.5,1) .35s both; }
.motion:not(.reduce) .collage .ba.after { animation: popRot2 .9s cubic-bezier(.3,1.3,.5,1) .55s both; }
.motion:not(.reduce) .collage .badge { animation: popIn .7s cubic-bezier(.3,1.5,.5,1) .8s both, floaty 5s ease-in-out 1.6s infinite; }
.collage { transition: transform .2s linear; will-change: transform; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes popRot1 { from { opacity: 0; transform: rotate(-12deg) scale(.7); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes popRot2 { from { opacity: 0; transform: rotate(12deg) scale(.7); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes popIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* drifting pores / droplets behind the hero */
.hero { position: relative; isolation: isolate; }
.pores { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pores span { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(47,106,76,.10) 60%, rgba(47,106,76,.04));
  border: 1px solid rgba(47,106,76,.10); animation: drift var(--t) ease-in-out var(--dl) infinite; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); opacity: .0; } 15% { opacity: .9; } 50% { transform: translate(24px,-46px) scale(1.12); } 85% { opacity: .8; } 100% { transform: translate(-10px,-90px) scale(.9); opacity: 0; } }

/* breakout spots that calm and fade on the "before" frame */
.spots { position: absolute; inset: 0; pointer-events: none; }
.spots i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #d4644a 0%, rgba(212,100,74,.55) 45%, rgba(212,100,74,0) 72%); animation: spot 4.5s ease-in-out var(--dl) infinite; }
@keyframes spot { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(.55); opacity: .25; } }
/* clear-skin shimmer on the "after" frame */
.ba.shimmer { overflow: hidden; }
.ba.shimmer::before { content: ""; position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.65) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 4.2s ease-in-out 1.4s infinite; z-index: 1; }
@keyframes sheen { 0% { transform: translateX(-100%); } 55%,100% { transform: translateX(100%); } }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(15,22,19,.35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* headings: underline grows in */
.grow-line { position: relative; }
.motion:not(.reduce) .grow-line::after { content: ""; position: absolute; left: 0; bottom: -8px; height: 3px; width: 56px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--clay)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2,.7,.2,1) .15s; }
.center-head .grow-line::after, .plans-head .grow-line::after { left: 50%; margin-left: -28px; transform-origin: 50% 50%; }
.motion:not(.reduce) .grow-line.in::after { transform: scaleX(1); }

/* hover lifts & button shine */
.card, .plan, .mini, .vid, .feature { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s; }
.plan:hover, .card.item:hover, .card.set:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(20,30,25,.06), 0 18px 40px rgba(20,30,25,.12); }
.btn-primary, .hero-buy, .plan-btn { position: relative; overflow: hidden; }
.btn-primary::after, .hero-buy::after, .plan-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-primary:hover::after, .hero-buy:hover::after, .plan-btn:hover::after { transform: translateX(120%); }
.hero-buy { animation: ctaGlow 3s ease-in-out 2s infinite; }
@keyframes ctaGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(164,82,47,.35); } 50% { box-shadow: 0 0 0 10px rgba(164,82,47,0); } }

@media (prefers-reduced-motion: reduce) {
  .pores, .spots, .scroll-cue, .scroll-progress { display: none !important; }
  .hero-buy, .ba.shimmer::before, .collage .badge { animation: none !important; }
}

/* =================== HOVER POP-UPS =================== */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* cards spring up */
  .card, .feature, .plan, .mini, .vid, .qz-opt, .task, .hcard, .stat, .faq details, .sc-cta, .qz-scan {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .2s ease; }
  .card:hover, .feature:hover, .plan:hover, .vid:hover, .faq details:hover {
    transform: translateY(-7px) scale(1.015); box-shadow: 0 6px 12px rgba(20,30,25,.07), 0 22px 44px rgba(20,30,25,.14); border-color: #b9c8bb; }
  .mini:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 24px rgba(20,30,25,.12); }
  .qz-opt:hover, .task:hover { transform: translateY(-2px) scale(1.012); box-shadow: 0 8px 18px rgba(20,30,25,.09); }

  /* icons inside pop and wiggle */
  .card:hover .ic, .feature:hover .ic, .mini:hover .n, .feature:hover .ic svg, .plan:hover .badge-best, .qz-opt:hover .qz-mark, .task:hover .box {
    animation: iconPop .55s cubic-bezier(.34,1.56,.64,1); }
  @keyframes iconPop { 0% { transform: scale(1); } 40% { transform: scale(1.28) rotate(-8deg); } 70% { transform: scale(.95) rotate(4deg); } 100% { transform: scale(1); } }

  /* images zoom softly inside their frame */
  .vid .ph, .card.item .cover-real, .mini img, .featured .ph, .ch-img img, .g-cover img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  .vid:hover .ph, .featured:hover .ph { transform: scale(1.05); }
  .card.item:hover .cover-real, .mini:hover img { transform: rotate(-2deg) scale(1.06); }
  .vid .play { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
  .vid:hover .play, .featured:hover .play { transform: scale(1.25); }

  /* "Open" chip pops up on guide cards */
  a.mini { position: relative; }
  a.mini::after { content: "Open →"; position: absolute; right: 10px; top: -10px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800;
    padding: 4px 9px; border-radius: 99px; box-shadow: 0 6px 14px rgba(20,30,25,.18); opacity: 0; transform: translateY(8px) scale(.6);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .2s; pointer-events: none; }
  a.mini:hover::after { opacity: 1; transform: none; }

  /* buttons pop */
  .btn { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s; }
  .btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 18px rgba(20,30,25,.16); }
  .btn:active { transform: scale(.97); }

  /* nav links: underline pops in */
  .nav-links a { position: relative; }
  .nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--clay); transform: scaleX(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
  .nav-links a:hover::after { transform: scaleX(1); }

  /* plan tags and chips bounce */
  .chip-btn, .plan-tag, .chip { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
  .chip-btn:hover, .card:hover .plan-tag { transform: translateY(-2px) scale(1.06); }

  /* before/after frames tilt toward you */
  .collage .ba { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
  .collage .ba.before:hover { transform: rotate(-1deg) scale(1.06); z-index: 3; }
  .collage .ba.after:hover { transform: rotate(1deg) scale(1.06); z-index: 3; }
}

/* ---- installable app ---- */
.install-btn { gap: 6px; }
.install-btn .ic { width: 1em; height: 1em; }
.install-dialog { border: 0; border-radius: 22px; padding: 30px 28px 24px; max-width: 400px; width: calc(100vw - 32px); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.install-dialog::backdrop { background: rgba(15,22,19,.5); }
.install-dialog img { border-radius: 16px; margin: 0 auto 10px; display: block; }
.install-dialog h3 { margin: 0 0 12px; }
.install-dialog ol { text-align: left; padding-left: 20px; display: grid; gap: 8px; margin: 0 0 18px; color: var(--ink-2); }
.install-dialog .x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.install-card { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.install-card img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.install-card b { display: block; }
.install-card small { color: var(--ink-2); }
.install-card .btn { margin-left: auto; }
/* inside the installed app: no preview bar or website-only banners */
.in-app .preview-bar { display: none; }
.in-app .site-header { padding-top: env(safe-area-inset-top); }

/* ---- AcneRecovery Coach (AI chat) ---- */
.coach { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-family: var(--sans); }
.coach-fab { display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--brand); color: #fff; font: 800 .95rem var(--sans); padding: 14px 20px 14px 16px; border-radius: 99px; box-shadow: 0 10px 28px rgba(15,30,22,.28); transition: transform .3s cubic-bezier(.34,1.56,.64,1); animation: fabIn .6s cubic-bezier(.34,1.56,.64,1) 1s both; }
.coach-fab:hover { transform: translateY(-3px) scale(1.04); }
.coach-fab .ic { width: 22px; height: 22px; }
.coach.open .coach-fab .lbl { display: none; }
.coach.open .coach-fab { padding: 14px; }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }
.coach-panel { position: absolute; right: 0; bottom: 66px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(15,30,22,.24); display: flex; flex-direction: column; overflow: hidden; animation: panelIn .35s cubic-bezier(.34,1.56,.64,1); transform-origin: bottom right; }
@keyframes panelIn { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
.coach-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; background: var(--brand); color: #fff; }
.coach-panel header b { display: block; font-size: .98rem; }
.coach-panel header small { display: block; font-size: .76rem; opacity: .92; color: #fff; }
.coach-panel .av { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.coach-panel .av svg { width: 20px; height: 20px; }
.coach-panel .cx { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.coach-panel .cx svg { width: 16px; height: 16px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.m { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: msgIn .3s cubic-bezier(.34,1.56,.64,1); }
.m p { margin: 0 0 6px; color: inherit; } .m p:last-child { margin: 0; }
.m ul { margin: 4px 0; padding-left: 18px; } .m li { color: inherit; margin-bottom: 3px; }
.m.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.m.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.m.err { border-color: #e8a184; background: #fff3ec; }
.m.typing { display: flex; gap: 4px; padding: 13px 15px; }
.m.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .4; animation: dot 1.2s infinite; }
.m.typing span:nth-child(2) { animation-delay: .15s; } .m.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--bg); }
.chips:empty { display: none; }
.chips button { font: 700 .8rem var(--sans); border: 1px solid #b9cdbd; background: #fff; color: var(--brand); border-radius: 99px; padding: 6px 11px; cursor: pointer; text-align: left; }
.chips button:hover { border-color: var(--brand); }
.ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.ask input { flex: 1; font: inherit; font-size: .93rem; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.ask input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.ask button { width: 42px; border: 0; border-radius: 12px; background: var(--clay); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ask button svg { width: 19px; height: 19px; }
.coach .fine { margin: 0; padding: 0 12px 10px; font-size: .72rem; color: var(--ink-3); background: #fff; }
@media (max-width: 560px) { .coach { right: 14px; bottom: 14px; } .coach-fab .lbl { display: none; } .coach-fab { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .coach-fab, .coach-panel, .m, .m.typing span { animation: none !important; } }

.coach-panel[hidden] { display: none !important; }

.pro-banner small, .unlock-bar small, .stat.phase small, .coach-panel header small { color: #fff !important; opacity: .92; }

/* ---- inside & outside cause diagram ---- */
.orbit-sec { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.orbit { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.orb-stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin: 0 auto; }
.orb-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orb-ring .arc { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 130; }
.orb-ring .arc.in { stroke: #2f6a4c; } .orb-ring .arc.out { stroke: #c4724f; }
.orb-ring .spoke { stroke: #b7c7ba; stroke-width: .5; stroke-dasharray: 2 1.6; opacity: 0; }
.orb-ring .spoke.hot { stroke: var(--clay); stroke-width: .8; stroke-dasharray: none; }
.half-lbl { position: absolute; top: 50%; transform: translateY(-50%); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: #fff; opacity: 0; }
.half-lbl.l { left: 2%; color: #2f6a4c; border: 1px solid #b5cfbd; } .half-lbl.r { right: 2%; color: #b0552f; border: 1px solid #e6b9a3; }
.core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%,-50%) scale(.4); border-radius: 50%; background: linear-gradient(160deg, #f3e3d6, #e9cdb9); display: grid; place-items: center; text-align: center; box-shadow: 0 10px 30px rgba(20,30,25,.14); opacity: 0; }
.core b { display: block; font-family: var(--serif); font-size: clamp(1rem, 2.2vw, 1.45rem); color: var(--ink); line-height: 1.1; }
.core small { display: block; font-size: .72rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.core .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(196,114,79,.45); opacity: 0; }
.node { position: absolute; transform: translate(-50%,-50%) scale(.3); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; padding: 14px 10px 12px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 8px 22px rgba(20,30,25,.10); cursor: pointer; font: inherit; color: var(--ink); opacity: 0; transition: box-shadow .25s, border-color .2s; }
.node .ic { width: 30px; height: 30px; color: var(--brand); }
.node .nt { font-weight: 800; font-size: .9rem; line-height: 1.2; text-align: center; }
.node .num { position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: var(--brand); }
.node.out .ic { color: #b0552f; } .node.out .num { background: #c4724f; }
.node.main { border-color: #b5cfbd; }
.node.fix { background: var(--brand); border-color: var(--brand); color: #fff; } .node.fix .ic { color: #fff; } .node.fix .num { background: #c4724f; }
.node.on { border-color: var(--clay); box-shadow: 0 14px 34px rgba(20,30,25,.18); }
.node.fix.on { border-color: #c4724f; }
.orb-detail .od { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 22px; animation: odIn .4s cubic-bezier(.34,1.56,.64,1); }
.od.fix { background: var(--brand-soft); border-color: #b5cfbd; }
.od-side { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.od h3 { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; margin: 8px 0 2px; }
.od h3 .ic { width: 30px; height: 30px; color: var(--brand); }
.od-tag { font-weight: 800; color: var(--brand); margin: 0 0 10px; }
.od p { font-size: 1.02rem; }
@keyframes odIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* play sequence */
.orbit.orb-go .arc { animation: drawArc 1.3s cubic-bezier(.4,0,.2,1) forwards; }
.orbit.orb-go .arc.out { animation-delay: .15s; }
.orbit.orb-go .core { animation: coreIn .8s cubic-bezier(.34,1.56,.64,1) .2s forwards; }
.orbit.orb-go .core .pulse { animation: corePulse 2.8s ease-out 1.2s infinite; } .orbit.orb-go .core .p2 { animation-delay: 2.6s; }
.orbit.orb-go .half-lbl { animation: fadeIn .6s ease 1.1s forwards; }
.orbit.orb-go .spoke { animation: fadeIn .5s ease forwards; }
.orbit.orb-go .s1 { animation-delay: .9s; } .orbit.orb-go .s2 { animation-delay: 1.15s; } .orbit.orb-go .s3 { animation-delay: 1.4s; } .orbit.orb-go .s4 { animation-delay: 1.65s; }
.orbit.orb-go .node { animation: nodePop .7s cubic-bezier(.34,1.56,.64,1) forwards, nodeFloat 6s ease-in-out infinite; }
.orbit.orb-go .n1 { animation-delay: .9s, 2.6s; } .orbit.orb-go .n2 { animation-delay: 1.15s, 3.1s; } .orbit.orb-go .n3 { animation-delay: 1.4s, 3.6s; } .orbit.orb-go .n4 { animation-delay: 1.65s, 4.1s; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
@keyframes coreIn { to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes corePulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes nodePop { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes nodeFloat { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-56%) scale(1); } }
@media (hover: hover) { .node:hover { box-shadow: 0 16px 36px rgba(20,30,25,.2); } }
@media (max-width: 900px) { .orbit { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) { .node { width: 104px; padding: 10px 6px; } .node .nt { font-size: .78rem; } .node .ic { width: 24px; height: 24px; } .half-lbl { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .orb-ring .arc { stroke-dashoffset: 0; } .core, .node, .half-lbl, .orb-ring .spoke { opacity: 1 !important; animation: none !important; }
  .core { transform: translate(-50%,-50%); } .node { transform: translate(-50%,-50%); }
}

