/*
 * What The Frog (น้องกบ) — Sales Landing Page Stylesheet (site.gr2.css)
 * Silent Mathematical Proportion System + Rich Continuous Animations
 * Strict CSP Compliant (style-src 'self', zero inline styles)
 */

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/assets/fonts/LINESeedSansTH_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/assets/fonts/LINESeedSansTH_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans";
  src: url("/assets/fonts/LINESeedSans_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans";
  src: url("/assets/fonts/LINESeedSans_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Mathematical Harmonic Constants (Silent Proportions) */
  --p: 1.61803398875;
  --p-inv-1: 0.61803398875;
  --p-inv-2: 0.38196601125;
  --p-inv-3: 0.2360679775;
  --p-inv-4: 0.14589803375;

  /* 5-Color Clean Light Surface & Accent System (ChatDeck 21st.dev Minimalist Light Theme) */
  --bg: #FFFFFF;
  --surface: #F7F7F5;
  --surface-elev: #FFFFFF;
  --surface-dark: #0A1E16;
  --surface-dark-2: #0F2D21;
  --ink: #0A0A0A;
  --ink-2: #3F3F46;
  --muted: #71717A;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;

  /* Brand Emerald & Warm Amber (WCAG AA >= 4.9:1 with #FFFFFF) */
  --brand: #007F60;
  --brand-hover: #006B50;
  --brand-deep: #005640;
  --brand-soft: #ECFDF5;
  --brand-glow: rgba(0, 127, 96, 0.16);
  --line-green: #06C755;
  --line-chat-bg: #8CABD9;
  --line-bubble-user: #8CE65A;
  --amber: #E5A93C;
  --amber-deep: #925E06;
  --amber-soft: #FEF7E6;
  --danger: #B42318;
  --danger-soft: #FEE4E2;

  /* Typography Scale (Base = 16px = 1rem) */
  --font-sans: "LINE Seed Sans TH", "LINE Seed Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fs-xs: 0.786rem;     /* 12.58px */
  --fs-sm: 0.886rem;     /* 14.18px */
  --fs-base: 1rem;       /* 16.00px */
  --fs-md: 1.127rem;     /* 18.03px */
  --fs-lg: 1.272rem;     /* 20.35px */
  --fs-xl: 1.618rem;     /* 25.89px */
  --fs-2xl: 2.058rem;    /* 32.93px */
  --fs-3xl: 2.618rem;    /* 41.89px */

  /* Harmonic Spacing Scale */
  --sp-3xs: 0.236rem;    /* 3.78px */
  --sp-2xs: 0.382rem;    /* 6.11px */
  --sp-xs: 0.618rem;     /* 9.89px */
  --sp-sm: 1rem;         /* 16.00px */
  --sp-md: 1.618rem;     /* 25.89px */
  --sp-lg: 2.618rem;     /* 41.89px */
  --sp-xl: 4.236rem;     /* 67.78px */
  --sp-2xl: 6.854rem;    /* 109.66px */

  /* Radii & Shadows */
  --r-xs: 6.11px;
  --r-sm: 9.89px;
  --r-md: 16px;
  --r-lg: 25.89px;
  --r-xl: 41.89px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.04), 0 1px 2px rgba(10, 10, 10, 0.03);
  --shadow-md: 0 8px 24px -6px rgba(10, 10, 10, 0.07), 0 2px 6px -1px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 18px 40px -12px rgba(10, 10, 10, 0.11), 0 4px 12px -2px rgba(10, 10, 10, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(10, 10, 10, 0.16);

  /* Animation Easings & Harmonic Durations */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 259ms;
  --dur-slow: 419ms;
  --dur-scene: 678ms;

  --wrap: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.618;
  letter-spacing: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 127, 96, 0.05) 0%, transparent 48%);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover {
  color: var(--brand);
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-xs);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 3.3vw + 0.8rem, var(--fs-3xl));
}
h2 {
  font-size: clamp(1.5rem, 2.3vw + 0.65rem, var(--fs-2xl));
}
h3 {
  font-size: clamp(1.15rem, 1.25vw + 0.58rem, var(--fs-lg));
}

p, li, dd, dt, summary, .lead, .note, .faq-body {
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.nw {
  white-space: nowrap;
}

p {
  margin: 0 0 var(--sp-sm);
}

.m0 { margin: 0; }
.mt-xs { margin-top: var(--sp-xs); }
.mt-s { margin-top: var(--sp-sm); }
.mt-m { margin-top: var(--sp-md); }
.mt-l { margin-top: var(--sp-lg); }
.center-text { text-align: center; }
.mono { font-family: var(--font-mono); }

.skip {
  position: absolute;
  top: -100px;
  left: var(--sp-sm);
  background: var(--brand);
  color: #fff;
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--r-sm);
  z-index: 999;
  text-decoration: none;
  font-weight: 400;
}
.skip:focus {
  top: var(--sp-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* ==========================================================================
   1. GLOBAL ANIMATION KEYFRAMES (CONTINUOUS & SELF-RUNNING)
   ========================================================================== */

@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9.89px) rotate(1.2deg); }
}

@keyframes mascot-peek-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-4px) scale(1.03); }
  55% { transform: translateY(-4px) scale(1.03); }
}

@keyframes pill-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(3.78px, -7.8px, 0); }
}

@keyframes pill-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-4.5px, 6.11px, 0); }
}

@keyframes ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(6, 199, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}

@keyframes amber-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(229, 169, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 169, 60, 0); }
}

