/* =====================================================================
   Sayyo V3.1 — Apple-grade kinetic foundation (Stage 1)
   Layers on top of v3.css. Loaded after v3.css so selectors override.

   Stage 1 scope:
   - Real SVG/PNG logo in top nav
   - Nav scroll-aware (richer frosted glass + logo shrink)
   - Hero cinematic entrance (phone scale-in, headline mask wipe, aurora fade)
   - Aurora scroll-reactive parallax
   - Cursor 3D tilt on phone mockups
   - Magnetic store badges
   - Best Pick card hover refinement (deeper shadow + cinematic image zoom)
   - prefers-reduced-motion: all kinetic disabled
   ===================================================================== */

/* ─── Nav logo (real PNG) ─── */
.v3-nav-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  outline: none;
}
.v3-nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: height .25s var(--ease);
}

/* Nav scroll-aware enhancement (richer than baseline) */
.v3-nav {
  transition:
    background .25s var(--ease),
    backdrop-filter .25s var(--ease),
    -webkit-backdrop-filter .25s var(--ease),
    border-bottom-color .25s var(--ease),
    box-shadow .25s var(--ease);
}
.v3-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.2) blur(18px);
  -webkit-backdrop-filter: saturate(1.2) blur(18px);
  border-bottom-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.02), 0 8px 24px rgba(10, 10, 10, 0.04);
}
.v3-nav.is-scrolled .v3-nav-logo img {
  height: 36px;
}

/* ─── Hero — cinematic entrance ───
   Delays bumped so phone enters AFTER logo + eyebrow + headline reveal,
   completing the ~2s opening sequence (V3.1 chain).
*/
.v3-hero-phone {
  animation:
    heroPhoneIn 900ms var(--ease) 1100ms backwards,
    floatY 4s var(--ease) 2100ms infinite;
}
@keyframes heroPhoneIn {
  from {
    opacity: 0;
    transform: scale(1.18) translateY(8px);
    filter: drop-shadow(0 60px 100px rgba(10, 10, 10, 0.10));
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 30px 60px rgba(10, 10, 10, 0.18));
  }
}

/* =====================================================================
   V3.1 — Opening sequence (B): logo → eyebrow → headline → sub → badges → phone
   On first paint, elements chain in over ~1.5s for a cinematic intro.
   ===================================================================== */
.v3-nav-logo img {
  animation: openLogo 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes openLogo {
  from { opacity: 0; transform: scale(0.86) translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.v3-hero-left .v3-eyebrow {
  animation: openFadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) 350ms backwards;
}
.v3-hero-sub {
  animation: openFadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 1100ms backwards;
}
.v3-hero-left .dlstack {
  animation: openFadeUp 900ms cubic-bezier(0.22, 1, 0.36, 1) 1300ms backwards;
}
@keyframes openFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* V3.1 — Candidates C / D / E rolled back. Only candidate B (opening sequence) kept. */

/* =====================================================================
   V3.1 — Title color: switch from near-black to brand dark green #063322
   (matches the cat body color — gives the whole site a cohesive forest tint).
   ===================================================================== */
.v3-display,
.v3-hero-left h1,
.v3-way h2,
.v3-picks-head h2,
.v3-trust-head h2,
.v3-inside-head h2,
.v3-cats-head h2,
.v3-card-title,
.v3-comp-head,
.v3-trust-cell h3,
.v3-cat-lbl,
.v3-foot-brand .v3-mark {
  color: #063322;
}
/* Final CTA stays on green background — keep its white headline */
.v3-final h2 { color: #ffffff; }
/* "Sayyo" wordmark dot stays brand green (footer mark already changed) */

/* =====================================================================
   V3.1 — Categories: Awwwards-tier editorial index list
   Replaces the flat 4×2 icon grid with a numbered vertical list inspired
   by Obys / Locomotive project lists. Hover slides in icon + arrow,
   shifts label right, tints background green.
   ===================================================================== */
.v3-cats { padding: 120px 0 140px; }
.v3-cats-head { max-width: 720px; margin-bottom: 56px; }

.v3-cats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.v3-cat-row {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  list-style: none;
}
.v3-cat-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 8px;
  text-decoration: none;
  color: inherit;
  transition: padding 280ms var(--ease);
}
.v3-cat-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 169, 57, 0.05) 28%,
    rgba(0, 169, 57, 0.07) 72%,
    transparent 100%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
  z-index: 0;
}
.v3-cat-link > * { position: relative; z-index: 1; }

