/* PottyQuest theme. Same tokens as the app (app/css/styles.css). */
:root {
  --bg: #F6F2FF;
  --surface: #FFFFFF;
  --ink: #24164A;
  --ink-2: #5E5480;
  --ink-3: #8B82A8;
  --violet: #6B4EE6;
  --violet-deep: #4B2FC2;
  --violet-soft: #ECE6FF;
  --sun: #FFC94D;
  --sun-deep: #E8A92A;
  --sun-soft: #FFF3D2;
  --mint: #22B98F;
  --mint-soft: #DCF6EC;
  --blush-soft: #FFE8F1;
  --line: #E6DFF7;
  --danger: #C23B6E;

  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: 16px;
  --lift-1: 0 1px 2px rgba(36, 22, 74, .06), 0 6px 18px rgba(75, 47, 194, .07);
  --lift-2: 0 2px 4px rgba(36, 22, 74, .06), 0 14px 34px rgba(75, 47, 194, .14);
  --sticker: 0 0 0 4px #fff, 0 6px 14px rgba(36, 22, 74, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
.ico { display: inline-block; vertical-align: -.2em; flex: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.wrap.shop-wrap { max-width: 1040px; }
.site-main { min-height: 50vh; }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ── buttons ─────────────────────────────────── */
.btn, .wp-element-button, .wp-block-button__link {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 13px 26px; border-radius: 999px;
  background: var(--violet); color: #fff; text-decoration: none;
  font: 700 1.05rem/1.2 var(--body);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px rgba(107, 78, 230, .32);
  transition: transform .12s, background .12s; text-align: center;
}
.btn:hover { background: var(--violet-deep); color: #fff; }
.btn:active { transform: translateY(2px); }
.btn-big { min-height: 60px; padding: 16px 34px; font-size: 1.15rem; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; box-shadow: none; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 20px rgba(232, 169, 42, .4); }
.btn-sun:hover { background: #FFBE2E; color: var(--ink); }
.btn-quiet { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line) inset; }
.btn-quiet:hover { background: var(--violet-soft); color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--lift-1); min-width: 0; }
.sticker { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--surface); box-shadow: var(--sticker); }
.tilt-l { transform: rotate(-5deg); }
.tilt-r { transform: rotate(4deg); }
.fine { font-size: .88rem; color: var(--ink-3); }

/* ── header / footer ─────────────────────────── */
.site-head { padding: 14px 0; }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.wordmark-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--violet-soft); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2px #fff; flex: none; }
.wordmark-mark svg { width: 36px; height: 36px; transform: translateY(3px) scale(1.15); }
.wordmark-text { font: 800 1.25rem/1 var(--display); letter-spacing: -.03em; }
.wordmark-text b { color: var(--violet); font-weight: 800; }
.head-nav { display: flex; align-items: center; gap: 6px; }
.head-login { font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 99px; }
.head-login:hover { background: var(--violet-soft); }
.secure { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: #0E7A5C; background: var(--mint-soft); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }

.site-foot { margin-top: 48px; padding: 40px 0 32px; background: var(--surface); }
.site-foot-inner { display: grid; gap: 18px; }
.foot-brand p { margin: 8px 0 0; color: var(--ink-2); max-width: 40ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--ink-2); font-weight: 600; }
.foot-note, .foot-copy { font-size: .85rem; color: var(--ink-3); margin: 0; max-width: 70ch; }
@media (min-width: 860px) {
  .site-foot-inner { grid-template-columns: 1fr auto; align-items: start; }
  .foot-note, .foot-copy { grid-column: 1 / -1; }
}