@keyframes chat-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.38; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes msg-pop-right {
  0% { opacity: 0; transform: translate3d(16px, 12px, 0) scale(0.92); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes msg-pop-left {
  0% { opacity: 0; transform: translate3d(-16px, 12px, 0) scale(0.92); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes flex-stamp-in {
  0% { opacity: 0; transform: translateY(16px) scale(0.94); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes finger-tap-anim {
  0% { opacity: 0; transform: translate(26px, 34px) scale(1.15); }
  35% { opacity: 1; transform: translate(0, 0) scale(1); }
  55% { opacity: 1; transform: translate(0, 0) scale(0.86); }
  75% { opacity: 1; transform: translate(0, 0) scale(1.02); }
  100% { opacity: 0; transform: translate(-6px, -8px) scale(0.95); }
}

@keyframes tap-ripple {
  0% { transform: scale(0.5); opacity: 0.85; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes chip-progress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes sheen-sweep {
  0% { transform: translateX(-140%) skewX(-20deg); }
  35%, 100% { transform: translateX(220%) skewX(-20deg); }
}

@keyframes badge-wiggle {
  0%, 86%, 100% { transform: rotate(0deg) scale(1); }
  90% { transform: rotate(-5deg) scale(1.06); }
  95% { transform: rotate(5deg) scale(1.06); }
}

@keyframes timeline-fire {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 139, 105, 0.45); }
  50% { transform: scale(1.012); box-shadow: 0 0 0 12px rgba(0, 139, 105, 0); }
  100% { transform: scale(1); box-shadow: var(--shadow-md); }
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-16px); }
}

@keyframes bell-ring {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(-14deg) scale(1.06); }
  30% { transform: rotate(11deg) scale(1.06); }
  45% { transform: rotate(-8deg) scale(1.04); }
  60% { transform: rotate(4deg); }
  80% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes clock-flip {
  0% { opacity: 0; transform: translateY(-45%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes note-drop {
  0% { opacity: 0; transform: translateY(-28px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes banner-toast {
  0% { opacity: 0; transform: translateY(-24px); }
  15%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes desk-row-flash {
  0% {
    box-shadow: 0 0 0 1px rgba(229, 169, 60, 0.75), 0 0 0 8px rgba(229, 169, 60, 0.28);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(0, 127, 96, 0.35), 0 0 0 14px rgba(229, 169, 60, 0);
  }
}

@keyframes tier-stamp {
  0% { opacity: 0; transform: rotate(-12deg) scale(1.7); }
  100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}

@keyframes app-seg-pop {
  0% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

@keyframes cd-marquee-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-50% - 8px), 0, 0); }
}

@keyframes cd-marquee-right {
  0% { transform: translate3d(calc(-50% - 8px), 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes cd-shimmer-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   1B. ABDUL-STYLE HERO LOCKSCREEN -> FINGER TAP -> DRAWER CHAT (.hl__*)
   ========================================================================== */

.hl-mascot-bell {
  transform-origin: 60% 15%;
}
.hl-mascot-bell[data-ringing="true"] {
  animation: bell-ring 750ms var(--ease-out);
}

.hl-lock-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  color: #ffffff;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(0, 139, 105, 0.65) 0%, transparent 72%),
    linear-gradient(180deg, #07291E 0%, #04150F 100%);
  transition:
    filter 450ms var(--ease-out),
    transform 450ms var(--ease-out);
}
.hl-lock-stage[data-dim="true"] {
  filter: blur(6px) brightness(0.68);
  transform: scale(0.955);
}

.hl-lock-date {
  font-size: var(--fs-xs);
  font-weight: 400;
  text-align: center;
  opacity: 0.88;
  letter-spacing: 0.02em;
}

.hl-lock-clock {
  font-family: var(--font-mono);
  font-size: clamp(3.3rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-block: 2px 12px;
}
.hl-lock-clock span {
  display: inline-block;
  animation: clock-flip 500ms var(--ease-out);
}

.hl-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hl-note-item {
  display: none;
}
.hl-note-item[data-shown="true"] {
  display: block;
  animation: note-drop 550ms var(--ease-out) both;
}

.hl-note-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px -10px rgba(4, 21, 15, 0.55);
  transition: transform 160ms var(--ease-spring), background-color 160ms ease;
}
.hl-note-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}
.hl-note-btn[aria-pressed="true"] {
  border-color: var(--line-green);
  box-shadow: 0 0 0 2px var(--line-green), 0 8px 20px -10px rgba(4, 21, 15, 0.55);
}

.hl-note-app {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--line-green);
  color: #03200E;
  font-weight: 400;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hl-note-txt {
  flex: 1;
  min-width: 0;
}
.hl-note-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 400;
}
.hl-note-meta span {
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hl-note-body {
  font-size: 0.78rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sliding LINE Chat Drawer over Lockscreen (.hl__open) */
.hl-chat-drawer {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--line-chat-bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(36px) scale(0.94);
  transition:
    opacity 220ms var(--ease-out),
    transform 450ms var(--ease-out);
}
.hl-chat-drawer[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hl-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: var(--r-pill);
  padding: 2px 9px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  cursor: pointer;
  min-height: 30px;
}
.hl-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Time-Skip Divider inside Chat (.hs-skip) */
.hs-skip {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
  font-size: 0.72rem;
  font-weight: 400;
  color: #163024;
}
.hs-skip[data-visible="true"] {
  display: flex;
  animation: msg-pop-left 360ms var(--ease-spring) both;
}
.hs-skip::before,
.hs-skip::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 35, 27, 0.22);
}
.hs-skip span {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.76);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   1C. FLOATING TAPED PAPER SCRAPS (.scrap) & STICKY CHAPTER STACKS (.stack-sheet)
   ========================================================================== */

.scrap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-md);
}

.scrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 4px;
  background: #FFFDF7;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink);
  box-shadow: 1px 2px 0 rgba(15, 35, 27, 0.06), 0 8px 16px -10px rgba(15, 35, 27, 0.35);
}
.scrap::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 38px;
  height: 13px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(229, 169, 60, 0.42);
  box-shadow: 0 0 0 1px rgba(15, 35, 27, 0.06);
}
.scrap:nth-child(odd) {
  animation: pill-drift-a 4.8s ease-in-out infinite;
}
.scrap:nth-child(even) {
  animation: pill-drift-b 5.6s ease-in-out infinite;
}

/* Sticky Card Stack Chapters (.stack-sheet) */
.stack-pile {
  position: relative;
}
.stack-sheet {
  position: relative;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.45), 0 -16px 36px -24px rgba(7, 41, 30, 0.22);
  transition: transform 360ms var(--ease-out), filter 360ms var(--ease-out);
}
.stack-sheet[data-covered="true"] {
  transform: none;
  filter: none;
}
@media (min-width: 1024px) {
  .stack-sheet[data-covered="true"] {
    transform: scale(0.992);
    filter: brightness(0.96);
  }
}

/* ==========================================================================
   1D. ABDUL-STYLE 3-COLUMN "A DAY WITH NONG KOB" DESK + LIVE PHONE STAGE
   ========================================================================== */

.day-3col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--sp-md);
  align-items: center;
}

.day-giant-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: clamp(2.85rem, 5.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  margin-block: var(--sp-xs);
}
.day-giant-clock::after {
  content: "น.";
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
html[lang="en"] .day-giant-clock::after {
  content: "";
  display: none;
}

.day-live-caption {
  min-height: 3.2em;
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: var(--sp-sm);
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--bg);
  border-left: 4px solid var(--brand);
}

.day-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.day-filter-bar .chip-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 12px;
  font-size: var(--fs-xs);
  border-radius: 12px;
}

/* Center Column: Desktop Timeline Rail (.desk-win) */
.desk-win {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}
.desk-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.desk-win-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.desk-win-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}
.desk-win-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-elev);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-list {
  position: relative;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Orange/Amber Now Indicator Line */
.dsk-now-pill {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--amber-deep);
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.dsk-row {
  display: grid;
  grid-template-columns: 48px 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  cursor: pointer;
}
.dsk-row[data-hidden-cat="true"] {
  display: none;
}
.dsk-row-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dsk-row-rail {
  position: relative;
  height: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dsk-row-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.dsk-row-pt {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid var(--brand);
  background: var(--surface-elev);
  transition: transform 240ms var(--ease-spring), background-color 200ms ease;
}
.dsk-row[data-fired="true"] .dsk-row-pt {
  background: var(--brand);
  transform: scale(1.2);
}

.dsk-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--surface-elev);
  border: 1.5px solid var(--line);
  opacity: 0.64;
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-spring),
    border-color 220ms ease;
}
.dsk-row[data-fired="true"] .dsk-card {
  opacity: 1;
  border-color: var(--brand);
}
.dsk-row[data-current="true"] .dsk-card {
  opacity: 1;
  border-color: var(--amber);
  background: #FFFDF7;
  transform: translateX(3px);
  animation: desk-row-flash 950ms var(--ease-out);
}
.dsk-card-title {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink);
}
.dsk-card-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Right Column of Day Stage: Synchronized Live Phone */
.day-sync-phone {
  position: relative;
  border-radius: 30px;
  border: 6px solid #0B231A;
  background: var(--line-chat-bg);
  min-height: 410px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.day-phone-banner {
  margin: 8px 8px 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  animation: note-drop 420ms var(--ease-spring);
}

/* ==========================================================================
   1E. ABDUL-STYLE CHARACTER LINEUP PICKER (.lineup) & ROTATED SEAL (.tier-seal)
   ========================================================================== */

.lineup-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
  margin: 0 auto var(--sp-md);
}