.v3-cat-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  flex-shrink: 0;
  width: 52px;
  transition: color 320ms var(--ease), transform 360ms var(--ease);
}
.v3-cat-lbl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 38px);          /* slightly smaller than before */
  letter-spacing: -0.020em;
  line-height: 1.05;
  color: #063322;
  flex: 1;
  text-align: left !important;
  transition: transform 420ms var(--ease), color 320ms var(--ease);
  padding-bottom: 0.06em;
}
[data-lang="ko"] .v3-cat-lbl {
  font-family: var(--font-display-ko);
  letter-spacing: -0.034em;
}
.v3-cat-arrow {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-3);
  width: 32px;
  text-align: right;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 360ms var(--ease), transform 460ms var(--ease), color 320ms var(--ease);
}

/* Hover — only arrow appears, no icon */
.v3-cat-link:hover::before { opacity: 1; }
.v3-cat-link:hover .v3-cat-lbl {
  transform: translateX(10px);
  color: var(--green-d);
}
.v3-cat-link:hover .v3-cat-idx {
  color: var(--green);
}
.v3-cat-link:hover .v3-cat-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--green);
}

/* Mobile — same list pattern, hide arrow, tighten paddings */
@media (max-width: 767px) {
  .v3-cats { padding: 72px 0 88px; }
  .v3-cat-link { padding: 16px 4px; gap: 18px; }
  .v3-cat-idx { width: 36px; font-size: 11px; }
  .v3-cat-lbl { font-size: clamp(20px, 5.5vw, 28px); }
  .v3-cat-arrow { display: none; }
}

/* Reduced motion — keep hover but drop slides */
@media (prefers-reduced-motion: reduce) {
  .v3-cat-row,
  .v3-cat-row *,
  .v3-cat-link,
  .v3-cat-link * {
    transition: none !important;
  }
}

/* =====================================================================
   V3.1 — Inside-the-app phone size cap on mobile
   Match the Way-section phone size (280px max) so the 4 screens don't
   blow up to full width on narrow viewports.
   ===================================================================== */
@media (max-width: 1023px) {
  .v3-inside-phone {
    max-width: 280px;
    margin: 0 auto;
  }
  .v3-inside-cell { align-items: center; }
}
@media (max-width: 640px) {
  .v3-inside-phone { max-width: 280px; }  /* exact match with Way phone */
}

/* =====================================================================
   V3.1 — Hide sticky mobile bottom CTA bar (user requested removal)
   ===================================================================== */
.v3-mobile-bar { display: none !important; }
@media (max-width: 640px) {
  body { padding-bottom: 0 !important; }
}

/* =====================================================================
   V3.1 — Best Picks: "더보기" (See more) CTA below the grid → mweb
   ===================================================================== */
