@import url('/app-tokens.css');

/* Public Pala surfaces follow the same paper, card and control roles as the app. */
html { scroll-padding-top: 112px; }
body { font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
.wrap { min-width: 0; }
h1, h2, h3 { font-weight: 700; }
header.nav, .nav {
  top: 16px; margin: 16px auto 0; width: min(1120px, calc(100% - 40px));
  background: var(--navigation); border: 0; border-radius: var(--r-lg);
  backdrop-filter: none; box-shadow: none;
}
.navin, .nav-inner { min-height: 66px; height: auto; padding-top: 8px; padding-bottom: 8px; }
.nav .actions, .nav-right { gap: 12px; }
.navlinks, .nav-links { gap: 18px; }
.navlinks a, .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.lang { background: var(--secondary); border: 0; padding: 4px; border-radius: var(--r-pill); }
.lang button { min-width: 44px; min-height: 36px; padding: 6px 10px; border-radius: var(--r-pill); font-size: 14px; letter-spacing: 0; }
.lang button[aria-pressed=true] { background: var(--selected); color: var(--ink); }
.btn { min-height: 50px; border-radius: var(--r-pill); font-size: 16px; font-weight: 600; line-height: 21px; padding: 12px 20px; text-align: center; }
.primary, .btn-primary { background: var(--brand); color: var(--on); }
.primary:hover, .btn-primary:hover { background: var(--brand); filter: brightness(.94); }
.ghost, .btn-ghost { background: var(--secondary); border-color: transparent; color: var(--ink); }
.ghost:hover, .btn-ghost:hover { background: var(--selected); }
.eyebrow, .status, .chip, .beta-tag, .release-status, .pro .price { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; }
.eyebrow { color: var(--muted); }
.hero { padding: 64px 0 32px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -1.2px; }
.hero h1 .accent { color: var(--ink); }
.lead { font-size: 18px; line-height: 1.5; }
.section h2, .section-head h2, .story-copy h2, .pro h2 { font-weight: 700; line-height: 1.2; }
.grid { gap: 14px; }
.grid > *, .hero-grid > *, .story-card > * { min-width: 0; }
.card, .feature-grid .card, .step {
  background: var(--surface); border: 0; border-radius: var(--r-lg); padding: 24px;
}
.card h3, .step h3 { font-weight: 700; font-size: 20px; line-height: 25px; }
.card p, .step p { font-size: 16px; line-height: 23px; }
.card .icon, .card .ic, .ic.brand, .ic.success, .ic.warning, .ic.info {
  background: var(--surface-2); color: var(--ink-soft); border-radius: var(--r-md);
}
.note, .roadmap-shell, .loop, .story-card { background: var(--raised); border-radius: var(--r-lg); }
.band, .pro { background: var(--raised); color: var(--ink); border-radius: var(--r-lg); }
.band h2, .pro h2 { color: var(--ink); }
.band p, .pro p { color: var(--muted); }
.band .btn, .btn-onbrand { background: var(--brand); color: var(--on); }
.btn-onbrand:hover { background: var(--brand); filter: brightness(.94); }
.pro-details span, .story-facts span, .beta-tag, .chip.brand {
  background: var(--surface-2); color: var(--ink-soft); border: 0;
}
.phone { background: var(--surface); border-color: var(--outline); }
.screen { background: var(--canvas); }
.app-card { background: var(--surface); border: 0; border-radius: var(--r-lg); }
.app-card:first-of-type { background: var(--raised); }
.progress > span { background: var(--ink-soft); }
.story-media, .story-media.creator { border: 0; border-radius: var(--r-md); }
#creator .story-card { background: transparent; }
#creator .story-media.creator { border-radius: 50%; background: transparent; }
#creator .story-media.creator img { border-radius: 50%; }
.timeline .card:before { background: var(--surface-2); color: var(--ink-soft); }
.step.p .k, .step.v .k, .step.s .k, .link-out, .value-point .number { color: var(--ink-soft); }
.waitlist input[type=email] { border-color: var(--outline); background: var(--surface); min-height: 50px; }
.waitlist label { font-size: 14px; font-weight: 600; }
.waitlist-meta, .waitlist-message { font-size: 14px !important; }
.waitlist-option { min-height: 44px; }
.legal { max-width: 820px; }
.legal section { background: var(--surface); border-radius: var(--r-lg); padding: 24px; margin-bottom: 14px; }
.legal h2 { font-size: 20px; line-height: 26px; }
.legal p, .legal li, .legal address { line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; }
footer { border: 0; }
a, p, h1, h2, h3, li, label { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--outline); outline-offset: 4px; }
@media(max-width: 900px) {
  .hero { padding: 40px 0 24px; }
}
@media(max-width: 560px) {
  header.nav, .nav { top: 10px; width: calc(100% - 28px); margin-top: 10px; }
  .navin, .nav-inner { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .nav .actions, .nav-right { gap: 8px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .card, .feature-grid .card, .step, .legal section { padding: 20px; }
  .band, .pro, .loop, .roadmap-shell, .story-card { padding: 24px; }
  .hero h1 { font-size: 36px; }
  .hero-grid { gap: 28px; }
  .phone { width: min(300px, 100%); }
  .pro-details { align-items: flex-start; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

/* One SVG icon treatment across the public site, independent of text fonts. */
.card .ic, .card .icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); border-radius: 12px; }
.site-icon { display: block; width: 24px; height: 24px; flex: none; }
