/* SCP+ Softwarehouse — shared site styles */

:root {
  --mint: #4FE1C1;
  --sky: #3D8BFF;
  --indigo: #276EF1;
  --ink: #101827;
  --ink-soft: #4F5D75;
  --bg: #FAFCFF;
  --bg-soft: #F0F5FF;
  --card-border: #D9E4F4;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 46px rgba(20, 29, 55, 0.10);
  --shadow-soft: 0 8px 24px rgba(20, 29, 55, 0.07);
  --max-width: 1080px;
  color-scheme: light;
}

:root {
  --footer-bg: #0B1326;
  --surface-raised: #ffffff;
}

:root[data-theme="dark"] {
  --ink: #edeff7;
  --ink-soft: #a9afc4;
  --bg: #0C1324;
  --bg-soft: #121C31;
  --card-border: #263653;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);
  --footer-bg: #070D18;
  --surface-raised: #17223A;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans Thai', 'Noto Sans JP', 'Segoe UI', -apple-system, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--indigo);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
:root[data-theme="dark"] .site-header {
  background: rgba(18, 19, 28, 0.85);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; }
.brand .plus { color: var(--indigo); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links > a { color: var(--ink-soft); }
.nav-links > a:hover { color: var(--indigo); text-decoration: none; }
.nav-links > a.current { color: var(--indigo); position: relative; }
.nav-links > a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--indigo);
}
@media (max-width: 640px) {
  .nav-links > a.current::after { display: none; }
  .nav-links > a.current { background: var(--bg-soft); }
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.lang-switch a:hover { text-decoration: none; color: var(--indigo); }
.lang-switch a.active {
  background: var(--surface-raised);
  color: var(--indigo);
  box-shadow: 0 2px 6px rgba(20,20,31,0.1);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--card-border); }
.theme-toggle .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-dark { display: inline; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Anchor targets should clear the sticky header */
#products, #about, #contact { scroll-margin-top: 88px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #143A86 0%, var(--indigo) 48%, #2C8BE7 100%);
  color: #ffffff;
  padding: 88px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.hero::before { width: 420px; height: 420px; top: -220px; left: -140px; }
.hero::after { width: 300px; height: 300px; bottom: -180px; right: -100px; background: rgba(255,255,255,0.08); }
.hero .wrap { position: relative; z-index: 2; }
.hero-logo { width: 96px; height: 96px; margin: 0 auto 24px; }
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.12);
}
.hero p.tagline {
  font-size: 19px;
  font-weight: 500;
  opacity: 0.96;
  max-width: 560px;
  margin: 0 auto;
}

/* Two-column hero with product visual */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
  padding-bottom: 64px;
}
.hero-copy { flex: 1 1 0; min-width: 0; max-width: 560px; }
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-badge-row .hero-badge { flex-basis: 100%; margin-bottom: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-badge img { width: 22px; height: 22px; border-radius: 6px; }
.hero-inner h1 { font-size: 46px; }
.hero-inner p.tagline { margin: 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-inner .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  flex-shrink: 0;
  min-width: 0;
  width: 260px;
  margin-top: 20px;
}
.nexus-system {
  width: min(440px, 39vw);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-top: 0;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 28px;
  background: rgba(9, 30, 83, 0.18);
  box-shadow: 0 28px 52px rgba(5, 16, 50, 0.22);
}
.nexus-core {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px rgba(255,255,255,0.28);
}
.nexus-core::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(79,225,193,0.52);
  border-radius: 34px;
}
.nexus-core img { width: 82px; height: 82px; filter: drop-shadow(0 10px 12px rgba(1, 12, 40, 0.32)); }
.nexus-system-grid { display: grid; gap: 10px; min-width: 0; }
.nexus-system-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  line-height: 1.25;
}
.nexus-system-card span { grid-row: span 2; color: var(--mint); font-size: 12px; font-weight: 800; }
.nexus-system-card strong { min-width: 0; color: #fff; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.nexus-system-card small { min-width: 0; color: rgba(255,255,255,0.78); font-size: 11px; overflow-wrap: anywhere; }
.phone-mock {
  border-radius: 28px;
  border: 6px solid rgba(255,255,255,0.65);
  box-shadow: 0 30px 60px rgba(10, 20, 50, 0.35);
  overflow: hidden;
  transform: rotate(-3deg);
  background: #0b1220;
}
.phone-mock img { display: block; width: 100%; height: auto; }
.floating-badge {
  position: absolute;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(20,20,31,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.floating-badge.top-badge { top: 8%; left: -18%; }
.floating-badge.bottom-badge { bottom: 10%; right: -22%; color: #0F6D62; }

.hero-wave { line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 60px; }
.hero-wave svg path { fill: var(--bg); }
.hero-wave.wave-soft svg path { fill: var(--bg-soft); }

/* ---------- Decorative section blobs ---------- */
.deco { position: relative; overflow: hidden; }
.deco::before, .deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.deco::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(70,143,241,0.10), transparent 70%);
  top: -120px; right: -80px;
}
.deco::after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(109,237,212,0.16), transparent 70%);
  bottom: -100px; left: -60px;
}
.deco .wrap { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Product approach and workflow ---------- */
.capabilities { position: relative; overflow: hidden; }
.capabilities::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  top: -270px;
  left: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,225,193,0.22), transparent 68%);
  pointer-events: none;
}
.capabilities .wrap { position: relative; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.capability-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: 0 14px 30px rgba(16,24,39,0.06);
}
.capability-number { display: block; color: var(--indigo); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.capability-card h3 { margin: 12px 0 8px; font-size: 19px; line-height: 1.35; }
.capability-card p { color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
.workflow { position: relative; overflow: hidden; }
.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}
.workflow-list li {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--card-border);
}
.workflow-list li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  color: #0B1C3D;
  font-weight: 800;
  font-size: 14px;
}
.workflow-list h3 { font-size: 17px; margin-bottom: 5px; }
.workflow-list p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card.linkable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20,20,31,0.12);
}
.product-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-icon-wrap.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--mint), var(--sky));
}
.product-card h3 { font-size: 21px; font-weight: 800; }
.product-card p.desc { color: var(--ink-soft); font-size: 15px; flex-grow: 1; }
.status-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.status-badge.live { background: #DFF7EC; color: #16794D; }
.status-badge.dev { background: #FFF2D6; color: #9A6300; }
.product-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.platform-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 24px;
  padding: 3px 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}
.platform-summary.pending { color: #9A6300; }
.platform-mark { position: relative; display: inline-block; flex: 0 0 auto; }
.platform-summary .platform-mark,
.mobile-cta-status .platform-mark {
  width: 13px;
  height: 9px;
  border-radius: 7px 7px 3px 3px;
  background: #a4c639;
}
.platform-summary .platform-mark::after,
.mobile-cta-status .platform-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 5px 0 0 #fff;
}
.platform-play-mark {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #38bdf8;
  filter: drop-shadow(2px 0 0 #a4c639);
}
.platform-stat::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-right: 6px;
  border-radius: 6px 6px 2px 2px;
  background: #a4c639;
  vertical-align: -1px;
}
.product-card .cta { font-weight: 700; font-size: 14px; }
.product-card-disabled {
  position: relative;
  background: var(--bg-soft);
  border-style: dashed;
  opacity: 0.78;
}
.product-card-disabled .product-icon-wrap { filter: grayscale(1); }
.product-card-disabled .cta { color: var(--ink-soft); }

/* ---------- About / values ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
}
.about-item {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.about-item .emoji { font-size: 28px; margin-bottom: 10px; }
.about-item h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.about-item p { color: var(--ink-soft); font-size: 15px; }

.mission-quote {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.mission-quote p {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.mission-quote .mark {
  font-size: 48px;
  font-weight: 800;
  color: var(--indigo);
  opacity: 0.35;
  line-height: 0.5;
  display: block;
  margin-bottom: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--mint), var(--sky));
}
.contact-icon.line-icon {
  background: #06c755;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact-text { min-width: 0; }
.contact-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.contact-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer {
  background: var(--footer-bg);
  color: #cfd3e0;
  padding: 48px 0 32px;
  font-size: 14px;
}
footer .wrap {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.8fr);
  gap: 36px 48px;
  align-items: start;
}
footer .brand-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
}
footer .brand-foot picture {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}
footer .brand-foot img { width: 26px; height: 26px; }
footer a { color: #cfd3e0; }
footer a:hover { color: var(--mint); }
footer .foot-link-groups {
  display: grid;
  grid-template-columns: minmax(min(150px, 100%), 0.78fr) minmax(min(200px, 100%), 1.05fr) minmax(min(230px, 100%), 1.2fr);
  gap: 24px 32px;
  min-width: 0;
}
footer .foot-link-group { min-width: 0; }
footer .foot-link-title {
  margin: 0 0 10px;
  color: #8c96b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
footer .foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
footer .foot-links a { overflow-wrap: anywhere; }
footer .foot-product-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
footer .foot-product-link > span:first-child::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 7px;
  margin-right: 5px;
  border-radius: 5px 5px 2px 2px;
  background: #a4c639;
  vertical-align: -1px;
}
footer .foot-product-link > span:first-child::after {
  content: " Android";
  color: #aab7cc;
  font-size: 10px;
  font-weight: 700;
}
footer .foot-product-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}
footer .foot-product-status.live { color: #8cf0d4; background: rgba(79, 225, 193, 0.14); }
footer .foot-product-status.dev { color: #ffd389; background: rgba(247, 183, 64, 0.14); }
footer .copyright { grid-column: 1 / -1; text-align: center; margin-top: 4px; color: #7c8194; font-size: 13px; }
@media (max-width: 900px) {
  footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  footer .foot-link-groups { grid-template-columns: repeat(3, minmax(min(160px, 100%), 1fr)); }
}
@media (max-width: 640px) {
  footer { padding: 40px 0 28px; }
  footer .foot-link-groups { grid-template-columns: repeat(2, minmax(min(140px, 100%), 1fr)); gap: 26px 20px; }
  footer .foot-link-group-contact { grid-column: 1 / -1; }
  footer .copyright { margin-top: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: #ffffff;
  color: var(--indigo);
  box-shadow: 0 10px 24px rgba(10,20,50,0.18);
}
.btn-primary:hover { text-decoration: none; opacity: 0.95; transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--indigo);
  color: var(--indigo);
}
.btn-outline:hover { text-decoration: none; background: rgba(70,143,241,0.08); transform: translateY(-2px); }
.btn-outline-invert {
  border: 2px solid #ffffff;
  color: #ffffff;
}
.btn-outline-invert:hover { text-decoration: none; background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* ---------- Product detail page ---------- */
.detail-hero {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 55%, var(--indigo) 100%);
  color: #fff;
  padding: 72px 0 0;
}
.detail-hero .inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}
.detail-hero .icon {
  width: 140px; height: 140px;
  border-radius: 34px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 4px solid rgba(255,255,255,0.5);
  overflow: hidden;
  flex-shrink: 0;
}
.detail-hero .icon img { width: 100%; height: 100%; }
.detail-hero .hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-companion {
  width: min(210px, 24vw);
  flex: 0 1 210px;
  align-self: flex-end;
  pointer-events: none;
}
.hero-companion img { display: block; width: 100%; height: auto; }
.restohub-hero-visual {
  width: min(240px, 22vw);
  flex: 0 1 240px;
  align-self: flex-end;
}
.restohub-hero-visual .frame {
  overflow: hidden;
  border: 6px solid rgba(255,255,255,0.65);
  border-radius: 25px;
  background: #101923;
  box-shadow: 0 30px 60px rgba(10,20,50,0.35);
  transform: rotate(3deg);
}
.restohub-hero-visual img { display: block; width: 100%; height: auto; }
.detail-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.detail-hero p { font-size: 17px; opacity: 0.95; max-width: 520px; }
.detail-hero .cta-row { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }

.profpao-release { padding-top: 58px; padding-bottom: 58px; }
.profpao-release-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--surface-raised);
  box-shadow: 0 18px 45px rgba(20,20,31,0.08);
}
.profpao-release-art { display: grid; place-items: center; }
.profpao-release-art img { display: block; width: min(100%, 280px); height: auto; }
.release-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(70, 143, 241, 0.14);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.profpao-release-copy h2 { margin: 12px 0 10px; font-size: clamp(23px, 3vw, 31px); line-height: 1.25; overflow-wrap: anywhere; }
.profpao-release-copy p { color: var(--ink-soft); overflow-wrap: anywhere; }
.release-points { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.release-points li { position: relative; padding-left: 24px; color: var(--ink-soft); overflow-wrap: anywhere; }
.release-points li::before { content: "✓"; position: absolute; left: 0; color: var(--indigo); font-weight: 800; }

.feature-group { margin-bottom: 40px; }
.feature-group:last-child { margin-bottom: 0; }
.feature-group-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--indigo);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
.feature-item {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}
.feature-item .emoji { font-size: 30px; margin-bottom: 10px; }
.feature-item h2, .feature-item h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Product detail extras ---------- */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.stat-pill {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
}
.persona-card { background: var(--bg-soft); border-radius: var(--radius-md); padding: 26px; }
.persona-card .level-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--indigo);
  background: var(--surface-raised);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.persona-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.persona-card p { font-size: 14px; color: var(--ink-soft); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--indigo));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}
.step-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--ink-soft); }

.cefr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 16px;
}
.cefr-card { text-align: center; background: var(--bg-soft); border-radius: var(--radius-md); padding: 20px 14px; }
.cefr-card .level { font-size: 22px; font-weight: 800; color: var(--indigo); margin-bottom: 4px; }
.cefr-card .name { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.cefr-card p { font-size: 12.5px; color: var(--ink-soft); }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 4px 20px; background: var(--bg); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--indigo); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding-bottom: 18px; color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.final-cta { text-align: center; }
.final-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.final-cta p { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 40px;
  justify-items: center;
}
.shot-card { text-align: center; max-width: 270px; }
.shot-card .frame {
  border-radius: 22px;
  border: 6px solid var(--ink);
  box-shadow: 0 20px 40px rgba(20,20,31,0.16);
  overflow: hidden;
  margin-bottom: 18px;
}
.shot-card img { width: 100%; height: auto; display: block; }
.shot-card h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.shot-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Error page ---------- */
.btn-solid {
  background: var(--indigo);
  color: #ffffff;
}
.btn-solid:hover { text-decoration: none; opacity: 0.92; }
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}
.error-page .code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 55%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.error-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.error-page p { color: var(--ink-soft); font-size: 16px; margin-bottom: 32px; }
.error-page .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Policy page ---------- */
.policy-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.policy-wrap h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.policy-wrap .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }
.policy-wrap h2 { font-size: 19px; font-weight: 800; margin-top: 34px; margin-bottom: 10px; }
.policy-wrap p { font-size: 16px; color: var(--ink); white-space: pre-line; margin-bottom: 6px; overflow-wrap: anywhere; }
.summary-en {
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--indigo);
  padding-left: 16px;
  margin-bottom: 32px;
  background: var(--bg-soft);
  padding: 16px 16px 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow-wrap: anywhere;
}

/* ---------- Comparison table ---------- */
.compare-table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}
/* Shared horizontal-scroll affordance for any wide table wrapper
   (.compare-table-wrap and .guide-table-wrap): a right-edge fade plus
   a "swipe to see more" hint, shown only when the content is actually
   narrower than the table (i.e. mobile). */
.compare-table-hint { display: none; }
@media (max-width: 560px) {
  .compare-table-wrap::after,
  .guide-table-wrap::after {
    content: "";
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    width: 28px;
    height: 100%;
    margin-left: -28px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--bg-soft));
  }
  .compare-table-hint {
    display: block;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-top: 8px;
  }
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; }
.compare-table thead th {
  background: var(--indigo);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}
.compare-table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.compare-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 13.5px;
  white-space: nowrap;
}
.compare-table tbody tr:nth-child(odd) { background: var(--bg-soft); }
.compare-table td.win { color: var(--indigo); font-weight: 700; }