.v3-picks-more {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.v3-picks-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.v3-picks-more a:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.v3-picks-more a::after {
  content: "→";
  font-size: 18px;
  margin-left: 2px;
  transition: transform 0.25s var(--ease);
}
.v3-picks-more a:hover::after {
  transform: translateX(4px);
}

/* =====================================================================
   GLOBAL HEADLINE CLIP RULE — Vietnamese diacritics never get cut.
   Rule: any display headline must have line-height ≥ 1.12 and a bottom
   buffer to absorb descenders (ạ, ọ, ụ, ụ, ụ...). Mask wipes must use
   negative vertical inset so the clip region never crops the glyph box.
   ===================================================================== */
.v3-display,
.v3-hero-left h1,
.v3-way h2,
.v3-picks-head h2,
.v3-trust-head h2,
.v3-inside-head h2,
.v3-cats-head h2,
.v3-final h2 {
  line-height: 1.14;
  padding-bottom: 0.08em;
  overflow: visible;
}
[data-lang="ko"] .v3-display,
[data-lang="ko"] .v3-hero-left h1,
[data-lang="ko"] .v3-way h2,
[data-lang="ko"] .v3-final h2 {
  line-height: 1.20;
  padding-bottom: 0.04em;
}

/* Headline mask-wipe reveal — clip box extends past ascender/descender lines */
.v3-word {
  display: inline-block;
  opacity: 1;
  transform: none;
  clip-path: inset(-18% 0 -28% 0);
  animation: wordMaskIn 600ms var(--ease) backwards;
  padding-bottom: 0.04em;
}
@keyframes wordMaskIn {
  from { clip-path: inset(-18% 100% -28% 0); }
  to   { clip-path: inset(-18% 0 -28% 0); }
}

/* =====================================================================
   V3.1 — Hero phone backdrop glow: 3 green orbs drifting organically
   behind the phone mockup. Subtle but dynamic ambient motion.
   ===================================================================== */
.v3-hero-right {
  position: relative;
  overflow: visible;
}
.v3-hero-phone {
  position: relative;
  z-index: 1;            /* sits above the glow */
}
.v3-phone-glow {
  position: absolute;
  inset: -28% -18%;       /* extends beyond the phone */
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.v3-phone-glow .orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity, filter;
}
/* Orbs cycle through the GREEN ↔ YELLOW band only (no forest / no teal).
   More dynamic version: faster cycles, wider scale & translate ranges,
   more keyframe stops for less-predictable organic drift. */
.v3-phone-glow .orb-1 {
  width: 72%; height: 72%;
  top: 14%; left: 16%;
  background: radial-gradient(circle,
    rgba(60, 220, 100, 0.52) 0%,
    rgba(120, 230, 60, 0.20) 45%,
    transparent 72%);
  animation: phoneOrb1 9s ease-in-out infinite;
}
.v3-phone-glow .orb-2 {
  width: 52%; height: 52%;
  top: 4%; right: 2%;
  background: radial-gradient(circle,
    rgba(200, 230, 50, 0.48) 0%,
    rgba(180, 220, 40, 0.18) 50%,
    transparent 76%);
  animation: phoneOrb2 11s ease-in-out infinite reverse;
}
.v3-phone-glow .orb-3 {
  width: 56%; height: 56%;
  bottom: 2%; left: 6%;
  background: radial-gradient(circle,
    rgba(245, 210, 50, 0.42) 0%,
    rgba(230, 200, 70, 0.14) 55%,
    transparent 78%);
  animation: phoneOrb3 13s ease-in-out infinite;
}

/* Each orb: 5+ keyframe stops, scale 0.75–1.45, translate ±20%,
   blur 46–74px breathing, plus hue cycling within the green↔yellow band. */
@keyframes phoneOrb1 {
  0%   { transform: translate(0, 0)        scale(1);    filter: blur(56px) hue-rotate(  0deg); opacity: 1;    }
  18%  { transform: translate( 14%, -16%)  scale(1.32); filter: blur(70px) hue-rotate(-20deg); opacity: 0.96; }
  36%  { transform: translate(-12%,  10%)  scale(0.78); filter: blur(48px) hue-rotate(-45deg); opacity: 1;    }
  55%  { transform: translate( 18%,  14%)  scale(1.40); filter: blur(72px) hue-rotate(-30deg); opacity: 0.92; }
  72%  { transform: translate(-16%,  -8%)  scale(0.84); filter: blur(50px) hue-rotate( -8deg); opacity: 1;    }
  88%  { transform: translate(  6%, -12%)  scale(1.18); filter: blur(62px) hue-rotate(-25deg); opacity: 0.98; }
  100% { transform: translate(0, 0)        scale(1);    filter: blur(56px) hue-rotate(  0deg); opacity: 1;    }
}
/* orb-2 base is lime (hue ~73°). Negative hue-rotate shifts toward yellow,
   but >-25° would push into orange. We keep range from 0° to +40°
   (positive shifts toward green) so colors stay in the lime↔green band. */
@keyframes phoneOrb2 {
  0%   { transform: translate(0, 0)        scale(1);    filter: blur(52px) hue-rotate(  0deg); opacity: 0.90; }
  20%  { transform: translate(-18%,  14%)  scale(1.42); filter: blur(66px) hue-rotate( 30deg); opacity: 1;    }
  40%  { transform: translate( 12%, -12%)  scale(0.80); filter: blur(46px) hue-rotate(  5deg); opacity: 0.95; }
  60%  { transform: translate(-10%,  18%)  scale(1.28); filter: blur(60px) hue-rotate( 40deg); opacity: 1;    }
  82%  { transform: translate( 16%,   6%)  scale(0.92); filter: blur(54px) hue-rotate( 15deg); opacity: 0.88; }
  100% { transform: translate(0, 0)        scale(1);    filter: blur(52px) hue-rotate(  0deg); opacity: 0.90; }
}
/* orb-3 base is golden yellow (hue ~51°). Negative would dip into orange/red,
   so we ONLY rotate in the positive direction (toward lime → green). */
@keyframes phoneOrb3 {
  0%   { transform: translate(0, 0)        scale(1);    filter: blur(60px) hue-rotate(  0deg); opacity: 0.92; }
  22%  { transform: translate( 16%, -14%)  scale(1.36); filter: blur(74px) hue-rotate( 35deg); opacity: 1;    }
  44%  { transform: translate(-14%,  10%)  scale(0.82); filter: blur(50px) hue-rotate( 15deg); opacity: 0.90; }
  64%  { transform: translate( 12%,  16%)  scale(1.22); filter: blur(66px) hue-rotate( 55deg); opacity: 1;    }
  85%  { transform: translate(-18%,  -6%)  scale(0.88); filter: blur(54px) hue-rotate( 25deg); opacity: 0.88; }
  100% { transform: translate(0, 0)        scale(1);    filter: blur(60px) hue-rotate(  0deg); opacity: 0.92; }
}

/* Hero aurora fades in after content, keeps drift loop */
.v3-hero .v3-aurora {
  opacity: 0;
  animation:
    auroraFadeIn 1200ms var(--ease) 1100ms forwards,
    auroraDrift 12s var(--ease) 2300ms infinite;
}
@keyframes auroraFadeIn {
  to { opacity: 1; }
}

/* ─── Aurora scroll-reactive parallax ─── */
.v3-hero .v3-aurora {
  transform: translateY(calc(var(--aurora-y, 0) * 1px));
}

/* ─── Cursor 3D tilt — phones (img inside wrapper) ─── */
.v3-hero-phone img,
.v3-way-phone img,
.v3-inside-phone img {
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  [data-tilt] img {
    transform:
      perspective(1100px)
      rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg));
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: 50% 50%;
  }
}