.lineup-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface-elev);
  font-family: var(--font-sans);
  cursor: pointer;
  min-height: 44px;
  transition:
    transform 320ms var(--ease-spring),
    border-color 220ms ease,
    box-shadow 220ms ease;
}
.lineup-pick:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}
.lineup-pick[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow-sm);
  animation: app-seg-pop 320ms var(--ease-spring);
}

.lineup-stage {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 360ms var(--ease-spring);
}
.lineup-stage::before {
  display: none;
}
.lineup-art {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(10, 10, 10, 0.08));
  transform: scale(0.95);
  opacity: 0.94;
  transition: transform 360ms var(--ease-spring), opacity 240ms ease, filter 240ms ease;
}
.lineup-pick[aria-pressed="true"] .lineup-art {
  transform: translateY(-3px) scale(1.06);
  opacity: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 127, 96, 0.22));
}
.lineup-name {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink);
}

/* Tier Character Showcase Header inside Price Card (Flat Minimalist Peeking Frog Tile) */
.tier-art-box {
  position: relative;
  height: 96px;
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
.tier-art-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(10, 10, 10, 0.08));
  transition: transform 360ms var(--ease-spring);
}
.price-card:hover .tier-art-img {
  transform: translateY(-4px) scale(1.05);
}

/* Inline Frog Coin Icon */
.frog-coin-ic {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
  margin-inline: 2px 3px;
  flex-shrink: 0;
}
.pouch-val .frog-coin-ic {
  width: 34px;
  height: 34px;
  vertical-align: -6px;
  margin-right: 4px;
}

.tier-seal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px dashed var(--amber-deep);
  background: var(--amber-soft);
  color: var(--amber-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.1;
  transform: rotate(-12deg);
  animation: tier-stamp 460ms var(--ease-spring) backwards;
}
.tier-seal b {
  font-size: 0.92rem;
}

