/* aquamx.biz — AquaMX Signage product site. Tokens follow aquamx-landing/DESIGN.md
   (navy authority, one orange signal); the product orange is the app icon's #F47B20. */
:root {
  --navy: #0E3361; --navy-deep: #072147; --navy-hover: #001E40; --brand-navy: #011C61;
  --orange: #F47B20; --orange-strong: #C85F10; --orange-soft: #FDEBDD;
  --cream: #FAF6ED; --mist: #F6F9FD; --ink: #0B1B33; --muted: #5C6B82; --line: #E3E8F0; --white: #FFFFFF;
  --good: #1B7F4B;
  --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-xxl: 28px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--white); color: var(--ink); font-family: 'IBM Plex Sans Thai', 'Nunito', system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--orange-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { background: var(--navy-deep); color: #E6ECF7; border-radius: var(--r-lg); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* language: both languages are in the page; the inactive one is hidden */
html[lang="th"] .en, html[lang="en"] .th { display: none !important; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-navy); display: grid; place-items: center; }
.brand .mark img { width: 24px; }
.brand small { font-weight: 700; color: var(--muted); font-size: 14px; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-btn { background: none; border: 1.5px solid var(--navy); border-radius: 8px; padding: 5px 12px; font: 700 13px/1.2 inherit; color: var(--navy); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; border: 1.5px solid var(--navy); cursor: pointer; transition: background .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-secondary { background: var(--white); color: var(--navy); }
.btn-signal { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn-signal:hover { background: var(--orange-strong); border-color: var(--orange-strong); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* hero */
.hero { background: var(--brand-navy); color: var(--white); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.hero h1 { margin-top: 14px; font-size: 52px; line-height: 1.16; font-weight: 700; letter-spacing: -0.01em; }
.hero h1 .o { color: var(--orange); }
.hero p.lead { margin-top: 18px; font-size: 19px; color: #C9D3EA; max-width: 560px; }
.hero .ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.hero .note { margin-top: 18px; font-size: 14px; color: #9FB0CF; }
.device { justify-self: center; width: min(320px, 100%); aspect-ratio: 9/16; background: #000; border-radius: 26px; padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.tv { background: #000; border-radius: 16px; padding: 10px; box-shadow: 0 20px 50px rgba(11,27,51,.25); }
.tv img { border-radius: 8px; width: 100%; }

/* sections */
section.block { padding: 96px 0; }
section.alt { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: 38px; line-height: 1.22; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; }
.card h3 { font-size: 18px; color: var(--navy); line-height: 1.35; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-strong); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps ol { list-style: none; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; font-family: 'Nunito', sans-serif; font-size: 18px; }
.steps h3 { font-size: 18px; color: var(--navy); }
.steps p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* pricing */
.billing { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.billing button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 700 14px/1.2 inherit; color: var(--navy); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.billing .save { color: var(--orange-strong); font-weight: 700; }
.billing button[aria-pressed="true"] .save { color: #FFD3B0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 22px; display: flex; flex-direction: column; }
.plan.pop { border: 2px solid var(--orange); box-shadow: 0 16px 40px rgba(244,123,32,.14); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 22px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; color: var(--navy); }
.plan .for { font-size: 14px; color: var(--muted); margin-top: 4px; min-height: 44px; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-family: 'Nunito', sans-serif; font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price .per { font-size: 14px; color: var(--muted); }
.price-note { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan ul { list-style: none; margin: 18px 0 22px; display: grid; gap: 9px; align-content: start; font-size: 14.5px; flex: 1; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 700; }
.plan li.soon { color: var(--muted); }
.plan li.soon::before { content: "◷"; color: var(--muted); }
.soon-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--orange-strong); background: var(--orange-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.plan .btn { width: 100%; }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* devices + faq */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 17px; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--orange-strong); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.cta-band { background: var(--brand-navy); color: var(--white); border-radius: var(--r-xxl); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 30px; line-height: 1.25; }
.cta-band p { color: #C9D3EA; margin-top: 6px; }

/* docs pages */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: 40px; color: var(--navy); line-height: 1.2; }
.doc .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.doc h2 { font-size: 22px; color: var(--navy); margin: 36px 0 10px; }
.doc h3 { font-size: 17px; color: var(--navy); margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16px; color: var(--ink); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0 22px; display: grid; gap: 6px; }
.doc .box { background: var(--cream); border: 1px solid #EADFC9; border-radius: var(--r-lg); padding: 16px 18px; margin-top: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--mist); color: var(--navy); }
.doc pre { margin-top: 10px; }

/* footer */
.footer { background: var(--mist); border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--ink); }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero .container, .steps, .split { grid-template-columns: 1fr; }
  .grid-4, .plans { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .plans { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .section-head h2 { font-size: 30px; }
  .hero h1 { font-size: 34px; }
  .cta-band { padding: 32px 24px; }
  .brand small { display: none; }
}