/* ─── Magnetic CTAs (store badges) ─── */
@media (hover: hover) and (pointer: fine) {
  [data-magnetic] {
    transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  /* Override v3.css :hover translateY so magnetic + hover compose smoothly */
  .v3-badge[data-magnetic]:hover {
    transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px));
  }
}

/* ─── Best Pick card refinement ─── */
.v3-card {
  will-change: transform;
}
.v3-card:hover {
  box-shadow:
    0 32px 56px rgba(10, 10, 10, 0.10),
    0 8px 16px rgba(10, 10, 10, 0.04),
    inset 0 0 0 1px rgba(0, 169, 57, 0.08);
}
.v3-card-photo img {
  transition: transform .5s var(--ease);
}
.v3-card:hover .v3-card-photo img {
  transform: scale(1.06);
}

/* =====================================================================
   V3.1 — Bidirectional scroll reveal
   Adds .in on enter, removes on exit. Richer entrance + clean exit fade.
   ===================================================================== */
.reveal-bi {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 700ms var(--ease),
    transform 800ms var(--ease),
    filter 600ms var(--ease);
  will-change: opacity, transform, filter;
}
.reveal-bi.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Lighter entrance for tiny elements (list items, chips) */
.v3-comp-list li.reveal-bi {
  transform: translateX(-12px);
  filter: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.v3-comp-list li.reveal-bi.in {
  transform: none;
}

/* =====================================================================
   V3.1 — Trust icons: green-filled circle, white icon, larger
   ===================================================================== */
.v3-trust-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,169,57,0.28);
}
.v3-trust-icon .ph {
  font-size: 34px;
  color: #ffffff;
}
/* Trust section currently has 2 items — fill the wrap width as 2 columns
   instead of the v3.css default 3-column (which left one column empty
   and made the cards look left-biased on wide screens). */