/* Scroll-Triggered Entrance System */
.reveal {
  opacity: 0;
  transform: translate3d(0, 25.89px, 0) scale(0.985);
  transition:
    opacity var(--dur-scene) var(--ease-out),
    transform var(--dur-scene) var(--ease-out);
  will-change: opacity, transform;
}
.reveal[data-revealed="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.reveal.delay-1 { transition-delay: 99ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 259ms; }
.reveal.delay-4 { transition-delay: 419ms; }

/* ==========================================================================
   2. STICKY MULTI-PAGE HEADER & NAVIGATION (FLOATING PILL BAR)
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 60%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.site-head .wrap {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 10px 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 28px -12px rgba(10, 10, 10, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9.89px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: 1.2;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-dark);
  padding: 2.5px;
  box-shadow: var(--shadow-sm);
  animation: mascot-peek-bob 4.2s ease-in-out infinite;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  background: var(--bg);
  padding: 3.78px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 400;
  font-size: var(--fs-sm);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring);
}

.nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px var(--brand-glow);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 6.11px;
  flex-shrink: 0;
}

.nav-actions a.lang,
.nav a.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1.5px solid var(--line-strong);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-decoration: none;
  background: var(--surface-elev);
  color: var(--ink);
  white-space: nowrap;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-actions a.lang:hover,
.nav a.lang:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-actions a.nav-cta,
.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  background: var(--line-green);
  color: #041F0F;
  font-size: var(--fs-xs);
  font-weight: 400;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid #037B34;
  box-shadow: 0 2.5px 0 #037B34;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-spring), background-color var(--dur-fast) ease;
}
.nav-actions a.nav-cta:hover,
.nav a.nav-cta:hover {
  background: #07D65C;
  color: #041F0F;
  transform: translateY(-1px);
}

/* 3-Lines Hamburger Toggle Button (.nav-toggle) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-elev);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-spring);
}
.nav-toggle:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2.2px;
  border-radius: 99px;
  background: var(--ink);
  transition:
    transform var(--dur-base) var(--ease-spring),
    opacity var(--dur-fast) ease;
}
.site-head[data-nav-open="true"] .nav-toggle {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.site-head[data-nav-open="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}
.site-head[data-nav-open="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.site-head[data-nav-open="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

@media (max-width: 920px) {
  .site-head .wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--r-pill);
    padding: 6.11px 10px 6.11px 12px;
    gap: 8px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--brand);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top center;
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-spring),
      visibility var(--dur-base);
  }
  .site-head[data-nav-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav a {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 10px 16px;
    font-size: var(--fs-base);
    border-radius: 14px;
  }
}

/* ==========================================================================
   3. BUTTONS, TAGS, BADGES & TACTILE 3D CONTROLS
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2xs);
  max-width: 100%;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface-elev);
  border: 1px solid rgba(10, 10, 10, 0.10);
  box-shadow: var(--shadow-sm);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-xs);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-green);
  animation: ring-pulse 2s infinite;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 400;
  padding: 3.5px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid rgba(0, 127, 96, 0.16);
}
.tag.amber {
  background: var(--amber-soft);
  color: var(--amber-deep);
  border-color: rgba(229, 169, 60, 0.35);
}
.tag.dark {
  background: var(--surface);
  color: var(--ink-2);
  border-color: rgba(10, 10, 10, 0.10);
}

.lead {
  font-size: clamp(1.05rem, 0.8vw + 0.85rem, var(--fs-md));
  color: var(--ink-2);
  margin-bottom: var(--sp-md);
}

.note {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
}
.cta-center {
  justify-content: center;
}
.check-pill {
  cursor: pointer;
}
.price-amount-light {
  color: #ffffff !important;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2xs);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: #141416;
  color: #ffffff;
  box-shadow:
    inset 0 -8px 10px rgba(255, 255, 255, 0.12),
    0 4px 12px rgba(10, 10, 10, 0.12);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
  transform: translateX(-140%) skewX(-20deg);
  animation: sheen-sweep 4.8s ease-in-out infinite;
  pointer-events: none;
}
.btn:hover {
  background: #232326;
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 -6px 10px rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(10, 10, 10, 0.16);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 -10px 10px rgba(255, 255, 255, 0.22);
}

.btn.line-btn {
  background: var(--line-green);
  border: 1px solid rgba(4, 120, 53, 0.35);
  color: #031B0C;
  box-shadow:
    inset 0 -8px 10px rgba(255, 255, 255, 0.28),
    0 6px 18px rgba(6, 199, 85, 0.24);
}
.btn.line-btn:hover {
  background: #08D85E;
  color: #031B0C;
  box-shadow:
    inset 0 -6px 12px rgba(255, 255, 255, 0.38),
    0 10px 24px rgba(6, 199, 85, 0.32);
}

.btn.outline {
  background: var(--surface-elev);
  color: var(--ink);
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: var(--shadow-sm);
}
.btn.outline::after {
  display: none;
}
.btn.outline:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.chip-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-elev);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring);
}
.chip-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  transform: translateY(-1px);
}
.chip-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand-deep);
  color: #ffffff;
  box-shadow: 0 3px 10px var(--brand-glow);
}

/* Auto-advance progress bar inside active scenario chip */
.chip-btn[data-auto-playing="true"][aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3.5px;
  background: var(--amber);
  transform-origin: left center;
  animation: chip-progress 6.8s linear forwards;
}

/* ==========================================================================
   4. HERO SECTION & AUTO-PLAYING ANIMATED PHONE STAGE
   ========================================================================== */

.hero {
  padding-block: var(--sp-lg) var(--sp-xl);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.618034fr) minmax(0, 1fr);
  gap: var(--sp-lg);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-highlight {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

/* Floating Mascot Banner Card inside Hero Copy (ChatDeck Clean Light Surface) */
.hero-mascot-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  padding: var(--sp-sm);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(10, 10, 10, 0.08);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-mascot-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--brand-soft);
  border: 1px solid rgba(0, 127, 96, 0.18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  animation: mascot-float 4.2s ease-in-out infinite;
}

.hero-mascot-avatar img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hero-mascot-strip h3 {
  color: var(--ink);
  font-size: var(--fs-md);
  margin-bottom: 3px;
}
.hero-mascot-strip p {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  margin: 0;
}

/* Trust Pillars Pill Row */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6.11px 12.5px;
  border-radius: var(--r-pill);
  background: var(--surface-elev);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero-pill:nth-child(odd) {
  animation: pill-drift-a 5.2s ease-in-out infinite;
}
.hero-pill:nth-child(even) {
  animation: pill-drift-b 6.1s ease-in-out infinite;
}

/* Right Column: Animated Phone Stage (1 : 1.618 proportion) */
.phone-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
}

