/* sQRo Design System v1 — theme layer for the homepage (index.html).
   Loaded after Tailwind + style.css. Everything is scoped to body.sqro so other pages are untouched.
   Tokens and components come from sqro-design/sqro-ds.css; generic names (.grid, .row, .sec) were left out
   on purpose because they collide with Tailwind utilities. */

body.sqro {
  --ink: #1d3a6b; --ink-2: #284d8a; --ink-deep: #152c54;
  --text: #2c3e50; --muted: #64748b;
  --teal: #00a884; --teal-ink: #00775e; --teal-soft: #e3f7f1; --teal-200: #8fe0c9;
  --grad-text: linear-gradient(90deg, #13c2a3 0%, #00a884 30%, #2f6bff 100%);
  --glass: rgba(255,255,255,.55); --glass-strong: rgba(255,255,255,.78);
  --glass-edge: rgba(255,255,255,.75);
  --glass-blur: none; /* blur is GPU-heavy while scrolling: only the nav keeps it (see below) */
  --glass-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(11,27,43,.04) inset, 0 12px 32px -12px rgba(11,27,43,.22);
  --font-display: "Prompt", "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", system-ui, sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;
  --ease: cubic-bezier(.32,.72,0,1);
  /* remap the old purple brand variables used by style.css and inline styles */
  --brand-700: #00664f; --brand-600: #00775e; --brand-500: #00a884; --brand-400: #00a884; --brand-300: #8fe0c9;
  --sky-300: #8fd0ff; --sky-200: #e3f7f1;

  background: #f7faf9 !important;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.sqro::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
    radial-gradient(45% 40% at 10% 8%, rgba(143,224,201,.55), transparent 70%),
    radial-gradient(40% 40% at 92% 12%, rgba(173,210,255,.55), transparent 70%),
    radial-gradient(50% 45% at 80% 85%, rgba(143,224,201,.35), transparent 70%),
    radial-gradient(40% 40% at 15% 90%, rgba(255,214,180,.35), transparent 70%), #f7faf9;
}
body.sqro h1, body.sqro h2, body.sqro h3, body.sqro h4, body.sqro h5, body.sqro summary {
  font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; /* no text-wrap:balance: it splits Thai words */
}
body.sqro h2, body.sqro h3, body.sqro h4 { font-weight: 600; }
body.sqro a { color: var(--teal-ink); }
body.sqro :focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
body.sqro .text-slate-600, body.sqro .text-gray-600, body.sqro .text-slate-500, body.sqro .text-gray-500 { color: var(--muted); }
body.sqro .text-slate-700, body.sqro .text-slate-800 { color: var(--text); }
body.sqro .text-brand-600 { color: var(--teal-ink); }
body.sqro .text-violet-600, body.sqro .text-violet-700, body.sqro .text-green-700 { color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  body.sqro *, body.sqro *::before, body.sqro *::after { transition: none !important; animation: none !important; }
}

/* ---------- glass material ---------- */
body.sqro .glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
body.sqro .sq-nav.glass, body.sqro .sq-mnav.glass { -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- floating capsule nav ---------- */
body.sqro .sq-head { position: sticky; top: 12px; z-index: 60; width: min(1180px, 100% - 24px); margin: 12px auto 0; }
body.sqro .sq-nav { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 8px 0 20px; border-radius: var(--r-full); }
body.sqro .sq-logo { display: flex; align-items: center; gap: 8px; flex: none; text-decoration: none; font: 600 18px var(--font-display); color: var(--ink); letter-spacing: -.01em; }
body.sqro .sq-logo .short { display: none; }
body.sqro .sq-links { display: flex; gap: 2px; margin-left: 14px; }
body.sqro .sq-links a { text-decoration: none; font: 500 15px var(--font-display); color: var(--muted); padding: 8px 14px; border-radius: var(--r-full);
  transition: background .3s var(--ease), color .3s; white-space: nowrap; }
body.sqro .sq-links a:hover, body.sqro .sq-links a.on { background: rgba(255,255,255,.85); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(11,27,43,.15); }
body.sqro .sq-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
body.sqro .sq-iconbtn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  color: var(--ink); background: rgba(255,255,255,.7); box-shadow: inset 0 1px 1px #fff, 0 2px 6px -2px rgba(29,58,107,.18);
  transition: transform .35s var(--ease), background .25s; text-decoration: none; flex: none; }
body.sqro .sq-iconbtn:hover { background: #fff; color: var(--ink); }
body.sqro .sq-iconbtn:active { transform: scale(.92); }
body.sqro .sq-iconbtn svg { width: 22px; height: 22px; }
body.sqro .sq-lang .code { position: absolute; right: -3px; bottom: -3px; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--ink); color: #fff; font: 600 10px/18px var(--font-display); letter-spacing: .02em; text-align: center; box-shadow: 0 0 0 2px #fff; }
body.sqro .sq-lang.flip svg { animation: sq-spin .5s var(--ease); }
@keyframes sq-spin { from { transform: rotate(-180deg) scale(.6); } to { transform: none; } }
body.sqro .sq-login { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: var(--r-full); text-decoration: none;
  font: 500 15px var(--font-display); color: var(--ink); }
body.sqro .sq-login:hover { background: rgba(255,255,255,.85); color: var(--ink); }
body.sqro .sq-login svg { width: 18px; height: 18px; }
body.sqro .sq-menu { display: none; }
body.sqro .sq-mnav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); border-radius: var(--r-xl); padding: 10px; display: grid; gap: 2px;
  transform-origin: top center; animation: sq-pop .4s var(--ease); background: var(--glass-strong); }