.v3-trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =====================================================================
   V3.1 — Ways grid match (was 1fr/1fr, now matches hero 7fr/5fr)
   And tighter phone presentation
   ===================================================================== */
.v3-way-grid {
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
}
.v3-way-phone {
  max-width: 360px;
}
@media (max-width: 1023px) {
  .v3-way-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .v3-way-phone {
    max-width: 280px;
  }
}

/* =====================================================================
   V3.1 — Ways "Offer" stock video background
   Pexels CC0 stock video, plays full-bleed across the section.
   CSS ambient kept as fallback layer for graceful degradation.
   ===================================================================== */
   CSS-only ambient flow (no video file). Layers of slow radial gradients
   that drift over the brand-green background. Feels like light play.
   ===================================================================== */
/* Allow phone drop-shadow to bleed past section bottom without clipping.
   Ambient + video layers stay contained via their own absolutely-positioned
   inset:0 boxes and the .v3-way-ambient wrapper's own overflow:hidden. */
.v3-hero {
  overflow: visible !important;
}
.v3-hero .v3-aurora { /* aurora is at top-right, off-screen — safe */ }
.v3-way {
  position: relative;
  overflow: visible !important;
}
.v3-way > .v3-way-inner { position: relative; z-index: 1; }
/* The visual background layers need their own clipping container so they
   don't bleed even though the section is now overflow:visible. */
.v3-way-video,
.v3-way-video-tint {
  /* These already have absolute inset:0 from base — keep them confined to
     the section box; the section's own bounds via these elements clip naturally. */
}
.v3-way-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.v3-way-video-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,90,30,0.55) 0%, rgba(0,169,57,0.62) 50%, rgba(0,90,30,0.65) 100%),
    radial-gradient(60% 80% at 50% 50%, rgba(0,169,57,0.20) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}
.v3-way.is-green {
  background: #00802b; /* darker base so video tint reads as Sayyo green */
}
.v3-way-ambient {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.v3-way-ambient .amb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}
.v3-way-ambient .amb-1 {
  width: 50%; aspect-ratio: 1; left: -8%; top: -15%;
  background: radial-gradient(circle, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.08) 45%, transparent 70%);
  animation: ambFlow1 22s ease-in-out infinite;
}
.v3-way-ambient .amb-2 {
  width: 55%; aspect-ratio: 1; right: -10%; top: 20%;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(180,255,210,0.10) 50%, transparent 70%);
  animation: ambFlow2 26s ease-in-out infinite;
}
.v3-way-ambient .amb-3 {
  width: 45%; aspect-ratio: 1; left: 30%; bottom: -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(80,255,160,0.10) 45%, transparent 70%);
  animation: ambFlow3 30s ease-in-out infinite;
}
@keyframes ambFlow1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(8%, 6%) scale(1.10); }
  66%      { transform: translate(-4%, 10%) scale(0.94); }
}
@keyframes ambFlow2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-6%, 8%) scale(1.08); }
  70%      { transform: translate(4%, -6%) scale(0.96); }
}
@keyframes ambFlow3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6%, -8%) scale(1.12); }
}
.v3-way.is-green .v3-way-inner { position: relative; z-index: 1; }

/* =====================================================================
   V3.1 — Comparison section redesign (was text columns → contrast cards)
   ===================================================================== */