/* Floating prompt badges around the phone */
.float-badge {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-elev);
  border: 1.5px solid var(--brand);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink);
  pointer-events: none;
}
.float-badge.fb-top-left {
  top: 22px;
  left: -14px;
  animation: pill-drift-a 4.6s ease-in-out infinite;
}
.float-badge.fb-bottom-right {
  bottom: 84px;
  right: -10px;
  border-color: var(--amber);
  animation: pill-drift-b 5.4s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  width: min(100%, 364px);
  min-height: 556px;
  border-radius: 38px;
  background: #0A1D16;
  padding: 11px;
  box-shadow:
    0 0 0 2px #264A3B,
    var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 112px;
  height: 20px;
  background: #06130E;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.phone-notch::before {
  content: "";
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: #1F3B2F;
}
.phone-notch::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1B4D38;
}

.phone-screen {
  position: relative;
  flex: 1;
  border-radius: 28px;
  background: #7494C0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Lockscreen Notification Overlay (Step 0 of each scenario) */
.phone-lock-banner {
  position: relative;
  z-index: 4;
  margin: 10px 10px 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(8, 24, 18, 0.22);
  border: 1.5px solid rgba(6, 199, 85, 0.45);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-spring),
    opacity var(--dur-base) var(--ease-out);
}
.phone-lock-banner[data-tapped="true"] {
  transform: scale(0.97);
}
.phone-lock-banner img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-dark);
}
.phone-lock-title {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.phone-lock-sub {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animated Finger Tap Cursor on Lock Banner */
.phone-finger {
  position: absolute;
  right: 18px;
  bottom: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.92);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
}
.phone-finger::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0;
}
.phone-lock-banner[data-finger="tap"] .phone-finger {
  animation: finger-tap-anim 1.1s var(--ease-out) forwards;
}
.phone-lock-banner[data-finger="tap"] .phone-finger::after {
  animation: tap-ripple 0.9s ease-out 0.35s forwards;
}

/* LINE Chat Header inside Phone */
.line-topbar {
  background: #222E3E;
  color: #ffffff;
  padding: 9px 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  font-weight: 400;
}
.line-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.line-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-green);
  animation: ring-pulse 2s infinite;
}

/* Chat Stream Area */
.line-chat-stream {
  flex: 1;
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

/* User Bubble (Right, LINE Green) */
.chat-row-user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--line-bubble-user);
  color: #0D2114;
  padding: 8.5px 12px;
  border-radius: 16px 16px 3px 16px;
  font-size: var(--fs-sm);
  font-weight: 400;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translate3d(14px, 10px, 0) scale(0.94);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
}
.chat-row-user[data-visible="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* 3-Dot Typing Indicator */
.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 8px 13px;
  border-radius: 16px 16px 16px 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: scale(0.9);
  transition:
    opacity 180ms var(--ease-out),
    max-height 180ms var(--ease-out),
    transform 180ms var(--ease-spring);
}
.chat-typing[data-visible="true"] {
  opacity: 1;
  max-height: 44px;
  transform: scale(1);
}
.chat-typing-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--brand);
  animation: chat-dot 1.15s infinite ease-in-out;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.36s; }

/* Frog Bot Bubble (Left, White) */
.chat-row-bot {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  opacity: 0;
  transform: translate3d(-14px, 10px, 0) scale(0.95);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-spring);
}
.chat-row-bot[data-visible="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.chat-bot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-dark);
  padding: 2px;
}
.chat-bot-bubble {
  background: #ffffff;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 3px 16px 16px 16px;
  font-size: var(--fs-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Flex Approval Card inside Phone */
.chat-flex-card {
  margin-left: 37px;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(8, 24, 18, 0.18);
  border: 1.5px solid var(--brand);
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-spring);
}
.chat-flex-card[data-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.chat-flex-head {
  background: var(--surface-dark);
  color: #ffffff;
  padding: 7px 11px;
  font-size: var(--fs-xs);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-flex-body {
  padding: 9px 11px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.chat-flex-actions {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 6px;
  padding: 0 11px 10px;
}
.flex-btn-approve,
.flex-btn-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.flex-btn-approve {
  background: var(--line-green);
  color: #052310;
  box-shadow: 0 2px 0 #048D3C;
}
.flex-btn-approve[data-pulsing="true"] {
  animation: ring-pulse 1.5s infinite;
}
.flex-btn-edit {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
}

.chat-flex-status {
  margin: 0 11px 9px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 400;
  display: none;
}
.chat-flex-status[data-shown="true"] {
  display: block;
  animation: flex-stamp-in var(--dur-base) var(--ease-spring) forwards;
}

/* Scenario Switcher Chips under Phone */
.scenario-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6.11px;
  margin-top: var(--sp-xs);
}

.auto-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   5. SECTIONS, CARDS & STICKY CHAPTER STACKS
   ========================================================================== */

.section {
  padding-block: var(--sp-xl);
  position: relative;
}
.section.alt {
  background: var(--surface);
  border-block: 1px solid rgba(10, 10, 10, 0.07);
}
.section.dark-sec {
  background: var(--surface);
  border-block: 1px solid rgba(10, 10, 10, 0.07);
  color: var(--ink);
}
.section.dark-sec h2,
.section.dark-sec h3 {
  color: var(--ink);
}
.section.dark-sec .lead,
.section.dark-sec .note {
  color: var(--ink-2);
}

.sec-head {
  max-width: 740px;
  margin-bottom: var(--sp-lg);
}
.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

/* Proportional Grids */
.grid-golden {
  display: grid;
  grid-template-columns: minmax(0, 1.618034fr) minmax(0, 1fr);
  gap: var(--sp-md);
  align-items: stretch;
}
.grid-golden-rev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.618034fr);
  gap: var(--sp-md);
  align-items: stretch;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-md);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-md);
}

.card {
  background: var(--surface-elev);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 18px;
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 127, 96, 0.35);
}
.card.featured {
  border: 1px solid rgba(0, 127, 96, 0.28);
  box-shadow: var(--shadow-lg);
  background: var(--surface-elev);
}
.card.dark-card {
  background: var(--surface-elev);
  border: 1px solid rgba(10, 10, 10, 0.08);
  color: var(--ink);
}
.card.dark-card h3 {
  color: var(--ink);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(10, 10, 10, 0.07);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--sp-xs);
  transition: transform 200ms var(--ease-spring), background-color 200ms ease;
}

