/* Maa Commerce Hub — public site (W-01…W-10). Colours from the Maa design system. */
:root {
  --bg: #faf8fc;
  --surface: #ffffff;
  --ink: #170f2b;
  --ink2: #4a4262;
  --ink3: #6e6686;
  --line: #e8e2f0;
  --pri: #2b1758;
  --pri-soft: #efe8fa;
  --accent: #8a2c9e;
  --gold: #ebbd52;
  --gold-ink: #1a1206;
  --ok: #0b7a52;
  --ok-bg: #dff4ea;
  --night: #0d0b1f;
  --night2: #17122e;
  --night-line: #2d2449;
  --night-ink: #f4effb;
  --night-ink2: #c3bad8;
  --night-ink3: #978eb2;
  --radius: 20px;
  --shadow: 0 18px 48px rgba(23, 15, 43, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 500; vertical-align: middle; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 252, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.nav .links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; margin-left: auto; }
.nav .links a { color: var(--ink2); }
.nav .links a:hover { color: var(--ink); }
.nav .actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 13px; font: 700 14px/1 inherit; font-family: inherit; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 28px rgba(235, 189, 82, 0.28); }
.btn-gold:hover { color: var(--gold-ink); }
.btn-line-light { border-color: rgba(255, 255, 255, 0.28); color: var(--night-ink); }
.btn-line-light:hover { color: #fff; }
.btn-lg { height: 56px; padding: 0 26px; border-radius: 16px; font-size: 16px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 920px) {
  .nav .links, .nav .actions .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open .links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open .links a { padding: 12px 0; font-size: 16px; }
  .nav .actions { margin-left: 0; }
}

/* Hero */
.hero-pin { position: relative; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero-pin { height: calc(100vh + 520px); }
  .hero-pin .hero { position: sticky; top: 68px; min-height: calc(100vh - 68px); display: flex; align-items: center; }
  .hero-pin .hero > .wrap { width: 100%; padding-top: 28px; padding-bottom: 28px; }
  /* Size the phones to the screen height so the whole hero fits while it's pinned. */
  .hero-pin .phones { min-height: 0; }
  .hero-pin .phones .main { width: min(300px, calc((100vh - 160px) / 2.3)); }
  .hero-pin .phones .side { width: min(250px, calc((100vh - 160px) / 2.75)); top: 8%; }
  .hero-pin .hero .copy { gap: min(20px, 2.2vh); }
  /* Logo and headline scale with the screen height so the buttons stay visible while pinned. */
  .hero-pin .hero .logo { width: min(300px, 30vh); }
  .hero-pin .hero h1 { font-size: clamp(32px, min(5vw, 6.4vh), 58px); }
  .hero-pin .hero .lead { font-size: clamp(15px, 2.1vh, 18px); }
}
.hero { background: radial-gradient(70% 60% at 85% 10%, rgba(232, 184, 75, 0.22), rgba(232, 184, 75, 0) 60%), radial-gradient(60% 60% at 0% 100%, rgba(184, 32, 44, 0.32), rgba(184, 32, 44, 0) 60%), var(--night); color: var(--night-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero .copy { display: flex; flex-direction: column; gap: 26px; }
.hero .logo { width: min(100%, 300px); height: auto; margin-left: -8px; }
.chip { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(90, 211, 163, 0.14); color: #5ad3a3; }
h1 { margin: 0; font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
.lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--night-ink2); max-width: 560px; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--night-ink3); }
.phones { position: relative; display: flex; justify-content: center; min-height: 640px; }
.phone { width: 300px; border-radius: 42px; padding: 10px; background: #08061a; border: 1px solid var(--night-line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.phone img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 1080 / 2392; object-fit: cover; object-position: top; background: var(--night2); }
.phones .main { position: relative; z-index: 2; }
/* Hero reveal: the two side phones start hidden behind the main one and slide out as you scroll
   (--reveal goes 0 → 1, set by site.js). Reduced motion shows the final layout. */
.phones { --reveal: 0; }
.phones .side { position: absolute; top: 70px; width: 250px; opacity: calc(var(--reveal) * 0.85); will-change: transform, opacity; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease; }
.phones .left { transform: translateX(calc(var(--reveal) * -170px)) rotate(calc(var(--reveal) * -7deg)) scale(calc(0.9 + var(--reveal) * 0.1)); }
.phones .right { transform: translateX(calc(var(--reveal) * 170px)) rotate(calc(var(--reveal) * 7deg)) scale(calc(0.9 + var(--reveal) * 0.1)); }
.phones .main { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); transform: translateY(calc(var(--reveal) * -6px)); }
@media (prefers-reduced-motion: reduce) { .phones { --reveal: 1 !important; } }
@media (max-width: 760px) { .phones .side { display: none; } .phones { min-height: 0; } }

/* Sections */
section { scroll-margin-top: 76px; }
.sec { padding: 88px 0; }
.sec-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-night { background: var(--night); color: var(--night-ink); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pri); }
.sec-night .eyebrow { color: var(--gold); }
h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin-bottom: 40px; }
.sec-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink2); }
.sec-night .sec-head p { color: var(--night-ink2); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; padding: 24px 0 72px; }
.card { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.card .ms { color: var(--pri); }
.card b { display: block; font-size: 14px; }
.card span.d { font-size: 13px; line-height: 1.5; color: var(--ink2); }

.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature .txt { display: flex; flex-direction: column; gap: 16px; }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.feature h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.feature p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink2); max-width: 500px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.ticks .ms { font-size: 18px; color: var(--ok); }
.shot { border-radius: 30px; padding: 28px; display: flex; justify-content: center; }
.shot .phone { width: 270px; }
@media (min-width: 900px) { .feature.flip .txt { order: 2; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.step .n { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--pri-soft); -webkit-text-stroke: 1.5px var(--pri); line-height: 1; }
.step b { font-size: 18px; }
.step span { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.note { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--pri-soft); font-size: 14px; line-height: 1.55; }
.note .ms { color: var(--pri); }

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.rm { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: var(--night2); border: 1px solid var(--night-line); }
.rm .top { display: flex; align-items: center; gap: 8px; }
.rm .pill { margin-left: auto; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.rm b { font-size: 16px; }
.rm span.d { font-size: 13px; line-height: 1.55; color: var(--night-ink2); }
.rm a { margin-top: auto; height: 40px; border-radius: 12px; border: 1px solid var(--night-line); color: var(--night-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.rm a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.rm .count { font-size: 12px; color: var(--night-ink3); }
.fine-night { margin-top: 18px; font-size: 12px; color: var(--night-ink3); }

.pricing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 26px; background: var(--surface); border: 2px solid var(--pri); }
.plan .price { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.plan li .ms { font-size: 18px; color: var(--ok); }
.promise { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 26px; background: var(--surface); border: 1px dashed #d5cde3; }
.row-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.plan-name .ms { color: var(--pri); }
.fine-ink { font-size: 13px; color: var(--ink2); }
.badge.future { background: #f6e6f8; color: var(--accent); }
.future-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.future-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.future-list .ms { color: var(--ink3); }
.future-list .tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--ink3); }
.promise b { font-size: 18px; }
.promise p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.badge { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }

.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { margin-left: auto; color: var(--ink3); transition: transform 0.2s ease; }
.faq details[open] summary .ms { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--ink2); max-width: 680px; }

.download { padding: 24px; }
.download .box { max-width: 1152px; margin: 0 auto; padding: 72px 32px; border-radius: 36px; background: radial-gradient(120% 85% at 100% 0%, rgba(232, 184, 75, 0.42) 0%, rgba(232, 184, 75, 0) 55%), radial-gradient(95% 75% at 0% 100%, rgba(184, 32, 44, 0.5) 0%, rgba(184, 32, 44, 0) 60%), linear-gradient(155deg, #2a1752 0%, #120c26 100%); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.download h2 { max-width: 780px; }
.download .btn-white { background: #fff; color: var(--ink); }
.download .btn-white:hover { color: var(--ink); }
.download small { font-size: 13px; color: rgba(255, 255, 255, 0.82); max-width: 620px; line-height: 1.6; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: start; }
form.f { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.f label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.f input, .f select, .f textarea { font: 500 15px/1.4 inherit; font-family: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
.f textarea { min-height: 130px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.f .hp { position: absolute; left: -5000px; }
.f .msg { font-size: 14px; font-weight: 600; min-height: 20px; }
.f .msg.ok { color: var(--ok); }
.f .msg.err { color: #b8202c; }

footer.site { border-top: 1px solid var(--line); background: var(--surface); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--ink3); }
footer.site a { color: var(--ink3); }
footer.site a:hover { color: var(--ink); }
footer.site .maa { width: 100%; text-align: center; font-weight: 700; color: var(--accent); font-size: 14px; }
.grow { flex: 1; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 88px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink2); }
.legal .updated { color: var(--ink3); font-size: 14px; }

/* Slim themed scrollbars */
html { scrollbar-width: thin; scrollbar-color: rgba(138, 120, 180, .55) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(138, 120, 180, .5); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(235, 189, 82, .85); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* Version 1.0 feature grid */
.allgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.allgrid .card .ms { color: #ebbd52; background: #1b1438; border-radius: 12px; padding: 8px; font-size: 22px; flex: none; }
.allgrid .card b { display: block; margin-bottom: 2px; }
