/* site/styles.css — MM Scale landing page (landing spec §5.6). Mobile-first; breakpoints 768 / 1024 / 1200 px.
   No inline styles anywhere (CSP has no 'unsafe-inline'). Text on cyan: navy, 19 px, 700 (PL-4). */
:root {
  --navy: #1A365D;
  --cyan: #00A8CC;
  --silver: #E2E8F0;
  --white: #FFFFFF;
  --ink: #1A202C;
  --muted: #4A5568;
  --line-green: #06C755;
  --error: #C53030;
  --ph-bg: #FFF3B0;
  --ph-border: #E0B000;
  --ph-text: #5C4400;
  --slot: #CBD5E0;
  --header-h: 64px;
  --bar-h: 60px;
  --radius: 10px;
  --gutter: 16px;
  --max: 1200px;
  --font-head: 'Prompt', 'Sarabun', system-ui, sans-serif;
  --font-body: 'Sarabun', system-ui, sans-serif;
  --font-latin: 'Inter', 'Sarabun', system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--white); padding-bottom: var(--bar-h); overflow-wrap: break-word; }
[hidden] { display: none !important; }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 2px var(--navy); }
.quote-bar :focus-visible { outline-color: var(--navy); }
.latin { font-family: var(--font-latin); }
.small { font-size: .9rem; color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -10000px; top: 8px; }
.skip-link:focus { left: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript-bar { background: var(--silver); padding: 12px var(--gutter); text-align: center; }

/* ---------- layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
main > section { padding: 56px 0; scroll-margin-top: var(--header-h); }
main > section.section--compact { padding: 32px 0; }
main > section.section--flush { padding-bottom: 0; }
#brands { scroll-margin-top: var(--header-h); }
.section--silver { background: var(--silver); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2 { color: var(--white); }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.split { display: grid; gap: 24px; align-items: center; margin: 24px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- icons, chips, photo slots ---------- */
.icon { display: inline-block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.icon--line { color: var(--line-green); }
.icon-yes { color: var(--navy); }
.ph { background: var(--ph-bg); color: var(--ph-text); border: 1px dashed var(--ph-border); border-radius: 4px; padding: 0 4px; font-size: .92em; }
.ph-block { display: block; margin: 0 0 8px; padding: 4px 8px; }
.photo-slot { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--slot); border: 2px dashed var(--muted); border-radius: var(--radius); color: var(--ink); padding: 12px; text-align: center; font-size: .9rem; }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-3-4 { aspect-ratio: 3 / 4; }
.r-1-1 { aspect-ratio: 1 / 1; }
.r-9-19 { aspect-ratio: 9 / 19; max-width: 260px; margin: 0 auto; }
picture img { width: 100%; border-radius: var(--radius); }
[data-shot="tagScreen"] picture { max-width: 260px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 2px solid transparent; border-radius: var(--radius); font-family: var(--font-head); font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer; }
.btn--cyan { background: var(--cyan); color: var(--navy); font-size: 19px; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--sm { min-height: 44px; padding: 6px 14px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* ---------- header, sticky bar, floating LINE ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--silver); }
.site-header__inner { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.logo { flex: none; margin-right: auto; padding: 4px 0; }
.logo img { width: 144px; height: 36px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--silver); box-shadow: 0 8px 16px rgba(26, 54, 93, .12); }
.site-nav ul { display: flex; flex-direction: column; padding: 8px var(--gutter); }
.site-nav a { display: flex; align-items: center; min-height: 48px; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.header-tel { display: none; }
.header-cta { min-height: 44px; padding: 6px 12px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.menu-toggle .icon { width: 28px; height: 28px; }
.hide-xs { display: none; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); height: var(--bar-h); background: var(--navy); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--white); font-family: var(--font-head); font-weight: 600; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .25); }
.mobile-bar a:first-child { border-left: 0; }
.line-float { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero h1 { color: var(--white); }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; border-left: 4px solid var(--cyan); padding-left: 10px; color: var(--white); font-size: .95rem; font-weight: 600; }
.hero__sub { font-size: 1.1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.micro { font-size: .95rem; }
.proof { display: grid; gap: 8px; margin-top: 20px; }
.proof li { display: flex; gap: 8px; align-items: flex-start; }
.proof .icon { color: var(--cyan); margin-top: 4px; }

/* ---------- cards, strips, badges ---------- */
.card { display: flex; flex-direction: column; padding: 20px; background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); }
.card__icon { width: 36px; height: 36px; margin-bottom: 12px; color: var(--navy); }
.card__price { margin-top: auto; font-weight: 600; color: var(--navy); }
.card__link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-head); font-weight: 600; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--silver); border-left: 6px solid var(--cyan); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.strip .icon { width: 32px; height: 32px; color: var(--navy); }
.strip__more { margin-left: auto; font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: underline; }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.badges li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--silver); border-radius: var(--radius); text-align: center; font-size: .95rem; }
.badges .icon { width: 30px; height: 30px; color: var(--navy); }
.badges li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- tables, checklists, steps ---------- */
.table-wrap { position: relative; overflow-x: auto; margin: 16px 0 24px; }
.data { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); }
.data th, .data td { padding: 10px 12px; border-bottom: 1px solid var(--silver); text-align: left; vertical-align: top; }
.data thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; }
.checklist { display: grid; gap: 10px; margin: 12px 0 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { margin-top: 4px; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--white); border: 1px solid var(--navy); border-radius: 999px; font-size: .95rem; }
.chips .icon { width: 20px; height: 20px; color: var(--navy); }
.steps { display: grid; gap: 16px; margin: 24px 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps--5 li { border-left: 3px solid var(--cyan); padding-left: 12px; }
.step__num { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 600; }
.steps strong { font-family: var(--font-head); color: var(--navy); }
.steps p { margin: 4px 0 0; }

/* ---------- calibration quote bar, PM, weighbridge ---------- */
.quote-bar { margin-top: 40px; padding: 24px 0; background: var(--cyan); color: var(--navy); font-size: 19px; font-weight: 700; }
.quote-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.quote-bar p { margin: 0; }
.quote-bar .btn { font-size: 19px; }
.pm { display: grid; gap: 24px; padding: 24px; border: 1px solid var(--silver); border-top: 6px solid var(--cyan); border-radius: var(--radius); }
.pm__cta { padding: 20px; background: var(--silver); border-radius: var(--radius); text-align: center; }
.feature-icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--silver); border-radius: var(--radius); }
.feature-icon .icon { width: 96px; height: 96px; stroke-width: 1.5; color: var(--navy); }