/* ==========================================================================
   5B. CHATDECK ACETERNITY-STYLE CONNECTED FEATURE GRID (.cd-feature-grid)
   ========================================================================== */

.cd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-elev);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cd-feature-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-elev);
  overflow: hidden;
  transition: background-color 220ms ease;
}

.cd-feature-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 244, 245, 0) 0%, rgba(236, 253, 245, 0.72) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.cd-feature-cell:hover::before {
  opacity: 1;
}

.cd-feature-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid rgba(10, 10, 10, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  transition: transform 220ms var(--ease-spring), border-color 220ms ease, background-color 220ms ease;
}
.cd-feature-cell:hover .cd-feature-icon {
  transform: scale(1.06);
  background: var(--brand-soft);
  border-color: rgba(0, 127, 96, 0.25);
}

.cd-feature-title {
  position: relative;
  z-index: 1;
  padding-left: 16px;
  margin: 10px 0 8px;
  font-size: var(--fs-md);
  color: var(--ink);
}
.cd-feature-bar {
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 22px;
  border-radius: 0 99px 99px 0;
  background: var(--line-strong);
  transition: height 220ms var(--ease-spring), background-color 220ms ease;
}
.cd-feature-cell:hover .cd-feature-bar {
  height: 32px;
  background: var(--brand);
}
.cd-feature-title span {
  display: inline-block;
  transition: transform 220ms var(--ease-out), color 220ms ease;
}
.cd-feature-cell:hover .cd-feature-title span {
  transform: translateX(6px);
  color: var(--brand-deep);
}

.cd-feature-desc {
  position: relative;
  z-index: 1;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  margin: 0 0 14px;
}

.cd-feature-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--brand-deep);
  text-decoration: none;
}
.cd-feature-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ==========================================================================
   5C. CHATDECK 2-ROW OPPOSITE-DIRECTION MARQUEE (.cd-marquee-wrap)
   ========================================================================== */

.cd-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 6px;
}
.cd-marquee-wrap::before,
.cd-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(14vw, 140px);
  z-index: 3;
  pointer-events: none;
}
.cd-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(255, 255, 255, 0) 100%);
}
.cd-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(255, 255, 255, 0) 100%);
}
.section.alt .cd-marquee-wrap::before {
  background: linear-gradient(90deg, var(--surface) 0%, rgba(247, 247, 245, 0) 100%);
}
.section.alt .cd-marquee-wrap::after {
  background: linear-gradient(270deg, var(--surface) 0%, rgba(247, 247, 245, 0) 100%);
}

.cd-marquee-row {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: cd-marquee-left 38s linear infinite;
}
.cd-marquee-row.rev {
  animation: cd-marquee-right 42s linear infinite;
}
.cd-marquee-wrap:hover .cd-marquee-row {
  animation-play-state: paused;
}

.cd-mcard {
  width: 296px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(247, 247, 245, 0.72);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-spring);
}
.cd-mcard:hover {
  background: var(--surface-elev);
  border-color: rgba(0, 127, 96, 0.35);
  transform: translateY(-2px);
}
.cd-mcard-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cd-mcard-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid rgba(0, 127, 96, 0.2);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.cd-mcard-name {
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.25;
}
.cd-mcard-role {
  font-size: 0.74rem;
  color: var(--muted);
}
.cd-mcard-quote {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  line-height: 1.55;
}

/* ==========================================================================
   6. AUTO-PLAYING MINI-CHAT CARDS (FOR /FEATURES/ & USE CASES)
   ========================================================================== */

.minichat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.minichat-window {
  background: #7A9AC6;
  border-radius: var(--r-md);
  padding: var(--sp-sm);
  border: 2px solid #22352C;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.14);
  min-height: 224px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.minichat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: #fff;
  background: rgba(15, 35, 27, 0.65);
  padding: 5px 10px;
  border-radius: var(--r-sm);
}

.minichat-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  cursor: pointer;
}
.minichat-replay:hover {
  background: rgba(255, 255, 255, 0.32);
}

.mc-user {
  align-self: flex-end;
  background: var(--line-bubble-user);
  color: #0B2112;
  padding: 7px 11px;
  border-radius: 14px 14px 3px 14px;
  font-size: var(--fs-xs);
  font-weight: 400;
  max-width: 88%;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: all var(--dur-base) var(--ease-spring);
}

.mc-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 7px 11px;
  border-radius: 14px 14px 14px 3px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 180ms var(--ease-out);
}

.mc-reply {
  align-self: flex-start;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 11px;
  border-radius: 3px 14px 14px 14px;
  font-size: var(--fs-xs);
  max-width: 92%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  border-left: 3.5px solid var(--brand);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all var(--dur-slow) var(--ease-spring);
}

/* Mini-chat state machine controlled via data-mc-step="1|2|3" */
.minichat-window[data-mc-step="1"] .mc-user,
.minichat-window[data-mc-step="2"] .mc-user,
.minichat-window[data-mc-step="3"] .mc-user {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.minichat-window[data-mc-step="2"] .mc-typing {
  opacity: 1;
  max-height: 36px;
}
.minichat-window[data-mc-step="3"] .mc-reply {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   7. AUTO-PLAYING "A DAY WITH NONG KOB" TIMELINE
   ========================================================================== */

.day-stage {
  background: var(--surface-elev);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 24px;
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
}

.day-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--line);
}

.day-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-dark);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 400;
  box-shadow: var(--shadow-sm);
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-sm);
}

.day-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-sm);
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-spring),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.day-card[data-active="true"] {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  animation: timeline-fire 1.4s var(--ease-out);
}