/* ── landing ─────────────────────────────────── */
.hero { padding: 8px 0 24px; }
.hero-grid { display: grid; gap: 24px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-title { font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: .98; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); margin: 0; max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.proof li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--lift-1); }
.proof .ico { color: var(--mint); }
.hero-stage {
  order: -1; position: relative; border-radius: var(--r-xl); background: var(--violet);
  overflow: hidden; display: flex; justify-content: center; align-items: flex-end;
  min-height: 250px; padding-top: 24px;
}
.hero-stage::before { content: ''; position: absolute; inset: auto -20% -55% -20%; height: 75%; background: var(--violet-deep); border-radius: 50%; }
.hero-stage .ellie { position: relative; z-index: 1; width: min(240px, 62%); height: auto; filter: drop-shadow(0 12px 20px rgba(20, 8, 70, .35)); }
.hero-stage .sticker { position: absolute; z-index: 2; font-size: 1.6rem; width: 58px; height: 58px; }
.hero-stage .s1 { left: 6%; top: 10%; }
.hero-stage .s2 { right: 7%; top: 16%; }
.hero-stage .s3 { left: 10%; bottom: 12%; width: 48px; height: 48px; font-size: 1.3rem; }
.hero-stage .s4 { right: 12%; bottom: 10%; width: 46px; height: 46px; }
@media (min-width: 900px) {
  .hero { padding: 32px 0 40px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero-stage { order: 0; min-height: 460px; }
  .hero-stage .ellie { width: 300px; }
  .hero-cta { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

.band { padding: 36px 0; }
.band-title { margin-bottom: 18px; }
.band-note { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; margin: 22px 0 0; }

.quotes { display: grid; gap: 14px; }
.quote { margin: 0; background: var(--sun-soft); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 0 0 4px #fff, var(--lift-1); }
.quote:nth-child(2) { background: var(--blush-soft); }
.quote:nth-child(3) { background: var(--mint-soft); }
.quote blockquote { margin: 0; font: 600 1.2rem/1.35 var(--display); letter-spacing: -.01em; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: how; }
.how li { counter-increment: how; position: relative; padding-top: 64px; }
.how li::before {
  content: counter(how); position: absolute; left: 22px; top: 20px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff;
  font: 800 1.05rem/34px var(--display); text-align: center;
}
.how p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.island { display: grid; gap: 20px; }
.island-copy p { color: var(--ink-2); font-size: 1.08rem; max-width: 34em; }
.missions { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; background: var(--violet); border-radius: var(--r-xl); }
.missions li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: var(--r-md); padding: 14px 8px 12px; color: #fff; min-width: 0; }
.missions .sticker { width: 46px; height: 46px; font-size: 1.35rem; box-shadow: 0 0 0 3px #fff; }
.missions li:nth-child(odd) .sticker { transform: rotate(-6deg); }
.missions li:nth-child(even) .sticker { transform: rotate(5deg); }
.mission-text { min-width: 0; max-width: 100%; font-weight: 600; font-size: .9rem; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.mission-text small { display: block; font-weight: 600; font-size: .75rem; color: rgba(255,255,255,.7); }
@media (min-width: 900px) { .island { grid-template-columns: .7fr 1.3fr; align-items: center; gap: 40px; } }

.offer { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 30px 22px; display: grid; gap: 24px; }
.offer-title { color: var(--sun); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.offer-copy > p { color: rgba(255,255,255,.82); font-size: 1.08rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; flex: none; margin-top: 2px; }
.price-box { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-self: center; min-width: 0; }
.price { font-family: var(--display); margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.price span { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 1rem; color: var(--ink-2); font-weight: 600; }
.price-box .fine { margin: 0 0 10px; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.3fr .7fr; padding: 48px; gap: 48px; } }

.faq { background: var(--surface); border-radius: var(--r-md); padding: 0 20px; margin-bottom: 10px; box-shadow: var(--lift-1); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 600 1.4rem/1 var(--display); color: var(--violet); flex: none; }
.faq[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); margin: -6px 0 18px; }

.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.final h2 { margin: 0; text-wrap: balance; }
.not-found { padding: 40px var(--gutter); }

/* ── pages (policies) ────────────────────────── */
.page-head { padding: 20px 0 16px; }
.page-head h1 { margin: 0; }
.prose { padding: 28px clamp(20px, 5vw, 44px); }
.prose h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose > *:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