body.sqro .sq-mnav[hidden] { display: none; }
body.sqro .sq-mnav a { text-decoration: none; font: 500 16px var(--font-display); color: var(--ink); padding: 12px 16px; border-radius: var(--r-md); }
body.sqro .sq-mnav a:hover { background: rgba(255,255,255,.85); }
@keyframes sq-pop { from { opacity: 0; transform: scale(.96) translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) { body.sqro .sq-links a { padding: 8px 10px; font-size: 14px; } body.sqro .sq-links { margin-left: 6px; } }
@media (max-width: 960px) {
  body.sqro .sq-links { display: none; }
  body.sqro .sq-menu { display: grid; }
}
@media (max-width: 560px) {
  body.sqro .sq-nav { padding-left: 16px; gap: 4px; }
  body.sqro .sq-logo .full { display: none; }
  body.sqro .sq-logo .short { display: inline; }
  body.sqro .sq-login span { display: none; }
  body.sqro .sq-login { width: 44px; padding: 0; justify-content: center; }
  body.sqro .sq-end .sq-cta { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 380px) { body.sqro .sq-login { display: none; } }

/* ---------- soap-bubble capsule buttons (applied to the page's existing button classes) ---------- */
body.sqro :is(.btn-brand, .btn-contrast, .btn-outline-brand, .sq-btn) {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-full); border: 0;
  font: 500 16px var(--font-display); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease);
}
body.sqro :is(.btn-brand, .btn-contrast, .btn-outline-brand, .sq-btn):active { transform: scale(.96); }
body.sqro :is(.btn-brand, .btn-contrast, .btn-outline-brand, .sq-btn)::before {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; top: 2px; height: 55%; border-radius: var(--r-full); pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,.6), rgba(255,255,255,.18) 55%, rgba(255,255,255,0) 80%);
}
body.sqro :is(.btn-brand, .btn-contrast, .btn-outline-brand, .sq-btn)::after {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: .75;
  background: conic-gradient(from 210deg, rgba(255,170,215,.85), rgba(140,215,255,.85), rgba(170,255,220,.85), rgba(255,236,160,.85), rgba(255,170,215,.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* primary: navy bubble */
body.sqro :is(.btn-brand, .btn-contrast, .sq-btn-primary) {
  color: #fff; background: radial-gradient(120% 140% at 30% 0%, #4a6fb0 0%, var(--ink) 48%, var(--ink-deep) 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -4px 8px rgba(8,20,45,.35), inset 0 0 0 1px rgba(255,255,255,.08),
    0 2px 4px rgba(29,58,107,.25), 0 12px 24px -8px rgba(29,58,107,.55), 0 0 22px -6px rgba(120,190,255,.45);
}
body.sqro :is(.btn-brand, .btn-contrast, .sq-btn-primary):hover {
  color: #fff; transform: translateY(-2px);
  background: radial-gradient(120% 140% at 30% 0%, #5a82c6 0%, var(--ink-2) 48%, var(--ink) 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -4px 8px rgba(8,20,45,.3), 0 4px 8px rgba(29,58,107,.25),
    0 18px 32px -10px rgba(29,58,107,.6), 0 0 28px -4px rgba(120,190,255,.55);
}
/* secondary: clear glass bubble */
body.sqro .btn-outline-brand {
  color: var(--ink); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  background: radial-gradient(120% 140% at 30% 0%, rgba(255,255,255,.95), rgba(255,255,255,.6) 60%, rgba(225,240,255,.55));
  box-shadow: inset 0 1px 1px #fff, inset 0 -4px 10px rgba(120,160,220,.18), 0 2px 4px rgba(29,58,107,.08), 0 12px 24px -10px rgba(29,58,107,.3);
}
body.sqro .btn-outline-brand:hover { background: #fff; color: var(--ink); }
body.sqro .sq-btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
body.sqro :is(.btn-brand, .btn-contrast, .btn-outline-brand) .fa-ic { font-size: .95em; }

/* ---------- premium icon tiles ---------- */
.app-ic { --c1: #13c2a3; --c2: #2f6bff; --glow: rgba(0,168,132,.45);
  position: relative; isolation: isolate; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 60%), linear-gradient(165deg, rgba(255,255,255,.98), rgba(240,246,245,.82));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 14px -6px rgba(11,27,43,.06), 0 1px 2px rgba(11,27,43,.08), 0 14px 24px -14px var(--glow); }
.app-ic::before { content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 17px 17px 40% 40% / 17px 17px 18px 18px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0)); z-index: -1; }
.app-ic::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,.9), color-mix(in srgb, var(--c1) 35%, transparent) 55%, color-mix(in srgb, var(--c2) 35%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; }
.app-ic svg { width: 27px; height: 27px; stroke-width: 1.7; stroke: var(--grad, var(--c2)); filter: drop-shadow(0 1px 1px rgba(255,255,255,.8)); }
.app-ic svg .duo { fill: var(--grad, var(--c2)); fill-opacity: .16; stroke: none; }
.app-ic.sm { width: 40px; height: 40px; border-radius: 13px; }
.app-ic.sm::before { border-radius: 12px 12px 40% 40% / 12px 12px 12px 12px; }
.app-ic.sm svg { width: 20px; height: 20px; }
.ic-teal   { --c1: #13c2a3; --c2: #2f6bff; --glow: rgba(19,194,163,.55); --grad: url(#g-teal); }
.ic-blue   { --c1: #5ac8fa; --c2: #0a6cff; --glow: rgba(10,132,255,.5);  --grad: url(#g-blue); }
.ic-orange { --c1: #ffc14d; --c2: #ff6a00; --glow: rgba(255,140,0,.5);   --grad: url(#g-orange); }
.ic-pink   { --c1: #ff8fab; --c2: #e8174f; --glow: rgba(255,55,95,.45);  --grad: url(#g-pink); }
.ic-ink    { --c1: #5f86c8; --c2: #1d3a6b; --glow: rgba(29,58,107,.4);    --grad: url(#g-ink); }
.ic-mint   { --c1: #6fe6c6; --c2: #00a884; --glow: rgba(0,168,132,.5);   --grad: url(#g-mint); }
.sq-i { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; color: var(--teal); }

/* ---------- sections: let the wallpaper through ---------- */
body.sqro > section:not(.hero), body.sqro > footer { background-color: transparent; }

/* hero: images and background untouched, only type + controls restyled */
body.sqro .hero { color: var(--text); }
/* Same hero-gb.png and the same responsive size/position as the Tailwind classes on the section.
   Repeated here because style.css's `.hero { background: gradient }` can win the load-order race with Tailwind CDN. */
body.sqro section.hero { background: url('/assets/images/home/hero-gb-mobile.webp') center / cover no-repeat; }
@media (min-width: 640px)  { body.sqro section.hero { background-image: url('/assets/images/home/hero-gb.webp'); background-size: 250% auto; background-position: calc(40% + 10px) top; } }
@media (min-width: 768px)  { body.sqro section.hero { background-size: 200% auto; background-position: calc(30% + 30px) top; } }
@media (min-width: 1024px) { body.sqro section.hero { background-size: 150% auto; background-position: calc(50% + 80px) top; } }
@media (min-width: 1280px) { body.sqro section.hero { background-size: 150% auto; background-position: calc(50% + 100px) top; } }
/* reading panel: strong liquid glass behind the hero copy so it reads on top of the photo */
body.sqro .sq-hero-card {
  width: fit-content; max-width: min(640px, 100%); margin: 0 auto; padding: 22px 28px 24px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,255,255,.9));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(11,27,43,.06), 0 24px 48px -20px rgba(11,27,43,.35);
}
body.sqro .hero #hero-title { color: var(--ink); font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.2;
  font-size: clamp(22px, 6.2vw, 40px); white-space: normal; }
body.sqro .hero #hero-desc { color: var(--text); font-size: 17px; line-height: 1.6; margin: 0; }
@media (max-width: 480px) {
  body.sqro .sq-hero-card { padding: 18px 18px 20px; border-radius: var(--r-lg); }
  body.sqro .hero #hero-desc { font-size: 16px; }
}
body.sqro .hero .text-sm\/relaxed { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center;
  padding: 8px 16px; border-radius: var(--r-full); background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); color: var(--text); font-family: var(--font-display); }

/* section headings */
body.sqro #product-title, body.sqro #usage-title, body.sqro #pricing-title, body.sqro #restaurant-feature-title,
body.sqro #smart-order-title, body.sqro #demo > h2, body.sqro #app-installation-title, body.sqro #latest-blog h2.text-2xl, body.sqro #faq > h2 {
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; letter-spacing: -.02em;
}
body.sqro #smart-order-title-accent { background-image: var(--grad-text); }

/* cards → liquid glass, concentric corners */
body.sqro > section :is(.bg-white.rounded-xl, .rounded-2xl.border, aside.rounded-2xl, details.bg-white, .rounded-xl.shadow, .rounded-xl.shadow-sm) {
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: var(--r-xl);
}
body.sqro > section article.rounded-xl.shadow:hover { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 40px -16px rgba(11,27,43,.28); transform: translateY(-3px); }
body.sqro > section article.rounded-xl { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
body.sqro #product .bg-white.rounded-xl { padding: 26px; }
body.sqro #product .bg-white.rounded-xl h3, body.sqro #product .bg-white.rounded-xl h4 { font-size: 18px; margin-top: 14px; }
body.sqro #product .bg-white.rounded-xl a { display: inline-block; margin-top: 8px; text-decoration: none; font: 500 14px var(--font-display); color: var(--teal-ink); }
body.sqro #product .bg-white.rounded-xl a::after { content: " ›"; }

/* usage steps */
body.sqro #Usage .bg-white.rounded-xl { padding: 28px; }
body.sqro #Usage .text-3xl.font-bold.text-brand-600 { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font: 600 22px var(--font-display); color: var(--teal-ink); background: var(--teal-soft); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(0,168,132,.6); }
body.sqro #Usage ul { list-style: none; padding: 0; display: grid; gap: 6px; }
body.sqro #Usage ul li { position: relative; padding-left: 26px; }
body.sqro #Usage ul li::before { content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300775e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
body.sqro #Usage img { border-radius: var(--r-lg); }

/* features list */
body.sqro #restaurant-feature-list li { padding: 10px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.6); border: 1px solid var(--glass-edge); }
body.sqro #restaurant-feature-list .fa-circle-check { color: var(--teal); }

/* smart orders: drop the violet/sky blobs, keep layout */
body.sqro #smart-order-management .bg-violet-100\/60 { background: rgba(143,224,201,.45); }
body.sqro #smart-order-management .bg-sky-100\/60 { background: rgba(173,210,255,.45); }
body.sqro #smart-order-management .bg-gradient-to-br { background-image: linear-gradient(135deg, rgba(143,224,201,.6), rgba(233,243,255,.8), rgba(255,214,180,.5)); }
body.sqro #smart-order-management article { border-radius: var(--r-lg) !important; }

/* pricing */
body.sqro #pricing .bg-white.rounded-xl { padding: 30px; }
body.sqro #pricing .bg-white.rounded-xl.border-2 { border: 2px solid var(--teal) !important; box-shadow: var(--glass-shadow), 0 24px 48px -24px rgba(0,168,132,.55); }
body.sqro #pricing .inline-flex.rounded-full { font-family: var(--font-display); font-weight: 500; color: var(--teal-ink) !important; background: var(--teal-soft) !important; }
body.sqro #pricing .border-2 .inline-flex.rounded-full { color: #fff !important; background: var(--ink) !important; }
body.sqro #pricing img { border-radius: var(--r-lg); margin: 6px 0 16px; }
body.sqro #pricing-price-amount { color: var(--teal-ink); }

/* demo */
body.sqro #demo img { border-radius: var(--r-xl); box-shadow: var(--glass-shadow), 0 24px 48px -24px rgba(11,27,43,.35); }

/* app installation: one material, teal accents */
body.sqro #app-installation article, body.sqro #app-installation aside { padding: 28px; }
body.sqro #app-installation article p, body.sqro #app-installation aside p { text-align: left; margin-top: 0; }
body.sqro #android-card-eyebrow { font-family: var(--font-display); color: var(--teal-ink); }
body.sqro #app-installation a.bg-green-600 { /* Android CTA keeps its look family: tint bubble */
  min-height: 48px; border-radius: var(--r-full); padding: 0 22px; color: #0f2a4f;
  background: radial-gradient(120% 140% at 30% 0%, #6ff0cf, var(--teal) 55%, #00916f);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), inset 0 -4px 8px rgba(0,80,60,.25), 0 12px 24px -8px rgba(0,168,132,.5); }
body.sqro #app-installation a.bg-green-600:hover { background: #12bb95; color: #0f2a4f; }
body.sqro #app-installation .rounded-xl.border { border-radius: var(--r-md); background: rgba(255,255,255,.7); border-color: var(--glass-edge); }
body.sqro #app-installation .fa-headset { color: var(--teal); }

/* blog */
body.sqro #latest-blog article img { border-radius: 0; }
body.sqro #latest-blog article .bg-slate-100 { background: var(--teal-soft); color: var(--teal-ink); border-radius: var(--r-full); font-family: var(--font-display); font-weight: 500; }
body.sqro #latest-blog > div > a { font-family: var(--font-display); font-weight: 500; }
body.sqro #latest-blog > div:first-child { flex-wrap: wrap; gap: 8px 16px; }
body.sqro #latest-blog > div:first-child > a { white-space: nowrap; }

/* faq */
body.sqro #faq details { border-radius: var(--r-lg) !important; padding: 0 20px; }
body.sqro #faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 500; }
body.sqro #faq summary::-webkit-details-marker { display: none; }
body.sqro #faq summary::after { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: rgba(11,27,43,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3a6b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .45s var(--ease); }
body.sqro #faq details[open] summary::after { transform: rotate(180deg); }
body.sqro #faq details p { margin: 0; padding: 0 0 18px; }

/* trust strip */
body.sqro .sq-strip > * { display: flex; align-items: center; justify-content: center; gap: 12px; font: 500 16px var(--font-display); color: var(--ink); text-decoration: none; }
body.sqro .sq-strip a:hover { color: var(--ink); transform: translateY(-2px); }

/* footer */
body.sqro > footer { color: var(--muted); }
body.sqro > footer nav a { color: var(--ink); font-family: var(--font-display); }
body.sqro > footer nav a:hover { color: var(--teal-ink); }

/* "ทุกอย่างที่ร้านคุณต้องมี" — intro, card text, closing tagline */
body.sqro #product-desc { font-size: 17px; line-height: 1.7; }
body.sqro #product .bg-white.rounded-xl p { line-height: 1.65; text-align: left; }
body.sqro #product-tagline { font: 600 clamp(18px, 2.2vw, 22px)/1.4 var(--font-display); color: var(--ink); letter-spacing: -.01em; }

/* "ทำไมต้อง sQRo" — comparison card (between the product tagline and "การใช้ QR เมนูดีอย่างไร") */
body.sqro #why-sqro { padding-top: 40px; padding-bottom: 8px; }
body.sqro #why-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; letter-spacing: -.02em; text-align: center; margin: 0 0 28px; }
body.sqro .sq-cmp {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.08fr; grid-template-rows: repeat(5, auto);
  column-gap: 14px; padding: 10px; border-radius: var(--r-xl);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
/* the sQRo column is one raised panel behind its cells */
body.sqro .sq-cmp::before {
  content: ""; position: absolute; inset: 0; grid-column: 2; grid-row: 1 / -1; z-index: -1; /* abspos: covers the column without taking a grid cell */ border-radius: var(--r-lg);
  background: linear-gradient(165deg, #fff 0%, rgba(255,255,255,.92) 55%, var(--teal-soft) 100%);
  border: 1.5px solid var(--teal-200);
  box-shadow: 0 1px 0 #fff inset, 0 18px 36px -18px rgba(0,119,94,.45);
}
body.sqro .sq-cmp-head { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px 16px;
  font: 600 clamp(17px, 2vw, 22px)/1.2 var(--font-display); letter-spacing: -.01em; }
body.sqro .sq-cmp-head.other { color: var(--muted); }
body.sqro .sq-cmp-head.sqro { color: var(--ink); }
body.sqro .sq-cmp-head.sqro span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.15em; }
body.sqro .sq-cmp-cell { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-top: 1px solid rgba(29,58,107,.08); min-height: 64px; }
body.sqro .sq-cmp-cell.other { color: var(--muted); font-size: 16px; line-height: 1.45; }
body.sqro .sq-cmp-cell.sqro { color: var(--ink); font: 600 17px/1.4 var(--font-display); border-top-color: rgba(0,168,132,.14); }
body.sqro .sq-cmp-cell.sqro em { font-style: normal; color: var(--teal-ink); }
body.sqro .sq-cmp-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
body.sqro .sq-cmp-ic svg { width: 16px; height: 16px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body.sqro .sq-cmp-ic.no { background: #f1f3f6; box-shadow: inset 0 0 0 1px rgba(100,116,139,.18); }
body.sqro .sq-cmp-ic.no svg { stroke: #94a3b8; }
body.sqro .sq-cmp-ic.yes { background: linear-gradient(145deg, #13c2a3, #00a884); box-shadow: 0 4px 10px -3px rgba(0,168,132,.55), inset 0 1px 0 rgba(255,255,255,.45); }
body.sqro .sq-cmp-ic.yes svg { stroke: #fff; }
@media (max-width: 640px) {
  body.sqro #why-sqro { padding-left: 16px; padding-right: 16px; }
  body.sqro .sq-cmp { column-gap: 8px; padding: 6px; border-radius: var(--r-lg); grid-template-columns: 1fr 1.1fr; }
  body.sqro .sq-cmp::before { border-radius: var(--r-md); }
  body.sqro .sq-cmp-head { padding: 14px 8px 12px; }
  body.sqro .sq-cmp-cell { gap: 8px; padding: 12px 10px; min-height: 58px; align-items: flex-start; }
  body.sqro .sq-cmp-cell.other { font-size: 14px; }
  body.sqro .sq-cmp-cell.sqro { font-size: 14.5px; }
  body.sqro .sq-cmp-ic { width: 22px; height: 22px; margin-top: 1px; }
  body.sqro .sq-cmp-ic svg { width: 12px; height: 12px; stroke-width: 3; }
}

/* scroll reveal — elements rise into place as they enter the viewport.
   Only active when the script adds html.sq-anim, so without JS (and for search bots) everything is visible. */
html.sq-anim body.sqro .fade-up { animation: none; }
html.sq-anim .sq-reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .7s var(--ease), transform .8s var(--ease); }
html.sq-anim img.sq-reveal { transform: translateY(20px) scale(.95); }
html.sq-anim .sq-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.sq-anim .sq-reveal { opacity: 1; transform: none; transition: none; }
}

/* over the hero photo the glass needs more white now that it is not blurred */
body.sqro .hero .text-sm\/relaxed { background: rgba(255,255,255,.92); }
body.sqro .hero .btn-outline-brand { background: radial-gradient(120% 140% at 30% 0%, rgba(255,255,255,.98), rgba(255,255,255,.9) 60%, rgba(235,245,255,.88)); }

/* inline SVG icons (replaced the Font Awesome web font) */
.fa-ic { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; overflow: visible; }
.fa-ic.fa-hand-pointer, .fa-ic.fa-arrow-right { width: .875em; }
.fa-ic.fa-book-open { width: 1.125em; }
