/* Home page sections in the Buy Me a Coffee layout, Qahvejo coffee theme (RTL). */
:root {
  --h-card: #2b1e1a;
  --h-line: rgba(245, 237, 227, .09);
  --h-ink: var(--ink, #f5ede3);
  --h-soft: var(--ink-soft, #d8bea5);
  --h-caramel: #c18a5b;
  --h-burg: #910029;
  --h-foam: #f5ede3;
  --h-dark: #3b2723;
}
main:focus { outline: none; }

/* ---------- Hero: worldwide message ---------- */
.hero h1 .world-line { display: block; }
.hero .countries { display: flex; flex-wrap: wrap; gap: 8px; max-width: 485px; margin: -6px 0 26px; padding: 0; list-style: none; }
.hero .countries li { font-size: 12px; font-weight: 700; color: var(--h-soft); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--h-line); background: rgba(245, 237, 227, .04); }
.hero .countries li.more { color: var(--h-foam); border-color: rgba(193, 138, 91, .45); }
@media (min-width: 701px) { .hero .lead { max-width: 485px; } }
.claim input:focus-visible { outline: 2px solid var(--h-burg); outline-offset: -2px; border-radius: 8px; }
.claim .btn:focus-visible { outline: 2px solid var(--h-burg); outline-offset: 2px; }

.hero-art .hero-toasts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hero-toast { position: absolute; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 10px 14px 10px 12px; border-radius: 16px; background: var(--h-foam); color: var(--h-dark); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); font-size: 12px; line-height: 1.6; animation: toastFloat 4s ease-in-out 1; }
.hero-toast b { display: block; font-size: 13px; }
.hero-toast small { color: #7a5c4c; font-weight: 600; }
.hero-toast .ava { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--h-burg); font-size: 14px; }
.hero-toast.t1 { top: 4%; right: -4%; }
.hero-toast.t2 { top: 46%; left: -6%; animation-delay: .5s; }
.hero-toast.t3 { bottom: 10%; right: 4%; animation-delay: 1s; }
.hero-toast.t2 .ava { background: #8a5a33; } .hero-toast.t3 .ava { background: #5b7a4c; }
@keyframes toastFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1320px) { .hero-toast.t2 { left: 0; } }