.day-time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.day-rang-badge {
  float: right;
  font-size: 0.72rem;
  font-weight: 400;
  background: var(--amber-soft);
  color: var(--amber-deep);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--dur-base) var(--ease-spring);
}
.day-card[data-active="true"] .day-rang-badge {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   8. PRICING CARDS, SEGMENTED SWITCH & INTERACTIVE CALCULATOR
   ========================================================================== */

.pricing-switch-bar {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.seg-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(10, 10, 10, 0.08);
  max-width: 100%;
}
@media (max-width: 767px) {
  .seg-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    border-radius: 16px;
  }
  .seg-switch .chip-btn {
    width: 100%;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border-radius: 24px;
  background: rgba(247, 247, 245, 0.65);
  border: 1px solid rgba(10, 10, 10, 0.07);
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: none;
  position: relative;
  transform: scale(0.99);
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}
.price-card:hover {
  transform: translateY(-4px) scale(1);
  background: var(--surface-elev);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 127, 96, 0.35);
}
.price-card.popular {
  transform: scale(1);
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: var(--surface-elev);
  box-shadow: var(--shadow-xl);
}
.price-card[data-highlighted="true"] {
  transform: scale(1);
  background: var(--surface-elev);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 127, 96, 0.2), var(--shadow-xl);
}

.popular-ribbon {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--amber);
  color: #231600;
  font-size: var(--fs-xs);
  font-weight: 400;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  animation: badge-wiggle 4.5s infinite;
}

.price-amount {
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-block: var(--sp-xs);
}
.price-unit {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-sm) 0 var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--fs-sm);
}
.check-list li {
  position: relative;
  display: block;
  padding-left: 28px;
  line-height: 1.58;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 400;
}

/* Interactive Calculator Box */
.calc-box {
  background: var(--surface-elev);
  border: 1px solid rgba(10, 10, 10, 0.09);
  border-radius: 24px;
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.618034fr) minmax(0, 1fr);
  gap: var(--sp-lg);
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.calc-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
  font-size: var(--fs-sm);
}

.calc-slider-label output {
  font-family: var(--font-mono);
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-weight: 400;
}

.gr-range {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
  min-height: 44px;
}

.calc-result-card {
  background: var(--surface);
  border: 1px solid rgba(10, 10, 10, 0.08);
  color: var(--ink);
  border-radius: 18px;
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.calc-result-card h3 {
  color: var(--brand-deep);
  font-size: var(--fs-xl);
  margin: 0;
}
.calc-result-card p {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  margin: 0;
}
.price-amount-light {
  color: var(--ink) !important;
}

/* 2-Pouch Wallet Interactive Demo */
.wallet-demo {
  background: var(--surface-elev);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
}

.pouch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-md);
  margin-block: var(--sp-md);
}

.pouch-card {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  background: var(--bg);
  transition: transform var(--dur-base) var(--ease-spring), border-color var(--dur-base) var(--ease-out);
}
.pouch-card.bonus-pouch {
  border-color: var(--amber);
  background: #FFFDF7;
}
.pouch-card.bought-pouch {
  border-color: var(--brand);
  background: #F7FCFA;
}
.pouch-val {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--ink);
  margin-block: 4px;
}

/* ==========================================================================
   9. FAQ ACCORDION, PROMPT CARDS & LEGAL DOCUMENT LAYOUT
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.faq-item:hover {
  background: rgba(247, 247, 245, 0.6);
}
.faq-item[open] {
  background: rgba(247, 247, 245, 0.45);
}

.faq-item summary {
  padding: 18px 16px;
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(10, 10, 10, 0.08);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast) ease;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--ink);
  color: #fff;
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 16px 20px;
  color: var(--ink-2);
  font-size: var(--fs-base);
}

/* Copyable LINE Prompt Cards */
.prompt-card {
  background: var(--surface-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-xs);
}
.prompt-bubble {
  background: var(--bg);
  border-left: 4px solid var(--line-green);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--ink);
}

/* Comparison Table — Generous Width & Clean Readability (Zero 1-Word Cramped Columns!) */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-elev);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.doc-clean table {
  min-width: 540px;
}
th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  background: var(--surface);
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface-elev);
  min-width: 215px;
  max-width: 260px;
  box-shadow: 2px 0 6px -2px rgba(15, 35, 27, 0.08);
}
th:first-child {
  background: var(--surface);
  z-index: 3;
}
tbody tr:nth-child(even) td {
  background: #FCF9F2;
}
tbody tr:nth-child(even) td:first-child {
  background: #FCF9F2;
}
tr:last-child td {
  border-bottom: none;
}
.table-scroll-hint {
  display: none;
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: right;
  margin-bottom: 6px;
}
@media (max-width: 767px) {
  .table-scroll-hint {
    display: block;
  }
}

/* Legal Document Layout (/terms/, /privacy/) */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.618034fr);
  gap: var(--sp-lg);
  padding-block: var(--sp-lg) var(--sp-xl);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 90px;
  background: var(--surface-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
}
.doc-toc ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-xs) 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-sm);
}
.doc-hr {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: var(--sp-sm);
}
.doc-clean {
  background: var(--surface-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
}
.doc-clean h2 {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xl);
}
.doc-clean h2:first-of-type {
  margin-top: var(--sp-sm);
  border-top: none;
}
.draft {
  background: var(--amber-soft);
  color: var(--amber-deep);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}

.decision-sim-box,
.refund-sim-box,
.retention-sim-box,
.pdpa-sim-box {
  background: var(--bg);
  border: 1.5px solid var(--brand);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  margin-block: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.email-step-tabs,
.buffet-tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-xs);
}
.email-stage {
  background: var(--surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-code-box {
  background: var(--surface);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.persona-guardrail {
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 400;
}
.ret-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-xs);
}
.ret-stage-card {
  background: var(--surface-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-xs);
}
.ret-stage-card[data-active="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.meter-receipt-total {
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--brand-deep);
}

/* 404 Page */
.err-main {
  padding-block: var(--sp-xl);
  display: flex;
  justify-content: center;
}
.err-card {
  max-width: 560px;
  text-align: center;
  padding: var(--sp-lg);
}
.err-frog {
  margin: 0 auto var(--sp-sm);
  border-radius: var(--r-lg);
  background: var(--surface-dark);
  padding: 8px;
  animation: mascot-float 4s ease-in-out infinite;
}