.v3-comp { padding: 120px 0; }
.v3-comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.v3-comp-divider { display: none; }
.v3-comp-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
}
.v3-comp-card.is-them {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  color: var(--ink-2);
}
.v3-comp-card.is-us {
  background: linear-gradient(180deg, #E6F7EC 0%, #F0FAF3 100%);
  border: 1px solid #BBE9C8;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 169, 57, 0.10);
}
.v3-comp-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.v3-comp-card.is-them .v3-comp-icon {
  background: #E4E4E7;
  color: var(--ink-3);
}
.v3-comp-card.is-us .v3-comp-icon {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,169,57,0.30);
}
.v3-comp-icon .ph { font-size: 26px; }
.v3-comp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 500;
}
.v3-comp-card.is-them .v3-comp-label { color: var(--ink-3); }
.v3-comp-card.is-us .v3-comp-label { color: var(--green-d); }
.v3-comp-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.30;
  letter-spacing: -0.018em;
  margin: 0 0 22px;
  padding-bottom: 0.06em;
}
.v3-comp-card.is-them .v3-comp-head { color: var(--ink-2); }
.v3-comp-card.is-us .v3-comp-head { color: var(--ink); }
[data-lang="ko"] .v3-comp-head { font-family: var(--font-display-ko); }
.v3-comp-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 14px;
  flex: 1;
}
.v3-comp-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding-left: 0;
  font-size: 15px;
  line-height: 1.5;
}
.v3-comp-list li::before { content: none; } /* remove old hairline */
.v3-comp-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  margin-top: 2px;
}
.v3-comp-card.is-them .v3-comp-mark {
  background: #D4D4D8;
  color: #71717A;
}
.v3-comp-card.is-us .v3-comp-mark {
  background: var(--green);
  color: #fff;
}
.v3-comp-mark .ph { font-size: 13px; }
.v3-comp-card.is-us::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  top: -120px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,169,57,0.10) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
@media (max-width: 767px) {
  .v3-comp-grid { grid-template-columns: 1fr; gap: 20px; }
  .v3-comp-card { padding: 28px 24px 24px; min-height: 0; }
  .v3-comp-head { font-size: 20px; }
}

/* =====================================================================
   V3.1 — Store badges: dark-pill style, side-by-side, equal width,
   text first-letter aligned to a shared grid.
   ===================================================================== */
