/* ============================================================
   SOLVTIFY — Site styles
   Plain CSS, no framework. Loaded by all pages.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* brand */
  --blue: #1553D4;
  --blue-mid: #1A65F0;
  --blue-light: #E8EFFE;
  --blue-pale: #F0F4FF;
  --gold: #E8A020;
  --ink: #04111F;
  --ink-80: rgba(4,17,31,.8);
  --ink-60: rgba(4,17,31,.6);
  --ink-40: rgba(4,17,31,.4);
  --ink-30: rgba(4,17,31,.3);
  --ink-10: rgba(4,17,31,.08);
  --surface: #F7F8FC;
  --border: #E3E7F0;
  --white: #ffffff;

  /* type */
  --font-fallback: "Noto Sans SC", "Noto Sans Thai", system-ui, sans-serif;
  --font-display: "Inter", var(--font-fallback);
  --font-body: "Inter", var(--font-fallback);

  /* layout */
  --px: 24px;
  --maxw: 1200px;
  --nav-h: 76px;
  --radius: 14px;
  --radius-lg: 20px;

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 600px)  { :root { --px: 40px; } }
@media (min-width: 900px)  { :root { --px: 64px; } }
@media (min-width: 1300px) { :root { --px: 80px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* layout helpers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--px); }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section--ink  { background: var(--ink); color: var(--white); }
.section--surface { background: var(--surface); }
.section--bluepale { background: var(--blue-pale); }
.section--bluelight { background: var(--blue-light); }

/* full-bleed sections handle their own padding */
.bleed { padding: 96px var(--px); }
@media (min-width: 900px) { .bleed { padding: 128px var(--px); } }

/* ---------- typography ---------- */
.h-display, h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.05; margin: 0; }
h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 1.9vw, 24px); }
h4 { font-size: 18px; }
p  { margin: 0; }
.lede { font-size: clamp(16px, 1.15vw, 18px); color: var(--ink-60); line-height: 1.6; max-width: 62ch; }
.section--ink .lede { color: rgba(255,255,255,.7); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px; background: currentColor;
}
.section--ink .eyebrow { color: rgba(255,255,255,.7); }

.section-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-40);
  letter-spacing: 0.02em;
}
.section--ink .section-num { color: rgba(255,255,255,.4); }

/* section header pattern: section-num | eyebrow ... h2 ... lede */
.sec-head { display: grid; gap: 24px; margin-bottom: 56px; }
.sec-head__top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sec-head h2 { max-width: 18ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-mid); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-whatsapp {
  background: #25D366; color: #0a2516; font-weight: 600;
  border: 1px solid #25D366;
}
.btn-whatsapp:hover { background: #20BD5A; border-color: #20BD5A; color: #052310; }
.btn-whatsapp svg { flex-shrink: 0; }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue);
}
.btn-text:hover .arr { transform: translateX(4px); }

/* ---------- pill / badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill--gold { background: rgba(232,160,32,.14); color: #8a5a07; }
.pill--gold .dot { background: var(--gold); }
.pill--ink { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.12); }
.pill--ghost { background: transparent; border: 1px solid var(--border); color: var(--ink-60); }
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--blue); }

/* tech stack pills */
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack .pill { background: #fff; border: 1px solid var(--border); color: var(--ink-80); }
.section--ink .stack .pill { background: rgba(255,255,255,.05); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.12); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  font-family: var(--font-body);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid rgba(4,17,31,.1);
  box-shadow: 0 10px 28px -26px rgba(4,17,31,.5);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.nav--transparent {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-bottom-color: rgba(4,17,31,.1);
}
.nav--solid {
  background: rgba(255,255,255,.96);
  border-bottom-color: rgba(4,17,31,.1);
  color: var(--ink);
}
.nav__inner {
  max-width: var(--maxw);
  width: 100%; margin: 0 auto;
  padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0;
}
.brand--wordmark {
  gap: 0;
  flex-shrink: 0;
}
.brand__logo {
  display: block;
  width: 142px;
  height: 44px;
  object-fit: contain;
}
.brand__mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(4,17,31,.12);
  box-shadow: 0 8px 20px -16px rgba(4,17,31,.55);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav__links {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links a,
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  opacity: .76;
  white-space: nowrap;
  transition: opacity .2s, background .2s, color .2s;
}
.nav__links a:hover,
.nav__link:hover { opacity: 1; background: rgba(21,83,212,.07); color: var(--blue); }
.nav__links a.is-active,
.nav__link.is-active { opacity: 1; color: var(--blue); background: rgba(21,83,212,.08); }
.nav--transparent .nav__links a.is-active,
.nav--transparent .nav__link.is-active { color: var(--blue); }
.nav__cta { margin-left: 10px; padding: 10px 16px; font-size: 14px; box-shadow: none; }
.nav .btn { font-family: var(--font-body); }
.lang-select {
  height: 34px;
  min-width: 68px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  color: var(--ink-80);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
}
.lang-select:focus {
  outline: none;
  border-color: rgba(21,83,212,.45);
  box-shadow: 0 0 0 3px rgba(21,83,212,.1);
}
@media (max-width: 560px) { .nav__cta { display: none; } }

.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: transparent;
}
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__burger span { width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, opacity .2s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top:  6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background: #fff;
  color: var(--ink);
  padding: 14px var(--px) 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 28px 48px -42px rgba(4,17,31,.45);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .25s;
  display: flex; flex-direction: column; gap: 0;
}
.nav.is-open + .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 14px; align-self: flex-start; border-bottom: 0; }