/* ---------- Creator marquee pause control ---------- */
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-toggle { display: block; margin: 16px auto 0; min-height: 36px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(245, 237, 227, .16); background: transparent; color: var(--h-soft); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.marquee-toggle:hover { color: var(--h-foam); border-color: rgba(193, 138, 91, .5); }
/* ---------- Big rounded section cards ---------- */
.feat { padding: 22px 0; }
#support.feat { padding-top: 64px; }
#tools.feat { padding-bottom: 96px; }
.feat-card { position: relative; overflow: hidden; background: var(--h-card); border: 1px solid var(--h-line); border-radius: 40px; padding: 72px 48px 64px; text-align: center; }
.feat-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--h-caramel); margin-bottom: 14px; }
.feat-card h2, .feat-plain h2, .landing .section-head h2, .landing .cta h2 { font-size: clamp(32px, 3.8vw, 50px); text-wrap: balance; }
.feat-card h2, .feat-plain h2 { font-family: 'Lalezar', 'Vazirmatn', sans-serif; font-weight: 400; line-height: 1.3; margin: 0 0 18px; color: var(--h-ink); }
.feat-card h2 .muted, .feat-plain h2 .muted { color: #9b8272; display: block; }
.feat-lead { max-width: 620px; margin: 0 auto; font-size: 16px; line-height: 2.1; color: var(--h-soft); }

/* ---------- Support mock (widget + floating supporter messages) ---------- */
.mock-stage { position: relative; margin: 48px auto 0; max-width: 900px; min-height: 340px; display: flex; justify-content: center; }
.mock-widget { position: relative; z-index: 2; align-self: flex-start; width: 360px; max-width: 100%; background: var(--h-foam); color: var(--h-dark); border-radius: 24px; padding: 22px 22px 20px; text-align: right; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.mock-widget .mw-title { font-size: 18px; font-weight: 900; margin: 0 0 14px; }
.mw-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid rgba(145, 0, 41, .35); background: #fbe9ec; }
.mw-row img { width: 40px; height: 40px; }
.mw-row .x { color: #7a5c4c; font-weight: 700; }
.mw-pill { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; border: 1.5px solid var(--h-burg); color: var(--h-burg); background: #fff; }
.mw-pill.on { background: var(--h-burg); color: #fff; }
.mw-qty { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; border: 1.5px solid #e2cfc3; background: #fff; display: grid; place-items: center; font-weight: 800; margin-inline-start: auto; }
.mw-msg { margin-top: 12px; height: 84px; border-radius: 14px; background: #efe4d8; padding: 12px 14px; color: #7a5c4c; font-size: 13px; }
.mw-btn { margin-top: 14px; height: 50px; border-radius: 999px; display: grid; place-items: center; background: var(--h-burg); color: #fff; font-weight: 900; font-size: 15px; }
.bubble { position: absolute; z-index: 3; width: 250px; padding: 12px 14px; border-radius: 18px; background: var(--h-foam); color: var(--h-dark); text-align: right; box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .85); font-size: 12px; line-height: 1.8; }
.bubble .bw { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; }
.bubble .ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--h-burg); color: #fff; font-size: 13px; font-weight: 900; flex-shrink: 0; }
.bubble .ava.a2 { background: #8a5a33; } .bubble .ava.a3 { background: #5b7a4c; }
.bubble .msg { margin: 6px 0 0; color: #5a4136; }
.bubble .reply { display: flex; align-items: center; gap: 6px; margin: 8px 18px 0 0; color: #7a5c4c; font-weight: 700; font-size: 12px; }
.bubble .reply i { width: 20px; height: 20px; border-radius: 50%; background: var(--h-burg); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-style: normal; font-weight: 900; line-height: 1; }
.bubble.b1 { top: 18px; right: 0; }
.bubble.b2 { top: 170px; left: calc(50% + 168px); width: 270px; }
.bubble.b3 { top: 40px; left: 0; }
.bubble.b4 { top: 190px; right: calc(50% + 192px); }
.react { position: absolute; z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--h-foam); font-size: 20px; box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .8); }
.react.r1 { top: -24px; left: calc(50% - 150px); } .react.r2 { top: -30px; left: calc(50% - 206px); } .react.r3 { top: -30px; left: calc(50% + 140px); }

/* ---------- Memberships mock ---------- */
.tiers-stage { position: relative; margin: 52px auto 0; max-width: 1060px; min-height: 420px; display: flex; justify-content: center; align-items: center; }
.tier-card { position: relative; width: 250px; background: var(--h-foam); color: var(--h-dark); border-radius: 22px; padding: 14px 14px 18px; text-align: right; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); }
.tier-card .art { height: 110px; border-radius: 14px; display: grid; place-items: center; font-size: 46px; background: #efe0d0; margin-bottom: 12px; }
.tier-card .tc-name { margin: 0; font-size: 15px; font-weight: 900; text-align: center; }
.tier-card .price { display: block; text-align: center; font-size: 12px; color: #6b4e40; margin: 2px 0 10px; font-weight: 700; }
.tier-card ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 12px; color: #5a4136; }
.tier-card li::before { content: "✓"; color: var(--h-burg); font-weight: 900; margin-inline-end: 6px; }
.tier-card .join { height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--h-burg); color: #fff; font-weight: 800; font-size: 13px; }
.tier-card.tc-side { transform: scale(.9); background: #e4d8cb; }
.tier-card.tc-side .art { background: #d9c9b8; }
.tier-card.tc-side.tc-left { margin-right: -64px; padding-right: 70px; order: 3; }   /* the edge next to the middle card */
.tier-card.tc-side.tc-right { margin-left: -64px; padding-left: 70px; order: 1; }
.tier-card.tc-main { z-index: 2; width: 270px; order: 2; }
.tier-card.tc-main .art { background: #f6d8de; }
.stat-card { position: absolute; z-index: 3; background: var(--h-foam); color: var(--h-dark); border-radius: 18px; padding: 14px 16px; box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .85); text-align: right; }
.stat-card b { display: block; font-size: 24px; font-weight: 900; line-height: 1.2; }
.stat-card small { color: #7a5c4c; font-weight: 700; font-size: 12px; }
.stat-card .faces { display: flex; margin-bottom: 6px; }
.stat-card .faces span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--h-foam); margin-inline-start: -8px; background: #c18a5b; }
.stat-card .faces span:first-child { margin-inline-start: 0; background: var(--h-burg); } .stat-card .faces span:last-child { background: #5b7a4c; }
.stat-card.members { right: 0; top: 120px; width: 150px; }
.stat-card.earned { left: 0; top: 190px; display: flex; align-items: center; gap: 12px; }
.stat-card.earned svg { width: 30px; height: 30px; fill: none; stroke: var(--h-dark); stroke-width: 1.8; }
@media (max-width: 1120px) {
  /* not enough room beside the tiers: park the floating stat cards in a reserved strip above them */
  .tiers-stage { padding-top: 126px; }
  .stat-card.members { top: 0; right: 2%; }
  .stat-card.earned { top: 0; left: 2%; }
}

/* ---------- Designed for creators (plain, no card) ---------- */
.feat-plain { padding: 90px 0 70px; text-align: center; }
.creator-points { max-width: 820px; margin: 44px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; text-align: right; list-style: none; padding: 0; }
.creator-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 2; color: var(--h-soft); }
.creator-points li b { color: var(--h-ink); }
.creator-points svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 4px; fill: none; stroke: var(--h-caramel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tools grid ---------- */
.tools-grid { max-width: 900px; margin: 46px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 40px; text-align: right; }
.tool svg { width: 34px; height: 34px; fill: none; stroke: var(--h-foam); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.tool h3 { font-size: 17px; font-weight: 900; margin: 0 0 8px; color: var(--h-ink); }
.tool p { margin: 0; font-size: 14.5px; line-height: 2; color: var(--h-soft); }

/* ---------- Pricing and footer ---------- */
.pricing.pricing-single { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
.fee-visual { margin-bottom: 28px; }
#pricing .fee-note { display: block; padding: 6px 16px 0; text-align: center; color: var(--h-ink); font-size: 15px; font-weight: 700; line-height: 1.9; }
.footer h3 { color: var(--ink); font-size: 13px; font-weight: 800; margin: 0 0 12px; }
.hero-note, .footer-bottom { font-size: 12px; }

/* «نمونه» label on the illustrative mock-ups (made-up names and numbers); the hidden part is read by screen readers only. */
.mock-note { display: block; width: fit-content; margin: 16px auto 0; padding: 2px 12px; border-radius: 999px; border: 1px solid rgba(245, 237, 227, .18); background: rgba(33, 23, 20, .55); color: var(--h-soft); font-size: 11px; font-weight: 700; line-height: 1.9; }
.hero-art .mock-note-hero { position: absolute; top: 2%; left: 6%; z-index: 4; margin: 0; }

@media (prefers-reduced-motion: reduce) { .hero-toast { animation: none; } .marquee-toggle { display: none; } }

/* ---------- Narrow desktop ---------- */
@media (min-width: 961px) and (max-width: 1100px) {
  .bubble.b1, .bubble.b3 { width: 220px; }
  .bubble.b2 { width: 230px; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 960px) {
  .bubble.b3, .bubble.b4 { display: none; }
  .tiers-stage { max-width: 760px; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .hero-toast.t2 { left: 0; }
  .mock-stage { justify-content: flex-end; max-width: 620px; }   /* RTL: the widget moves to the left */
  .mock-widget { width: min(340px, 54%); }
  .bubble.b1 { top: 10px; right: 0; width: min(250px, 42%); }
  .bubble.b2 { top: 128px; right: 0; left: auto; width: min(250px, 42%); }
  .react { display: none; }
  .tier-card.tc-side { width: 210px; }
  .tier-card.tc-side.tc-left { margin-right: -56px; padding-right: 60px; }
  .tier-card.tc-side.tc-right { margin-left: -56px; padding-left: 60px; }
  .stat-card.members { right: 0; }
  .stat-card.earned { left: 0; }
}
@media (max-width: 700px) {
  .hero-toast.t1 { top: 4%; right: 0; } .hero-toast.t2 { top: auto; bottom: 5%; left: 0; } .hero-toast.t3 { display: none; }
  .hero .countries { margin-bottom: 18px; }
  .editorial-kicker { font-size: 12px; }
  .claim .btn, .nav-actions .btn { font-size: 13px; }
  .feat-card { border-radius: 28px; padding: 46px 18px 36px; }
  .feat-card h2 br { display: none; }
  .feat-card h2, .feat-plain h2, .landing .section-head h2, .landing .cta h2 { font-size: clamp(28px, 8.4vw, 34px); }
  .feat-lead { font-size: 14.5px; }
  #support.feat { padding-top: 40px; }
  #tools.feat { padding-bottom: 60px; }
  .mock-stage { min-height: 0; flex-direction: column; align-items: center; gap: 0; margin-top: 32px; }
  .mock-widget { width: 100%; }
  .bubble { position: relative; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; }
  .bubble.b1 { width: 90% !important; align-self: flex-end; margin-bottom: -14px; }
  .bubble.b2 { order: 2; width: 90% !important; align-self: flex-start; margin-top: -14px; }
  .react { display: none; }
  .tiers-stage { padding-top: 0; min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
  .tier-card.tc-side { display: none; }
  .tier-card.tc-main { order: 0; flex: 1 1 100%; max-width: 300px; }
  .stat-card, .stat-card.members { position: relative; top: auto !important; left: auto !important; right: auto !important; order: 1; flex: 1 1 130px; width: auto; }
  .stat-card.earned { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stat-card b { white-space: nowrap; }
  .creator-points, .tools-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
  .tool svg { grid-row: 1 / span 2; margin: 2px 0 0; width: 26px; height: 26px; }
  .feat-plain { padding: 60px 0 40px; }
}
@media (max-width: 400px) {
  .hero .countries li:nth-child(n+7):not(.more) { display: none; }
  .mock-widget { padding: 18px 14px; }
  .mw-row { gap: 6px; padding: 10px; }
  .mw-row img { width: 30px; height: 30px; }
  .mw-row .x { display: none; }
  .mw-pill, .mw-qty { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .claim { flex-wrap: wrap; }
  .claim input { flex: 1; width: auto; }
  .claim .btn { width: 100%; margin-top: 5px; }
}

/* Sample-page links stay hidden until /api/site says the demo exists (index-page.js). */
[data-demo-link][hidden] { display: none !important; }

/* Visible label above the supporter-country chips: they are where supporters pay from, not where creators can be paid. */
.hero .countries-label { margin: 0 0 10px; font-size: 12.5px; color: var(--h-soft); }
.fee-note a { color: inherit; text-decoration: underline; }
/* Pre-launch / maintenance notice (index-page.js) */
.site-notice { position: relative; z-index: 60; background: #910029; color: #f5ede3; text-align: center; font: 600 13.5px/1.9 Vazirmatn, Tahoma, sans-serif; padding: 8px 16px; }
/* Home CTA: the eligibility sentence shared with signup, onboarding, help, FAQ and about (QA-24) */
.cta .cta-note { font-size: 13px; line-height: 1.9; margin: -10px auto 22px; max-width: 640px; color: rgba(245,237,227,.75); }
.cta .cta-note a { color: inherit; text-decoration: underline; }
