/* ============================================================
   viwmy — Landing Page
   Palette: natural / earthy tones
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-1: #f6f1e7;
  --bg-2: #efe7d8;
  --bg-3: #eae0cf;
  --card: #fffdf8;
  --card-soft: #f3ecdf;

  /* Brand */
  --olive: #6f7452;
  --olive-dark: #5c6144;
  --olive-soft: #8b906d;
  --brown: #8a7458;
  --taupe: #b3a488;
  --sand: #d8caae;

  /* Accent */
  --accent: #c9722f;
  --accent-soft: #e08a4a;

  /* Text */
  --ink: #3f3d33;
  --ink-soft: #6b6555;
  --ink-mute: #938c79;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -30px rgba(90, 78, 52, .45);
  --shadow-sm: 0 12px 30px -18px rgba(90, 78, 52, .4);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
.accent { color: var(--accent); }
.brand { color: var(--olive); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 40px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(111, 116, 82, .8);
}
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--olive); }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #e2d8c4;
}
.btn-outline:hover { border-color: var(--olive); color: var(--olive); transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.play-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--card-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--olive);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fbf4ec;
  border-bottom: 1px solid rgba(179, 164, 136, .18);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-flex; }
.logo-img { height: 58px; width: auto; display: block; }
.footer-logo-img { height: 66px; }
.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: -.5px;
}
.main-nav {
  display: flex;
  gap: 30px;
  margin: 0 auto;
  font-size: 15px;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 400;
  transition: color .15s ease;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--olive); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--olive); border-radius: 2px;
  transition: .25s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 20% -10%, #fbf7ee 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  padding: 70px 0 110px;
  overflow: hidden;
}
.leaf { position: absolute; z-index: 0; pointer-events: none; }
.leaf-left { left: -40px; top: 90px; width: 190px; }
.leaf-right { right: -30px; bottom: 20px; width: 200px; transform: scaleX(-1); opacity: .8; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--olive);
  color: #f4efdf;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px 8px 14px;
  border-radius: 40px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.badge svg { color: #e9d9ad; }
.hero-title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.5px;
}
.hero-title .nowrap { white-space: nowrap; }
.hero-sub {
  margin: 22px 0 32px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary svg { transition: transform .2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

/* ---------- Hero trust row ---------- */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fbf4ec;
  margin-left: -10px;
  box-shadow: 0 4px 10px -4px rgba(90,78,52,.5);
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-text { display: flex; flex-direction: column; line-height: 1.3; }
.trust-stars { color: #e0a44a; font-size: 14px; letter-spacing: 1px; }
.trust-text span:last-child { font-size: 13.5px; color: var(--ink-soft); }
.trust-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Hero decorative background ---------- */
.hero-blob {
  position: absolute; border-radius: 50%; z-index: 0;
  filter: blur(60px); pointer-events: none;
}
.blob-1 {
  width: 420px; height: 420px; top: -120px; right: -60px;
  background: radial-gradient(circle, rgba(139,144,109,.38), transparent 70%);
}
.blob-2 {
  width: 360px; height: 360px; bottom: -120px; left: -80px;
  background: radial-gradient(circle, rgba(201,114,47,.16), transparent 70%);
}
.hero-dots {
  position: absolute; z-index: 0; pointer-events: none;
  width: 160px; height: 130px; left: 46%; top: 40px;
  background-image: radial-gradient(rgba(138,116,88,.35) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 75%);
          mask-image: linear-gradient(120deg, #000, transparent 75%);
}
.visual-glow {
  position: absolute; z-index: 0; inset: 6% -4% 8% 2%;
  background: radial-gradient(60% 60% at 55% 45%, rgba(255,253,248,.9), rgba(246,241,231,.2) 70%, transparent);
  filter: blur(10px); border-radius: 40px;
}

/* ---------- Trusted brands marquee ---------- */
.hero-partners { margin-top: 56px; position: relative; z-index: 1; text-align: center; }
.partners-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-mute); margin-bottom: 20px;
}
.partners-label::before, .partners-label::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147,140,121,.5));
}
.partners-label::after { background: linear-gradient(90deg, rgba(147,140,121,.5), transparent); }
.partners-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.partners-track {
  display: flex; align-items: center; gap: 54px; width: max-content;
  animation: marquee 30s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--taupe); opacity: .72;
  font-size: 18px; font-weight: 700; white-space: nowrap;
  transition: color .2s ease, opacity .2s ease;
}
.partner:hover { color: var(--olive); opacity: 1; }
.partner svg { width: 24px; height: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Hero visual (mockups) ---------- */
.hero-visual { position: relative; min-height: 420px; }

.ad-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 7;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0994f 0%, var(--accent) 55%, #b25f24 100%);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  text-align: center;
  font-size: 11.5px; font-weight: 700; line-height: 1.25;
  border: 3px solid #fffdf8;
  box-shadow: 0 16px 30px -10px rgba(201, 114, 47, .85), 0 0 0 1px rgba(201,114,47,.15);
  animation: floaty 4s ease-in-out infinite;
}
.ad-badge svg { filter: drop-shadow(0 2px 3px rgba(120,60,20,.4)); }
/* attention-grabbing pulsing rings */
.ad-badge::before,
.ad-badge::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(201,114,47,.55);
  pointer-events: none;
  animation: ad-ring 2.4s ease-out infinite;
}
.ad-badge::after { animation-delay: 1.2s; }
@keyframes ad-ring {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.45); opacity: 0; }
}
.ad-badge-text { display: block; }
.ad-badge-text strong { font-size: 14px; font-weight: 800; letter-spacing: .2px; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }

/* ---------- Floating info cards ---------- */
.float-card {
  position: absolute;
  z-index: 6;
  background: rgba(255,253,248,.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  box-shadow: 0 20px 40px -22px rgba(90,78,52,.6);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}
.fc-ai {
  top: 40px; left: -34px;
  animation: floaty 4.5s ease-in-out infinite;
}
.fc-ai-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #8b906d, #6f7452);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.fc-ai strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.fc-bar { display: block; width: 96px; height: 5px; border-radius: 4px; background: #e8ddc9; margin-top: 5px; overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--olive), var(--accent-soft)); animation: loadbar 2.6s ease-in-out infinite; }
@keyframes loadbar { 0%{ width: 15%;} 50%{ width: 85%;} 100%{ width: 15%;} }

.fc-sales {
  bottom: 152px; left: -40px;
  animation: floaty 5.2s ease-in-out infinite .3s;
}
.fc-sales-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(201,114,47,.14); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.fc-label { font-size: 11px; color: var(--ink-mute); }
.fc-sales strong { display: block; font-size: 17px; color: var(--ink); font-weight: 700; }
.fc-sales strong span { color: #4f9d5b; font-size: 13px; }

.fc-review {
  bottom: 6px; right: 24px;
  flex-direction: column; align-items: flex-start; gap: 3px;
  animation: floaty 4.8s ease-in-out infinite .6s;
}
.fc-stars { color: #e0a44a; font-size: 13px; letter-spacing: 1px; }
.fc-review-text { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.fc-order {
  bottom: 2px; left: -26px;
  animation: floaty 5.6s ease-in-out infinite .9s;
}
.fc-order-icon {
  position: relative;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(111,116,82,.14); color: var(--olive);
  display: flex; align-items: center; justify-content: center;
}
.fc-dot {
  position: absolute; top: -3px; right: -3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #d9573f; border: 2px solid #fffdf8;
  animation: dotpulse 1.6s ease-in-out infinite;
}
@keyframes dotpulse { 0%,100%{ transform: scale(1); opacity: 1; } 50%{ transform: scale(1.3); opacity: .65; } }
.fc-order strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.fc-order-sub {
  display: block; font-size: 11px; color: var(--ink-mute);
  transition: opacity .25s ease, transform .25s ease;
}
.fc-order-sub.swap { opacity: 0; transform: translateY(5px); }
.fc-order-icon.ping { animation: order-ping .55s ease; }
@keyframes order-ping {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.15) rotate(-6deg); }
  70% { transform: scale(.98) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ============================================================
   Cute AI buddy mascot
   ============================================================ */
/* fixed floating buddies container (bottom-right) */
.ai-buddies {
  position: fixed;
  right: 22px; bottom: 20px;
  z-index: 90;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end;
}
.buddy-row { display: flex; align-items: flex-end; gap: 4px; }
.ai-buddy {
  position: relative;
  width: 88px;
  display: flex; flex-direction: column; align-items: center;
}
.ai-svg { display: block; overflow: visible; width: 100%; height: auto; }
.ai-body { position: relative; }
/* playful hop + lean toward each other */
.buddy-viw .ai-body { animation: hop-lean-viw 1.5s ease-in-out infinite; }
.buddy-my  .ai-body { animation: hop-lean-my 1.4s ease-in-out infinite .15s; }
@keyframes hop-lean-viw {
  0%,100% { transform: translateY(0) rotate(4deg); }
  30%     { transform: translateY(-10px) rotate(9deg); }
  60%     { transform: translateY(-3px) rotate(5deg); }
}
@keyframes hop-lean-my {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  30%     { transform: translateY(-10px) rotate(-9deg); }
  60%     { transform: translateY(-3px) rotate(-5deg); }
}
/* periodically run toward each other */
.buddy-viw { animation: scoot-viw 5.5s ease-in-out infinite; }
.buddy-my  { animation: scoot-my 5.5s ease-in-out infinite; }
@keyframes scoot-viw {
  0%,22%,78%,100% { transform: translateX(0); }
  40%,60%         { transform: translateX(13px); }
}
@keyframes scoot-my {
  0%,22%,78%,100% { transform: translateX(0); }
  40%,60%         { transform: translateX(-13px); }
}

/* name tag */
.buddy-name {
  margin-top: 2px;
  font-size: 12px; font-weight: 700;
  padding: 2px 12px; border-radius: 20px;
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(90,78,52,.7);
}
.name-my { background: var(--olive); }
.name-viw { background: var(--brown); }
@keyframes buddy-float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-12px) rotate(2deg); }
}
.ai-svg { display: block; overflow: visible; }

/* soft glow halo behind buddy */
.ai-glow {
  position: absolute; inset: 4px 8px 18px 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,114,47,.35), rgba(139,144,109,.18) 55%, transparent 72%);
  filter: blur(10px);
  animation: glow-pulse 3s ease-in-out infinite;
  z-index: -1;
}
@keyframes glow-pulse { 0%,100%{ opacity:.55; transform: scale(1);} 50%{ opacity:.95; transform: scale(1.12);} }

/* blinking eyes */
.ai-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.1); }
}
/* antenna glow */
.ai-antenna { transform-box: fill-box; transform-origin: center; animation: antenna 2.4s ease-in-out infinite; }
@keyframes antenna { 0%,100%{ opacity:.6; r:5;} 50%{ opacity:1; r:6.2;} }
/* waving arm */
.ai-arm-l { transform-box: fill-box; transform-origin: right center; animation: wave 2.2s ease-in-out infinite; }
@keyframes wave { 0%,100%{ transform: rotate(0);} 25%{ transform: rotate(-26deg);} 60%{ transform: rotate(6deg);} }