/* ==========================================================================
   10. FOOTER (STRUCTURED EDITORIAL FOOTER WITH PILL LINKS & CTA)
   ========================================================================== */

.site-foot {
  background: var(--surface);
  color: var(--ink-2);
  padding-block: var(--sp-lg);
  border-top: 1px solid var(--line);
}
.site-foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.382fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-md);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--ink);
  margin-bottom: 6px;
}
.foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-dark);
  padding: 2px;
  border: 1px solid rgba(10, 10, 10, 0.1);
}
.site-foot p {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.site-foot nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-elev);
  border: 1px solid rgba(10, 10, 10, 0.08);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 400;
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}
.site-foot nav a:hover {
  background: var(--brand-soft);
  border-color: rgba(0, 127, 96, 0.25);
  color: var(--brand-deep);
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .site-foot .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-sm);
  }
  .site-foot nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
    padding-top: var(--sp-xs);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-foot nav a {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (ALL 10 MANDATORY BREAKPOINTS) & REDUCED MOTION
   ========================================================================== */

b, strong, th, h1, h2, h3, h4, summary, button, .btn, .chip-btn, .tag, .eyebrow {
  font-weight: 400;
}

/* 10. 2xl (1920px+): max-width 1440px centered */
@media (min-width: 1920px) {
  :root {
    --wrap: 1440px;
  }
}

/* 9. xl (1440px–1919px): max-width 1280px centered */
@media (min-width: 1440px) and (max-width: 1919px) {
  :root {
    --wrap: 1280px;
  }
}

/* 8. lg-landscape (1280px–1439px): full 4-col pricing & 1.618:1 Golden Ratio split */
@media (min-width: 1280px) and (max-width: 1439px) {
  :root {
    --wrap: 1180px;
  }
}

/* 6 & 7. md-landscape & lg-portrait (1024px–1279px): 2-col hero/doc/calc, 2x2 pricing grid */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
  .calc-box {
    grid-template-columns: minmax(0, 1.382fr) minmax(0, 1fr);
  }
  .doc-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .day-3col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

/* 5. md-portrait (768px–1023px): 1-col hero/calc/doc, 2-col cards & pricing */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid,
  .grid-golden,
  .grid-golden-rev,
  .calc-box,
  .doc-layout,
  .day-3col {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3,
  .grid-2,
  .pricing-grid,
  .day-grid,
  .cd-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-toc {
    position: static;
  }
  .float-badge.fb-top-left {
    left: 4px;
  }
  .float-badge.fb-bottom-right {
    right: 4px;
  }
}

/* 4. sm-landscape (667px–767px): single-row pill header with 3-lines hamburger menu */
@media (min-width: 667px) and (max-width: 767px) {
  .hero-grid,
  .grid-golden,
  .grid-golden-rev,
  .calc-box,
  .doc-layout,
  .grid-3,
  .grid-2,
  .pricing-grid,
  .day-3col,
  .cd-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .day-grid,
  .pouch-grid,
  .ret-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-toc {
    position: static;
  }
  .float-badge {
    display: none;
  }
}

/* 2. xs-landscape (568px–666px): condensed header with 3-lines hamburger menu */
@media (min-width: 568px) and (max-width: 666px) {
  .hero-grid,
  .grid-golden,
  .grid-golden-rev,
  .calc-box,
  .doc-layout,
  .grid-3,
  .grid-2,
  .pricing-grid,
  .day-3col,
  .cd-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .day-grid,
  .pouch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ret-stages {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-toc {
    position: static;
  }
  .float-badge {
    display: none;
  }
}

/* 3. sm-portrait (480px–567px): single-row header with 3-lines hamburger menu, 1-col stack */
@media (min-width: 480px) and (max-width: 567px) {
  .hero-grid,
  .grid-golden,
  .grid-golden-rev,
  .calc-box,
  .doc-layout,
  .grid-3,
  .grid-2,
  .pricing-grid,
  .day-grid,
  .pouch-grid,
  .ret-stages,
  .day-3col,
  .cd-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lineup-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-toc {
    position: static;
  }
  .float-badge {
    display: none;
  }
}

/* 1. xs-portrait (320px–479px): mobile-first single-row floating pill navbar with 3-lines hamburger */
@media (max-width: 479px) {
  .wrap {
    width: min(100% - 1.25rem, var(--wrap));
  }
  .site-head {
    padding-block: 6px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand-sub {
    display: none;
  }
  .nav-actions a.lang {
    min-height: 34px;
    padding: 3px 9px;
    font-size: 0.72rem;
  }
  .nav-actions a.nav-cta {
    min-height: 36px;
    padding: 4px 10px;
    font-size: 0.74rem;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
  .hero-grid,
  .grid-golden,
  .grid-golden-rev,
  .calc-box,
  .doc-layout,
  .grid-3,
  .grid-2,
  .pricing-grid,
  .day-grid,
  .pouch-grid,
  .ret-stages,
  .day-3col,
  .cd-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-feature-cell {
    padding: 24px 20px;
  }
  .lineup-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta .btn {
    width: 100%;
  }
  .hero-mascot-strip {
    padding: 14px;
    gap: 12px;
  }
  .hero-mascot-avatar {
    width: 64px;
    height: 64px;
  }
  .hero-mascot-avatar img {
    width: 56px;
    height: 56px;
  }
  .hero-mascot-strip h3 {
    font-size: 1.04rem;
    line-height: 1.4;
  }
  .hero-mascot-strip p {
    font-size: 0.86rem;
    line-height: 1.55;
  }
  .phone-frame {
    min-height: 510px;
    border-radius: 28px;
    padding: 8px;
  }
  .card,
  .day-stage,
  .calc-box,
  .wallet-demo,
  .doc-clean {
    padding: var(--sp-sm);
  }
  .doc-toc {
    position: static;
  }
  .float-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
