:root {
  --ink: #071329;
  --ink-soft: #11264b;
  --muted: #66758a;
  --line: #dce5ee;
  --paper: #f7fafc;
  --white: #ffffff;
  --cyan: #16c8f6;
  --cyan-dark: #087fa5;
  --teal-pale: #e8f7fd;
  --blue: #3c78f5;
  --violet: #8857ff;
  --shadow: 0 18px 50px rgba(7, 19, 41, 0.08);
  --radius: 22px;
  --max: 1160px;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  line-height: 1.65;
  overflow-x: clip;
}

html[lang="th"] body {
  font-family: "IBM Plex Sans Thai", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.8;
}

html[lang="th"] :where(p, li, button, label, small) { letter-spacing: normal; }
html[lang="th"] a:not(.brand) { letter-spacing: normal; }

a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .65rem .9rem;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 800;
  border-radius: 10px;
}

.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--cyan-dark);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 252, .88);
  border-bottom: 1px solid rgba(220, 229, 238, .8);
  backdrop-filter: blur(14px);
  transition: box-shadow .2s ease, background-color .2s ease;
}

.site-header.is-scrolled { background: rgba(247, 250, 252, .96); box-shadow: 0 8px 24px rgba(7, 19, 41, .08); }

.nav,
.section,
.footer-inner {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 700; transition: color .18s ease, transform .18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover { transform: translateY(-1px); }

.menu-toggle { display: none; }
.language-switch { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); }
.language-switch button { min-width: 38px; min-height: 34px; padding: .3rem .55rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 850; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.language-switch button:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--cyan-dark); outline-offset: 3px; }
.nav > .language-switch { margin-left: auto; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 7rem;
  background: linear-gradient(135deg, var(--paper) 0%, #eef8fa 55%, #dceef3 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -210px;
  top: -250px;
  border: 1px solid rgba(22, 200, 246, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(22, 200, 246, .05), 0 0 0 84px rgba(22, 200, 246, .04);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }
.eyebrow { margin: 0 0 1rem; color: var(--cyan-dark); font-size: .75rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.075em; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.055em; }
h3 { margin-bottom: .55rem; font-size: 1.15rem; line-height: 1.2; letter-spacing: -.025em; }
.lede { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border-style: solid;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:not(.button-disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(7, 19, 41, .1); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--ink-soft); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.6); color: var(--ink); }
.button-secondary:hover { border-color: var(--cyan); background: var(--white); }
.button-disabled { cursor: not-allowed; opacity: .58; pointer-events: none; }
.button-disabled:hover { transform: none; }

.section { padding: 7rem 0; }
.section-header { max-width: 720px; margin-bottom: 2.7rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }

.work-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work-card-copy { padding: clamp(1.5rem, 4vw, 3.5rem); }
.work-card-copy p { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.3rem 0 2rem; }
.tag { padding: .38rem .65rem; color: var(--cyan-dark); background: var(--teal-pale); border-radius: 99px; font-size: .78rem; font-weight: 800; }

.proof-placeholder {
  min-height: 340px;
  display: flex;
  align-items: end;
  padding: 1.5rem;
  background: linear-gradient(145deg, #122945, #071329 65%, #0d5260);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.proof-frame {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .2s ease;
}

.proof-frame figcaption {
  padding: .85rem 1rem;
  color: var(--muted);
  background: var(--white);
  font-size: .82rem;
}

.home-proof { min-height: 0; align-self: stretch; }
.proof-frame:hover { border-color: #b9dbe0; box-shadow: 0 22px 56px rgba(7, 19, 41, .12); }
.proof-frame:hover img { transform: scale(1.015); }

.proof-placeholder::before {
  content: "";
  position: absolute;
  inset: 16% 10% 24%;
  border: 1px solid rgba(169, 240, 239, .35);
  background: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 25% 25%;
  transform: perspective(700px) rotateY(-14deg) rotateX(7deg);
}

.proof-placeholder::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -90px;
  right: -60px;
  border: 1px solid rgba(22, 200, 246, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(22, 200, 246, .08), 0 0 0 44px rgba(22, 200, 246, .05);
}

.proof-caption { position: relative; z-index: 1; max-width: 280px; }
.proof-caption strong { display: block; margin-bottom: .35rem; font-size: 1.05rem; }
.proof-caption span { color: #b6c8d9; font-size: .88rem; }

.capability-grid,
.feature-grid,
.proof-grid,
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.capability,
.feature,
.value { padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.capability:hover, .feature:hover, .value:hover { transform: translateY(-3px); border-color: #b9dbe0; box-shadow: 0 14px 30px rgba(7, 19, 41, .08); }
.capability p, .feature p, .value p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }
.icon-number { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: 1rem; background: var(--teal-pale); color: var(--cyan-dark); border-radius: 10px; font-weight: 850; }

.cta-band { padding: 5rem 0; background: var(--ink); color: var(--white); }
.cta-band .section { padding: 0; }
.cta-band p { max-width: 600px; color: #b8c7d7; }
.cta-band .button-primary { background: var(--cyan); color: var(--ink); }
.cta-band .button-primary:hover { background: #75e1e3; }
.cta-band .button-secondary { color: var(--white); border-color: #42546b; background: transparent; }
.site-footer { padding: 1.7rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-header a, .site-header button { -webkit-tap-highlight-color: transparent; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 3px solid var(--cyan-dark); outline-offset: 3px; }
.site-header .brand-mark { transition: width .2s ease, height .2s ease; }
.site-header.is-scrolled .brand-mark { width: 34px; height: 34px; }
.site-header .nav { transition: min-height .2s ease; }
.site-header.is-scrolled .nav-links a { font-size: .88rem; }

[id] { scroll-margin-top: 88px; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }

.project-hero { padding: 6.5rem 0 4.5rem; background: var(--ink); color: var(--white); }
.project-hero .section { padding: 0; }
.project-hero .lede { color: #b8c7d7; }
.project-hero .eyebrow { color: #75e1e3; }
.line-funnel-page .project-hero .button-primary { background: var(--cyan); color: var(--ink); }
.line-funnel-page .project-hero .button-primary:hover { background: #9debef; }
.project-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; color: #b8c7d7; font-size: .9rem; }
.project-meta span { padding-right: .7rem; border-right: 1px solid #40536a; }
.project-meta span:last-child { border-right: 0; }
.project-section { padding: 5.5rem 0; }
.project-section.alt { background: var(--white); }
.project-section .section { padding: 0; }
.project-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.project-copy { max-width: 720px; color: var(--muted); }
.project-copy strong { color: var(--ink); }
.workflow { display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem; margin-top: 2rem; }
.workflow-step { min-height: 128px; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.workflow-step:not(:last-child)::after { content: "→"; position: absolute; right: -.58rem; top: 46%; color: var(--cyan-dark); font-weight: 900; }
.workflow-step { position: relative; }
.workflow-step strong { display: block; font-size: .92rem; }
.workflow-step span { display: block; margin-top: .35rem; color: var(--muted); font-size: .78rem; }
.large-proof { min-height: 430px; border-radius: var(--radius); }
.proof-frame-natural { min-height: 0; }
.proof-grid { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
.proof-tile { min-width: 0; overflow: hidden; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 15px; color: var(--ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.proof-frame > a, .proof-tile > a { display: block; }
.proof-tile img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.proof-tile figcaption { padding: .85rem 1rem; color: var(--muted); font-size: .83rem; }
.proof-tile:hover { transform: translateY(-3px); border-color: #b9dbe0; box-shadow: 0 14px 30px rgba(7, 19, 41, .08); }
.proof-tile:hover img { transform: scale(1.015); }
.proof-status-card { display: grid; align-content: start; gap: .55rem; padding: 1.2rem 1.25rem; background: linear-gradient(145deg, #fff, #f4f9fb); }
.proof-status-card h3 { margin: 0; font-size: 1.05rem; }
.proof-status-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.proof-status-card .proof-status-label { color: #145766; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proof-status-card .proof-status-note { padding-top: .5rem; border-top: 1px solid var(--line); font-size: .8rem; }
.proof-status-pending { background: linear-gradient(145deg, #fff, #f7f5ff); }
.proof-status-pending .proof-status-label { color: #554990; }
.boundary { margin-top: 2rem; padding: 1.25rem 1.4rem; background: #eef8fa; border-left: 4px solid var(--cyan); color: var(--ink-soft); border-radius: 0 12px 12px 0; }
.stack-list { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.stack-list span { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: .88rem; font-weight: 700; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.stack-list span:hover { transform: translateY(-2px); border-color: #b9dbe0; box-shadow: 0 8px 18px rgba(7, 19, 41, .07); }
.role-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 2rem; padding: 0; margin: 1.3rem 0 0; list-style: none; }
.role-list li::before { content: "↗"; margin-right: .55rem; color: var(--cyan-dark); font-weight: 900; }
.link-list { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.contact-status { display: block; margin-top: .75rem; color: #91a4b8; font-size: .8rem; }

html.js-enabled [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
html.js-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
html.js-enabled [data-reveal][data-delay="1"] { transition-delay: 60ms; }
html.js-enabled [data-reveal][data-delay="2"] { transition-delay: 120ms; }
html.js-enabled [data-reveal][data-delay="3"] { transition-delay: 180ms; }

@media (max-width: 820px) {
  .nav, .section, .footer-inner { width: min(calc(100% - 2rem), var(--max)); }
  .hero { padding: 6rem 0 5rem; }
  .work-card, .project-intro { grid-template-columns: 1fr; }
  .capability-grid, .feature-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .workflow-step:nth-child(3)::after, .workflow-step:nth-child(6)::after { display: none; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  [id] { scroll-margin-top: 76px; }
  .nav { min-height: 68px; flex-wrap: wrap; padding: .45rem 0; gap: .45rem .8rem; }
  .nav-links { gap: .8rem; }
  .nav-links a { font-size: .82rem; }
  .menu-toggle { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; margin-left: auto; padding: .45rem; color: var(--ink); background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 10px rgba(7,19,41,.04); cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
  .menu-toggle[aria-expanded="true"] { color: #075d7d; background: #e8f7fd; border-color: rgba(22,200,246,.42); box-shadow: 0 4px 14px rgba(60,120,245,.1); }
  .nav > .language-switch { margin-left: 0; }
  .nav .nav-links { display: flex; order: 5; width: 100%; max-height: 0; flex-direction: column; align-items: stretch; gap: .15rem; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(-4px); padding: 0 .35rem; border: 1px solid transparent; border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 12px 30px rgba(7,19,41,.08); transition: max-height .22s ease, opacity .18s ease, visibility .22s ease, transform .18s ease, padding .22s ease, border-color .18s ease, margin .22s ease; }
  .site-header.menu-open .nav .nav-links { max-height: 240px; visibility: visible; opacity: 1; transform: translateY(0); margin-bottom: .3rem; padding: .4rem; border-color: rgba(17,38,75,.1); }
  .nav .nav-links a { display: block; padding: .58rem .78rem; border-radius: 10px; font-size: .92rem; font-weight: 700; }
  .nav .nav-links a:hover, .nav .nav-links a:focus-visible { background: var(--teal-pale); color: #075d7d; transform: none; }
  .hero { padding: 5rem 0 4.2rem; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.5rem); }
  .section, .project-section { padding: 4.5rem 0; }
  .capability-grid, .feature-grid, .value-grid, .proof-grid, .role-list { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow-step:nth-child(2)::after, .workflow-step:nth-child(4)::after { display: none; }
  .footer-inner { flex-direction: column; }
  .project-meta { gap: .45rem; }
  .project-meta span { padding-right: .45rem; }
}

@media (max-width: 560px) {
  html[lang="th"] .nav .nav-links a { line-height: 1.55; }
  html[lang="th"] .hero .eyebrow, html[lang="th"] .project-hero .eyebrow { letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-enabled [data-reveal] { opacity: 1; transform: none; transition: none; }
  .proof-frame:hover img, .proof-tile:hover img { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.portfolio-secondary { margin-top: 1.25rem; }

.shopflow-flow-card { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, #fff9ef, #fff 72%); }
.shopflow-flow-content { display: grid; align-content: center; gap: 1.15rem; min-height: 270px; padding: clamp(1.4rem, 4vw, 2.6rem); }
.shopflow-brand-pill { width: fit-content; padding: .32rem .62rem; color: #854312; background: #f7e7d1; border-radius: 99px; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.shopflow-flow-content h4 { max-width: 360px; margin: 0; color: #242b34; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.1; letter-spacing: -.045em; }
.shopflow-flow-steps { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #633914; font-size: .83rem; font-weight: 800; text-align: center; }
.shopflow-flow-steps span:nth-child(odd) { flex: 1; padding: .8rem .45rem; background: rgba(244, 184, 111, .2); border: 1px solid rgba(183, 110, 38, .16); border-radius: 12px; }
.shopflow-flow-steps span:nth-child(even) { color: #bf6b20; font-size: 1.15rem; }
.shopflow-flow-content > a { width: fit-content; color: #80501f; font-size: .88rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shopflow-flow-card figcaption { border-top: 1px solid #f1e8dd; }
.shopflow-proof-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.5rem; }
.shopflow-proof-link { display: block; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.shopflow-proof-link strong { display: block; margin-bottom: .25rem; }
.shopflow-proof-link span { color: var(--muted); font-size: .84rem; }
.shopflow-demo-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin-top: 2rem; }
.shopflow-demo-card { padding: clamp(1.3rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.shopflow-demo-card.primary { background: #fff8ef; border-color: #f0ddc4; }
.shopflow-demo-card p { color: var(--muted); }
.shopflow-demo-card .eyebrow { margin-bottom: .55rem; }
.shopflow-demo-card .button { margin-top: .4rem; }
.shopflow-demo-steps { display: grid; gap: .6rem; padding-left: 1.2rem; color: var(--muted); }

@media (max-width: 820px) {
  .shopflow-demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shopflow-proof-links { grid-template-columns: 1fr; }
  .shopflow-flow-content { min-height: 240px; }
  .shopflow-flow-steps { gap: .3rem; font-size: .72rem; }
  .shopflow-flow-steps span:nth-child(odd) { padding: .65rem .3rem; }
}

.shopflow-gallery { margin-top: 1.5rem; }
.shopflow-line-proof { margin-top: 2.5rem; padding: clamp(1.1rem, 3vw, 2rem); background: #f7fafb; border: 1px solid var(--line); border-radius: 20px; }
.shopflow-line-proof-heading { max-width: 720px; margin-bottom: 1.25rem; }
.shopflow-line-proof-heading h3 { margin: 0 0 .65rem; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.shopflow-line-proof-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.shopflow-line-proof-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); align-items: start; gap: 1rem; }
.shopflow-line-proof-card { min-width: 0; margin: 0; overflow: hidden; background: #151515; border: 1px solid var(--line); border-radius: 16px; }
.shopflow-line-proof-card a, .shopflow-qr-card a { display: grid; place-items: center; }
.shopflow-line-proof-card img { display: block; width: auto; max-width: 100%; max-height: 760px; object-fit: contain; }
.shopflow-line-welcome img { max-height: 500px; }
.shopflow-line-proof-card figcaption, .shopflow-qr-card figcaption { padding: .8rem 1rem; color: var(--muted); background: var(--white); font-size: .82rem; }
.shopflow-line-steps { display: grid; gap: .55rem; margin: 1rem 0 1.2rem; padding-left: 1.35rem; color: var(--muted); }
.shopflow-liff-status { padding: .9rem 1rem; background: #eff8f6; border-left: 3px solid #159776; border-radius: 8px; font-size: .9rem; }
.shopflow-qr-card { display: grid; grid-template-columns: 142px minmax(0, 1fr); align-items: center; gap: .8rem; margin: 1rem 0 0; padding: .65rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.shopflow-qr-card img { display: block; width: 142px; height: auto; }
.shopflow-qr-card figcaption { padding: .5rem; }
@media (max-width: 700px) {
  .shopflow-line-proof-grid { grid-template-columns: 1fr; }
  .shopflow-line-proof-card img { max-height: 650px; }
  .shopflow-line-welcome img { max-height: 520px; }
}
@media (max-width: 420px) {
  .shopflow-qr-card { grid-template-columns: 112px minmax(0, 1fr); gap: .55rem; padding: .5rem; }
  .shopflow-qr-card img { width: 112px; }
  .shopflow-qr-card figcaption { font-size: .78rem; }
}

.shopflow-code-generate:disabled { cursor: wait; opacity: .68; }
.shopflow-code-message { min-height: 1.4em; margin: .75rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.shopflow-code-panel { margin-top: .5rem; padding: 1rem; background: #f7fafb; border: 1px solid var(--line); border-radius: 14px; }
.shopflow-code-row { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.shopflow-code-value { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; letter-spacing: .08em; }
.shopflow-code-copy { flex: 0 0 auto; cursor: pointer; font: inherit; }
.shopflow-code-expiry, .shopflow-code-duration { margin: .75rem 0 0; color: var(--muted); font-size: .88rem; }
.shopflow-code-note { margin: .75rem 0; color: var(--muted); font-size: .86rem; }
@media (max-width: 420px) {
  .shopflow-code-panel { padding: .75rem; }
  .shopflow-code-row { align-items: stretch; flex-direction: column; }
  .shopflow-code-copy { align-self: flex-start; }
}

.line-welcome-proof { max-width: 720px; margin-top: 1.5rem; }
.line-proof-grid .proof-tile { align-self: start; }
.line-proof-more { margin-top: 1.25rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.line-proof-more summary { color: var(--ink); font-weight: 800; cursor: pointer; }
.line-proof-more .proof-tile { max-width: 520px; margin-top: 1rem; }
.line-demo-card { display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 4vw, 3rem); margin-top: 1.75rem; padding: clamp(1.25rem, 4vw, 2.5rem); color: var(--white); background: linear-gradient(135deg, #071329, #152d4b 68%, #103f53); border: 1px solid #294663; border-radius: 22px; box-shadow: var(--shadow); }
.line-demo-qr { display: grid; place-items: center; width: min(100%, 240px); padding: 8px; background: var(--white); border: 1px solid #dce5ee; border-radius: 14px; }
.line-demo-qr img { display: block; width: 100%; height: auto; }
.line-demo-copy .eyebrow { margin-bottom: .55rem; color: #75e1e3; }
.line-demo-copy h3 { margin-bottom: .65rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.line-demo-copy > p:not(.eyebrow) { max-width: 650px; color: #c1cfde; }
.line-demo-copy .line-demo-guidance { margin-bottom: 1.25rem; }
.line-demo-copy .button-primary { margin-bottom: .9rem; background: var(--cyan); color: var(--ink); }
.line-demo-copy .button-primary:hover { background: #75e1e3; }
.line-demo-copy .line-demo-disclaimer { margin: .4rem 0 0; color: #d0d9e3; font-size: .86rem; }

@media (max-width: 700px) {
  .line-demo-card { grid-template-columns: 1fr; }
  .line-demo-qr { width: min(100%, 240px); margin: 0 auto; }
}

/* Life Gauge project presentation */
.life-gauge-page .project-hero { background: #252529; }
.life-gauge-page .project-hero .eyebrow { color: #ffaaa4; }
.life-gauge-page .project-hero .button-primary { background: #bd373b; color: #fff; }
.life-gauge-page .project-hero .button-primary:hover { background: #9e292e; }
.life-gauge-page .project-hero .button-secondary { background: #fff; color: #252529; }
.life-hero-note { max-width: 650px; color: #ffe2df; font-size: .9rem; }
.life-gauge-page .eyebrow { color: #a52d34; }
.life-gauge-page .project-hero .eyebrow { color: #ffaaa4; }
.life-gauge-page .icon-number { background: #fbecea; color: #a52d34; }
.life-gauge-page .boundary { background: #fbecea; border-color: #bd373b; color: #35272a; }
.life-workflow { grid-template-columns: repeat(5, 1fr); }
.life-desktop-proof { max-width: 760px; margin-top: 2rem; }
.life-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 1.5rem; }
.life-mobile-proof img { max-width: 375px; margin: auto; }
.life-home-proof img { height: 340px; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .life-workflow { grid-template-columns: repeat(2, 1fr); } .life-gallery { grid-template-columns: 1fr; } .life-mobile-proof img { max-width: min(100%, 375px); } }
@media (max-width: 480px) { .life-workflow { grid-template-columns: 1fr; } }
.life-gauge-page .cta-band .eyebrow { color: #ffaaa4; }