/* ---------- scales, brands, engineering, area ---------- */
.scale-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.scale-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); font-size: .95rem; }
.scale-card p { margin: 0; }
.scale-card h3 { margin: 8px 0 0; font-size: 1rem; }
.badge { align-self: flex-start; padding: 0 10px; background: var(--navy); color: var(--white); border-radius: 999px; font-size: .8rem; }
.price { font-weight: 600; color: var(--navy); }
.scale-card .btn { margin-top: auto; min-height: 44px; padding: 6px 8px; font-size: .95rem; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.brands li { padding: 4px 12px; background: var(--white); border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); font-family: var(--font-latin); font-size: .9rem; font-weight: 600; }
.mini { padding: 16px; background: var(--silver); border-radius: var(--radius); }
.mini p { margin: 4px 0 0; }
.area-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.map-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; background: var(--silver); border-radius: var(--radius); text-align: center; }
.map-card .icon { width: 56px; height: 56px; color: var(--cyan); }

/* ---------- FAQ, CTA band ---------- */
.faq details { margin-bottom: 10px; background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; color: var(--navy); font-family: var(--font-head); font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding: 0 16px 12px; }
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { color: var(--navy); font-weight: 600; }
.req { color: var(--error); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #718096; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.form textarea { min-height: 110px; resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--error); }
.checks { display: grid; gap: 4px; }
.checks label, .field--check label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; color: var(--ink); font-weight: 400; cursor: pointer; }
.checks input, .field--check input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--navy); }
.field__error { margin: 0; color: var(--error); font-size: .95rem; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-notice, .form-error, .form-thanks { padding: 16px; border-radius: var(--radius); }
.form-notice { background: var(--ph-bg); border: 1px dashed var(--ph-border); color: var(--ph-text); }
.form-error { background: #FFF5F5; border: 1px solid var(--error); }
.form-thanks { background: var(--silver); border-left: 6px solid var(--cyan); }

/* ---------- footer, cookie banner, simple pages ---------- */
.site-footer { padding: 40px 0 24px; background: var(--navy); color: var(--white); }
.site-footer a { color: var(--white); }
.footer__grid { display: grid; gap: 24px; }
.footer__logo { width: 120px; height: auto; }
.slogan { margin-top: 8px; }
.site-footer nav ul { display: grid; gap: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { margin: 24px 0 0; text-align: center; font-size: .9rem; }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 16px var(--gutter); background: var(--white); border-top: 4px solid var(--cyan); box-shadow: 0 -8px 16px rgba(26, 54, 93, .15); }
.cookie-banner p { margin: 0 0 12px; }
body.page { padding-bottom: 0; }
.page main { padding: 40px 0; }

/* ---------- breakpoints ---------- */
@media (min-width: 400px) {
  .hide-xs { display: inline; }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .line-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--line-green); color: var(--white); }
  .line-float .icon { width: 30px; height: 30px; }
  .line-float__tip { position: absolute; right: 70px; padding: 6px 10px; background: var(--navy); color: var(--white); border-radius: 6px; font-size: .9rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
  .line-float:hover .line-float__tip, .line-float:focus-visible .line-float__tip { opacity: 1; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pm { grid-template-columns: 2fr 1fr; align-items: center; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 2fr 1fr; }
  .cookie-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .cookie-banner p { margin: 0; }
}
@media (min-width: 1024px) {
  main > section { padding: 80px 0; }
  main > section.section--compact { padding: 40px 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .badges { grid-template-columns: repeat(5, 1fr); }
  .badges li:last-child:nth-child(odd) { grid-column: auto; }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
  .steps--5 { grid-template-columns: repeat(5, 1fr); }
  .steps li { flex-direction: column; }
  .steps--5 li { border-left: 0; border-top: 3px solid var(--cyan); padding: 12px 0 0; }
  .scale-grid { grid-template-columns: repeat(5, 1fr); }
  .site-nav, .site-nav.open { display: block; position: static; border: 0; box-shadow: none; }
  .site-nav ul { flex-direction: row; gap: 18px; padding: 0; }
  .site-nav a { min-height: 44px; font-size: .95rem; }
  .menu-toggle { display: none; }
}
@media (min-width: 1200px) {
  .header-tel { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
}