/* ---------- Long-form guide page (User Guide / Manual) ---------- */
.guide-toc {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 8px;
}
.guide-toc h2 { margin-top: 0 !important; }
.guide-toc ol { margin: 0; padding-left: 22px; columns: 1; font-size: 14.5px; line-height: 1.9; }
@media (min-width: 640px) {
  .guide-toc ol { columns: 2; column-gap: 32px; }
}
.guide-toc a { color: var(--ink); font-weight: 600; }
.guide-toc a:hover { color: var(--indigo); }
.policy-wrap h3 { font-size: 16px; font-weight: 800; margin-top: 24px; margin-bottom: 8px; }
.policy-wrap ul, .policy-wrap ol { margin: 0 0 12px; padding-left: 22px; }
.policy-wrap li { font-size: 15.5px; color: var(--ink); margin-bottom: 6px; overflow-wrap: anywhere; }
.policy-wrap section { margin-top: 44px; padding-top: 4px; scroll-margin-top: 88px; }
.guide-callout {
  font-size: 14.5px;
  border-left: 3px solid var(--indigo);
  background: var(--bg-soft);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.guide-callout.warn { border-left-color: #E0742A; background: #FFF2D6; color: #6B4400; }
:root[data-theme="dark"] .guide-callout.warn { background: #3A2A10; color: #F5C98A; }
.guide-shot {
  display: block;
  max-width: 260px;
  margin: 20px auto;
  border-radius: 18px;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.guide-shot img { width: 100%; height: auto; display: block; }
.guide-shot-caption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: -10px;
  margin-bottom: 24px;
}
.policy-wrap .compare-table-wrap { margin: 16px 0; }
.guide-table-wrap { position: relative; overflow-x: auto; margin: 16px 0; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.guide-table th, .guide-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.guide-table thead th { background: var(--bg-soft); font-weight: 800; font-size: 12.5px; }
.back-to-top { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; }

/* ---------- Guide page: sticky side nav + mobile TOC drawer + FABs ---------- */
.guide-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.guide-shell .policy-wrap { flex: 1; min-width: 0; padding-left: 0; padding-right: 0; }
.guide-sidenav {
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 64px 0 40px;
}
.guide-sidenav-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding: 0 12px;
}
.guide-sidenav nav { display: flex; flex-direction: column; gap: 2px; }
.guide-sidenav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.guide-sidenav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.guide-sidenav a.current { color: var(--indigo); font-weight: 700; background: var(--bg-soft); border-left-color: var(--indigo); }
@media (max-width: 1023px) {
  .guide-sidenav { display: none; }
}

.back-to-top-fab, .guide-toc-fab {
  position: fixed;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top-fab.show, .guide-toc-fab.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top-fab { bottom: 20px; color: var(--ink); }
.back-to-top-fab:hover { background: var(--bg-soft); }
.guide-toc-fab { bottom: 76px; display: none; color: var(--indigo); }
@media (max-width: 1023px) {
  .guide-toc-fab { display: flex; }
}
@media (max-width: 640px) {
  .back-to-top-fab, .guide-toc-fab { right: 16px; }
  .back-to-top-fab { bottom: 16px; }
  .guide-toc-fab { bottom: 70px; }
}

.guide-toc-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 12, 20, 0.45);
  display: none;
}
.guide-toc-drawer.open { display: block; }
.guide-toc-drawer-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 75vh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 8px 8px 24px;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}
.guide-toc-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 10px;
  position: sticky;
  top: 0;
  background: var(--bg);
}
.guide-toc-drawer-header strong { font-size: 15px; }
.guide-toc-drawer-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.guide-toc-drawer nav { display: flex; flex-direction: column; padding: 0 8px; }
.guide-toc-drawer nav a { padding: 12px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.guide-toc-drawer nav a.current { color: var(--indigo); font-weight: 700; background: var(--bg-soft); }

.mobile-cta-bar { display: none; }
.mobile-cta-product { min-width: 0; }
.mobile-cta-icon { width: 36px; height: 36px; flex: 0 0 36px; }
.mobile-cta-icon img { display: block; width: 100%; height: 100%; border-radius: 10px; }
.mobile-cta-copy { min-width: 0; }
.mobile-cta-name, .mobile-cta-status { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Update toast ---------- */
.update-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.update-toast.show { opacity: 1; transform: translateY(0); }
.update-toast-icon {
  font-size: 16px;
  line-height: 1;
  animation: update-toast-spin 1.1s linear infinite;
}
@keyframes update-toast-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
  .update-toast { left: 16px; right: 16px; top: 12px; max-width: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header .wrap { position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 16px 24px; border-top: 1px solid var(--card-border); }
  .nav-links .lang-switch {
    margin: 16px 24px;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
  }
  .nav-right { gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .hero h1 { font-size: clamp(28px, 8.2vw, 32px); overflow-wrap: anywhere; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 24px; text-align: center; padding-bottom: 48px; }
  .hero-inner h1 { font-size: clamp(28px, 8.2vw, 32px); letter-spacing: -0.8px; }
  .hero-copy { flex: 0 1 auto; width: 100%; min-width: 0; max-width: 100%; }
  .hero-stats, .hero-inner .cta-row { justify-content: center; }
  .hero-visual { width: 200px; margin: 8px auto 0; }
  .hero-stats .stat-pill { max-width: 100%; overflow-wrap: anywhere; }
  .nexus-system { width: min(100%, 340px); grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: 16px; margin: 0 auto; text-align: left; }
  .nexus-core { width: 86px; height: 86px; border-radius: 22px; }
  .nexus-core::before { inset: -8px; border-radius: 26px; }
  .nexus-core img { width: 62px; height: 62px; }
  .nexus-system-card { grid-template-columns: 24px minmax(0, 1fr); padding: 8px 9px; }
  .nexus-system-card strong { font-size: 12px; }
  .nexus-system-card small { font-size: 10px; }
  .floating-badge { font-size: 11px; padding: 8px 12px; }
  .floating-badge.top-badge { left: -8%; }
  .floating-badge.bottom-badge { right: -10%; }
  .detail-hero .inner { flex-direction: column; gap: 24px; text-align: center; }
  .detail-hero .hero-copy { width: 100%; min-width: 0; flex-basis: auto; }
  .detail-hero h1 { font-size: clamp(28px, 8.2vw, 34px); letter-spacing: -0.8px; overflow-wrap: anywhere; }
  .hero-badge-row { justify-content: center; }
  .hero-badge, .status-badge { max-width: 100%; overflow-wrap: anywhere; }
  .detail-hero .cta-row { justify-content: center; }
  .hero-companion { display: none; }
  .restohub-hero-visual { width: min(220px, 68vw); align-self: center; }
  .restohub-hero-visual .frame { transform: none; }
  .profpao-release { padding-top: 38px; padding-bottom: 38px; }
  .profpao-release-card { grid-template-columns: 1fr; text-align: center; }
  .release-points { text-align: left; }
  .summary-en { padding: 14px; }
  .capability-grid, .workflow-list { grid-template-columns: 1fr; }
  .capability-card, .workflow-list li { padding: 22px; }

  body.has-mobile-cta { padding-bottom: 100px; }
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    background: var(--bg);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(20,20,31,0.16);
    border-top: 1px solid var(--card-border);
  }
  .mobile-cta-product { display: flex; align-items: center; gap: 10px; }
  .mobile-cta-name { color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.25; }
  .mobile-cta-status { margin-top: 2px; color: var(--ink-soft); font-size: 11.5px; font-weight: 600; line-height: 1.25; }
  .mobile-cta-status .platform-mark { margin-right: 5px; vertical-align: -1px; }
  .mobile-cta-bar .btn { width: auto; padding: 11px 16px; text-align: center; white-space: nowrap; font-size: 13px; box-shadow: 0 8px 18px rgba(39,110,241,0.22); }
}
@media (max-width: 360px) {
  body.has-mobile-cta { padding-bottom: 88px; }
  .mobile-cta-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .mobile-cta-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .mobile-cta-status { display: none; }
  .mobile-cta-bar .btn { padding: 10px 12px; font-size: 12px; }
}

/* ---------- 2026 visual refinement ----------
   This final layer intentionally reuses the existing components above so the
   same experience is shared by the Thai, English, and Japanese page sets. */
body {
  background-image:
    radial-gradient(circle at 6% 0%, rgba(79, 225, 193, 0.09), transparent 25rem),
    radial-gradient(circle at 100% 28%, rgba(61, 139, 255, 0.075), transparent 31rem);
  background-attachment: fixed;
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 6% 0%, rgba(79, 225, 193, 0.055), transparent 25rem),
    radial-gradient(circle at 100% 28%, rgba(61, 139, 255, 0.07), transparent 31rem);
}

.site-header {
  border-bottom-color: color-mix(in srgb, var(--card-border) 78%, transparent);
  box-shadow: 0 1px 0 rgba(16, 24, 39, 0.02);
}
.site-header .wrap { height: 76px; }
.brand { letter-spacing: -0.025em; }
.brand img { width: 38px; height: 38px; }
.nav-links { gap: 24px; }
.nav-links > a { transition: color 0.18s ease; }
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--card-border);
  transition: background 0.18s ease, transform 0.18s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }

.hero {
  isolation: isolate;
  padding-top: 98px;
  background:
    radial-gradient(ellipse 62% 42% at 101% 12%, rgba(92, 244, 218, 0.52), transparent 53%),
    radial-gradient(ellipse 72% 36% at 102% 80%, rgba(50, 155, 255, 0.60), transparent 60%),
    radial-gradient(ellipse 74% 32% at 15% 100%, rgba(20, 91, 207, 0.62), transparent 64%),
    linear-gradient(122deg, #06142F 0%, #09265A 36%, #124AAB 68%, #2873E8 100%);
}
.hero::before {
  width: min(1280px, 94vw);
  height: 620px;
  top: -410px;
  right: min(-440px, -25vw);
  left: auto;
  border: 1px solid rgba(112, 209, 255, 0.52);
  background: transparent;
  box-shadow:
    0 0 0 26px rgba(78, 186, 255, 0.07),
    0 0 0 72px rgba(115, 204, 255, 0.035),
    0 0 72px rgba(64, 174, 255, 0.34);
  transform: rotate(-16deg);
}
.hero::after {
  width: min(1320px, 98vw);
  height: 640px;
  right: min(-480px, -28vw);
  bottom: -325px;
  border: 2px solid rgba(98, 244, 220, 0.72);
  background: transparent;
  box-shadow:
    0 0 0 28px rgba(67, 184, 255, 0.08),
    0 0 0 78px rgba(74, 162, 255, 0.045),
    0 0 58px rgba(79, 225, 193, 0.42),
    0 0 124px rgba(61, 139, 255, 0.30);
  transform: rotate(-21deg);
}
.hero-inner { gap: clamp(32px, 5vw, 68px); padding-bottom: 74px; }
.hero-badge {
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px rgba(255,255,255,0.22);
}
.hero-inner h1, .hero h1 {
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.hero p.tagline { line-height: 1.65; }
.nexus-system {
  border-color: rgba(255,255,255,0.34);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(9,30,83,0.20));
  backdrop-filter: blur(14px);
  box-shadow: 0 32px 65px rgba(3, 14, 48, 0.30), inset 0 1px rgba(255,255,255,0.22);
}
.nexus-system-card { background: rgba(255,255,255,0.14); }
.stat-pill { border-color: rgba(255,255,255,0.24); backdrop-filter: blur(8px); }

section { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.035em; }
.section-head p { line-height: 1.75; }
.capability-card, .workflow-list li, .about-item, .contact-card, .product-card,
.feature-item, .step-card, .faq-item, .persona-card, .cefr-card {
  box-shadow: var(--shadow-soft);
}
.capability-card, .workflow-list li, .about-item, .feature-item, .step-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.capability-card:hover, .workflow-list li:hover, .about-item:hover, .feature-item:hover, .step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--sky) 45%, var(--card-border));
}
.capability-card { padding: 30px; }
.workflow-list li { position: relative; overflow: hidden; }
.workflow-list li::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 22px;
  right: 22px;
  bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  opacity: 0.75;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  border-color: color-mix(in srgb, var(--card-border) 88%, var(--sky));
  box-shadow: var(--shadow-soft);
}
.product-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -104px;
  right: -76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,139,255,0.13), transparent 68%);
  pointer-events: none;
}
.product-card.linkable:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.product-card h3 { letter-spacing: -0.025em; }
.product-card .cta { display: inline-flex; align-items: center; gap: 7px; color: var(--indigo); }
.product-card-disabled::before { display: none; }

.contact-card { background: color-mix(in srgb, var(--surface-raised) 94%, transparent); }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.contact-icon { box-shadow: 0 8px 18px rgba(39,110,241,0.18); }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  box-shadow: 0 8px 18px rgba(11, 31, 85, 0.12);
}
.btn-primary { box-shadow: 0 12px 28px rgba(5, 18, 54, 0.26); }
.btn-solid { box-shadow: 0 12px 24px rgba(39,110,241,0.26); }