/* ---------- footer ---------- */
.footer {
  background: #fff;
  color: var(--ink-70, rgba(4,17,31,.7));
  padding: 72px var(--px) 0;
  border-top: 1px solid var(--border);
}
.footer__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
@media (min-width: 760px) {
  .footer__grid > div:not(:first-child) {
    border-left: 1px solid var(--border);
    padding-left: 32px;
  }
}
.footer h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: var(--ink-60); }
.footer a:hover { color: var(--blue); }
.footer .brand,
.footer .brand[style] { color: var(--ink) !important; }
.footer__about p { max-width: 38ch; line-height: 1.6; margin-top: 16px; color: var(--ink-60); }
.footer__legal {
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  font-size: 12px;
  color: var(--ink-40);
}
@media (min-width: 820px) {
  .footer__legal {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}
.footer__legal-links,
.footer__legal-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.footer__legal-links a { color: var(--ink-60); }
.footer__legal-copy { justify-content: flex-start; }
.footer__top {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue) !important;
  font-weight: 600;
}
@media (min-width: 820px) {
  .footer__legal-copy { justify-content: flex-end; }
  .footer__top { justify-self: end; }
}

/* ---------- cards / generic grids ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--ink-40); transform: translateY(-1px); box-shadow: 0 18px 36px -30px rgba(4,17,31,.16); }
.section--ink .card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.section--ink .card:hover { border-color: rgba(255,255,255,.25); box-shadow: none; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr; } .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid--3 { grid-template-columns: 1fr 1fr 1fr; } .grid--4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* image placeholder */
.imgph {
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.imgph__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  padding: 12px 18px;
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.imgph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(21,83,212,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,83,212,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.imgph--dark {
  background: linear-gradient(135deg, #0a1d33, #04111F);
  border-color: rgba(255,255,255,.08);
}
.imgph--dark::before {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
}
.imgph--dark .imgph__label {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-40); }
.contact-address {
  font-style: normal;
  line-height: 1.55;
  white-space: pre-line;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.72);
}
.contact-address::first-line {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21,83,212,.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .err { color: #b21f31; font-size: 13px; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: #b21f31; }
.field--turnstile { min-height: 65px; align-content: start; }
.field--turnstile.is-error .cf-turnstile {
  outline: 2px solid #b21f31;
  outline-offset: 4px;
  border-radius: 12px;
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- skeletons ---------- */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skel {
  background: linear-gradient(90deg, #eef1f7 0%, #f7f9fd 50%, #eef1f7 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 12px;
}

/* ---------- tweaks panel ---------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: min(340px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -30px rgba(4,17,31,.18);
  font-size: 13px;
  color: var(--ink);
  display: none;
  flex-direction: column;
}
.tweaks.is-open { display: flex; }
.tweaks__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.tweaks__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tweaks__close { width: 28px; height: 28px; border-radius: 10px; color: var(--ink-60); }
.tweaks__close:hover { background: var(--surface); }
.tweaks__body { padding: 16px 18px 20px; display: grid; gap: 18px; }
.tweaks__section h6 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 10px;
}
.tweaks__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.tweaks__row label { font-size: 13px; color: var(--ink-60); }
.tweaks__swatches { display: flex; gap: 6px; }
.tweaks__swatch {
  width: 28px; height: 28px; border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.tweaks__swatch.is-on { box-shadow: 0 0 0 2px var(--blue); }
.tweaks__seg {
  display: inline-flex; padding: 3px; background: var(--surface); border-radius: 10px;
}
.tweaks__seg button {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-60);
}
.tweaks__seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tweaks__slider input { width: 110px; }
.tweaks__toggle {
  width: 36px; height: 22px; background: var(--border); border-radius: 999px; position: relative;
  transition: background .2s;
}
.tweaks__toggle.is-on { background: var(--blue); }
.tweaks__toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.tweaks__toggle.is-on::after { transform: translateX(14px); }

/* ---------- viewport preview wrapper ---------- */
body.vp-mobile {
  background: var(--ink);
}
body.vp-mobile #site {
  width: 390px;
  margin: 24px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 64px -16px rgba(0,0,0,.4);
  background: #fff;
}
body.vp-mobile #site .nav { position: absolute; }
body.vp-mobile #site { position: relative; }

/* utility */
.divider { height: 1px; background: var(--border); margin: 0; border: 0; }
.section--ink .divider { background: rgba(255,255,255,.08); }
.spacer-1 { height: 8px; } .spacer-2 { height: 16px; } .spacer-3 { height: 24px; } .spacer-4 { height: 32px; } .spacer-6 { height: 48px; }
.muted { color: var(--ink-60); }
.section--ink .muted { color: rgba(255,255,255,.6); }
.center { text-align: center; }
.maxw-prose { max-width: 62ch; }

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* =====================================================
   MOBILE FIXES  —  applies below 600px viewport
   ===================================================== */
@media (max-width: 600px) {
  :root { --px: 20px; --nav-h: 66px; }

  .nav__inner { gap: 14px; }
  .brand__logo { width: 122px; height: 38px; }
  .lang-select {
    min-width: 58px;
    height: 32px;
    padding-left: 8px;
    padding-right: 20px;
    font-size: 11px;
  }
  .nav__burger {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.65);
  }
  .nav__burger span,
  .nav__burger span::before,
  .nav__burger span::after { width: 15px; }
  .nav__burger span::before { top: -5px; }
  .nav__burger span::after { top: 5px; }
  .nav.is-open .nav__burger span::before { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__burger span::after { transform: translateY(-5px) rotate(-45deg); }
  .mobile-menu { padding: 12px var(--px) 18px; gap: 0; }
  .mobile-menu a { font-size: 16px; padding: 10px 0; }
  .mobile-menu .btn {
    margin-top: 14px;
    padding: 9px 14px;
    font-size: 14px;
    min-height: 38px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 14px;
    min-height: 42px;
    gap: 8px;
  }

  /* Tighter vertical rhythm */
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .bleed { padding: 72px var(--px); }

  /* Section heads sit closer to the content */
  .sec-head { margin-bottom: 32px; }
  .sec-head__top { gap: 10px; flex-wrap: wrap; }
  .section-num { font-size: 11px; }
  .eyebrow { font-size: 11px; }

  /* h2 tone slightly smaller on small screens */
  h1 { font-size: 36px; line-height: 1.08; letter-spacing: 0; }
  h2 { font-size: 30px; line-height: 1.1; }
  h3 { font-size: 20px; }
  .lede { font-size: 16px; }

  /* Buttons: compact by default in mobile layouts */
  .hero-grid__cta .btn,
  .hero-split__cta .btn,
  .contact-ctas .btn { flex: 0 1 auto; justify-content: center; }
  .contact-ctas .btn { width: auto; max-width: 100%; }

  /* Hero panel responsive */
  .hero-panel { padding: 24px 20px; margin-top: 32px; }

  /* Cards & forms: less padding */
  .audience-card { padding: 28px 24px; }
  .svc-card { padding: 28px 24px; }
  .svc-card--feature { padding: 32px 24px; }
  .product-spotlight { padding: 36px 24px; }
  .product-row { padding: 20px 22px; }
  .contact-form { padding: 24px 22px; }
  .platform { padding: 56px 24px; }
  .ai-visual { padding: 32px 24px; }
  .platform-end { padding: 40px 24px !important; }

  /* Process steps keep the desktop reading structure with mobile-safe padding */
  .process { margin: 0 -4px; }
  .proc-step {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 12px;
  }
  .proc-step__num {
    font-size: 34px;
    min-width: 0;
  }

  /* Hero TYPE variant: huge type doesn't work at 390 */
  .hero-type h1 { font-size: 48px !important; line-height: 1; }
  .hero-type__row { gap: 8px; }
  .hero-type__meta { font-size: 11px; }
  .hero-type__foot { margin-top: 32px; }

  /* Footer: tighten */
  .footer { padding: 56px var(--px) 32px; }
  .footer__grid { gap: 28px; }

  /* Platform page data-grid: allow horizontal scroll on mobile, don't squash */
  .grid-mock { padding: 16px 14px; }
  .grid-mock__head { flex-wrap: wrap; gap: 10px; }
  .grid-mock__actions { width: 100%; }
  .grid-mock__filters { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .grid-mock__filter { flex-shrink: 0; }
  .grid-mock__table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .grid-mock__table > .grid-mock__row { min-width: 540px; }
  .grid-mock__foot { flex-wrap: wrap; gap: 8px; }

  /* AI services service blocks (alternating) */
  .svc-block { padding: 32px 0; }
  .imgph { aspect-ratio: 4 / 3; }

  /* Tweaks panel — smaller on mobile, doesn't cover content */
  .tweaks { left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; max-height: 60vh; }
}

/* extra-small phones */
@media (max-width: 380px) {
  h1 { font-size: 32px; }
  .hero-type h1 { font-size: 42px !important; }
}