/* orbiting sparkles */
.sparkle {
  position: absolute; width: 12px; height: 12px; z-index: 8;
  background:
    linear-gradient(currentColor,currentColor) center/2.5px 100% no-repeat,
    linear-gradient(currentColor,currentColor) center/100% 2.5px no-repeat;
  color: var(--accent);
  border-radius: 2px;
}
.sparkle::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle, currentColor 1.5px, transparent 2px);
}
.sparkle.s1 { top: 14px; right: 4px; color: var(--accent); animation: twinkle 2.2s ease-in-out infinite; }
.sparkle.s2 { top: 40px; left: -6px; width: 9px; height: 9px; color: var(--olive-soft); animation: twinkle 2.8s ease-in-out infinite .5s; }
.sparkle.s3 { bottom: 26px; right: -4px; width: 8px; height: 8px; color: #d9b06a; animation: twinkle 2.5s ease-in-out infinite 1s; }
@keyframes twinkle { 0%,100%{ transform: scale(.5) rotate(0); opacity:.3;} 50%{ transform: scale(1) rotate(45deg); opacity:1;} }

/* per-buddy speech bubble (appears/disappears in turn) */
.ai-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  right: -8px;
  z-index: 3;
  min-width: 116px; max-width: 205px;
  background: rgba(255,253,248,.98);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 16px 34px -18px rgba(90,78,52,.6);
  border-radius: 16px 16px 4px 16px;
  padding: 8px 13px;
  text-align: center;
  white-space: normal;
  opacity: 0;
  transform: translateY(8px) scale(.8);
  transform-origin: bottom right;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.3,1.5);
  pointer-events: none;
}
.ai-bubble.show { opacity: 1; transform: translateY(0) scale(1); }
.ai-bubble::after {
  content:""; position:absolute; right: 20px; bottom: -7px;
  width: 12px; height: 12px; background: inherit;
  border-right: 1px solid rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.85);
  transform: rotate(45deg);
}
.ai-bubble-text { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.buddy-viw .ai-bubble-text { color: #8a5a37; }
.buddy-my .ai-bubble-text { color: var(--olive-dark); }
/* วิว glow variant */
.glow-viw {
  background: radial-gradient(circle, rgba(166,124,82,.4), rgba(111,116,82,.18) 55%, transparent 72%) !important;
}
.ai-bubble-text { font-size: 12.5px; font-weight: 600; color: var(--olive-dark); }
.ai-bubble.done .ai-bubble-text { color: #4f9d5b; }
.ai-typing { display: inline-flex; gap: 3px; align-items: center; }
.ai-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: typing 1.2s ease-in-out infinite;
}
.ai-typing i:nth-child(2){ animation-delay: .2s; }
.ai-typing i:nth-child(3){ animation-delay: .4s; }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.4;} 30%{ transform: translateY(-4px); opacity:1;} }
.ai-typing.hide { display: none; }
.ai-check { color: #4f9d5b; font-weight: 700; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .ai-body, .ai-bubble, .ai-eyes, .ai-antenna, .ai-arm-l, .sparkle, .ai-glow,
  .buddy-viw, .buddy-my, .partners-track,
  .ad-badge, .ad-badge::before, .ad-badge::after, .float-card, .fc-bar i, .fc-dot { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-badge::before, .ad-badge::after { display: none; }
}

/* Laptop */
.laptop { position: relative; width: 88%; margin-left: 0; z-index: 2; }
.laptop-screen {
  background: #1f1d18;
  border-radius: 16px 16px 4px 4px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.laptop-base {
  height: 16px;
  background: linear-gradient(#d9cfba, #c3b79a);
  border-radius: 0 0 14px 14px;
  margin: 0 -6%;
  position: relative;
}
.laptop-base::after {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 6px; background: rgba(0,0,0,.12); border-radius: 0 0 8px 8px;
}

/* Mini page inside laptop */
.mini-page {
  background: var(--bg-1);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
}
.mini-browserbar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: #ece3d3;
}
.tl-dot { width: 8px; height: 8px; border-radius: 50%; }
.tl-dot.r { background: #d98b6f; }
.tl-dot.y { background: #dcc079; }
.tl-dot.g { background: #a9c07f; }
.url-pill {
  margin-left: 8px; flex: 1;
  background: #fbf6ec; color: var(--ink-mute);
  font-size: 8px; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #ece3d3;
}
.mini-logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--olive); font-size: 12px; }
.mini-logo.sm { font-size: 10px; }
.mini-topnav { font-size: 8px; color: var(--ink-mute); }
.mini-body { flex: 1; display: grid; grid-template-columns: 70px 1fr; }
.mini-side {
  background: #fff; border-right: 1px solid #ece3d3;
  padding: 12px 8px; display: flex; flex-direction: column; gap: 10px;
}
.side-item { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 6px; }
.side-item.active { background: #f1ece0; }
.mini-side .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--sand); flex: none; }
.side-item.active .dot { background: var(--olive); }
.mini-side .line { width: 32px; height: 5px; border-radius: 3px; background: #e8ddc9; }
.side-item.active .line { background: #c7cbae; }
.mini-content {
  position: relative;
  background: linear-gradient(120deg, #efe7d6, #e6dcc6);
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.mini-text { flex: 0 0 46%; }
.mini-tag {
  display: inline-block; background: rgba(111,116,82,.14); color: var(--olive-dark);
  font-size: 7px; font-weight: 600; padding: 3px 8px; border-radius: 20px; margin-bottom: 6px;
}
.mini-tag.sm { font-size: 8px; padding: 3px 9px; margin-bottom: 6px; }
.mini-text h3 { font-size: 15px; color: #4a4636; line-height: 1.2; }
.mini-text p { font-size: 8px; color: var(--ink-soft); margin: 5px 0 8px; }
.mini-btn, .p-btn, .mini-btn {
  display: inline-block; background: var(--olive); color: #fff;
  font-size: 8px; padding: 4px 10px; border-radius: 20px;
}
.mini-product {
  position: relative; flex: 1;
  height: 100%; border-radius: 10px; overflow: hidden;
  min-height: 96px;
}
.mini-product img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-price {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(255,253,248,.92); color: var(--accent);
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  box-shadow: 0 4px 10px -5px rgba(0,0,0,.4);
}
.mini-features {
  display: flex; justify-content: space-around; gap: 6px;
  padding: 6px 12px; background: #fff; border-top: 1px solid #ece3d3;
}
.mini-features span { width: 30px; height: 6px; background: #eaddc7; border-radius: 4px; }

/* Phone */
.phone {
  position: absolute;
  right: -6px; bottom: -30px;
  width: 168px;
  background: #1f1d18;
  border-radius: 26px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 4;
}
.phone-notch {
  width: 52px; height: 14px; background: #1f1d18; border-radius: 0 0 10px 10px;
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3;
}
.phone-screen {
  background: linear-gradient(160deg, #efe7d6, #e5dbc4);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 300px;
}
.p-topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; background:#fff; }
.p-menu { color: var(--ink-soft); font-size: 14px; }
.p-hero { padding: 14px; }
.p-hero h4 { font-size: 16px; color: #4a4636; line-height: 1.15; }
.p-hero p { font-size: 9px; color: var(--ink-soft); margin: 4px 0 8px; }
.p-btn { font-size: 9px; }
.p-product { padding: 4px 12px 12px; }
.p-product img { width: 100%; height: 92px; object-fit: cover; border-radius: 10px; display: block; }
.p-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 8px; background: #fff; }
.p-tabbar span { width: 16px; height: 16px; border-radius: 5px; background: #eaddc4; }

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features { margin-top: -60px; position: relative; z-index: 3; }
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
  overflow: hidden;
}
/* gradient top accent line */
.feature-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--olive), var(--taupe), var(--accent-soft), var(--olive));
  background-size: 200% 100%;
  animation: sheen 6s linear infinite;
  opacity: .85;
}
@keyframes sheen { to { background-position: 200% 0; } }

.feature {
  text-align: center;
  padding: 18px 14px 16px;
  border-right: 1px solid #efe6d4;
  border-radius: 16px;
  position: relative;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
  /* entrance */
  opacity: 0;
  transform: translateY(18px);
}
.features.in-view .feature {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.25,1),
              background .3s ease, box-shadow .3s ease;
}
.features.in-view .feature:nth-child(1) { transition-delay: .05s; }
.features.in-view .feature:nth-child(2) { transition-delay: .15s; }
.features.in-view .feature:nth-child(3) { transition-delay: .25s; }
.features.in-view .feature:nth-child(4) { transition-delay: .35s; }
.features.in-view .feature:nth-child(5) { transition-delay: .45s; }
.feature:last-child { border-right: none; }

/* faint step number as detail */
.feature::after {
  counter-increment: feat;
  content: "0" counter(feat);
  position: absolute; top: 8px; right: 14px;
  font-size: 22px; font-weight: 800;
  color: var(--olive);
  opacity: .08;
  letter-spacing: -1px;
  transition: opacity .3s ease, color .3s ease;
}
.feature-card { counter-reset: feat; }

.feature:hover {
  transform: translateY(-8px);
  background: linear-gradient(180deg, #fffdf8, var(--card-soft));
  box-shadow: 0 22px 44px -26px rgba(90,78,52,.55);
  border-right-color: transparent;
}
.feature:hover::after { opacity: .22; color: var(--accent); }

.feature-icon {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f3ecdf, #e7dcc7);
  color: var(--olive);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), background .35s ease, color .35s ease, box-shadow .35s ease;
}
/* glowing ring */
.feature-icon::before {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 22px;
  border: 1.5px solid transparent;
  transition: border-color .35s ease, transform .35s ease;
}
.feature:hover .feature-icon {
  background: linear-gradient(145deg, var(--olive-soft), var(--olive));
  color: #fff;
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  box-shadow: 0 16px 26px -12px rgba(111,116,82,.75);
}
.feature:hover .feature-icon::before {
  border-color: rgba(111,116,82,.35);
  transform: scale(1.04);
}
.feature h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; font-weight: 600; transition: color .3s ease; }
.feature:hover h3 { color: var(--olive-dark); }
.feature p { font-size: 13px; color: var(--ink-mute); font-weight: 300; line-height: 1.45; }
/* animated underline detail */
.feature h3::after {
  content: "";
  display: block; width: 0; height: 2px; margin: 7px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--olive), var(--accent-soft));
  transition: width .35s ease;
}
.feature:hover h3::after { width: 30px; }

@media (prefers-reduced-motion: reduce) {
  .feature { opacity: 1; transform: none; }
  .feature-card::before { animation: none; }
}

/* ============================================================
   SHOWCASE (stats + examples)
   ============================================================ */
.showcase { padding: 80px 0 90px; }
.showcase-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

/* Stats card */
.stats-card {
  background: var(--card-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: sticky;
  top: 96px;
}
.stats-card h2 {
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 28px;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-icon { color: var(--brown); margin-bottom: 8px; }
.stat strong { font-size: 28px; color: var(--accent); font-weight: 700; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* Examples */
.examples-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.examples-head h2 { font-size: 24px; font-weight: 600; color: var(--ink); }
.see-all { color: var(--ink-soft); font-size: 14px; transition: color .15s; }
.see-all:hover { color: var(--olive); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  border: none; cursor: pointer; font-family: inherit;
  background: var(--card-soft);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 30px;
  transition: .18s;
}
.chip:hover { background: #e6dcc7; }
.chip.active { background: var(--olive); color: #fff; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 20px;
}
/* home teaser: 3 wide cards on desktop, balanced 2x2 on mobile */
.examples .cards-teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-teaser .only-mobile { display: none; }
@media (max-width: 900px) {
  .examples .cards-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-teaser .only-mobile { display: block; }
}
.p-card {
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(179,164,136,.14);
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-thumb {
  height: 158px;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative; overflow: hidden;
  background: var(--card-soft);
}
.p-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.p-card:hover .p-thumb img { transform: scale(1.07); }
.p-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255,253,248,.92); backdrop-filter: blur(4px);
  color: var(--olive-dark); font-size: 11px; font-weight: 600;
  padding: 4px 11px; border-radius: 20px;
  box-shadow: 0 4px 10px -5px rgba(90,78,52,.5);
}
.p-badge.badge-estate { color: #fff; background: rgba(138,116,88,.9); }
.p-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(63,61,51,0) 30%, rgba(63,61,51,.55));
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16px;
  opacity: 0; transition: opacity .25s ease;
}
.p-card:hover .p-overlay { opacity: 1; }
.p-view {
  background: #fff; color: var(--olive-dark);
  font-size: 12.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 30px;
  transform: translateY(8px); transition: transform .25s ease;
  box-shadow: var(--shadow-sm);
}
.p-card:hover .p-view { transform: translateY(0); }

.p-info { padding: 0 4px 4px; }
.p-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.p-rating .stars { color: #e0a44a; font-size: 12px; letter-spacing: .5px; }
.p-rating em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink); }
.p-rating small { font-size: 11px; color: var(--ink-mute); }
.p-card h4 { font-size: 15.5px; color: var(--ink); line-height: 1.3; margin-bottom: 4px; font-weight: 600; }
.p-card p { font-size: 12px; color: var(--ink-mute); margin-bottom: 12px; font-weight: 300; min-height: 17px; }
.p-foot { display: flex; align-items: center; gap: 8px; }
.p-price { display: none; }
.p-link {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; color: var(--olive); font-weight: 600;
  background: var(--card-soft);
  padding: 9px 15px; border-radius: 30px;
  width: 100%; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: .18s;
}
.p-link::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}
.p-link:hover { background: var(--olive); color: #fff; }

/* ============================================================
   PREVIEW MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility .28s ease;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(52,47,35,.55);
  backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 860px;
  max-height: 88vh;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 40px 90px -30px rgba(52,47,35,.7);
  transform: translateY(18px) scale(.97);
  transition: transform .32s cubic-bezier(.2,.8,.25,1);
}
.modal.open .modal-dialog { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,253,248,.9); color: var(--ink);
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: .18s;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-media { position: relative; background: var(--card-soft); min-height: 340px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,253,248,.92); color: var(--olive-dark);
  font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.modal-panel { display: flex; flex-direction: column; min-height: 0; }
.modal-browser {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: #ece3d3;
}
.modal-browser .url-pill {
  margin-left: 8px; flex: 1;
  background: #fbf6ec; color: var(--ink-mute);
  font-size: 11px; padding: 5px 12px; border-radius: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal-scroll { padding: 22px 26px; overflow-y: auto; flex: 1; }
.modal-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.modal-rating .stars { color: #e0a44a; font-size: 14px; }
.modal-rating em { font-style: normal; font-weight: 600; font-size: 13px; }
.modal-rating small { font-size: 12px; color: var(--ink-mute); }
.modal-scroll h3 { font-size: 24px; color: var(--ink); font-weight: 700; line-height: 1.25; }
.modal-price { font-size: 26px; font-weight: 800; color: var(--accent); margin: 10px 0 14px; }
.modal-scroll p { font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.7; margin-bottom: 16px; }
.modal-features { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.modal-features li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink);
}
.modal-features li::before {
  content: "✓"; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(111,116,82,.15); color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.modal-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-cta .btn { flex: 1; justify-content: center; }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 26px; border-top: 1px solid #efe6d4;
  background: var(--card-soft);
  font-size: 12.5px; color: var(--ink-soft);
}
.modal-foot strong { color: var(--olive); }
.foot-cta { color: var(--olive); font-weight: 600; white-space: nowrap; }
.foot-cta:hover { color: var(--accent); }
body.modal-lock { overflow: hidden; }

/* ============================================================
   FEATURE DETAIL POPUP
   ============================================================ */
.feature { cursor: pointer; }
.fmodal {
  position: fixed; inset: 0; z-index: 105;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility .28s ease;
}
.fmodal.open { visibility: visible; opacity: 1; }
.fmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(52,47,35,.5);
  backdrop-filter: blur(4px);
}
.fmodal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(52,47,35,.7);
  transform: translateY(20px) scale(.94);
  opacity: .5;
  transition: transform .38s cubic-bezier(.2,.85,.25,1.1), opacity .3s ease;
}
.fmodal.open .fmodal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.fmodal-close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,253,248,.85); color: var(--ink);
  font-size: 21px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.fmodal-close:hover { background: #fff; transform: rotate(90deg); }

.fmodal-banner {
  position: relative;
  height: 130px;
  background:
    radial-gradient(120px 90px at 78% 30%, rgba(201,114,47,.18), transparent 70%),
    linear-gradient(135deg, #eef0e2, #e3dcc8);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fmodal-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(138,116,88,.28) 1.4px, transparent 1.5px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  opacity: .5;
}
.fmodal-step {
  position: absolute; top: 14px; left: 20px;
  font-size: 40px; font-weight: 800; letter-spacing: -2px;
  color: var(--olive); opacity: .16;
}
.fmodal-icon {
  position: relative;
  width: 76px; height: 76px; border-radius: 22px;
  background: linear-gradient(145deg, var(--olive-soft), var(--olive));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 30px -14px rgba(111,116,82,.8);
  animation: fm-pop .5s cubic-bezier(.2,.9,.3,1.5) both .1s;
}
.fmodal-icon svg { width: 34px; height: 34px; }
@keyframes fm-pop { 0%{ transform: scale(.4) rotate(-15deg); opacity: 0; } 100%{ transform: scale(1) rotate(0); opacity: 1; } }

.fmodal-body { padding: 24px 28px 28px; }
.fmodal-body h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.fmodal-body p { font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.7; margin-bottom: 18px; }
.fmodal-list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.fmodal-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink);
  opacity: 0; transform: translateX(-8px);
  animation: fm-item .4s ease forwards;
}
.fmodal-list li:nth-child(1){ animation-delay: .12s; }
.fmodal-list li:nth-child(2){ animation-delay: .19s; }
.fmodal-list li:nth-child(3){ animation-delay: .26s; }
.fmodal-list li:nth-child(4){ animation-delay: .33s; }
@keyframes fm-item { to { opacity: 1; transform: translateX(0); } }
.fmodal-list li::before {
  content: "✓"; flex: none; margin-top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(111,116,82,.15); color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.fmodal-cta { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .fmodal-icon, .fmodal-list li { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #fbf4ec;
  border-top: 1px solid rgba(179,164,136,.2);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--ink-soft); font-size: 14px; margin-top: 14px; max-width: 300px; font-weight: 300; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h5 { font-size: 15px; color: var(--ink); margin-bottom: 14px; font-weight: 600; }
.footer-cols a { display: block; color: var(--ink-soft); font-size: 14px; padding: 5px 0; font-weight: 300; transition: color .15s; }
.footer-cols a:hover { color: var(--olive); }
.footer-bottom {
  border-top: 1px solid rgba(179,164,136,.25);
  padding: 20px 24px; text-align: center;
  color: var(--ink-mute); font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .showcase-inner { grid-template-columns: 1fr; }
  .stats-card { position: static; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fbf4ec; padding: 16px 24px;
    border-bottom: 1px solid rgba(179,164,136,.2);
  }
  .site-header.open .header-actions {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    padding: 0 24px 18px; background: #fbf4ec;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { min-height: 360px; max-width: 520px; margin: 0 auto; }
  .fc-ai { left: 0; }
  .fc-sales { left: -10px; }
  .hero-dots { display: none; }
  .feature-card { grid-template-columns: repeat(2, 1fr); }
  .feature { border-right: none; border-bottom: 1px solid #efe6d4; padding-bottom: 18px; }
  .feature:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .modal-dialog { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal-media { min-height: 220px; height: 220px; }
  .modal-scroll { max-height: none; overflow: visible; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .feature-card { grid-template-columns: 1fr; }
  .feature { border-bottom: 1px solid #efe6d4; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero { padding: 44px 0 60px; }
  .hero-inner { gap: 40px; }

  /* single clean device on mobile — laptop centered, hide overlapping phone */
  .hero-visual {
    min-height: 0;
    max-width: 340px;
    margin: 20px auto 34px;
  }
  .laptop { width: 100%; }
  .phone { display: none; }

  /* ad badge: top-right corner, vibrant + no collision */
  .ad-badge {
    width: 88px; height: 88px;
    top: -18px; right: -6px; left: auto;
    font-size: 9.5px; gap: 3px; border-width: 2.5px;
  }
  .ad-badge svg { width: 18px; height: 18px; }
  .ad-badge-text strong { font-size: 11.5px; }

  .fc-ai, .fc-sales, .fc-order { display: none; }
  .fc-review {
    right: -6px; bottom: -22px; left: auto;
    padding: 9px 13px;
  }
  .hero-trust { margin-top: 24px; }
  .ai-buddies { right: 10px; bottom: 10px; transform: scale(.72); transform-origin: bottom right; }
}

/* ============================================================
   SUB-PAGE COMPONENTS (services / portfolio / pricing / blog / about)
   ============================================================ */

/* ---------- Page hero + breadcrumb ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 15% -20%, #fbf7ee 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
  padding: 46px 0 58px;
  border-bottom: 1px solid rgba(179,164,136,.18);
}
.page-hero .hero-blob { z-index: 0; }
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-mute); margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-soft); transition: color .15s; }
.breadcrumb a:hover { color: var(--olive); }
.breadcrumb span[aria-current] { color: var(--olive); font-weight: 500; }
.breadcrumb .sep { opacity: .5; }
.page-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(111,116,82,.12); color: var(--olive-dark);
  font-size: 13px; font-weight: 600;
  padding: 6px 15px; border-radius: 40px; margin-bottom: 16px;
}
.page-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2; font-weight: 700; color: var(--ink);
  letter-spacing: -.5px;
}
.page-lead {
  margin-top: 16px; font-size: 17px; color: var(--ink-soft); font-weight: 300;
  max-width: 620px;
}

/* ---------- Generic section wrapper ---------- */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, #fbf6ec, var(--bg-2)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--ink); line-height: 1.3; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-weight: 300; font-size: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in-view { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.25,1); }
.reveal.d1.in-view { transition-delay: .08s; }
.reveal.d2.in-view { transition-delay: .16s; }
.reveal.d3.in-view { transition-delay: .24s; }
.reveal.d4.in-view { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Services detail cards ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.svc-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(179,164,136,.16); box-shadow: var(--shadow-sm);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card .svc-step {
  position: absolute; top: 18px; right: 22px;
  font-size: 34px; font-weight: 800; color: var(--olive); opacity: .1; letter-spacing: -2px;
}
.svc-ico {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(145deg, var(--olive-soft), var(--olive)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 16px 26px -14px rgba(111,116,82,.7);
}
.svc-card h3 { font-size: 20px; color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.svc-card p { font-size: 14.5px; color: var(--ink-soft); font-weight: 300; line-height: 1.7; margin-bottom: 16px; }
.svc-list { list-style: none; display: grid; gap: 9px; }
.svc-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.svc-list li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(111,116,82,.15); color: var(--olive);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid rgba(179,164,136,.16); padding: 26px 22px; text-align: center;
  position: relative;
}
.step-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent)); color: #fff;
  font-weight: 800; font-size: 18px; box-shadow: 0 12px 22px -12px rgba(201,114,47,.7);
}
.step-card h4 { font-size: 16px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; color: var(--ink-mute); font-weight: 300; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(179,164,136,.18); box-shadow: var(--shadow-sm);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured {
  border: 1.5px solid var(--olive);
  background: linear-gradient(180deg, #fffdf8, #f6f1e4);
  box-shadow: var(--shadow);
}
.price-tag-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 30px; box-shadow: 0 10px 20px -10px rgba(201,114,47,.8);
  white-space: nowrap;
}
.price-card h3 { font-size: 20px; color: var(--ink); font-weight: 700; }
.price-card .price-sub { font-size: 13.5px; color: var(--ink-mute); margin-top: 4px; margin-bottom: 18px; font-weight: 300; }
.price-amt { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.price-amt .amt { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.price-amt .per { font-size: 14px; color: var(--ink-mute); }
.price-list { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.price-list li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(111,116,82,.15); color: var(--olive);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.price-list li.off { color: var(--ink-mute); }
.price-list li.off::before { content: "–"; background: #eee3d0; color: var(--ink-mute); }
.price-card .btn { justify-content: center; width: 100%; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid rgba(179,164,136,.18);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: none; border: none; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--olive); transition: transform .25s ease; flex: none; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); font-weight: 300; line-height: 1.7; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid rgba(179,164,136,.16); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,253,248,.92); color: var(--olive-dark);
  font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  box-shadow: 0 4px 10px -5px rgba(90,78,52,.5);
}
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 12px; color: var(--ink-mute); margin-bottom: 8px; }
.post-body h3 { font-size: 17px; color: var(--ink); font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.post-body p { font-size: 13.5px; color: var(--ink-soft); font-weight: 300; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-more { color: var(--olive); font-weight: 600; font-size: 14px; }
.post-more:hover { color: var(--accent); }

/* featured blog post */
.post-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(179,164,136,.18); box-shadow: var(--shadow-sm); margin-bottom: 34px;
}
.post-feature .post-thumb { aspect-ratio: auto; height: 100%; min-height: 280px; }
.post-feature .pf-body { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.post-feature .pf-body h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); font-weight: 700; line-height: 1.3; margin: 10px 0 12px; }
.post-feature .pf-body p { color: var(--ink-soft); font-weight: 300; font-size: 15px; line-height: 1.7; margin-bottom: 20px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.about-copy h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.about-copy p { color: var(--ink-soft); font-weight: 300; font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.about-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
  background: linear-gradient(150deg, #e9e2d0, #d9cfba);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid rgba(179,164,136,.16); padding: 28px 24px; text-align: center;
}
.value-ico {
  width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 16px;
  background: linear-gradient(145deg, #f3ecdf, #e7dcc7); color: var(--olive);
  display: flex; align-items: center; justify-content: center;
}
.value-card h3 { font-size: 17px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--ink-mute); font-weight: 300; line-height: 1.6; }

/* team (มาสคอต วิว & มาร์ย) */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 720px; margin: 0 auto; }
.team-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(179,164,136,.16); box-shadow: var(--shadow-sm);
  padding: 30px 28px; display: flex; gap: 18px; align-items: center;
}
.team-avatar { flex: none; width: 92px; }
.team-avatar svg { width: 100%; height: auto; display: block; overflow: visible; }
.team-card h3 { font-size: 20px; color: var(--ink); font-weight: 700; }
.team-role { font-size: 13px; font-weight: 600; margin: 2px 0 8px; }
.team-role.viw { color: #8a5a37; }
.team-role.my { color: var(--olive-dark); }
.team-card p { font-size: 13.5px; color: var(--ink-soft); font-weight: 300; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { padding: 30px 0 84px; }
.cta-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--olive), var(--olive-dark));
  border-radius: var(--radius); padding: 52px 40px; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(300px 200px at 85% 10%, rgba(201,114,47,.4), transparent 70%),
    radial-gradient(260px 180px at 10% 100%, rgba(255,255,255,.14), transparent 70%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,.85); font-weight: 300; font-size: 16px; margin-bottom: 26px; }
.cta-inner .btn-primary { background: #fff; color: var(--olive-dark); }
.cta-inner .btn-primary:hover { background: #fbf4ec; }
.cta-inner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta-inner .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Portfolio page tweaks ---------- */
.portfolio-section { padding: 56px 0 20px; }
.portfolio-section .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- Sub-page responsive ---------- */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .post-thumb { min-height: 220px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; text-align: center; }
  .cta-inner { padding: 40px 24px; }
  .section { padding: 54px 0; }
}

/* ============================================================
   LINE add-friend popup (?channel=line)
   ============================================================ */
.line-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.line-modal.open { visibility: visible; opacity: 1; }
.line-backdrop {
  position: absolute; inset: 0;
  background: rgba(52,47,35,.6);
  backdrop-filter: blur(5px);
}
.line-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 90px -28px rgba(52,47,35,.75);
  transform: translateY(24px) scale(.94);
  transition: transform .38s cubic-bezier(.2,.9,.25,1.1);
}
.line-modal.open .line-dialog { transform: translateY(0) scale(1); }
.line-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--ink);
  font-size: 21px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: .18s;
}
.line-close:hover { background: #fff; transform: rotate(90deg); }

.line-hero {
  position: relative; overflow: hidden;
  padding: 26px 24px 18px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(6,199,85,.16), transparent 60%),
    linear-gradient(160deg, #f6f1e7 0%, #efe7d8 100%);
}
.line-greet {
  display: inline-block;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 18px;
  box-shadow: var(--shadow-sm);
  position: relative; margin-bottom: 6px;
  animation: line-pop .5s .2s both;
}
.line-greet::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.line-mascots { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4px; }
.line-buddy { width: 96px; }
/* entrance: run in from the sides, then keep running back & forth forever */
.line-buddy:first-child { animation: line-run-l .7s .15s both, run-l 1.5s .9s ease-in-out infinite; }
.line-buddy:last-child { animation: line-run-r .7s .15s both, run-r 1.5s 1.05s ease-in-out infinite; }
/* bouncy hop while running */
.line-buddy:first-child svg { animation: buddy-jig-l 1.05s .85s ease-in-out infinite; }
.line-buddy:last-child svg { animation: buddy-jig-r 1.05s 1s ease-in-out infinite; }
.line-buddy svg { width: 100%; height: auto; display: block; transform-origin: 50% 88%; filter: drop-shadow(0 10px 14px rgba(90,78,52,.22)); }
/* blinking eyes (cute) */
.line-eyes { transform-box: fill-box; transform-origin: center; animation: blink 3.4s infinite; }
.line-buddy:last-child .line-eyes { animation-delay: 1.6s; }
/* little hearts of joy popping above them */
.line-mascots::before, .line-mascots::after {
  position: absolute; top: 2px; font-size: 16px; opacity: 0; pointer-events: none;
  animation: joy-pop 2.4s ease-in-out infinite;
}
.line-mascots::before { content: "💚"; left: 20%; }
.line-mascots::after { content: "🧡"; right: 20%; animation-delay: 1.2s; }

.line-confetti { position: absolute; width: 9px; height: 9px; border-radius: 2px; opacity: .9; }
.line-confetti.c1 { top: 16px; left: 30px; background: var(--accent); animation: line-fall 2.4s linear infinite; }
.line-confetti.c2 { top: 10px; right: 44px; background: var(--olive); animation: line-fall 2.9s .4s linear infinite; }
.line-confetti.c3 { top: 30px; right: 26px; background: #06C755; animation: line-fall 2.6s .8s linear infinite; }
.line-confetti.c4 { top: 22px; left: 58px; background: var(--taupe); animation: line-fall 3.1s .2s linear infinite; }

.line-body { padding: 20px 26px 26px; text-align: center; }
.line-badge {
  display: inline-block;
  background: rgba(201,114,47,.12); color: var(--accent);
  font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 20px; margin-bottom: 10px;
}
.line-body h3 { font-size: 23px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.line-body > p { font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.65; margin: 8px 0 16px; }
.line-perks { list-style: none; display: grid; gap: 9px; text-align: left; margin-bottom: 20px; }
.line-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink);
}
.line-perks li::before {
  content: "✓"; flex: none;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(6,199,85,.16); color: #06843b;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.line-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 18px;
  background: #06C755; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; border-radius: 16px;
  box-shadow: 0 14px 26px -12px rgba(6,199,85,.7);
  transition: .18s;
}
.line-add-btn:hover { background: #05b34c; transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(6,199,85,.75); }
.line-logo { width: 22px; height: 22px; flex: none; }
.line-later {
  margin-top: 12px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--ink-mute);
  text-decoration: underline; text-underline-offset: 3px;
}
.line-later:hover { color: var(--ink-soft); }

@keyframes line-pop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes line-run-l { from { opacity: 0; transform: translateX(-40px) rotate(-8deg); } to { opacity: 1; transform: translateX(0) rotate(0); } }
@keyframes line-run-r { from { opacity: 0; transform: translateX(40px) rotate(8deg); } to { opacity: 1; transform: translateX(0) rotate(0); } }
@keyframes line-fall { 0% { transform: translateY(-8px) rotate(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(60px) rotate(220deg); opacity: 0; } }
/* running back and forth (playful) */
@keyframes run-l {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(22px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-16px); }
}
@keyframes run-r {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-22px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(16px); }
}
/* joyful dancing / hopping */
@keyframes buddy-jig-l {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  25% { transform: translateY(-15px) rotate(4deg); }
  50% { transform: translateY(0) rotate(-3deg); }
  75% { transform: translateY(-8px) rotate(6deg); }
}
@keyframes buddy-jig-r {
  0%,100% { transform: translateY(0) rotate(5deg); }
  25% { transform: translateY(-15px) rotate(-4deg); }
  50% { transform: translateY(0) rotate(3deg); }
  75% { transform: translateY(-8px) rotate(-6deg); }
}
@keyframes joy-pop {
  0% { opacity: 0; transform: translateY(8px) scale(.5); }
  30% { opacity: .95; transform: translateY(-16px) scale(1); }
  65% { opacity: 0; transform: translateY(-34px) scale(.9); }
  100% { opacity: 0; }
}

@media (max-width: 420px) {
  .line-buddy { width: 82px; }
  .line-body h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .line-buddy:first-child, .line-buddy:last-child,
  .line-buddy:first-child svg, .line-buddy:last-child svg,
  .line-eyes, .line-greet { animation: none; }
  .line-confetti, .line-mascots::before, .line-mascots::after { display: none; }
}