.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(79,225,193,0.22), transparent 17rem),
    linear-gradient(135deg, #0C1D45 0%, #16449B 58%, #276EF1 100%);
}
.detail-hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -390px;
  right: -170px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 0 42px rgba(255,255,255,0.035), 0 0 0 84px rgba(255,255,255,0.025);
}
.detail-hero .inner { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; }
.detail-hero .icon { box-shadow: 0 18px 36px rgba(3, 13, 44, 0.28); }
.detail-hero h1 { font-size: clamp(36px, 4vw, 48px); letter-spacing: -0.045em; line-height: 1.12; }
.restohub-hero-visual .frame { box-shadow: 0 28px 60px rgba(3, 13, 44, 0.35); }
.feature-group { margin-bottom: 54px; }
.feature-group-title { padding-bottom: 14px; border-bottom-color: color-mix(in srgb, var(--card-border) 72%, var(--sky)); }
.feature-item { border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 24px; background: var(--surface-raised); }
.feature-item .emoji { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg-soft); }
.persona-card, .cefr-card { border: 1px solid var(--card-border); background: var(--surface-raised); }
.faq-item { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--sky) 55%, var(--card-border)); box-shadow: var(--shadow-soft); }
.final-cta {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-soft), var(--surface-raised));
  box-shadow: var(--shadow-soft);
}

.policy-wrap { padding-top: clamp(56px, 7vw, 88px); }
.policy-wrap h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -0.035em; }
.policy-wrap h2 { margin-top: 42px; font-size: 21px; }
.policy-wrap section { scroll-margin-top: 96px; }
.summary-en, .guide-callout, .guide-toc {
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}
.summary-en, .guide-callout { border-left: 4px solid var(--indigo); }
.guide-callout.warn { border-color: #F0C98A; border-left-color: #E0742A; }
.guide-shell { gap: 48px; }
.guide-sidenav a { transition: background 0.16s ease, color 0.16s ease; }
.guide-shot, .shot-card .frame { box-shadow: var(--shadow); }

footer { position: relative; overflow: hidden; padding-top: 58px; }
footer::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 280px;
  right: -140px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,139,255,0.22), transparent 68%);
  pointer-events: none;
}
footer .wrap { position: relative; }
footer .foot-link-title { color: #9FACC9; }

@media (max-width: 640px) {
  body { background-attachment: scroll; }
  .site-header .wrap { height: 68px; }
  .brand { min-width: 0; font-size: 15px; white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .nav-right { flex: 0 0 auto; }
  .theme-toggle { width: 36px; height: 36px; }
  .hero { padding-top: 64px; }
  .hero::before {
    width: 760px;
    height: 360px;
    top: -245px;
    right: -420px;
    left: auto;
  }
  .hero::after {
    width: 780px;
    height: 410px;
    right: -440px;
    bottom: -220px;
    box-shadow: 0 0 0 42px rgba(77, 173, 255, 0.06), 0 0 64px rgba(79, 225, 193, 0.30);
  }
  .hero-inner { padding-bottom: 56px; }
  .hero-inner h1, .hero h1 { font-size: clamp(30px, 8.3vw, 38px); }
  section { padding: 64px 0; }
  .capability-card, .workflow-list li, .product-card { padding: 24px; }
  .detail-hero .inner { padding-top: 64px; padding-bottom: 68px; }
  .detail-hero::before { width: 310px; height: 310px; top: -220px; right: -130px; }
  .final-cta { padding: 30px 22px; }
  .guide-shell { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* ---------- Company homepage editorial refresh ---------- */
.hero {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 86% 18%, rgba(82, 245, 214, 0.36), transparent 14rem),
    radial-gradient(circle at 74% 91%, rgba(34, 126, 255, 0.50), transparent 23rem),
    radial-gradient(circle at 20% 100%, rgba(60, 112, 255, 0.28), transparent 27rem),
    linear-gradient(118deg, #050D22 0%, #0A2052 38%, #123F94 68%, #246FE0 100%);
}
.hero::before {
  width: min(1050px, 82vw);
  height: 560px;
  top: -350px;
  right: min(-340px, -18vw);
  border-color: rgba(136, 213, 255, 0.32);
  box-shadow: 0 0 0 48px rgba(86, 174, 255, 0.045), 0 0 100px rgba(49, 147, 255, 0.24);
  transform: rotate(-11deg);
}
.hero::after {
  width: min(1100px, 88vw);
  height: 520px;
  right: min(-350px, -18vw);
  bottom: -350px;
  border-color: rgba(98, 244, 220, 0.54);
  box-shadow: 0 0 0 42px rgba(87, 183, 255, 0.05), 0 0 76px rgba(79, 225, 193, 0.30);
  transform: rotate(-17deg);
}
.hero-orbits {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orbits span { position: absolute; display: block; }
.hero-orbits span:nth-child(1) {
  width: min(780px, 64vw);
  aspect-ratio: 1.6;
  right: -150px;
  top: 48px;
  border: 1px solid rgba(156, 228, 255, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(91, 179, 255, 0.08), 0 0 90px rgba(61, 139, 255, 0.17);
  transform: rotate(-25deg);
}
.hero-orbits span:nth-child(2) {
  width: min(760px, 62vw);
  height: 138px;
  right: -100px;
  top: 38%;
  border: 1px solid rgba(102, 242, 220, 0.56);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(79, 225, 193, 0.28), 0 0 90px rgba(61, 139, 255, 0.18);
  transform: rotate(-25deg);
}
.hero-orbits span:nth-child(3) {
  width: 13px;
  height: 13px;
  right: clamp(110px, 15vw, 260px);
  top: 25%;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(79, 225, 193, 0.12), 0 0 28px rgba(79, 225, 193, 0.88);
  animation: nexus-glow 4.5s ease-in-out infinite;
}
.hero-orbits span:nth-child(4) {
  width: 92px;
  height: 92px;
  right: clamp(44px, 7vw, 140px);
  bottom: 94px;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.13), rgba(79,225,193,0.05));
  box-shadow: 0 20px 42px rgba(4, 15, 48, 0.20);
  transform: rotate(45deg);
}
.hero-inner { position: relative; z-index: 2; }
.nexus-system {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border-color: rgba(190, 238, 255, 0.40);
  background: linear-gradient(135deg, rgba(198, 229, 255, 0.22), rgba(22, 64, 150, 0.34));
  box-shadow: 0 34px 76px rgba(2, 12, 44, 0.38), inset 0 1px rgba(255,255,255,0.32);
}
.nexus-system::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  bottom: -112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,225,193,0.34), transparent 68%);
  pointer-events: none;
}
.nexus-core {
  background: linear-gradient(145deg, rgba(255,255,255,0.24), rgba(42,116,238,0.42));
  box-shadow: inset 0 1px rgba(255,255,255,0.35), 0 14px 30px rgba(4, 23, 76, 0.20);
}
.nexus-system-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(210, 240, 255, 0.30);
  background: rgba(255,255,255,0.14);
}
.nexus-system-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--mint), var(--sky));
}
.capabilities { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.capability-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border-color: color-mix(in srgb, var(--card-border) 78%, var(--sky));
  background: color-mix(in srgb, var(--surface-raised) 96%, transparent);
}
.capability-card::before {
  content: "";
  position: absolute;
  width: 118px;
  height: 118px;
  right: -46px;
  top: -52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,139,255,0.22), transparent 68%);
}
.capability-card:nth-child(2)::before { background: radial-gradient(circle, rgba(79,225,193,0.25), transparent 68%); }
.capability-card:nth-child(3)::before { background: radial-gradient(circle, rgba(105,158,255,0.25), transparent 68%); }
.capability-card:nth-child(2) { transform: translateY(18px); }
.capability-card:nth-child(2):hover { transform: translateY(14px); }
#products { position: relative; overflow: hidden; }
#products::before {
  content: "";
  position: absolute;
  width: min(620px, 65vw);
  height: 360px;
  left: -260px;
  top: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,225,193,0.12), transparent 68%);
  pointer-events: none;
}
#products .wrap { position: relative; }
#products .product-card { border-radius: 26px; }
#products .product-card:nth-child(1) { border-top: 3px solid var(--indigo); }
#products .product-card-disabled { border-top: 3px solid #D99A20; }
#products a[href="restohub.html"].product-card { border-top: 3px solid var(--mint); }
.workflow { background: linear-gradient(135deg, var(--bg-soft), var(--bg)); }
.workflow-list li { border-radius: 20px; }
.about-item { border-radius: 20px; }
@keyframes nexus-glow {
  0%, 100% { transform: scale(0.84); opacity: 0.68; }
  50% { transform: scale(1.16); opacity: 1; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-inner h1, .hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 7.2vw, 31px);
    letter-spacing: -0.055em;
  }
  .hero-orbits span:nth-child(1) { width: 520px; right: -285px; top: 12px; }
  .hero-orbits span:nth-child(2) { width: 500px; height: 92px; right: -270px; top: 49%; }
  .hero-orbits span:nth-child(3) { width: 9px; height: 9px; right: 54px; top: 20%; }
  .hero-orbits span:nth-child(4) { width: 58px; height: 58px; right: 24px; bottom: 58px; border-radius: 16px; }
  .nexus-system { border-radius: 26px; }
  .capability-card:nth-child(2), .capability-card:nth-child(2):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbits span:nth-child(3) { animation: none; }
}

/* ---------- MelloFast pages ----------
   Scoped to .mellofast-page / .product-card-mellofast. Brand colours come from the
   app's own stage palette: fasting blue, transition mint, eating amber. */
