/* The public home page, on top of app.css's tokens and base styles. */
body.home { font-size: 15px; }
.home-top, .home main, .home-foot { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
/* The nav toolbar stays on the visual right in both languages, so each dir gets the flex edge that lands there. */
.home-top { display: flex; align-items: center; justify-content: flex-end; height: 64px; gap: 12px; }
html[dir="rtl"] .home-top { justify-content: flex-start; }
.home-top-right { display: flex; align-items: center; gap: 8px; }
.home h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 20px; }
.hero { padding: 72px 0 56px; max-width: 44rem; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 680; margin: 0 0 18px; text-wrap: balance; }
.hero-lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; max-width: 36rem; }
.hero-lede code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.hero-cta .btn { padding: 10px 18px; font-weight: 600; margin-inline-end: 8px; }
.pricing-sec { padding: 48px 0; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.pill-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); margin-bottom: 24px; }
.pill-toggle button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.pill-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tier.featured { border: 2px solid var(--s1); padding: 23px; }
.tier.sold-out { opacity: 0.55; }
.tier h3 { margin: 0; font-size: 18px; }
.tier .compare { margin: 0; font-weight: 600; color: var(--ink); }
.tier .share { margin: 0; font-size: 13px; color: var(--muted); }
.tier .price { margin: 12px 0 0; font-size: 34px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier .price s { font-size: 18px; color: var(--muted); }
.tier .per { margin: 0; font-size: 14px; color: var(--muted); }
.tier .countdown, .tier .save { margin: 0; font-size: 13px; }
.tier .save { color: var(--good-text); font-weight: 600; }
.tier .get { margin-top: auto; text-align: center; padding: 9px 12px; font-weight: 600; }
.tier .get[aria-disabled="true"] { cursor: not-allowed; color: var(--muted); }
.ribbon { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--s2); color: #fff; }
.rate-note { font-size: 13px; margin-top: 16px; }
.home-foot { padding: 32px 16px 48px; font-size: 13px; color: var(--muted); }
.home-foot p { margin: 0 0 10px; }
.home-foot a { color: var(--muted); }
.foot-currency { display: flex; align-items: center; gap: 6px; }
.foot-currency select { font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; }
@media (max-width: 720px) {
  .hero { padding: 40px 0 32px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
/* The order dialog ("Get it" with Turnstile configured); app.css draws the dialog, the form grid and the buttons. */
.order-dialog { max-width: 520px; }
.order-dialog .order-price { margin: 0 0 14px; font-size: 20px; font-variant-numeric: tabular-nums; }
.order-dialog .turnstile { grid-column: 1 / -1; }
.order-dialog .turnstile:empty { display: none; }
.order-dialog .order-alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; font-size: 14px; }
@media (max-width: 400px) { .order-dialog { padding: 16px; } }
