/* Karma Trace topic pages (karma journal, good deeds tracker, ...) */
:root { --plum-deep: #24132f; --plum: #3a2150; --plum-2: #6b3d84; --violet: #b050d7; --violet-soft: #c477e3; --lavender: #fdf7ff; --lavender-2: #f6ecfb; --ink: #3b2f45; --ink-soft: #6e6378; --line: #e7d8ee; --gold: #f0c980; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font: 400 17px/1.7 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--ink); background: var(--lavender); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); }
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.top nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.top nav .cta { margin-left: 6px; border: 1.5px solid rgba(255,255,255,.7); color: #fff; }

/* hero */
.hero { color: #fff; padding: 110px 0 70px; background: radial-gradient(600px 460px at 80% 45%, rgba(196,119,227,.32), transparent 65%), linear-gradient(180deg, var(--plum-deep) 0%, var(--plum) 60%, var(--plum-2) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.crumbs { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: rgba(255,255,255,.86); max-width: 34em; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store-badge { display: inline-block; border-radius: 9px; transition: transform .15s, filter .15s; }
.store-badge img { height: 50px; width: auto; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.12); }
.store-badge:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.is-ios .store-play, .is-android .store-apple { display: none; }
.shot { display: flex; justify-content: center; }
.phone { width: min(270px, 66vw); border: 10px solid #160c1d; border-radius: 40px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 34px 70px rgba(10,0,20,.5); }
.phone img { width: 100%; }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: 72px 24px 40px; }
.article h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 2.2em 0 .6em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 19px; margin: 1.6em 0 .4em; }
.article p { margin: 0 0 1em; color: #4f4458; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; color: #4f4458; }
.article li { margin: .45em 0; }
.article strong { color: var(--ink); }
.note { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 1.6em 0; }
.note p:last-child { margin-bottom: 0; }
.examples { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin: 1em 0 1.6em; }
.examples li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }

/* questions */
.faq { background: var(--lavender-2); padding: 72px 24px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq h2 { text-align: center; font-size: clamp(25px, 3vw, 32px); margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; font-weight: 600; font-size: 17.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--violet); font-size: 18px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--violet); }
.faq-item p { padding: 0 4px 20px; color: var(--ink-soft); }

/* related pages */
.related { padding: 72px 24px; }
.related h2 { text-align: center; font-size: clamp(23px, 2.6vw, 28px); margin-bottom: 26px; }
.related-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid a { display: block; background: #fff; border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 18px rgba(176,80,215,.08); transition: transform .2s, box-shadow .2s; }
.related-grid a:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(176,80,215,.16); }
.related-grid strong { display: block; font-size: 16.5px; }
.related-grid span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }

/* get the app */
.final { text-align: center; color: #fff; padding: 80px 24px; background: radial-gradient(60% 90% at 50% 100%, rgba(196,119,227,.35), transparent 70%), var(--plum-deep); }
.final img.final-icon { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 20px; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.final h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.final p { margin-top: 10px; color: rgba(255,255,255,.75); }
.final .store-buttons { justify-content: center; }

footer { background: var(--plum-deep); color: rgba(255,255,255,.6); text-align: center; padding: 32px 24px 34px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-bottom: 12px; }
footer a { color: rgba(255,255,255,.82); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top nav a:not(.cta) { display: none; }
  .brand span { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .article { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }

/* cookie banner: the same as productra.com */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #1e293b; color: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.15); transform: translateY(100%); transition: transform .4s ease; }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner { max-width: 1350px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner__text { margin: 0; font-size: 14px; line-height: 1.5; color: #e2e8f0; flex: 1 1 320px; }
.cookie-banner__text a { color: #34B9C3; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner__btn { font: 500 14px "Inter", sans-serif; padding: 10px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.cookie-banner__btn--secondary { background: transparent; color: #e2e8f0; border-color: #475569; }
.cookie-banner__btn--secondary:hover { background: #334155; }
.cookie-banner__btn--primary { background: #34B9C3; color: #fff; }
.cookie-banner__btn--primary:hover { background: #10ADB9; }
@media (max-width: 640px) { .cookie-banner__inner { padding: 16px 20px; gap: 14px; } .cookie-banner__text { font-size: 13px; flex: 1 1 100%; } .cookie-banner__actions { width: 100%; } .cookie-banner__btn { flex: 1 1 auto; } }
