/* Public pages (Pramdesk website): home, terms, privacy. Light, high-contrast, mobile first. */
:root { --bg: #ffffff; --soft: #f5f7f4; --line: #e3e8e4; --text: #1d2925; --muted: #5f6d66; --brand: #146c53; --brand-soft: #e4f2eb; --accent: #f3d56c; --link: #146c53; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Sarabun, system-ui, sans-serif; line-height: 1.6; }
a { color: var(--link); }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 8px 12px; border-radius: 4px; background: #fff; }
.skip-link:focus { left: 8px; z-index: 50; }

/* Top bar */
.site-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 32px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -.3px; }
.site-brand .mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px 9px 9px 3px; color: #1c2d27; background: var(--accent); font-size: 17px; }
.site-brand span span { color: var(--brand); }
.site-nav { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; }
.site-nav > a, .menu summary { padding: 8px 12px; border-radius: 6px; color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ' ▾'; color: var(--muted); font-size: 11px; }
.site-nav > a:hover, .menu summary:hover, .menu[open] summary { background: var(--soft); }
.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; display: grid; gap: 2px; width: 320px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 40px rgba(20, 40, 30, .14); }
.menu-wide { grid-template-columns: 1fr 1fr; gap: 8px 16px; width: 620px; }
.menu-panel a { display: grid; gap: 1px; padding: 9px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.menu-panel a:hover { background: var(--soft); }
.menu-panel strong { font-size: 14px; }
.menu-panel span { color: var(--muted); font-size: 12px; }
.menu-panel em, .badge { padding: 0 6px; border-radius: 3px; color: #6a5a1c; background: #fbf1d0; font-size: 10px; font-style: normal; font-weight: 700; }
.menu-heading { margin: 4px 10px 6px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.site-actions { display: flex; align-items: center; gap: 10px; }
.site-actions .login { padding: 8px 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.site-actions .cta { padding: 9px 16px; border-radius: 6px; color: #fff; background: var(--brand); font-weight: 700; text-decoration: none; }

/* Content */
main { width: min(1120px, 100%); margin: 0 auto; padding: 40px 32px 64px; }
body:not(.home) main { width: min(880px, 100%); }
h1 { margin: 0 0 12px; font-size: 44px; line-height: 1.15; letter-spacing: -.8px; }
h2 { margin: 36px 0 8px; font-size: 26px; letter-spacing: -.3px; }
h3 { margin: 20px 0 6px; font-size: 17px; }
p, li { font-size: 15px; }
.lede { max-width: 640px; color: var(--muted); font-size: 19px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hero { padding: 40px 0 24px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; color: var(--muted); list-style: none; }
.proof li::before { content: '✓ '; color: var(--brand); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-block; padding: 13px 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 700; text-decoration: none; }
.button.primary { border-color: var(--brand); color: #fff; background: var(--brand); }
.category { padding-top: 40px; scroll-margin-top: 80px; }
.category-head p { margin: 0; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.app-grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.app-card { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.app-card:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(20, 108, 83, .1); transform: translateY(-2px); }
.app-card strong { font-size: 17px; }
.app-card > span:not(.app-icon):not(.app-link):not(.badge) { color: var(--muted); font-size: 14px; }
.app-card.soon { background: var(--soft); }
.app-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: 20px; }
.app-link { margin-top: 4px; color: var(--brand); font-size: 14px; font-weight: 700; }
.badge { justify-self: start; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.plan { padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.plan h3 { margin: 0; }
.plan .price { margin: 4px 0 10px; color: var(--brand); font-size: 24px; font-weight: 700; }
.plan ul { margin: 0; padding-left: 18px; }
.link-list { padding-left: 18px; }
.updated { color: var(--muted); font-size: 13px; }
.callout { margin: 36px 0 0; padding: 16px 18px; border: 1px solid #ecd9a0; border-radius: 10px; background: #fdf8e7; }
.callout p { margin: 0; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: .2px; }
mark { padding: 0 4px; border-radius: 3px; background: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }
.table-wrap { overflow-x: auto; }

/* Footer */
footer { padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
footer a { margin: 0 8px; }
.site-footer { padding: 36px 32px 24px; background: var(--soft); text-align: left; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; width: min(1120px, 100%); margin: 0 auto; }
.footer-cols a { display: block; margin: 4px 0; color: var(--text); text-decoration: none; }
.footer-cols a:hover { color: var(--brand); }
.footer-cols .menu-heading { margin: 0 0 6px; }
.footer-note { width: min(1120px, 100%); margin: 24px auto 0; }

/* Platform and ecosystem */
.ecosystem { display: grid; gap: 10px; margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.core { padding: 16px 18px; border: 2px solid var(--brand); border-radius: 12px; background: var(--brand-soft); }
.core-title, .suite-title { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 5px 12px; border: 1px solid #b9dccb; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.link-arrow { margin: 0; color: var(--brand); font-size: 18px; text-align: center; }
.suites { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.suite { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.suite ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.suite li { padding-left: 14px; position: relative; font-size: 14px; }
.suite li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.market-bar { margin: 0; padding: 10px 16px; border: 1px dashed #c9d2cc; border-radius: 10px; background: #fff; color: var(--muted); font-size: 14px; text-align: center; }
.market-bar strong { margin-right: 6px; color: var(--text); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }

@media (max-width: 760px) {
  .site-bar { gap: 8px 12px; padding: 10px 16px; }
  .site-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 0; font-size: 14px; }
  .site-nav > a, .menu summary { padding: 8px 6px; white-space: nowrap; }
  .site-actions { margin-left: auto; }
  .menu { position: static; }
  .menu-panel, .menu-wide { position: absolute; left: 16px; right: 16px; width: auto; grid-template-columns: 1fr; }
  main { padding: 24px 16px 48px; }
  h1 { font-size: 32px; }
  .lede { font-size: 17px; }
}

/* Country and language picker (M65) */
.locale-menu summary { color: var(--muted); font-weight: 600; }
.locale-panel { right: 0; left: auto; width: 260px; }
.locale-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; color: var(--text); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.locale-option:hover:not(:disabled) { background: var(--soft); }
.locale-option[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.locale-option:disabled { color: var(--muted); cursor: default; }
.language-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 760px) { .locale-menu { position: static; } .locale-panel { left: auto; right: 16px; width: 240px; } }