.dlstack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.dl-tile {
  display: inline-flex;
  align-items: center;
  height: 64px;
  flex: 1 1 0;
  min-width: 220px;
  max-width: 280px;
  padding-right: 12px;     /* QR sits 12px from badge right edge */
  background: #063322;     /* dark forest green — matches title color */
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.dl-tile-text { text-align: left; }
.dl-tile-text .store-s,
.dl-tile-text .store-l { display: block; text-align: left; }
.dl-tile:hover {
  transform: translateY(-1px);
  background: #094530;     /* slightly lighter green on hover */
}
.dl-tile-main {
  display: inline-flex;
  align-items: center;
  column-gap: 10px;
  padding: 0 0 0 14px;
  flex: 0 0 auto;   /* content-sized; QR sits tight to text */
  min-width: 0;
}
.dl-tile-main svg { flex-shrink: 0; }
.dl-tile-main svg {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: #fff;
}
.dl-tile-text { line-height: 1.1; }
.dl-tile-text .store-s {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.85;
  font-family: var(--font-body);
}
.dl-tile-text .store-l {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-top: 2px;
  font-family: var(--font-display);
}
.dl-tile-qr-slot {
  flex: 0 0 auto;
  width: 48px;
  height: 100%;
  margin-left: auto;       /* push QR to badge right edge */
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
}
.dl-tile-qr-slot img {
  width: 46px; height: 46px;
  display: block;
  object-fit: contain;
}
/* Dark variant for Final CTA band */
.dlstack.is-dark .dl-tile {
  background: rgba(0,0,0,0.86);
  border: 1px solid rgba(255,255,255,0.10);
}
.dlstack.is-dark .dl-tile:hover { background: rgba(0,0,0,0.94); }

/* Center final CTA stack horizontally + vertically */
.v3-final .dlstack {
  justify-content: center;     /* center two badges under the headline */
  align-items: center;
}
.v3-final .v3-final-inner { text-align: center; }
.v3-final .v3-badges { /* legacy class no-op */ }

/* Tablet: drop QR slot, keep dark pill */
@media (max-width: 1023px) {
  .dl-tile-qr-slot { display: none; }
  .dl-tile { height: 60px; }
}
/* Mobile: QR hidden + force side-by-side (no wrap, share width equally) */
@media (max-width: 767px) {
  .dlstack {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;       /* never stack vertically */
    gap: 10px;
    width: 100%;
  }
  .dl-tile {
    flex: 1 1 0;             /* equal split, both fill row */
    min-width: 0;            /* allow shrink */
    max-width: none;
    height: 56px;
    padding-right: 0;
  }
  .dl-tile-main {
    padding: 0 12px;
    column-gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  .dl-tile-main svg { width: 20px; height: 20px; }
  .dl-tile-text .store-s { font-size: 10px; }
  .dl-tile-text .store-l { font-size: 13px; }
}
/* Final CTA stack on mobile — centered, same width contract */
@media (max-width: 767px) {
  .v3-final .dlstack {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px;
  }
}

/* =====================================================================
   V3.1 — Custom cat cursor (40×40) with eye blink every 4s
   ===================================================================== */
body.has-cat-cursor,
body.has-cat-cursor * {
  cursor: none !important;
}
.cat-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 45px; height: 35px;  /* proportional to original 112×87 (ratio 1.286:1) */
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity .2s var(--ease);
  will-change: transform;
}
/* Static cat cursor image — no body/tail split, no wag.
   Eyelid overlay handles blink independently. */
.cat-cursor-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
/* Eyelid overlay positioned exactly on the eye cluster.
   Source pixel analysis (112×87): white eye region at x=25–36, y=21–31.
   Scaled to the 45×35 cursor (×0.40): x ≈ 10–14.4, y ≈ 8.4–12.4. */
.cat-eyelid {
  position: absolute;
  display: block;
  width: 7px;          /* covers full eye-cluster width with 1px buffer either side */
  height: 0;           /* grows during blink */
  left: 9px;           /* x: 9 → 16 */
  top: 9px;            /* y: 9 → ~13 max */
  background: #063322; /* exact cat body color from pixel sample */
  border-radius: 1px;
  opacity: 0;
  animation: catBlink 4s ease-in-out infinite;
  pointer-events: none;
}
/* Second eyelid div in DOM is unused — disabled */
.cat-eyelid-r { display: none; }

@keyframes catBlink {
  /* eye stays open ~92% of the 4s cycle, then a quick close-open */
  0%, 92%, 100% { height: 0; opacity: 0; }
  94%           { height: 2.5px; opacity: 1; }
  96%           { height: 4px;   opacity: 1; }   /* fully closed */
  98%           { height: 1.5px; opacity: 1; }
  99%           { height: 0;     opacity: 0; }
}

/* =====================================================================
   V3.1 — Ogaki-style split-text scroll reveal (per-word mask slide-up)
   Headlines split into words wrapped in a clipping mask; each word slides
   up from below its mask on viewport entry, staggered by word index.
   ===================================================================== */
.split-reveal {
  display: inline;
  line-height: inherit;
}
.split-reveal .split-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Generous vertical buffer to absorb Vietnamese diacritics / Korean tall glyphs */
  padding: 0.14em 0 0.22em;
  margin: -0.14em 0 -0.22em;
  line-height: inherit;
}
.split-reveal .split-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.split-reveal.in .split-word {
  transform: translateY(0);
}

/* =====================================================================
   V3.1 — Apple-style scroll-bound phone reveal
   Phone enters from below with translateY + scale + rotateX as it scrolls.
   Driven by --phone-p (0=offscreen, 1=in-viewport) set from JS.
   ===================================================================== */