.mellofast-page {
  --mf-fast: #194E97;
  --mf-fast-light: #3D82E0;
  --mf-mint: #66E5B7;
  --mf-eat: #FFBE31;
  --mf-eat-deep: #F57720;
}
.mellofast-page .guide-callout:not(.warn), .mellofast-page .guide-toc { background: var(--bg-soft); color: var(--ink); }
.mellofast-page .guide-toc a { color: var(--ink); }
.mellofast-page .detail-hero .platform-summary { color: #fff; background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 999px; }
:root[data-theme="dark"] .mellofast-page .policy-wrap a:not(.btn),
:root[data-theme="dark"] .mellofast-page .guide-sidenav a { color: #a6c8ff; }

.mellofast-page .detail-hero {
  background:
    radial-gradient(ellipse 46% 62% at 90% 8%, rgba(102,229,183,0.34), transparent 62%),
    radial-gradient(ellipse 38% 48% at 4% 100%, rgba(255,190,49,0.20), transparent 66%),
    linear-gradient(132deg, #06142F 0%, #0E2E69 42%, #194E97 72%, #2C74DB 100%);
}
.mellofast-page .detail-hero .icon { background: #FFF4D8; }

/* Rhythm band: a code-native 16:8 example, never an app screenshot */
.pband {
  --pb-glow: rgba(102,229,183,0.22);
  --pb-from: #0A1E47;
  --pb-mid: #123B7F;
  --pb-to: #194E97;
  --pb-accent: #66E5B7;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(48px, 7vw, 84px) 0;
  background:
    radial-gradient(ellipse 52% 80% at 100% 0%, var(--pb-glow), transparent 62%),
    linear-gradient(125deg, var(--pb-from) 0%, var(--pb-mid) 60%, var(--pb-to) 100%);
}
.pband-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.pband-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pb-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pb-accent) 42%, transparent);
  color: var(--pb-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pband h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 14px; overflow-wrap: anywhere; }
.pband p { color: rgba(255,255,255,0.84); font-size: 16.5px; max-width: 520px; }
.pband-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.pband-chips li {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 14px;
  font-weight: 600;
}
.pband-visual {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(3,13,44,0.34);
  backdrop-filter: blur(6px);
}
.mf-bear {
  display: block;
  width: clamp(96px, 12vw, 128px);
  height: auto;
  margin: -64px 0 8px auto;
  filter: drop-shadow(0 14px 18px rgba(3,13,44,0.35));
}
.mf-bar {
  display: flex;
  height: 68px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
}
.mf-bar > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  min-width: 0;
  line-height: 1.25;
}
.mf-bar b { font-size: 14.5px; font-weight: 800; overflow-wrap: anywhere; }
.mf-bar i { font-style: normal; font-size: 13px; font-weight: 600; opacity: 0.9; }
.mf-bar-fast { flex: 16 1 0; background: linear-gradient(100deg, var(--mf-fast) 0%, var(--mf-fast-light) 100%); color: #fff; }
.mf-bar-eat {
  flex: 8 1 0;
  background: linear-gradient(100deg, var(--mf-eat) 0%, var(--mf-eat-deep) 100%);
  color: #2B1700;
  box-shadow: -4px 0 0 var(--mf-mint);
}
.pband-note { margin-top: 16px; font-size: 13.5px !important; color: rgba(255,255,255,0.7) !important; }

#products .product-card-mellofast { border-top: 3px solid var(--mf-eat, #FFBE31); }
.product-card-mellofast .product-icon-wrap { background: #FFF4D8; }

@media (max-width: 860px) {
  .pband-inner { grid-template-columns: minmax(0, 1fr); }
  .mf-bear { margin-top: -58px; }
}
@media (max-width: 480px) {
  .mf-bar { height: 62px; }
  .mf-bar > span { padding: 0 12px; }
  .mf-bar b { font-size: 13px; }
}
@media print {
  .mellofast-page .site-header, .mellofast-page footer, .mellofast-page .guide-sidenav,
  .mellofast-page .back-to-top-fab, .mellofast-page .guide-toc-fab { display: none !important; }
  .mellofast-page .guide-shell { display: block; padding: 0 20px; }
  .mellofast-page .policy-wrap { max-width: none; padding-top: 0; }
  .mellofast-page .guide-shot { break-inside: avoid; }
  .mellofast-page .guide-shot img { max-height: 420px; width: auto; margin: auto; }
  .mellofast-page .guide-toc { break-after: page; }
}

/* ---------- Company mark on dark surfaces ----------
   The mark's sapphire is never recoloured; on dark surfaces it sits on a white plate. */
:root {
  --brand-sapphire: #063A7A;
  --brand-jade: #00AFA9;
  --brand-gold: #F2B544;
}
:root[data-theme="dark"] .site-header .brand img,
footer .brand-foot img,
.hero-badge img,
.nexus-core img {
  background: #fff;
  box-sizing: border-box;
  padding: 12%;
  border-radius: 24%;
}
.nexus-core img { width: 88px; height: 88px; box-shadow: 0 14px 28px rgba(1, 12, 40, 0.34); }
.hero-badge img { width: 26px; height: 26px; }
@media (max-width: 640px) {
  .nexus-core img { width: 64px; height: 64px; }
}

/* ---------- Typography ---------- */
h1, h2, h3, .section-head p, .tagline { text-wrap: balance; }
p, li, .desc { text-wrap: pretty; }

/* ---------- Homepage layout refinements ---------- */
.product-card-disabled {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 4px;
  padding-block: 20px;
}
.product-card-disabled .product-icon-wrap { grid-row: 1 / span 3; margin: 0; }
.product-card-disabled .status-badge { grid-column: 2; justify-self: start; }
.product-card-disabled h3 { grid-column: 2; margin: 0; }
.product-card-disabled p.desc { grid-column: 2; margin: 0; flex-grow: 0; }
.product-card-disabled .cta { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
@media (max-width: 720px) {
  .product-card-disabled { display: flex; }
  .product-card-disabled .product-icon-wrap { margin-bottom: 14px; }
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Scroll reveal (progressive enhancement, CSS only) ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .capability-card, .product-card, .workflow-list li, .about-item, .contact-card,
    .feature-item, .step-card, .persona-card, .shot-card, .faq-item, .pband-inner > * {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

/* ---------- Mascot system (see docs/MASCOTS.md) ---------- */
@keyframes mascot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mascot-pose { display: block; width: clamp(110px, 16vw, 168px); height: auto; filter: drop-shadow(0 14px 18px rgba(16, 24, 39, 0.18)); }
.mascot-pose img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mascot-pose.float { animation: mascot-bob 5.5s ease-in-out infinite; }
}
.mascot-head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  margin-bottom: 28px;
}
.mascot-head .section-head, .mascot-head h2 { margin: 0; text-align: left; }
.mascot-head > :not(.mascot-pose) { flex: 1 1 0; min-width: 0; }
.mascot-head .mascot-pose { flex: 0 0 auto; }
.mascot-corner { position: absolute; right: clamp(12px, 3vw, 32px); top: 0; transform: translateY(-58%); width: clamp(88px, 13vw, 132px); }
@media (max-width: 640px) {
  .mascot-head { flex-direction: column; text-align: center; }
  .mascot-head .section-head, .mascot-head h2 { text-align: center; }
}

/* MelloFast: section poses */
.mascot-head .mascot-pose { width: clamp(84px, 11vw, 120px); }
.mellofast-page .guide-callout + .mascot-head { margin-top: 36px; }
.mellofast-page .final-cta { position: relative; }
.mellofast-page .final-cta .mascot-pose { margin: 0 auto 10px; width: clamp(96px, 14vw, 132px); }

/* ---------- Product bands (ProfPao, RestoHub) ---------- */
.pband-restohub {
  --pb-glow: rgba(160, 235, 150, 0.20);
  --pb-from: #04271A;
  --pb-mid: #0A4A2F;
  --pb-to: #14663F;
  --pb-accent: #A8E6A1;
}
.pband-profpao {
  --pb-glow: rgba(242, 181, 68, 0.20);
  --pb-from: #0B1F4D;
  --pb-mid: #17409B;
  --pb-to: #2F6FE4;
  --pb-accent: #FFD27A;
}
.fefo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fefo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.fefo-row b { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.fefo-row i { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.fefo-row.first i { background: var(--pb-accent); color: #04271A; }
.fefo-bar { grid-column: 1 / -1; height: 12px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.fefo-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #F2994A, #F2C94C); }
.fefo-row:nth-child(2) .fefo-bar span { background: linear-gradient(90deg, #6FCF97, #A8E6A1); }
.fefo-row:nth-child(3) .fefo-bar span { background: linear-gradient(90deg, #56CCF2, #8FE0F5); }

.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: flow; }
.flow-steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px 14px 62px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  counter-increment: flow;
}
.flow-steps li::before {
  content: counter(flow);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--pb-accent);
  color: #0B1F4D;
  font-weight: 800;
}
.flow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px; top: calc(100% + 1px);
  width: 2px; height: 14px;
  background: rgba(255,255,255,0.35);
}
.flow-steps b { font-size: 16px; font-weight: 800; }
.flow-steps span { font-size: 14px; color: rgba(255,255,255,0.8); }

/* ---------- Guide: reading progress + feedback ---------- */
.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .read-progress {
      display: block;
      position: fixed;
      inset: 0 0 auto 0;
      height: 3px;
      z-index: 600;
      transform-origin: 0 50%;
      background: linear-gradient(90deg, var(--mint), var(--sky), var(--indigo));
      animation: read-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.guide-feedback {
  margin: 48px 0 8px;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  text-align: center;
}
.guide-feedback h2 { font-size: 19px; margin: 0 0 6px; border: 0; padding: 0; }
.guide-feedback p { margin: 0 auto 16px; color: var(--ink-soft); font-size: 14px; max-width: 460px; }
.guide-feedback .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.guide-feedback .btn { min-height: 44px; }
@media print { .read-progress, .guide-feedback, .lang-hint { display: none !important; } }

/* ---------- Language hint (suggests, never redirects) ---------- */
@keyframes hint-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lang-hint {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 450;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  animation: hint-in 0.35s ease both;
}
.lang-hint span { min-width: 0; overflow-wrap: anywhere; }
.lang-hint .btn { flex: none; min-height: 40px; padding: 8px 16px; font-size: 14px; }
.lang-hint button.lang-hint-close {
  flex: none;
  width: 40px; height: 40px;
  border: 0; border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 22px; line-height: 1;
  cursor: pointer;
}
.lang-hint button.lang-hint-close:hover { background: var(--bg-soft); }
@media (max-width: 640px) {
  .lang-hint { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  body.has-mobile-cta .lang-hint { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
}
@media (prefers-reduced-motion: reduce) { .lang-hint { animation: none; } }

/* SCP+ Studio: independent animation domain; all additions stay body-scoped. */
.studio-page {
  --studio-green: #126457;
  --studio-accent: #b9ecd4;
  --studio-yellow: #ffe084;
  --studio-peach: #ffe6d6;
  --studio-paper: #fffdf6;
  --studio-line: #d5dfd4;
  --ink: #183d38;
  --ink-soft: #51645f;
  --bg: #fffdf6;
  --bg-soft: #f0f5eb;
  --surface-raised: #ffffff;
  --indigo: #126457;
  --indigo-text: #126457;
  --card-border: #d5dfd4;
  --max-width: 1240px;
  font-family: 'Noto Sans Thai', 'Noto Sans JP', 'Segoe UI', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] .studio-page {
  --studio-green: #a1e3c7;
  --studio-accent: #203f35;
  --studio-yellow: #54482d;
  --studio-peach: #47372e;
  --studio-paper: #152720;
  --studio-line: #375247;
  --ink: #eff5e9;
  --ink-soft: #b7c9be;
  --bg: #12231d;
  --bg-soft: #1c3028;
  --surface-raised: #1d342b;
  --indigo: #a1e3c7;
  --indigo-text: #a1e3c7;
  --card-border: #375247;
}
.studio-page button { font: inherit; }
.studio-page a, .studio-page button { -webkit-tap-highlight-color: transparent; }
.studio-page a { color: inherit; }
.studio-page .skip-link { background: #126457; color: #ffffff; }
.studio-page .lang-hint .btn-solid { background: #126457; color: #ffffff; }
.studio-page :focus-visible { outline-color: var(--studio-green); outline-offset: 5px; }
.studio-page [hidden] { display: none !important; }
.studio-page section[id] { scroll-margin-top: 110px; }
.studio-page h1, .studio-page h2, .studio-page h3 { line-height: 1.35; text-wrap: balance; }
.studio-page h2 { font-size: clamp(27px, 3.3vw, 44px); font-weight: 800; letter-spacing: -.9px; }
.studio-page p { overflow-wrap: anywhere; }
.studio-topline { text-align: center; background: var(--studio-accent); font-size: 12px; font-weight: 700; padding: 8px 20px; letter-spacing: .3px; }
.studio-topline span { margin: 0 10px; color: var(--studio-green); }
.studio-page .site-header { background: var(--studio-paper); border-bottom: 1px solid var(--studio-line); }
:root[data-theme="dark"] .studio-page .site-header { background: var(--studio-paper); }
.studio-page .site-header .wrap { height: 88px; }
.studio-page .studio-brand { font-size: 23px; gap: 10px; line-height: 1.2; letter-spacing: -.8px; flex-shrink: 0; }
.studio-brand > picture { background: white; border-radius: 12px; padding: 7px; flex-shrink: 0; }
.studio-page .studio-brand img { width: 36px; height: 36px; }
.studio-brand strong { font-weight: 900; }
.studio-brand small { display: block; font-size: 8px; font-weight: 700; letter-spacing: 1.35px; margin-top: 5px; }
.studio-page .nav-links { gap: 22px; font-size: 13px; }
.studio-page .nav-right { gap: 15px; }
.studio-page .nav-links > a { display: inline-flex; align-items: center; min-height: 44px; }
.studio-page .theme-toggle { width: 44px; height: 44px; font-size: 24px; color: var(--ink); border: 1px solid var(--studio-line); }
.studio-page .lang-switch a { min-width: 38px; min-height: 40px; display: grid; place-items: center; padding: 6px 9px; }
.studio-hero { padding: 74px 0 0; position: relative; }
.studio-hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; align-items: center; }
.studio-kicker { color: var(--studio-green); font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 16px; }
.studio-hero h1 { font-size: clamp(38px, 4.15vw, 60px); letter-spacing: -1.8px; font-weight: 850; line-height: 1.4; }
.studio-hero h1 span { display: block; width: fit-content; position: relative; isolation: isolate; color: var(--studio-green); }
.studio-hero h1 span::before { content: ''; position: absolute; inset: 58% -7px 7% -4px; background: var(--studio-yellow); border-radius: 40% 20% 30% 15%; z-index: -1; transform: rotate(-2deg); }
.studio-intro { color: var(--ink-soft); font-size: 16px; margin-top: 24px; max-width: 470px; line-height: 1.95; }
.studio-page .cta-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 28px; }
.studio-page .studio-btn { background: #126457; color: #fffdf6; border-radius: 999px; min-height: 52px; font-size: 14px; padding: 14px 25px; box-shadow: 0 4px 0 #0c4038; border: 1px solid #126457; gap: 16px; }
.studio-page .studio-btn:hover { background: #0c4f44; transform: translateY(-2px); text-decoration: none; }
.studio-text-link { font-size: 13px; font-weight: 750; display: inline-flex; min-height: 44px; align-items: center; gap: 12px; color: var(--studio-green); }
.studio-hero-art { position: relative; min-width: 0; padding: 16px 0 35px; }
.studio-art-window { padding: 9px; background: white; border: 1px solid var(--studio-line); border-radius: 160px 160px 28px 28px; transform: rotate(3deg); box-shadow: 0 14px 0 var(--studio-accent); }
.studio-art-window img { width: 100%; height: 385px; object-fit: cover; object-position: 55% center; border-radius: 150px 150px 21px 21px; }
.studio-spark { position: absolute; width: 88px; height: 88px; color: #f5bf47; top: -16px; left: -30px; transform: rotate(-15deg); z-index: 2; filter: drop-shadow(0 3px 0 #fffdf6); }
.studio-spark svg { width: 100%; height: 100%; }
.studio-doodle { position: absolute; right: -6px; bottom: -3px; font-size: 72px; color: var(--studio-green); line-height: 1; }
.studio-ticket { position: relative; display: flex; gap: 14px; align-items: center; margin: -12px 28px 0; padding: 16px 20px; background: var(--studio-paper); border: 1px solid var(--studio-line); border-radius: 14px; box-shadow: 4px 5px 0 var(--studio-accent); transform: rotate(-3deg); }
.studio-ticket-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--studio-yellow); display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.studio-ticket small { display: block; color: var(--ink-soft); font-size: 10px; letter-spacing: 1px; margin-bottom: 4px; }
.studio-ticket strong { display: block; font-size: 16px; }
.studio-ticket > span:last-child { margin-left: auto; font-size: 24px; }
.studio-page .studio-ticket:hover { text-decoration: none; border-color: var(--studio-green); box-shadow: 4px 7px 0 var(--studio-accent); }
.studio-about { padding: 60px 0 38px; text-align: center; }
.studio-about h2 { font-size: clamp(25px, 3vw, 38px); }
.studio-about > .wrap > p:not(.studio-kicker) { max-width: 700px; margin: 20px auto 0; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.studio-about ol { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: center; margin-top: 25px; }
.studio-about li { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.studio-about li span { display: grid; place-items: center; width: 28px; height: 28px; background: var(--studio-accent); border-radius: 50%; color: var(--studio-green); font-size: 10px; }
.studio-about + .studio-section { padding-top: 34px; }
.studio-route { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px dashed var(--studio-line); border-bottom: 1px dashed var(--studio-line); margin-top: 64px; padding: 22px 4px; font-size: 13px; font-weight: 600; }
.studio-route b { color: var(--studio-green); font-size: 22px; vertical-align: middle; margin-right: 12px; }
.studio-section { padding: 80px 0; }
.studio-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.studio-section-head > p { max-width: 320px; font-size: 14px; color: var(--ink-soft); }
.studio-universe { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.studio-show { background: var(--surface-raised); border: 1px solid var(--studio-line); border-radius: 24px; overflow: hidden; }
.studio-show-image { display: block; position: relative; overflow: hidden; }
.studio-show-image img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .3s ease; }
.studio-show-image:hover img { transform: scale(1.025); }
.studio-show-arrow { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; background: #fffdf6; color: #126457; font-size: 24px; border-radius: 50%; }
.studio-show-copy { padding: 28px; }
.studio-show-copy .studio-kicker { margin-bottom: 10px; }
.studio-show h3 { font-size: 26px; margin-bottom: 12px; }
.studio-show-copy > p:not(.studio-kicker) { color: var(--ink-soft); font-size: 14px; }
.studio-show-copy .studio-text-link { margin-top: 12px; }
.studio-next { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px; background: var(--studio-accent); border: 1px dashed var(--studio-green); border-radius: 24px; }
.studio-next h3 { font-size: 24px; margin-bottom: 15px; }
.studio-next p { font-size: 14px; max-width: 240px; color: var(--ink-soft); }
.studio-next-orbit { width: 150px; height: 150px; position: relative; display: grid; place-items: center; border: 1px dashed var(--studio-green); border-radius: 50%; margin-bottom: 30px; transform: rotate(-15deg); }
.studio-next-orbit span { font-size: 76px; color: var(--studio-green); }
.studio-next-orbit i { position: absolute; right: -15px; top: 8px; font-size: 40px; background: var(--studio-accent); line-height: 1; font-style: normal; }
.studio-next-orbit b { position: absolute; bottom: -8px; left: 8px; font-size: 32px; background: var(--studio-accent); line-height: 1; }
.studio-next-word { font-size: 9px; letter-spacing: 2px; margin-top: 30px; font-weight: 700; }
.studio-cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.studio-friend { border: 1px solid var(--studio-line); border-radius: 140px 140px 22px 22px; overflow: hidden; background: var(--studio-peach); }
.studio-friend-maya { background: var(--studio-accent); }
.studio-friend-oat { background: var(--studio-yellow); }
.studio-friend > picture { display: block; background: white; border-radius: 50% 50% 0 0; overflow: hidden; margin: 14px 14px 0; }
.studio-friend img { width: 100%; height: 310px; object-fit: cover; object-position: 50% 8%; }
.studio-friend-copy { position: relative; padding: 24px; }
.studio-friend h3 { font-size: 30px; margin-bottom: 3px; }
.studio-friend-copy > p { font-size: 14px; }
.studio-age { position: absolute; right: 23px; top: 30px; border: 1px solid var(--studio-line); padding: 3px 10px; border-radius: 999px; background: var(--studio-paper); font-size: 11px; }
.studio-bio { font-size: 12px !important; line-height: 1.8; color: var(--ink-soft); margin-top: 14px; }
.studio-meet { display: flex; width: 100%; justify-content: space-between; align-items: center; background: transparent; border: 0; border-top: 1px solid var(--studio-line); padding: 12px 0 0; margin-top: 18px; color: var(--ink); cursor: pointer; font-size: 13px !important; font-weight: 700 !important; min-height: 44px; }
.studio-play { background: var(--studio-accent); border-top: 1px solid var(--studio-line); border-bottom: 1px solid var(--studio-line); }
.studio-play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.studio-play-grid > div > p:not(.studio-kicker):not(.studio-small) { margin-top: 20px; max-width: 400px; font-size: 15px; }
.studio-picker { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.studio-picker legend { font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.studio-picker button { padding: 5px 14px 5px 6px; display: flex; gap: 8px; align-items: center; border: 2px solid transparent; border-radius: 99px; cursor: pointer; background: var(--studio-paper); color: var(--ink); font-size: 13px; min-height: 48px; }
.studio-picker button[aria-pressed="true"] { border-color: var(--studio-green); box-shadow: 0 3px 0 var(--studio-green); }
.studio-picker img { width: 32px; height: 32px; object-fit: cover; object-position: 50% 5%; border-radius: 50%; }
.studio-page .studio-small { font-size: 11px; color: var(--ink-soft); margin-top: 20px; }
.studio-reset { border: 0; background: transparent; color: var(--ink); text-decoration: underline; cursor: pointer; margin-top: 15px; min-height: 44px; font-size: 12px !important; }
.studio-journal { position: relative; border: 1px solid var(--studio-line); border-radius: 12px; padding: 24px; background: var(--studio-paper); transform: rotate(3deg); box-shadow: 9px 10px 0 rgb(18 100 87 / 14%); }
.studio-journal::before { content: ''; width: 115px; height: 26px; background: var(--studio-yellow); opacity: .85; position: absolute; top: -12px; left: calc(50% - 57px); transform: rotate(-5deg); }
.studio-journal-top, .studio-journal-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; }
.studio-journal-top { border-bottom: 1px dashed var(--studio-line); padding-bottom: 16px; }
.studio-journal-bottom { border-top: 1px dashed var(--studio-line); padding-top: 16px; font-size: 10px; letter-spacing: .5px; }
.studio-stamp { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 270px; margin: 20px 0 5px; border: 1px dashed var(--studio-line); border-radius: 50%; color: var(--ink-soft); background-image: radial-gradient(var(--studio-line) 1px, transparent 1px); background-size: 16px 16px; }
.studio-stamp-star { display: block; font-size: 75px; line-height: 1; color: var(--studio-green); }
.studio-stamp p { padding: 14px; font-size: 14px; background: var(--studio-paper); border-radius: 14px; }
.studio-stamp picture { height: 250px; transform: rotate(-6deg); background: white; border: 6px solid white; outline: 2px dashed var(--studio-green); border-radius: 50%; overflow: hidden; box-shadow: 4px 6px 0 var(--studio-accent); }
.studio-stamp img { height: 250px; width: 170px; object-fit: cover; object-position: center; }
.studio-journal-result { font-size: 14px; font-weight: 800; text-align: center; min-height: 30px; margin: 10px 0 16px; color: var(--studio-green); }
.studio-shop { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--studio-line); border-radius: 28px; overflow: hidden; }
.studio-shop-art { position: relative; background: var(--studio-peach); min-height: 420px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 48px; }
.studio-sticker { display: block; width: 43%; background: white; padding: 8px; border: 1px solid #e6dfd4; border-radius: 80px; box-shadow: 5px 8px 0 rgb(120 71 37 / 9%); position: relative; }
.studio-sticker img { width: 100%; height: auto; border-radius: 75px; }
.studio-sticker-one { transform: rotate(-12deg); margin-right: -8px; z-index: 2; }
.studio-sticker-two { transform: rotate(13deg); margin-left: -8px; margin-top: 55px; }
.studio-shop-star { position: absolute; right: 30px; top: 25px; color: #b27410; width: 65px; transform: rotate(15deg); }
.studio-shop-heart { position: absolute; bottom: 65px; left: 32px; font-size: 55px; color: var(--studio-green); transform: rotate(-15deg); }
.studio-shop-art > p { position: absolute; bottom: 20px; left: 24px; right: 24px; text-align: center; font-size: 10px; color: var(--ink-soft); }
.studio-shop-copy { padding: 44px; align-self: center; }
.studio-shop-copy > p:not(.studio-kicker):not(.studio-small) { font-size: 14px; color: var(--ink-soft); margin-top: 20px; }
.studio-status { display: inline-block; border: 1px dashed var(--studio-green); color: var(--studio-green); border-radius: 999px; padding: 7px 16px; font-size: 11px; font-weight: 700; margin-top: 22px; }
.studio-shop-copy .studio-small { margin-top: 10px; }
.studio-shop-copy .studio-text-link { margin-top: 12px; }
.studio-follow { text-align: center; background: var(--studio-yellow); }
.studio-follow > .wrap > p:not(.studio-kicker):not(.studio-small) { font-size: 14px; margin-top: 16px; }
.studio-channel-series { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 32px 0 24px; text-align: left; }
.studio-channel-series > span { display: grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; background: var(--studio-paper); color: var(--studio-green); font-size: 36px; }
.studio-channel-series h3 { font-size: 20px; }
.studio-channel-series p { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.studio-channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.studio-page .studio-channel { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; padding: 22px; border: 1px solid var(--studio-line); border-radius: 20px; background: var(--studio-paper); box-shadow: 0 4px 0 rgb(0 0 0 / 7%); transition: transform .2s ease; }
.studio-channel > .studio-social-icon { width: 40px; height: 40px; background: var(--studio-accent); border-radius: 12px; margin-bottom: 15px; }
.studio-channel strong { font-size: 19px; }
.studio-channel-handle { color: var(--ink-soft); font-size: 11px; overflow-wrap: anywhere; margin-top: 5px; }
.studio-channel-action { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; margin-top: auto; padding-top: 22px; color: var(--studio-green); }
.studio-page .studio-channel:hover { transform: translateY(-4px); text-decoration: none; border-color: var(--studio-green); }
.studio-socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.studio-socials a { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--studio-paper); border: 1px solid var(--studio-line); border-radius: 999px; padding: 11px 22px; min-height: 54px; font-size: 14px; font-weight: 700; box-shadow: 0 3px 0 rgb(0 0 0 / 8%); transition: transform .2s ease; }
.studio-socials a:hover { transform: translateY(-3px); text-decoration: none; }
.studio-social-icon { display: inline-grid; place-items: center; color: var(--studio-green); width: 25px; font-size: 22px; line-height: 1; }
.studio-parents { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.studio-parents h2 { font-size: clamp(26px, 2.7vw, 35px); }
.studio-parents > div > p:not(.studio-kicker) { margin: 20px 0; font-size: 14px; color: var(--ink-soft); }
.studio-page .faq-list { margin: 0; }
.studio-page .faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--studio-line); border-radius: 0; margin-bottom: 0; }
.studio-page .faq-item summary { padding: 18px 32px 18px 0; font-size: 14px; min-height: 52px; }
.studio-page .faq-item summary::after { right: 0; }
.studio-page .faq-item p { padding: 0 10px 20px 0; font-size: 13px; }
.studio-footer { padding: 50px 0 22px; background: #153e35; color: #f5f7ec; }
.studio-footer > .wrap { display: block; }
.studio-footer::before { display: none; }
.studio-footer a { color: #ecf5e9; font-size: 12px; overflow-wrap: anywhere; }
.studio-footer .studio-brand { color: #f5f7ec; font-size: 23px; }
.studio-footer .studio-brand .plus { color: #b9ecd4; }
.studio-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.studio-footer-grid p { font-size: 13px; margin: 18px 0 12px; color: #c4d7c9; }
.studio-footer nav { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.studio-footer nav a { padding: 7px 0; min-height: 38px; }
.studio-footer nav strong { margin-bottom: 12px; font-size: 12px; color: #c4d7c9; }
.studio-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid #416358; margin-top: 36px; padding-top: 20px; font-size: 10px; color: #c4d7c9; }
.studio-back { display: inline-flex; min-height: 44px; align-items: center; font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.studio-detail .studio-hero h1 { font-size: clamp(35px, 4.4vw, 58px); }
.studio-series-tagline { color: var(--studio-green); font-weight: 750; font-size: 17px; margin-top: 18px; }
.studio-section-description { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.studio-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.studio-worlds article { border: 1px solid var(--studio-line); border-radius: 22px; background: var(--surface-raised); overflow: hidden; }
.studio-worlds img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.studio-worlds article > div { padding: 24px; }
.studio-worlds h3 { font-size: 19px; margin-bottom: 10px; }
.studio-worlds p { font-size: 13px; color: var(--ink-soft); }
.studio-values { padding: 65px 0; background: var(--bg-soft); }
.studio-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; margin-top: 40px; }
.studio-values-grid article > span { font-size: 45px; color: var(--studio-green); }
.studio-values h3 { font-size: 21px; margin: 12px 0; }
.studio-values-grid p { font-size: 14px; color: var(--ink-soft); }
.studio-error { padding: 80px 24px; max-width: 740px; margin: auto; text-align: center; }
.studio-error h1 { font-size: clamp(36px, 7vw, 70px); margin: 15px 0 24px; }
.studio-error p { margin: 15px 0; }
.studio-error .studio-socials a { min-width: 120px; }
@media (max-width: 1100px) {
  .studio-page .nav-links { gap: 12px; font-size: 12px; }
  .studio-page .studio-brand { font-size: 20px; }
  .studio-hero-grid { gap: 30px; }
  .studio-art-window img { height: 350px; }
  .studio-play-grid, .studio-parents { gap: 44px; }
  .studio-shop-copy { padding: 32px; }
}
/* Studio navigation collapses earlier to fit every language at tablet widths. */
@media (max-width: 980px) {
  .studio-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-page .nav-toggle { display: flex; width: 44px; height: 44px; padding: 8px; }
  .studio-page .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; padding: 20px 24px; flex-direction: column; align-items: stretch; gap: 6px; border-bottom: 1px solid var(--studio-line); background: var(--studio-paper); box-shadow: var(--shadow-soft); }
  .studio-page .nav-links.open { display: flex; }
  .studio-page .nav-links > a { padding: 6px 12px; font-size: 14px; border-radius: 10px; }
  .studio-page .lang-switch { align-self: flex-start; }
  .studio-page .site-header .wrap { height: 88px; }
  .studio-hero { padding-top: 45px; }
  .studio-hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .studio-hero h1 { font-size: 38px; }
  .studio-intro { font-size: 14px; margin-top: 18px; }
  .studio-art-window img { height: 330px; }
  .studio-ticket { margin-left: 5px; margin-right: 5px; padding: 12px; gap: 8px; }
  .studio-ticket strong { font-size: 13px; }
  .studio-ticket small { font-size: 9px; }
  .studio-ticket-icon { width: 34px; height: 34px; font-size: 25px; }
  .studio-spark { width: 65px; height: 65px; left: -20px; }
  .studio-universe { grid-template-columns: 1.8fr 1fr; }
  .studio-next { padding: 22px; }
  .studio-next h3 { font-size: 21px; }
  .studio-next-orbit { width: 110px; height: 110px; }
  .studio-cast { gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .studio-friend-copy { padding: 20px 16px; }
  .studio-age { position: static; display: inline-block; margin-bottom: 10px; }
  .studio-friend img { height: 240px; }
  .studio-friend h3 { font-size: 25px; }
  .studio-shop-art { min-height: 400px; padding: 25px; }
}
@media (max-width: 700px) {
  .studio-about { padding: 40px 0 20px; }
  .studio-about ol { gap: 12px 18px; }
  .studio-about li { font-size: 11px; gap: 7px; }
  .studio-page .studio-channel { padding: 18px 14px; border-radius: 17px; }
  .studio-channel-grid { gap: 12px; }
  .studio-channel strong { font-size: 16px; }
  .studio-channel-handle, .studio-channel-action { font-size: 10px; }
  .studio-channel-series h3 { font-size: 18px; }
  .studio-channel-series { justify-content: flex-start; }
  .studio-page .wrap { padding-left: 22px; padding-right: 22px; }
  .studio-page .site-header .wrap { height: 76px; }
  .studio-topline { font-size: 10px; padding: 7px 10px; }
  .studio-topline span { margin: 0 5px; }
  .studio-page .studio-brand { font-size: 20px; }
  .studio-page .studio-brand img { width: 30px; height: 30px; }
  .studio-page .nav-right { gap: 9px; }
  .studio-hero { padding-top: 32px; }
  .studio-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .studio-hero h1 { font-size: clamp(33px, 8vw, 47px); letter-spacing: -1px; }
  .studio-hero .studio-kicker { margin-bottom: 12px; font-size: 10px; }
  .studio-intro { font-size: 14px; margin-top: 20px; max-width: 100%; }
  .studio-page .cta-row { gap: 12px 20px; margin-top: 22px; }
  .studio-page .studio-btn { padding: 12px 20px; min-height: 50px; font-size: 13px; }
  .studio-text-link { font-size: 12px; }
  .studio-hero-art { margin: 0 5px; padding-bottom: 15px; }
  .studio-art-window { border-radius: 90px 90px 24px 24px; }
  .studio-art-window img { height: auto; aspect-ratio: 1.35; object-fit: cover; border-radius: 80px 80px 18px 18px; }
  .studio-ticket { margin: -15px 16px 0; padding: 13px; }
  .studio-ticket strong { font-size: 15px; }
  .studio-spark { width: 58px; height: 58px; left: -13px; top: -7px; }
  .studio-doodle { font-size: 55px; bottom: -14px; }
  .studio-route { margin-top: 36px; padding: 16px 0; justify-content: center; gap: 8px 18px; font-size: 10px; }
  .studio-route b { margin-right: 4px; font-size: 17px; }
  .studio-section { padding: 52px 0; }
  .studio-section-head { display: block; margin-bottom: 25px; }
  .studio-section-head > p { margin-top: 14px; max-width: none; font-size: 13px; }
  .studio-universe { grid-template-columns: 1fr; gap: 18px; }
  .studio-show h3 { font-size: 23px; }
  .studio-show-copy { padding: 23px; }
  .studio-next { padding: 27px; align-items: flex-start; text-align: left; position: relative; }
  .studio-next h3, .studio-next p { max-width: 72%; }
  .studio-next-orbit { position: absolute; right: 19px; top: 29px; width: 65px; height: 65px; margin: 0; }
  .studio-next-orbit span { font-size: 38px; }
  .studio-next-orbit i { font-size: 22px; right: -5px; top: -2px; }
  .studio-next-orbit b { font-size: 19px; }
  .studio-next-word { margin-top: 22px; }
  .studio-cast { grid-template-columns: 1fr; gap: 20px; }
  .studio-friend { display: grid; grid-template-columns: .85fr 1.15fr; border-radius: 24px; align-items: center; }
  .studio-friend > picture { margin: 12px 0 12px 12px; border-radius: 90px 90px 16px 16px; }
  .studio-friend img { height: auto; aspect-ratio: .7; object-fit: cover; object-position: 50% 0; }
  .studio-friend-copy { padding: 20px 16px; }
  .studio-friend h3 { font-size: 27px; }
  .studio-friend-copy > p { font-size: 12px; }
  .studio-age { font-size: 10px; }
  .studio-bio { font-size: 11px !important; }
  .studio-play-grid, .studio-shop, .studio-parents { grid-template-columns: 1fr; gap: 40px; }
  .studio-journal { margin: 0 8px; }
  .studio-journal-top { font-size: 11px; }
  .studio-stamp { height: 250px; }
  .studio-stamp picture { height: 230px; }
  .studio-stamp img { height: 230px; width: 155px; }
  .studio-shop { gap: 0; }
  .studio-shop-art { min-height: 320px; padding: 32px 40px 48px; }
  .studio-sticker { max-width: 130px; }
  .studio-shop-copy { padding: 28px 24px; }
  .studio-shop-star { width: 45px; top: 20px; right: 22px; }
  .studio-shop-heart { bottom: 50px; left: 20px; font-size: 44px; }
  .studio-shop-art > p { font-size: 9px; left: 18px; right: 18px; }
  .studio-socials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .studio-socials a { padding: 11px 14px; gap: 8px; font-size: 12px; }
  .studio-parents { gap: 22px; }
  .studio-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .studio-footer-grid > div { grid-column: 1 / -1; }
  .studio-footer nav a { font-size: 11px; }
  .studio-worlds { grid-template-columns: 1fr; }
  .studio-worlds img { aspect-ratio: 1.25; object-position: center; }
  .studio-values { padding: 50px 0; }
  .studio-values-grid { gap: 24px; margin-top: 25px; }
}
@media (max-width: 360px) {
  .studio-page .wrap { padding-left: 16px; padding-right: 16px; }
  .studio-page .studio-brand { font-size: 18px; gap: 7px; }
  .studio-brand small { font-size: 7px; letter-spacing: 1px; }
  .studio-page .nav-right { gap: 3px; }
  .studio-page .theme-toggle, .studio-page .nav-toggle { width: 42px; }
  .studio-hero h1 { font-size: 31px; }
  .studio-ticket { margin-left: 5px; margin-right: 5px; }
  .studio-ticket strong { font-size: 13px; }
  .studio-ticket-icon { width: 29px; height: 29px; }
  .studio-picker { gap: 7px; }
  .studio-picker button { padding-right: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .studio-spark { animation: studio-sway 5s ease-in-out infinite alternate; }
  .studio-stamp.studio-stamped picture { animation: studio-stamp-in .4s ease both; }
  @keyframes studio-sway { to { transform: translateY(-8px) rotate(2deg); } }
  @keyframes studio-stamp-in { from { opacity: 0; transform: rotate(-12deg) scale(1.12); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.studio-page) { scroll-behavior: auto; }
  .studio-page *, .studio-page *::before, .studio-page *::after { animation: none !important; transition: none !important; }
}

/* ---------- Accessibility pass (AA text contrast, focusable scrollers) ---------- */
:root { --indigo-text: #1F5BD6; }
:root[data-theme="dark"] { --indigo-text: #8DB8FF; }
.lang-switch a.active,
.compare-table td.win,
.release-kicker { color: var(--indigo-text); }
.guide-feedback .btn-outline { color: var(--indigo-text); border-color: var(--indigo-text); background: var(--surface-raised); }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }
.compare-table-wrap:focus-visible, .guide-table-wrap:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
