/* ============================================================
   PlotShelf — shared stylesheet

   Tailwind (CDN) carries the layout utilities; everything with a
   brand opinion — colour, depth, motion, the app mock-ups — lives
   here so the three generated locales stay identical in look.
   ============================================================ */

:root {
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* warm, paper-tinted depth — never neutral grey */
  --shadow-card: 0 1px 2px rgba(74, 45, 30, .045), 0 8px 22px -10px rgba(74, 45, 30, .12), 0 26px 50px -30px rgba(74, 45, 30, .20);
  --shadow-lift: 0 2px 4px rgba(74, 45, 30, .05), 0 14px 32px -12px rgba(74, 45, 30, .16), 0 34px 64px -32px rgba(74, 45, 30, .24);
  --shadow-float: 0 38px 76px -26px rgba(16, 23, 40, .42), 0 16px 34px -18px rgba(226, 80, 43, .22);
  --shadow-flame: 0 10px 24px -8px rgba(226, 80, 43, .42), 0 2px 6px rgba(226, 80, 43, .22);
}

html, body { -webkit-font-smoothing: antialiased; }
body { font-family: Manrope, system-ui, sans-serif; overflow-x: hidden; }
::selection { background: #E2502B; color: #fff; }

h1, h2, h3, .font-display { font-family: Newsreader, Georgia, serif; }

.tracking-tighter-2 { letter-spacing: -0.035em; }
.leading-relaxed-2 { line-height: 1.75; }

/* Longer PT/ES copy needs a slightly smaller hero headline. */
html[lang="pt"] #home h1,
html[lang="es"] #home h1 { font-size: clamp(2rem, 3.9vw, 3.15rem); }

/* ---- Atmosphere ------------------------------------------------ */

/* Warm paper mesh — the hero and CTA bands sit on this. */
.mesh-warm {
  background-color: #FDFAF7;
  background-image:
    radial-gradient(58% 48% at 10% 4%, rgba(226, 80, 43, .10) 0%, transparent 62%),
    radial-gradient(46% 42% at 94% 12%, rgba(255, 138, 92, .12) 0%, transparent 58%),
    radial-gradient(64% 58% at 78% 96%, rgba(214, 158, 122, .13) 0%, transparent 60%),
    linear-gradient(163deg, #FFFDFB 0%, #FDF7F2 54%, #F8EFE7 100%);
}

/* Deep navy mesh — the journal band and the footer. */
.mesh-ink {
  background-color: #131B2E;
  background-image:
    radial-gradient(56% 46% at 14% 6%, rgba(226, 80, 43, .20) 0%, transparent 62%),
    radial-gradient(48% 44% at 92% 88%, rgba(255, 122, 80, .13) 0%, transparent 58%),
    linear-gradient(158deg, #1B2440 0%, #141C30 56%, #0D1424 100%);
}

.grain::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045; mix-blend-mode: overlay;
}

/* Faint ruled-paper motif for the quiet bands. */
.ruled {
  background-image: repeating-linear-gradient(180deg, rgba(19, 27, 46, .045) 0 1px, transparent 1px 34px);
}

.text-flame-gradient {
  background: linear-gradient(96deg, #FF7043 0%, #E2502B 58%, #C03E1C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; border-radius: 12px; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .25s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid #E2502B; outline-offset: 3px; }

.btn-flame { background: linear-gradient(180deg, #F2603A, #E2502B); color: #fff; box-shadow: var(--shadow-flame); }
.btn-flame:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(226, 80, 43, .52), 0 2px 6px rgba(226, 80, 43, .24); }
.btn-flame:active { transform: translateY(0) scale(.985); }

.btn-ghost { border: 1px solid rgba(19, 27, 46, .16); color: #131B2E; background: rgba(255, 255, 255, .55); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(226, 80, 43, .55); color: #C6431F; background: #fff; }
.btn-ghost:active { transform: translateY(0) scale(.985); }

.btn-ghost.on-dark { color: #F5EFE9; border-color: rgba(245, 239, 233, .26); background: rgba(255, 255, 255, .05); }
.btn-ghost.on-dark:hover { color: #fff; border-color: rgba(255, 138, 92, .7); background: rgba(255, 255, 255, .09); }

.btn-white { background: #fff; color: #C6431F; box-shadow: 0 10px 26px -10px rgba(20, 12, 8, .40); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(20, 12, 8, .46); }
.btn-white:active { transform: translateY(0) scale(.985); }

/* ---- Store badges ---------------------------------------------- */

/* Google's artwork must not be recoloured, cropped or decorated, and it
   already carries its own clear-space border — so the interaction lives
   on the link, never on the image. */
.badge-store { display: inline-block; border-radius: 12px; transition: transform .35s var(--ease); will-change: transform; }
.badge-store img { display: block; height: 56px; width: auto; }
.badge-store:hover { transform: translateY(-2px); }
.badge-store:active { transform: translateY(0) scale(.985); }
.badge-store:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Apple-style companion badge, matched to the Play badge's height. */
.badge-apple {
  display: inline-flex; align-items: center; gap: .65rem;
  height: 56px; padding: 0 1.1rem 0 .95rem;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28);
  background: #000; color: #fff;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.badge-apple:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .6); }
.badge-apple:active { transform: translateY(0) scale(.985); }
.badge-apple:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.badge-apple small { display: block; font-size: .6rem; font-weight: 500; letter-spacing: .01em; line-height: 1.1; }
.badge-apple strong { display: block; font-size: 1.24rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.18; }

@media (max-width: 400px) {
  .badge-store img, .badge-apple { height: 50px; }
  .badge-apple strong { font-size: 1.08rem; }
}

/* ---- Motion ---------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: riseIn 1s var(--ease) forwards; }

@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(.5deg); } }
.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
.floaty2 { animation: floaty2 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .rise { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .floaty, .floaty2 { animation: none !important; }
}

/* ---- Navigation ------------------------------------------------ */

.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: #E2502B; transition: width .35s var(--ease);
}
.link-underline:hover::after, .link-underline:focus-visible::after { width: 100%; }

#nav.nav-transparent { color: #131B2E; }
#nav.nav-transparent.nav-scrolled {
  background: rgba(253, 250, 247, .86); backdrop-filter: blur(14px);
  border-color: rgba(19, 27, 46, .09) !important;
  box-shadow: 0 6px 24px -18px rgba(74, 45, 30, .5);
}
#nav.nav-solid {
  color: #131B2E; background: rgba(253, 250, 247, .9); backdrop-filter: blur(14px);
  border-color: rgba(19, 27, 46, .09) !important;
}

.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; color: inherit;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.nav-icon-btn:hover { background: rgba(19, 27, 46, .07); }
.nav-icon-btn:focus-visible { outline: 2px solid #E2502B; outline-offset: 2px; }

/* Flat PT · EN · ES switcher — build.mjs turns each option into a link. */
.lang-switch { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.lang-sep { opacity: .3; }
.lang-opt {
  padding: .2rem .18rem; border-radius: 6px; color: inherit; opacity: .5;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.lang-opt:hover { opacity: 1; color: #E2502B; }
.lang-opt:focus-visible { outline: 2px solid #E2502B; outline-offset: 2px; }
.lang-opt[aria-current="true"] { opacity: 1; color: #E2502B; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.on-dark .lang-opt { opacity: .55; }
.on-dark .lang-opt:hover { opacity: 1; color: #FF8A5C; }
.on-dark .lang-opt[aria-current="true"] { opacity: 1; color: #FF8A5C; }

/* ---- Mobile drawer --------------------------------------------- */

.mobile-menu {
  border-top: 1px solid rgba(19, 27, 46, .09);
  background: rgba(253, 250, 247, .98); backdrop-filter: blur(10px);
  padding: .5rem .75rem 1.15rem;
}
.mobile-menu[hidden] { display: none; }
.drawer-link {
  display: block; padding: .8rem 1rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600; color: inherit;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.drawer-link:hover { background: rgba(19, 27, 46, .05); }
.drawer-link:active { transform: scale(.985); }
.drawer-link:focus-visible { outline: 2px solid #E2502B; outline-offset: -2px; }
.drawer-label {
  margin: .9rem 1rem .5rem; padding-top: 1rem;
  border-top: 1px solid rgba(19, 27, 46, .09);
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(19, 27, 46, .42);
}
#menu-btn .icon-close { display: none; }
#menu-btn[aria-expanded="true"] .icon-open { display: none; }
#menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ---- Shared section furniture ---------------------------------- */

section[id] { scroll-margin-top: 88px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #E2502B;
}
.eyebrow-rule { width: 1.75rem; height: 1px; background: rgba(226, 80, 43, .45); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .93rem; font-weight: 700; color: #E2502B;
  transition: color .25s var(--ease);
}
.arrow-link svg { transition: transform .3s var(--ease); }
.arrow-link:hover { color: #B93A18; }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link:focus-visible { outline: 2px solid #E2502B; outline-offset: 4px; border-radius: 4px; }

/* ---- Trust strip ----------------------------------------------- */

.trust-item { display: flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 700; color: #131B2E; }
.trust-item svg { flex: none; color: #E2502B; }
.trust-sep { width: 1px; height: 1.5rem; background: rgba(19, 27, 46, .12); }

/* ---- Feature cards --------------------------------------------- */

.fcard {
  display: flex; flex-direction: column;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px; background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.fcard-icon {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: 11px; color: #E2502B;
  background: linear-gradient(140deg, rgba(255, 112, 67, .18), rgba(226, 80, 43, .07));
  box-shadow: inset 0 0 0 1px rgba(226, 80, 43, .14);
}
/* direct children only — the mock-up inside a card carries its own type scale */
.fcard > h3 { font-size: 1.04rem; font-weight: 600; letter-spacing: -.02em; color: #131B2E; }
.fcard > p { margin-top: .4rem; font-size: .86rem; line-height: 1.6; color: rgba(19, 27, 46, .58); }

/* ---- App mock-ups ---------------------------------------------- */

.phone {
  width: 280px; border-radius: 44px; padding: 11px;
  background: linear-gradient(158deg, #2B3552 0%, #172038 58%, #0D1424 100%);
  box-shadow: var(--shadow-float); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 21px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 24px; background: #0D1424; border-radius: 0 0 16px 16px; z-index: 5;
}
.phone-screen {
  border-radius: 34px; background: #FDFAF7; overflow: hidden;
  position: relative; height: 552px;
}
.phone-screen.is-dark { background: #131B2E; }

/* status bar + tab bar chrome inside a mock */
.mock-status { display: flex; align-items: center; justify-content: space-between; padding: .55rem 1.15rem .3rem; font-size: .62rem; font-weight: 800; letter-spacing: .01em; color: rgba(19, 27, 46, .8); }
.is-dark .mock-status { color: rgba(253, 250, 247, .85); }
.mock-tabbar { position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; padding: .5rem .5rem .7rem; background: rgba(253, 250, 247, .94); backdrop-filter: blur(8px); border-top: 1px solid rgba(19, 27, 46, .07); }
.mock-tab { display: grid; justify-items: center; gap: .18rem; font-size: .52rem; font-weight: 700; color: rgba(19, 27, 46, .38); }
.mock-tab.is-on { color: #E2502B; }

/* generic surfaces used by every mock */
.m-card { border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(74, 45, 30, .05), 0 6px 16px -10px rgba(74, 45, 30, .18); }
.is-dark .m-card { background: rgba(255, 255, 255, .06); box-shadow: none; outline: 1px solid rgba(255, 255, 255, .08); }
.m-chip { padding: .2rem .45rem; border-radius: 999px; font-size: .5rem; font-weight: 800; white-space: nowrap; color: rgba(19, 27, 46, .5); background: rgba(19, 27, 46, .05); }
.m-chip.is-on { color: #fff; background: #E2502B; }

/* book cover — two-stop spine gradient, driven by --c1/--c2 */
.cover {
  position: relative; flex: none; border-radius: 3px; overflow: hidden;
  background: linear-gradient(150deg, var(--c1, #C9A227) 0%, var(--c2, #7A5B12) 100%);
  box-shadow: 0 1px 3px rgba(74, 45, 30, .3);
}
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: rgba(0, 0, 0, .22); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(255, 255, 255, .22), transparent 55%); }

.bar { height: 3px; border-radius: 999px; background: rgba(19, 27, 46, .1); overflow: hidden; }
.is-dark .bar { background: rgba(255, 255, 255, .14); }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FF7043, #E2502B); }

/* floating stat cards next to the hero phone */
.stat-float {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.05rem; border-radius: 16px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}
.stat-float .ico { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; color: #E2502B; background: rgba(226, 80, 43, .1); }
.stat-float b { display: block; font-family: Newsreader, Georgia, serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: #131B2E; }
.stat-float span { display: block; font-size: .68rem; font-weight: 600; color: rgba(19, 27, 46, .5); }

/* small in-card mocks used by the feature grid */
.mini {
  margin-top: 1rem; padding: .75rem; border-radius: 12px;
  background: linear-gradient(158deg, #FBF6F1 0%, #F5EDE5 100%);
  box-shadow: inset 0 0 0 1px rgba(19, 27, 46, .05);
}

/* ---- Journal band (dark) --------------------------------------- */

.check-item { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: rgba(253, 250, 247, .82); }
.check-item svg { flex: none; color: #FF8A5C; }

/* ---- FAQ accordion --------------------------------------------- */

.faq-list { border-top: 1px solid rgba(19, 27, 46, .1); }
.faq-item, .faq-more-btn { border-bottom: 1px solid rgba(19, 27, 46, .1); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .35rem; cursor: pointer; list-style: none;
  font-family: Newsreader, Georgia, serif; font-size: 1rem; font-weight: 500; letter-spacing: -.01em;
  color: #131B2E; transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #E2502B; }
.faq-item summary:focus-visible { outline: 2px solid #E2502B; outline-offset: -3px; border-radius: 8px; }
.faq-item > p { margin: 0; padding: 0 .35rem 1.15rem; max-width: 62ch; font-size: .9rem; line-height: 1.72; color: rgba(19, 27, 46, .64); }

.faq-plus { position: relative; flex: none; width: 18px; height: 18px; color: rgba(19, 27, 46, .38); }
.faq-plus svg { position: absolute; inset: 0; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.faq-plus .icon-minus { opacity: 0; transform: rotate(-90deg); }
.faq-item[open] .faq-plus { color: #E2502B; }
.faq-item[open] .faq-plus .icon-plus { opacity: 0; transform: rotate(90deg); }
.faq-item[open] .faq-plus .icon-minus { opacity: 1; transform: rotate(0deg); }

.faq-more-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem;
  padding: 1.05rem .35rem; background: none; border-width: 0 0 1px; cursor: pointer;
  font-family: Newsreader, Georgia, serif; font-size: 1rem; font-weight: 500; color: #131B2E;
  transition: color .3s var(--ease);
}
.faq-more-btn:hover { color: #E2502B; }
.faq-more-btn:hover svg { transform: translateX(3px); }
.faq-more-btn:focus-visible { outline: 2px solid #E2502B; outline-offset: -3px; border-radius: 8px; }
.faq-more-btn svg { flex: none; color: rgba(19, 27, 46, .38); transition: transform .3s var(--ease); }

/* boxed variant used on the FAQ page */
.faq-boxed { border-top: 0; }
.faq-boxed .faq-item { border: 1px solid rgba(19, 27, 46, .1); border-radius: 14px; background: #fff; margin-bottom: .6rem; }
.faq-boxed .faq-item summary { padding: 1rem 1.15rem; }
.faq-boxed .faq-item summary:focus-visible { border-radius: 14px; }
.faq-boxed .faq-item > p { padding: 0 1.15rem 1.05rem; }
.fq-p2 { display: block; margin-top: .8rem; }

@media (prefers-reduced-motion: reduce) {
  .faq-plus svg, .faq-more-btn svg, .drawer-link, .arrow-link svg { transition: none; }
}

/* ---- CTA band -------------------------------------------------- */

.cta-card {
  position: relative; overflow: hidden; border-radius: 26px;
  background: linear-gradient(140deg, #F2603A 0%, #E2502B 52%, #CE4522 100%);
  box-shadow: 0 30px 64px -30px rgba(226, 80, 43, .55), 0 10px 24px -14px rgba(74, 45, 30, .3);
}

/* ---- Footer ---------------------------------------------------- */

.foot-title { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(253, 250, 247, .5); }
.foot-link { font-size: .89rem; color: rgba(253, 250, 247, .68); transition: color .25s var(--ease); }
.foot-link:hover { color: #FF8A5C; }
.foot-link:focus-visible { outline: 2px solid #FF8A5C; outline-offset: 3px; border-radius: 4px; }

/* ---- Inner pages: shared bits ----------------------------------- */

.side {
  position: sticky; top: 6.5rem; padding: 1.15rem 1.1rem;
  border-radius: 18px; background: #fff; box-shadow: var(--shadow-card);
}
.side-title { font-family: Newsreader, Georgia, serif; font-size: .98rem; font-weight: 600; color: #131B2E; }
.side-link {
  display: block; padding: .45rem .55rem; border-radius: 9px;
  font-size: .86rem; line-height: 1.4; color: rgba(19, 27, 46, .6);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.side-link:hover { color: #E2502B; background: rgba(226, 80, 43, .07); }
.side-link:focus-visible { outline: 2px solid #E2502B; outline-offset: -2px; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: #131B2E;
  background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(19, 27, 46, .1);
  transition: transform .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); color: #E2502B; box-shadow: inset 0 0 0 1px rgba(226, 80, 43, .5); }
.chip:active { transform: translateY(0) scale(.985); }
.chip:focus-visible { outline: 2px solid #E2502B; outline-offset: 3px; }

.step-label { display: flex; align-items: center; gap: .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #E2502B; }
.step-num { font-family: Newsreader, Georgia, serif; font-size: .92rem; letter-spacing: 0; }
.step-num::after { content: "·"; margin-left: .7rem; opacity: .5; }

.check-line { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; line-height: 1.55; color: rgba(19, 27, 46, .7); }
.check-line svg { flex: none; margin-top: .18rem; color: #E2502B; }

.tile { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.05rem; border-radius: 15px; background: #fff; box-shadow: var(--shadow-card); font-size: .9rem; font-weight: 700; color: #131B2E; }
.tile svg { flex: none; color: #E2502B; }

.support-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.3rem; border-radius: 13px;
  font-size: .92rem; font-weight: 700; color: #131B2E;
  background: #fff; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.support-btn:hover { transform: translateY(-2px); color: #E2502B; }
.support-btn:active { transform: translateY(0) scale(.985); }
.support-btn:focus-visible { outline: 2px solid #E2502B; outline-offset: 3px; }

.panel {
  display: grid; place-items: center; padding: 1.75rem 1.5rem;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .9) 0%, rgba(248, 240, 233, .6) 100%);
  box-shadow: inset 0 0 0 1px rgba(19, 27, 46, .07);
}

@media (prefers-reduced-motion: reduce) {
  .chip, .fcard, .support-btn, .btn, .badge-store, .badge-apple, .post-card { transition: none; }
  .chip:hover, .chip:active, .fcard:hover, .support-btn:hover, .btn:hover, .btn:active,
  .badge-store:hover, .badge-apple:hover, .post-card:hover { transform: none; }
}

/* ---- Blog ------------------------------------------------------- */

.post-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 20px; background: #fff; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card:focus-visible { outline: 2px solid #E2502B; outline-offset: 4px; }
.post-cover { position: relative; height: 8.5rem; overflow: hidden; background: linear-gradient(150deg, #FFE2D5 0%, #FFC7AE 55%, #F5A183 100%); }
.post-cover svg { position: absolute; right: -8px; bottom: -14px; color: rgba(19, 27, 46, .22); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; color: rgba(19, 27, 46, .45); }
.tag { padding: .2rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #C6431F; background: rgba(226, 80, 43, .1); }

.post-prose { font-size: 1rem; line-height: 1.85; color: rgba(19, 27, 46, .76); }
.post-prose h2 { font-family: Newsreader, Georgia, serif; font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 600; letter-spacing: -.03em; color: #131B2E; margin: 2.4rem 0 .85rem; }
.post-prose h3 { font-size: 1.05rem; font-weight: 800; color: #131B2E; margin: 1.8rem 0 .5rem; }
.post-prose p { margin-bottom: 1.15rem; }
.post-prose ul, .post-prose ol { margin: 0 0 1.15rem 1.35rem; }
.post-prose ul { list-style: disc; }
.post-prose ol { list-style: decimal; }
.post-prose li { margin-bottom: .5rem; }
.post-prose strong { color: #131B2E; font-weight: 800; }
.post-prose a { color: #E2502B; text-decoration: underline; text-underline-offset: 3px; }
.post-prose blockquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.15rem;
  border-left: 3px solid rgba(226, 80, 43, .5);
  font-family: Newsreader, Georgia, serif; font-size: 1.12rem; font-style: italic;
  color: rgba(19, 27, 46, .78);
}

/* ---- Legal pages ------------------------------------------------ */

.legal-tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(19, 27, 46, .1); }
.legal-tab { padding: .52rem 1.15rem; border-radius: 999px; font-size: .88rem; font-weight: 700; color: rgba(19, 27, 46, .58); transition: color .25s var(--ease), background-color .25s var(--ease); }
.legal-tab:hover { color: #E2502B; }
.legal-tab:focus-visible { outline: 2px solid #E2502B; outline-offset: 2px; }
.legal-tab.is-active { color: #131B2E; background: #fff; box-shadow: var(--shadow-card); }

.legal-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .95rem 1.25rem; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); font-size: .87rem; color: rgba(19, 27, 46, .68); }
.legal-meta-version { color: rgba(19, 27, 46, .42); }

.legal-toc .side-link { display: flex; gap: .55rem; }
.legal-toc-num { flex: none; width: 1.1rem; font-variant-numeric: tabular-nums; color: rgba(226, 80, 43, .8); font-weight: 800; }

.legal-prose { color: rgba(19, 27, 46, .74); }
.legal-prose h2 { font-family: Newsreader, Georgia, serif; font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; margin: 2.1rem 0 .7rem; color: #131B2E; }
.legal-prose h3 { font-weight: 800; font-size: 1.02rem; margin: 1.5rem 0 .45rem; color: #131B2E; }
.legal-prose p, .legal-prose li { line-height: 1.82; margin-bottom: 1rem; text-align: justify; hyphens: auto; }
.legal-prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-prose a { color: #E2502B; text-decoration: underline; text-underline-offset: 3px; }

.legal-lead { margin-bottom: 2.5rem; }
.legal-section { scroll-margin-top: 96px; padding-top: 2.15rem; }
.legal-section + .legal-section { border-top: 1px solid rgba(19, 27, 46, .09); margin-top: 2.15rem; }
.legal-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: linear-gradient(135deg, rgba(255, 112, 67, .24), rgba(226, 80, 43, .09)); color: #C6431F; font-family: Newsreader, Georgia, serif; font-weight: 600; font-size: .95rem; }
.legal-section-title { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.16; letter-spacing: -.035em; color: #131B2E; margin: .85rem 0; }
.legal-section .legal-prose h2 { margin-top: 1.5rem; }