[data-phone-reveal] {
  --phone-p: 0;
  /* Opacity is DISCRETE (0 or 1) via .is-visible class — not tied to scroll
     progress — so the phone is never stuck at a mid-translucent state.
     Transform stays scroll-bound for the cinematic entrance feel. */
  opacity: 0;
  transform-origin: 50% 78%;
  transform:
    perspective(1400px)
    translateY(calc((1 - var(--phone-p)) * 120px))
    translateZ(calc((1 - var(--phone-p)) * -120px))
    rotateX(calc((1 - var(--phone-p)) * -22deg))
    scale(calc(0.84 + (var(--phone-p) * 0.16)));
  will-change: transform, opacity;
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-phone-reveal].is-visible {
  opacity: 1;
}
/* Subtle shadow that follows the reveal — strong only when fully in view */
[data-phone-reveal] img {
  filter: drop-shadow(0 calc(20px + var(--phone-p) * 30px)
                              calc(20px + var(--phone-p) * 40px)
                              rgba(10, 10, 10, calc(0.08 + var(--phone-p) * 0.14)));
}
/* Don't fight the cursor 3D tilt rules — img tilt applied inside */
[data-phone-reveal][data-tilt] img {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 60ms linear;
}

/* =====================================================================
   V3.1 — Best Pick card (new structure: no snippet, price prominent, meta)
   ===================================================================== */
.v3-card-photo { aspect-ratio: 1 / 1; }
.v3-card-body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.v3-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.012em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.v3-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--green);
}
.v3-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}
.v3-card-loc {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 500; color: var(--ink-2);
}
.v3-card-loc .ph { font-size: 14px; color: var(--ink-3); }
.v3-card-meta {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-3);
}
.v3-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.v3-card-meta .ph { font-size: 14px; }

/* =====================================================================
   V3.1 — Best Picks: 4-col uniform grid (reverted from masonry),
   but with the Marvell/Awwwards cinematic image reveal kept on entry.
   ===================================================================== */
.v3-picks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.v3-card { width: 100%; }

/* Cinematic image reveal (Marvell pattern): scale-down + clip-path unfold */
.v3-card .v3-card-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;       /* uniform square for the grid */
}
.v3-card .v3-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  clip-path: inset(100% 0 0 0);
  transition:
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, clip-path;
}
.v3-card.reveal-bi.in .v3-card-photo img {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}
/* On hover keep current zoom (overrides the reveal scale) */
.v3-card:hover .v3-card-photo img {
  transform: scale(1.05);
}

@media (max-width: 1199px) { .v3-picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .v3-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .v3-card-title { font-size: 15px; }
  .v3-card-price { font-size: 15px; }
}

/* ─── Reduced motion — disable kinetic ─── */
@media (prefers-reduced-motion: reduce) {
  .v3-hero-phone {
    animation: none;
    transform: none;
    opacity: 1;
    filter: drop-shadow(0 30px 60px rgba(10, 10, 10, 0.18));
  }
  .v3-word {
    animation: none;
    clip-path: none;
  }
  .v3-hero .v3-aurora {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-tilt] img {
    transform: none !important;
    transition: none !important;
  }
  [data-magnetic] {
    transform: none !important;
    transition: none !important;
  }
  .v3-card,
  .v3-card-photo img {
    transition: none;
  }
  .reveal-bi {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .v3-way-ambient .amb {
    animation: none !important;
  }
  .v3-phone-glow .orb { animation: none !important; }
  .v3-way-video { display: none !important; }
  .cat-cursor { display: none !important; }
  .cat-cursor-img { animation: none !important; transform: none !important; }
  .cat-eyelid { animation: none !important; opacity: 0 !important; }
  body.has-cat-cursor, body.has-cat-cursor * { cursor: auto !important; }
  [data-phone-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-phone-reveal] img {
    filter: drop-shadow(0 30px 60px rgba(10,10,10,0.18)) !important;
    transition: none !important;
  }
  .split-reveal .split-word {
    transform: none !important;
    transition: none !important;
  }
  .v3-card .v3-card-photo img {
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .v3-nav-logo img,
  .v3-hero-left .v3-eyebrow,
  .v3-hero-sub,
  .v3-hero-left .dlstack {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
