/* Drift Learn — 幼童 Pre-A1 landing page.
   Ported from "Drift Kids.dc.html". The design canvas drove every breakpoint
   from JS because inline styles cannot carry media queries; here those same
   breakpoints (820 / 1025 / 1240) live in CSS, and kids.js is left with only
   the genuinely scroll-driven state. */

:root {
  --k-bg: #F1E7D7;
  --k-wave-bg: #F5E9D3;
  --k-ink: #4A3413;
  --k-ink-deep: #3B2A0E;
  --k-body: #7A6337;
  --k-mute: #A08A5C;
  --k-faint: #B09B70;
  --k-label: #C0752B;
  --k-link: #9C6320;
  --k-link-hover: #C98A3E;
  --k-pill-background: #A15B24;
  --k-pill-text: #FFFFFF;
  --k-cream: #FFF9EC;
  --k-panel: #F3EADA;
  --k-panel-deep: #F3E7D2;
  --k-gold: linear-gradient(180deg, #E5A055, #C0752B);
  --k-gold-soft: linear-gradient(180deg, #E8B966, #B38A3E);
  --k-sans: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  --k-tc: 'Noto Sans TC', sans-serif;
  --k-media-control-size: 44px;
  --k-screen-control-inset: 18px;
  --k-screen-control-bottom: 22px;
  --k-screen-control-gap: 12px;
  --k-stacked-nav-bottom: 96px;
  --k-stacked-card-control-gap: 32px;
  --k-stacked-card-bottom-offset: calc(
    max(18px, env(safe-area-inset-bottom)) +
    var(--k-media-control-size) +
    var(--k-stacked-card-control-gap)
  );
  --k-inline-cta-visual-gap: 100px;
  --k-inline-cta-padding: clamp(16px, 3vw, 32px);
  --k-sound-glow-duration: 2.6s;
  --k-sound-glow-count: 3;
  --k-sound-hint-gap: 12px;
  --k-sound-hint-pointer: 6px;
  --k-sound-hint-travel: 3px;
  --k-sound-hint-fade: 600ms;
  --k-sound-hint-duration: 2.4s;
  --k-sound-hint-cycles: 2;
  --k-sound-hint-size: 13px;
  --k-sound-hint-radius: 10px;
  --k-sound-hint-padding: 8px 12px;
  --k-sound-hint-shadow: 0 3px 10px rgb(59 42 14 / 0.12);
  --k-nav-fade-strength: 0.8;
  --k-nav-fade-duration: 250ms;
  --k-cta-pop-duration: 480ms;
  --k-growth-visual-transition-duration: 550ms;
  --k-growth-visual-layer: 2;
  --k-screen-shade-layer: 3;
  --k-screen-ui-layer: 4;
  /* Olive signup panel, lit by two very slow washes — the same ambient
     language the page background already speaks, so nothing new loads. */
  --k-cta-panel: #3E4721;
  --k-cta-wash-a: radial-gradient(circle, rgba(125, 140, 100, 0.9) 0 46%, rgba(125, 140, 100, 0) 72%);
  --k-cta-wash-b: radial-gradient(circle, rgba(196, 158, 96, 0.42) 0 44%, rgba(196, 158, 96, 0) 72%);
  --k-cta-shadow: 0 44px 92px -50px rgba(50, 58, 36, 0.55);
  --k-cta-ink: #F7F1E2;
  --k-cta-body: rgba(247, 241, 226, 0.84);
  --k-cta-fine: rgba(247, 241, 226, 0.60);
  --k-feature-outcome-gap: 8px;
  --k-feature-outcome-margin: 28px;
  --k-feature-outcome-font-size: 14px;
  --k-feature-outcome-arrow-size: 17px;
  --k-feature-outcome-arrow-travel: 4px;
  --k-feature-outcome-animation-duration: 1.8s;
  --k-feature-outcome-rest-opacity: 0.55;
  --k-feature-outcome-strong: #6B4F2A;
  --k-cta-card-block-padding: 48px;
  --k-cta-card-inline-padding: 30px;
  --k-cta-card-expanded-height: 609px;
  --k-cta-card-expanded-mobile-height: 536px;
  --k-card-warm-start: 244 231 210;
  --k-card-warm-end: 225 201 166;
  --k-timer-overlay-background: rgb(26 26 46 / 0.95);
  --k-timer-accent: #0097A7;
  --k-timer-accent-soft: rgb(0 151 167 / 0.15);
  --k-timer-text: #FFFFFF;
  --k-timer-text-secondary: rgb(255 255 255 / 0.7);
  --k-timer-text-muted: rgb(255 255 255 / 0.54);
  --k-timer-layer: 6;
  --k-timer-card-max-width: 620px;
  --k-timer-card-max-height: 820px;
  --k-timer-card-gutter: clamp(16px, 5%, 24px);
  --k-timer-card-radius: clamp(26px, 10%, 40px);
  --k-timer-card-border: rgb(255 255 255 / 0.08);
  --k-timer-card-shadow: 0 24px 64px rgb(9 9 20 / 0.34);
  --k-timer-inline-padding: 24px;
  --k-timer-icon-size: min(42%, 160px);
  --k-timer-icon-padding: 20px;
  --k-timer-section-gap: clamp(10px, 2.4vh, 24px);
  --k-timer-large-gap: clamp(16px, 3.6vh, 36px);
  --k-timer-small-gap: 12px;
  --k-timer-countdown-gap: 6px;
  --k-timer-title-size: clamp(22px, 7vw, 28px);
  --k-timer-subtitle-size: clamp(13px, 3.8vw, 15px);
  --k-timer-label-size: 13px;
  --k-timer-countdown-size: clamp(30px, 9vw, 36px);
  --k-timer-button-font-size: 17px;
  --k-timer-button-icon-size: 22px;
  --k-timer-button-padding: 16px;
  --k-timer-button-radius: 14px;
  --k-timer-transition-duration: 280ms;
  --k-mobile-scene-gutter: 18px;
  --k-mobile-hero-max-width: 560px;
  --k-mobile-hero-title-size: 25px;
  --k-mobile-hero-body-size: 14.5px;
  --k-mobile-hero-label-size: 12px;
  --k-mobile-hero-hint-size: 12.5px;

  /* Frame geometry. The stacked breakpoint exists because a pinned 415px
     frame and a 360px copy card cannot share a short viewport. */
  --k-phone-w: 326px;
  /* The scene's centre column is wider than the frame itself, so the copy
     never crowds the glass. */
  --k-scene-mid: 380px;
  --k-scene-pad: 0 clamp(44px, 5vw, 84px);
}

html {
  /* kids.js repaints this per scroll frame; the literal is the p=0 value. */
  background: hsl(35 44% 89%);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background: transparent;
  color: var(--k-ink);
  font-family: var(--k-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

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

::selection { background: #D98E3E; color: #fff; }

input::placeholder { color: rgba(74, 52, 19, 0.45); }

a {
  color: var(--k-link);
  text-decoration: none;
  transition: color .25s ease;
}

a:hover { color: var(--k-link-hover); }

.k-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.k-root {
  position: relative;
  background: var(--k-bg);
  color: var(--k-ink);
}

.k-root::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: var(--k-panel-deep);
  opacity: 0;
}

.k-root.is-signup-active::after { opacity: 1; }


/* ---------------------------------------------------------------- motion */

@keyframes k-bob2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes k-hint {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50%      { transform: translateY(7px); opacity: 1; }
}

@keyframes k-feature-outcome-hint {
  0%, 100% { transform: translateY(0); opacity: var(--k-feature-outcome-rest-opacity); }
  50%      { transform: translateY(var(--k-feature-outcome-arrow-travel)); opacity: 1; }
}

@keyframes k-sound-glow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 249, 236, 0.08), 0 0 7px rgba(232, 185, 102, 0.1);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 249, 236, 0.12), 0 0 12px rgba(232, 185, 102, 0.2);
  }
}

@keyframes k-cta-pop {
  0% { opacity: 0; transform: scale(0.88); }
  72% { opacity: 1; transform: scale(1.025); }
  100% { opacity: 1; transform: scale(1); }
}

/* Four washes share one 96s cycle, each holding centre stage for a quarter
   of it, so the page colour never settles. */
@keyframes k-w1 {
  0%, 10.4%     { transform: translate(-50%, -50%) scale(0.015); opacity: 0; }
  12%           { opacity: 1; }
  29.2%, 50%    { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50.4%, 100%   { transform: translate(-50%, -50%) scale(0.015); opacity: 0; }
}

@keyframes k-w2 {
  0%, 31.2%     { transform: translate(-50%, -50%) scale(0.015); opacity: 0; }
  33%           { opacity: 1; }
  50%, 74%      { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  74.4%, 100%   { transform: translate(-50%, -50%) scale(0.015); opacity: 0; }
}

@keyframes k-w3 {
  0%, 55.2%     { transform: translate(-50%, -50%) scale(0.015); opacity: 0; }
  57%           { opacity: 1; }
  74%, 94.8%    { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  95.2%, 100%   { transform: translate(-50%, -50%) scale(0.015); opacity: 0; }
}

@keyframes k-w4 {
  0%, 76%       { transform: translate(-50%, -50%) scale(0.015); opacity: 0; }
  77.5%         { opacity: 1; }
  94.8%, 100%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* One barely-there ripple as each wash crests, so the glass looks like it
   is reacting to the colour behind it. Timed against the same 96s cycle. */
@keyframes k-phase {
  0%, 18.5%     { transform: none; }
  19.6%         { transform: scaleY(1.018) scaleX(0.992) skewX(0.4deg); }
  21%           { transform: scaleY(0.986) scaleX(1.011) skewX(-0.3deg); }
  22.4%, 39.4%  { transform: none; }
  40.5%         { transform: scaleY(1.018) scaleX(0.992) skewX(0.4deg); }
  41.9%         { transform: scaleY(0.986) scaleX(1.011) skewX(-0.3deg); }
  43.3%, 63.4%  { transform: none; }
  64.5%         { transform: scaleY(1.018) scaleX(0.992) skewX(0.4deg); }
  65.9%         { transform: scaleY(0.986) scaleX(1.011) skewX(-0.3deg); }
  67.3%, 84.4%  { transform: none; }
  85.5%         { transform: scaleY(1.018) scaleX(0.992) skewX(0.4deg); }
  86.9%         { transform: scaleY(0.986) scaleX(1.011) skewX(-0.3deg); }
  88.3%, 100%   { transform: none; }
}


/* ----------------------------------------------------------- background */

.k-waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--k-wave-bg);
}

.k-wave {
  position: absolute;
  width: 300vmax;
  height: 300vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.015);
  opacity: 0;
  animation-duration: 96s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.k-wave-1 {
  left: -12%; top: 112%;
  background: radial-gradient(circle, #F5E9D3 0 62%, #EFDCBB 76%, #E3C99F 86%, rgba(227, 201, 159, 0) 100%);
  animation-name: k-w1;
}

.k-wave-2 {
  left: 112%; top: -12%;
  background: radial-gradient(circle, #F3E5D7 0 62%, #E9D2BE 76%, #DBBCA3 86%, rgba(219, 188, 163, 0) 100%);
  animation-name: k-w2;
}

.k-wave-3 {
  left: -12%; top: -12%;
  background: radial-gradient(circle, #F0E8DC 0 62%, #DFE1D9 76%, #C9CFC6 86%, rgba(201, 207, 198, 0) 100%);
  animation-name: k-w3;
}

.k-wave-4 {
  left: 112%; top: 112%;
  background: radial-gradient(circle, #F5E9D3 0 62%, #EFDCBB 76%, #E3C99F 86%, rgba(227, 201, 159, 0) 100%);
  animation-name: k-w4;
}


/* ------------------------------------------------------------------ nav */

.k-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 20px 26px;
  pointer-events: none;
}

.k-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --k-nav-t is the 0→1 scroll ramp kids.js writes each frame; [data-nav] and
   [data-nav-deep] are the two thresholds CSS cannot express on its own. */
.k-navpill {
  --k-nav-t: 0;
  --k-nav-surface-opacity: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 251, 242, var(--k-nav-surface-opacity));
  box-shadow: 0 14px 34px -20px rgba(74, 52, 19, 0.4), inset 0 -2px 0 rgba(74, 52, 19, 0.05);
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease, border-color .25s ease;
  pointer-events: none;
}

.k-brand,
.k-tabs a,
.k-navcta {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
}

.k-brand:focus-visible,
.k-tabs a:focus-visible,
.k-navcta:focus-visible {
  outline: 2px solid rgba(156, 99, 32, 0.62);
  outline-offset: 3px;
}

.k-navpill[data-nav="stuck"] {
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.k-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--k-ink);
  padding-left: 12px;
}

.k-brand-pic { display: flex; }

.k-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  object-fit: cover;
  background: transparent;
}

.k-brand-name {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--k-ink);
  transition: color .25s ease;
}

.k-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--k-panel);
  border-radius: 999px;
  padding: 5px;
}

/* Fade the selected surface and label, while keeping the icon and hit area. */
.k-tabs.site-tabs .site-tab[aria-current="page"] {
  isolation: isolate;
  background: transparent;
  box-shadow: none;
}

.k-tabs.site-tabs .site-tab[aria-current="page"]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--site-tab-surface);
  box-shadow: var(--site-tab-shadow);
  opacity: var(--k-nav-surface-opacity);
  transition: opacity var(--k-nav-fade-duration) ease;
  pointer-events: none;
}

.k-tabs.site-tabs .site-tab[aria-current="page"] .site-tab__label {
  opacity: var(--k-nav-surface-opacity);
  transition: opacity var(--k-nav-fade-duration) ease;
}

.k-navcta {
  display: inline-block;
  font-family: var(--k-tc);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--k-gold);
  padding: 12px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 22px -8px rgba(192, 117, 43, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.k-navcta:hover { color: #fff; }


/* ---------------------------------------------------- stage / the frame */

.k-stage { position: relative; }

.k-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.k-phonewrap {
  position: relative;
  animation: k-bob2 9s ease-in-out infinite;
}

.k-phone {
  position: relative;
  width: var(--k-phone-w);
  padding: 5px;
  border-radius: 48px;
  background: linear-gradient(150deg, #5A4526 0 18%, #2A1D0C 52%, #48351A);
  box-shadow:
    0 48px 90px -38px rgba(51, 34, 11, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 3px rgba(20, 13, 4, 0.9);
  animation: k-phase 96s ease-in-out infinite;
}

.k-screen {
  position: relative;
  border-radius: 43px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #16313c;
}

.k-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
}

.k-vid.is-on { opacity: 1; }

.k-growth-visual {
  position: absolute;
  inset: 0;
  z-index: var(--k-growth-visual-layer);
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--k-growth-visual-transition-duration) ease,
    visibility 0s linear var(--k-growth-visual-transition-duration);
}

.k-screen.is-growth-on .k-growth-visual {
  opacity: var(--k-growth-visual-opacity, 1);
  visibility: visible;
  transition:
    opacity var(--k-growth-visual-transition-duration) ease,
    visibility 0s;
}

.k-screen.is-growth-on .k-vid { opacity: 0; }

.k-screen.is-growth-on.is-growth-exiting .k-growth-visual,
.k-screen.is-growth-on.is-growth-exiting .k-vid.is-on,
.k-screen.is-growth-on.is-growth-exiting .k-screen-shade {
  transition: none;
}

.k-screen.is-growth-on.is-growth-exiting .k-vid.is-on,
.k-screen.is-growth-on.is-growth-exiting .k-screen-shade {
  opacity: calc(1 - var(--k-growth-visual-opacity, 1));
}

.k-screen.is-growth-on .k-statusbar,
.k-screen.is-growth-on .k-notch,
.k-screen.is-growth-on .k-capwrap,
.k-screen.is-growth-on .k-hud {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Tints carry the frame while a clip buffers, so the screen is never black.
   The hero's is warm; the five feature scenes keep the design's palette. */
.k-vid[data-vid="0"] { background: #4A4030; }
.k-vid[data-vid="1"] { background: #2F4A55; }
.k-vid[data-vid="2"] { background: #3D4A2F; }
.k-vid[data-vid="3"] { background: #4A3A2F; }
.k-vid[data-vid="4"] { background: #2F3A4A; }
.k-vid[data-vid="5"] { background: #45304A; }

.k-screen-shade {
  position: absolute;
  inset: 0;
  z-index: var(--k-screen-shade-layer);
  opacity: 1;
  background: linear-gradient(180deg, rgba(15, 25, 30, 0.42) 0 14%, rgba(0, 0, 0, 0) 34%, rgba(15, 25, 30, 0.82));
  transition: opacity var(--k-growth-visual-transition-duration) ease;
}

.k-screen.is-growth-on .k-screen-shade { opacity: 0; }

.k-timer-demo {
  position: absolute;
  inset: 0;
  z-index: var(--k-timer-layer);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--k-timer-card-gutter);
  background: transparent;
  color: var(--k-timer-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--k-timer-transition-duration) ease,
    visibility 0s linear var(--k-timer-transition-duration);
}

.k-timer-demo.is-on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--k-timer-transition-duration) ease,
    visibility 0s;
}

.k-timer-demo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, var(--k-timer-card-max-width));
  height: min(100%, var(--k-timer-card-max-height));
  padding: var(--k-timer-inline-padding);
  box-sizing: border-box;
  border: 1px solid var(--k-timer-card-border);
  border-radius: var(--k-timer-card-radius);
  background: var(--k-timer-overlay-background);
  box-shadow: var(--k-timer-card-shadow);
  text-align: center;
  font-family: var(--k-tc);
}

.k-timer-demo-icon {
  width: var(--k-timer-icon-size);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: var(--k-timer-icon-padding);
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--k-timer-accent-soft);
}

.k-timer-demo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.k-timer-demo-title {
  margin-top: var(--k-timer-section-gap);
  font-size: var(--k-timer-title-size);
  font-weight: 700;
  line-height: 1.3;
}

.k-timer-demo-subtitle {
  margin-top: var(--k-timer-small-gap);
  color: var(--k-timer-text-secondary);
  font-size: var(--k-timer-subtitle-size);
  line-height: 1.5;
}

.k-timer-demo-countdown {
  display: grid;
  gap: var(--k-timer-countdown-gap);
  margin-top: var(--k-timer-large-gap);
}

.k-timer-demo-countdown span {
  color: var(--k-timer-text-muted);
  font-size: var(--k-timer-label-size);
}

.k-timer-demo-countdown strong {
  font-family: var(--k-sans);
  font-size: var(--k-timer-countdown-size);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.k-timer-demo-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--k-feature-outcome-gap);
  width: 100%;
  margin-top: var(--k-timer-large-gap);
  padding: var(--k-timer-button-padding);
  box-sizing: border-box;
  border-radius: var(--k-timer-button-radius);
  background: var(--k-timer-accent);
  color: var(--k-timer-text);
  font-size: var(--k-timer-button-font-size);
  font-weight: 700;
}

.k-timer-demo-unlock svg {
  width: var(--k-timer-button-icon-size);
  height: var(--k-timer-button-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.k-timer-demo.is-on ~ .k-hud {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.k-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--k-cta-ink);
  font-family: var(--k-tc);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: var(--k-screen-ui-layer);
}

.k-statusbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
  opacity: .85;
}

.k-battery {
  width: 15px;
  height: 8px;
  border: 1.4px solid var(--k-cream);
  border-radius: 2px;
  display: inline-block;
}

.k-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #0E0903;
  z-index: 5;
}

.k-capwrap {
  position: absolute;
  z-index: var(--k-screen-ui-layer);
  left: var(--k-screen-control-inset);
  right: calc(var(--k-screen-control-inset) + var(--k-media-control-size) + var(--k-screen-control-gap));
  bottom: var(--k-screen-control-bottom);
  height: 78px;
}

.k-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 249, 236, 0.94);
  border-radius: 18px 18px 18px 6px;
  padding: 12px 16px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity .5s ease;
}

.k-cap.is-on { opacity: 1; }

.k-cap-en {
  font-family: var(--k-sans);
  font-size: 19px;
  font-weight: 800;
  color: var(--k-ink-deep);
  line-height: 1.2;
}

.k-cap-zh {
  font-family: var(--k-tc);
  font-size: 12.5px;
  color: #8A7346;
  margin-top: 4px;
}

.k-hud {
  position: absolute;
  left: auto;
  right: var(--k-screen-control-inset);
  bottom: var(--k-screen-control-bottom);
  z-index: 5;
  display: flex;
  align-items: center;
  transition: opacity .5s ease, visibility 0s;
}

.k-sound-hint {
  position: absolute;
  right: calc(100% + var(--k-sound-hint-gap));
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--k-sound-hint-fade) ease, visibility 0s var(--k-sound-hint-fade);
}

.k-sound-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--k-sound-hint-fade) ease, visibility 0s;
}

.k-sound-hint__label {
  position: relative;
  display: block;
  padding: var(--k-sound-hint-padding);
  border-radius: var(--k-sound-hint-radius);
  background: var(--k-cream);
  color: var(--k-body);
  font-family: var(--k-tc);
  font-size: var(--k-sound-hint-size);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: var(--k-sound-hint-shadow);
}

.k-sound-hint__label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  border-top: var(--k-sound-hint-pointer) solid transparent;
  border-bottom: var(--k-sound-hint-pointer) solid transparent;
  border-left: var(--k-sound-hint-pointer) solid var(--k-cream);
  transform: translateY(-50%);
}

.k-sound-hint.is-visible .k-sound-hint__label {
  animation: k-sound-hint-nudge var(--k-sound-hint-duration) ease-in-out var(--k-sound-hint-cycles);
}

@keyframes k-sound-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(var(--k-sound-hint-travel)); }
}

.k-sound-toggle {
  appearance: none;
  flex: 0 0 var(--k-media-control-size);
  width: var(--k-media-control-size);
  height: var(--k-media-control-size);
  padding: 0;
  border: 1px solid rgba(255, 249, 236, 0.16);
  border-radius: 50%;
  background: rgba(255, 249, 236, 0.07);
  color: rgba(255, 249, 236, 0.64);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 249, 236, 0.08), 0 0 7px rgba(232, 185, 102, 0.1);
  animation: k-sound-glow var(--k-sound-glow-duration) ease-in-out var(--k-sound-glow-count);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.k-sound-toggle:hover {
  background: rgba(255, 249, 236, 0.13);
  color: rgba(255, 249, 236, 0.74);
  transform: translateY(-1px);
}

.k-sound-toggle:active { transform: scale(0.96); }

.k-sound-toggle:focus-visible {
  outline: 2px solid var(--k-cream);
  outline-offset: 3px;
}

.k-sound-toggle[aria-pressed="true"] {
  background: rgba(232, 185, 102, 0.14);
  border-color: rgba(255, 249, 236, 0.22);
  color: rgba(255, 249, 236, 0.76);
  box-shadow: 0 0 0 1px rgba(255, 249, 236, 0.1), 0 0 9px rgba(232, 185, 102, 0.16);
  animation: none;
}

.k-sound-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.k-sound-wave,
.k-sound-slash { transition: opacity .2s ease; }

.k-sound-wave { opacity: 0; }
.k-sound-toggle[aria-pressed="true"] .k-sound-wave { opacity: 1; }
.k-sound-toggle[aria-pressed="true"] .k-sound-slash { opacity: 0; }


.k-phone-cta {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 26px 34px;
  background: var(--k-cta-panel);
  opacity: 0;
  /* visibility keeps the form out of the tab order and the a11y tree while it
     is faded out; the delay lets the fade finish before it disappears. */
  visibility: hidden;
  pointer-events: none;
  transform-origin: center;
  transition: opacity .55s ease, visibility 0s linear .55s;
}

.k-phone-cta.is-pop {
  animation: k-cta-pop var(--k-cta-pop-duration) cubic-bezier(.22, .78, .24, 1) both;
}

.k-phone-cta img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 22px;
}

.k-phone-cta h2 {
  font-family: var(--k-tc);
  font-size: 29px;
  font-weight: 900;
  color: var(--k-cta-ink);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.k-phone-cta > p {
  font-family: var(--k-tc);
  font-size: 14px;
  color: var(--k-cta-body);
  margin: 14px 0 0;
  line-height: 1.7;
}

.k-hud.is-off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.k-vid.is-off { opacity: 0; }

.k-phone-cta.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .55s ease, visibility 0s;
}


/* ----------------------------------------------------------------- form */

.k-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 24px;
}

.k-form input {
  width: 100%;
  background: var(--k-bg);
  border: 1px solid rgba(74, 52, 19, 0.20);
  outline: none;
  border-radius: 15px;
  padding: 14px 16px;
  font-family: var(--k-tc);
  font-size: 14px;
  color: var(--k-ink);
}

.k-form input:focus-visible { border-color: #C0752B; }

.k-form button {
  border: none;
  cursor: pointer;
  background: var(--k-gold);
  color: #fff;
  font-family: var(--k-tc);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(192, 117, 43, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.k-form button[disabled] {
  cursor: default;
  opacity: .72;
}

.k-form-msg {
  font-family: var(--k-tc);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--k-cta-body);
  margin: 2px 0 0;
  min-height: 1em;
}

.k-form-msg[data-state="error"] { color: #FFC9A6; }

.k-fineprint {
  font-family: var(--k-tc);
  font-size: 11.5px;
  color: var(--k-cta-fine);
  margin: 14px 0 0;
}


/* ------------------------------------------------- scenes / copy blocks */

.k-scenes {
  position: relative;
  z-index: 8;
  margin-top: -100vh;
  pointer-events: none;
}

.k-scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr var(--k-scene-mid) 1fr;
  align-items: center;
  padding: var(--k-scene-pad);
  pointer-events: none;
}

.k-scene-cta { grid-template-columns: 1fr 520px 1fr; }

.k-col {
  pointer-events: none;
  max-width: 520px;
}

.k-col-left  { grid-column: 1; justify-self: end; }
.k-col-right { grid-column: 3; justify-self: start; }

/* kids.js writes position, whole-card fade, and surface-opacity variables onto
   .k-col each frame. Cards become solid near the viewport centre, then their
   surfaces soften again as they leave it. */
.k-copy,
.k-slot {
  opacity: var(--k-fade, 1);
  will-change: opacity, transform;
}

.k-copy { transform: translateY(var(--k-rise, 0px)); }
.k-slot { transform: translateY(var(--k-rise-slot, 0px)); }

.k-eyebrow {
  font-family: var(--k-tc);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--k-label);
}

.k-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--k-pill-background);
  color: var(--k-pill-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
}

.k-copy h1 {
  font-family: var(--k-tc);
  font-weight: 900;
  /* 68px is the design size; below ~1450px the copy column is too narrow for
     it and 再認識文字。 breaks mid-phrase, so the type gives way first. */
  font-size: clamp(52px, 4.7vw, 68px);
  line-height: 1.14;
  color: var(--k-ink-deep);
  margin: 22px 0 0;
  letter-spacing: -0.04em;
}

.k-copy-hero h1 {
  font-size: clamp(48px, 4.2vw, 62px);
}

.k-copy h2 {
  font-family: var(--k-tc);
  font-size: 52px;
  font-weight: 900;
  color: var(--k-ink-deep);
  margin: 16px 0 0;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.k-copy p {
  font-family: var(--k-tc);
  font-size: 18px;
  line-height: 1.85;
  color: var(--k-body);
  margin: 18px 0 0;
}

.k-copy p.k-copy-unclamped {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.k-copy-hero p { margin-top: 20px; font-size: 17.5px; }

.k-scrollhint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-family: var(--k-tc);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--k-mute);
}

.k-scrollhint-arrow {
  animation: k-hint 2s ease-in-out infinite;
  font-size: 17px;
  color: var(--k-label);
}

.k-feature-outcome {
  display: flex;
  align-items: center;
  gap: var(--k-feature-outcome-gap);
  margin-top: var(--k-feature-outcome-margin);
  font-family: var(--k-tc);
  font-size: var(--k-feature-outcome-font-size);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--k-mute);
}

.k-feature-outcome > span:first-child { min-width: 0; }

.k-feature-outcome-arrow {
  flex: 0 0 auto;
  align-self: flex-end;
  color: var(--k-label);
  font-size: var(--k-feature-outcome-arrow-size);
  line-height: 1.35;
  animation: k-feature-outcome-hint var(--k-feature-outcome-animation-duration) ease-in-out infinite;
}

.k-slot {
  margin-top: 30px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(246, 235, 214, 0.85);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 1px dashed rgba(74, 52, 19, 0.2);
}

.k-slot span {
  font-family: var(--k-tc);
  font-size: 13px;
  color: var(--k-mute);
}

.k-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* -------------------------------------------- desktop footer (in-frame) */

.k-footframe {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1360px, calc(100% - 88px));
  height: min(460px, calc(100vh - 220px));
  border: 1px solid rgba(74, 52, 19, 0.16);
  border-radius: 54px;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.k-foot-l,
.k-foot-r {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  opacity: 0;
  /* Same reasoning as the in-frame signup: these links must not be tabbable
     while the frame is still showing a feature scene. */
  visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}

.k-foot-l {
  right: calc(50% + 300px);
  width: 340px;
  display: block;
}

.k-foot-r {
  left: calc(50% + 300px);
  width: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 28px;
}

.k-footframe.is-on,
.k-foot-l.is-on,
.k-foot-r.is-on { opacity: 1; }

.k-foot-l.is-on,
.k-foot-r.is-on {
  visibility: visible;
  transition: opacity .8s ease, visibility 0s;
}

.k-foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.k-foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  object-fit: cover;
}

.k-foot-brand span {
  font-size: 18px;
  font-weight: 800;
  color: var(--k-ink-deep);
}

.k-foot-tagline {
  font-family: var(--k-tc);
  font-size: 15.5px;
  color: var(--k-body);
  line-height: 1.75;
  margin: 0;
}

.k-foot-note {
  font-family: var(--k-tc);
  font-size: 13.5px;
  color: var(--k-mute);
  margin: 14px 0 0;
}

.k-foot-copy {
  font-family: var(--k-tc);
  font-size: 13px;
  color: var(--k-faint);
  margin: 30px 0 0;
}

.k-foot-head {
  font-family: var(--k-tc);
  font-size: 13px;
  font-weight: 800;
  color: var(--k-ink-deep);
  margin-bottom: 14px;
}

.k-foot-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--k-tc);
  font-size: 14.5px;
}

.k-foot-links span { color: var(--k-body); }


/* ------------------------------- stacked-only signup + standalone footer */

.k-cta-inline {
  display: none;
  position: relative;
  z-index: 10;
  background: transparent;
  border-radius: 34px 34px 0 0;
  padding: 52px 32px 32px;
}

.k-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  min-height: var(--k-cta-card-expanded-height);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--k-cta-panel);
  border-radius: 34px;
  padding: var(--k-cta-card-block-padding) var(--k-cta-card-inline-padding);
  box-shadow: var(--k-cta-shadow);
  transform-origin: center bottom;
}

@keyframes k-cta-wash {
  0%, 100% { transform: translate(-12%, 8%) scale(1); opacity: .5; }
  50%      { transform: translate(12%, -6%) scale(1.2); opacity: .8; }
}

/* ::before and ::after are the two washes; 28s and 36s keeps them from ever
   lining up, so the panel never settles into a fixed picture. */
.k-phone-cta::before,
.k-cta-card::before,
.k-phone-cta::after,
.k-cta-card::after {
  content: '';
  position: absolute;
  width: 70%;
  padding-bottom: 70%;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.k-phone-cta::before,
.k-cta-card::before {
  left: -6%;
  top: -34%;
  background: var(--k-cta-wash-a);
  animation: k-cta-wash 28s ease-in-out infinite;
}

.k-phone-cta::after,
.k-cta-card::after {
  right: -10%;
  bottom: -38%;
  background: var(--k-cta-wash-b);
  animation: k-cta-wash 36s ease-in-out infinite reverse;
}

/* Those offsets are percentages of the panel's HEIGHT, which works on the wide
   inline card but throws both washes clear of the tall in-frame panel
   (316x685: the first one lands at top:-233px on a 221px circle). The frame
   gets its own geometry, sized off the width so the aspect ratio can't move
   them out of view again. */
.k-phone-cta::before,
.k-phone-cta::after {
  width: 132%;
  padding-bottom: 132%;
}

.k-phone-cta::before {
  left: -32%;
  top: 4%;
}

.k-phone-cta::after {
  right: -34%;
  bottom: 2%;
  left: auto;
  top: auto;
}

/* The panel's own children have to sit above that layer. */
.k-phone-cta > *,
.k-cta-card > * { position: relative; }

.k-cta-card.is-reveal-ready {
  opacity: 0;
  transform: scale(0.88);
}

.k-cta-card.is-reveal-ready.is-revealed {
  animation: k-cta-pop var(--k-cta-pop-duration) cubic-bezier(.22, .78, .24, 1) both;
}

.k-cta-card img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 20px;
}

.k-cta-card h2 {
  font-family: var(--k-tc);
  font-size: 31px;
  font-weight: 900;
  color: var(--k-cta-ink);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.k-cta-card > p {
  font-family: var(--k-tc);
  font-size: 15px;
  color: var(--k-cta-body);
  margin: 14px 0 0;
  line-height: 1.7;
}

.k-cta-card .k-form input { padding: 15px 16px; font-size: 15px; }
.k-cta-card .k-form button { font-size: 15.5px; padding: 16px 20px; }
.k-cta-card .k-fineprint { font-size: 12px; }

.k-footer {
  display: none;
  position: relative;
  z-index: 10;
  background: var(--k-panel-deep);
  padding: 20px 40px 40px;
}

.k-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 4px 0;
}

.k-footgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 38px;
}

.k-footgrid-brand { max-width: 300px; }

.k-footgrid .k-foot-brand { margin-bottom: 14px; }
.k-footgrid .k-foot-brand img { width: 30px; height: 30px; border-radius: 10px; }
.k-footgrid .k-foot-brand span { font-size: 17px; }
.k-footgrid .k-foot-tagline { font-size: 14.5px; line-height: 1.7; }
.k-footgrid .k-foot-note { margin-top: 12px; font-size: 13px; }
.k-footgrid .k-foot-head { margin-bottom: 15px; }
.k-footgrid .k-foot-links { font-size: 14px; }

.k-footer-legal {
  font-family: var(--k-tc);
  font-size: 13px;
  color: var(--k-mute);
  border-top: 1px solid rgba(74, 52, 19, 0.12);
  padding-top: 22px;
}


/* ======================================================================
   < 1240px — "stacked". The sticky stage is abandoned: the phone screen
   becomes the page background and the copy rides over it as glass cards.
   ====================================================================== */

@media (max-width: 1239px) {

  /* Only the phone/tablet layout follows the navigation scroll fade. */
  .k-navpill {
    --k-nav-surface-opacity: calc(1 - var(--k-nav-t) * var(--k-nav-fade-strength));
  }

  .k-sticky {
    position: fixed;
    inset: 0;
    height: 100vh;
    z-index: 1;
  }

  .k-footframe,
  .k-foot-l,
  .k-foot-r { display: none; }

  .k-phonewrap { animation: none; }

  .k-phone {
    position: fixed;
    inset: 0;
    width: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: #16313c;
    animation: none;
  }

  .k-screen {
    border-radius: 0;
    aspect-ratio: auto;
    height: 100vh;
  }

  .k-statusbar,
  .k-notch,
  .k-capwrap { display: none; }

  .k-hud {
    left: auto;
    right: max(18px, env(safe-area-inset-right));
    top: calc(max(var(--k-stacked-nav-bottom), env(safe-area-inset-top)) + var(--k-screen-control-gap));
    bottom: auto;
    gap: 0;
  }

  /* The in-frame signup would scroll away with the un-pinned frame, so the
     stacked layouts get their own inline copy of it instead. */
  .k-phone-cta { display: none; }

  .k-cta-inline,
  .k-footer { display: block; }

  .k-cta-inline {
    margin-top: calc(
      var(--k-inline-cta-visual-gap) -
      var(--k-stacked-card-bottom-offset) -
      var(--k-inline-cta-padding)
    );
    padding: var(--k-inline-cta-padding);
    border-radius: 0;
    background: transparent;
  }

  .k-foot-links { gap: 2px; }

  .k-foot-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 10px;
    touch-action: manipulation;
    transition: color .2s ease, background .2s ease;
  }

  .k-foot-links a:hover,
  .k-foot-links a:focus-visible {
    color: var(--k-ink-deep);
    background: rgba(192, 117, 43, 0.08);
  }

  .k-foot-links a:focus-visible {
    outline: 2px solid rgba(156, 99, 32, 0.55);
    outline-offset: 1px;
  }

  .k-foot-links a:active { background: rgba(192, 117, 43, 0.14); }

  .k-scenes { margin-top: 0; }

  .k-scene {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 110px 48px 40px;
  }

  .k-scene[data-scene="0"],
  .k-scene[data-scene="1"],
  .k-scene[data-scene="2"],
  .k-scene[data-scene="3"],
  .k-scene[data-scene="4"],
  .k-scene[data-scene="5"] {
    justify-content: flex-end;
    padding-bottom: var(--k-stacked-card-bottom-offset);
  }

  .k-scene-cta { display: none; }

  .k-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    grid-column: auto;
    justify-self: auto;
  }

  /* Cards alternate light ceramic / honey glass and vary their corner shapes
     and widths, so the stack never reads as a column of identical boxes. */
  .k-copy {
    width: min(380px, 52%);
    padding: 22px 26px 24px;
    border-radius: 28px;
    background: rgba(250, 242, 228, 0.9);
    border: 1px solid rgba(74, 52, 19, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 48px -30px rgba(28, 17, 4, 0.6);
    text-align: left;
  }

  [data-scene="2"] .k-copy,
  [data-scene="4"] .k-copy {
    background: rgba(250, 242, 228, var(--k-card-surface-opacity, 1));
  }

  .k-copy .k-eyebrow { font-size: 11.5px; }
  .k-copy .k-eyebrow-pill { font-size: 11.5px; padding: 7px 14px; }

  .k-copy h1 { font-size: 32px; line-height: 1.25; margin: 8px 0 0; }
  .k-copy h2 { font-size: 28px; line-height: 1.28; margin: 8px 0 0; }

  .k-copy p,
  .k-copy-hero p {
    font-size: 16px;
    line-height: 1.68;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
  }

  .k-scrollhint { margin-top: 18px; font-size: 11.5px; }

  .k-feature-outcome {
    --k-feature-outcome-margin: 18px;
    --k-feature-outcome-font-size: 13px;
  }

  /* Images leave the card and float on their own, offset to the opposite
     side, so the copy blocks stay small. */
  .k-slot {
    position: relative;
    aspect-ratio: auto;
    height: 190px;
    width: 30%;
    margin: 14px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 40px -26px rgba(28, 17, 4, 0.65);
    background: rgba(250, 242, 228, 0.9);
  }

  /* Per-card variation, keyed to the scene it belongs to. */
  [data-scene="1"] .k-copy,
  [data-scene="3"] .k-copy,
  [data-scene="5"] .k-copy {
    background: linear-gradient(
      145deg,
      rgb(var(--k-card-warm-start) / var(--k-card-surface-opacity, 1)),
      rgb(var(--k-card-warm-end) / var(--k-card-surface-opacity, 1))
    );
    border-color: rgba(74, 52, 19, 0.1);
  }

  [data-scene="1"] .k-copy p,
  [data-scene="3"] .k-copy p,
  [data-scene="5"] .k-copy p { color: var(--k-ink-deep); }

  [data-scene="1"] .k-feature-outcome,
  [data-scene="3"] .k-feature-outcome,
  [data-scene="5"] .k-feature-outcome { color: var(--k-feature-outcome-strong); }

  [data-scene="1"] .k-copy { width: min(560px, 72%); border-radius: 28px 28px 28px 8px; }
  [data-scene="2"] .k-copy { border-radius: 8px 28px 28px 28px; }
  [data-scene="3"] .k-copy { border-radius: 28px 8px 28px 28px; }
  [data-scene="4"] .k-copy { width: min(560px, 72%); border-radius: 32px; }

  [data-scene="0"] .k-col { align-items: flex-start; }
  [data-scene="1"] .k-col { align-items: flex-end; }
  [data-scene="2"] .k-col { align-items: flex-start; }
  [data-scene="3"] .k-col { align-items: center; }
  [data-scene="4"] .k-col { align-items: flex-end; }
  [data-scene="5"] .k-col { align-items: flex-start; }

  [data-scene="5"] .k-slot { align-self: flex-start; border-radius: 22px 22px 22px 6px; }

  [data-scene="4"] .k-slot { align-self: flex-end; border-radius: 22px 22px 6px 22px; }

  [data-scene="4"] .k-slot { height: 150px; width: 40%; }
}


/* --------------------------------- < 1025px — glassy full-width nav bar */

@media (max-width: 1024px) {

  .k-nav { padding: 16px 18px; }

  .k-navpill {
    padding: 5px;
    background: rgba(243, 234, 218, var(--k-nav-surface-opacity));
    box-shadow: none;
  }

  .k-navpill[data-nav="stuck"] {
    box-shadow: inset 0 -1px 0 rgba(74, 52, 19, 0.05), 0 10px 30px -18px rgba(74, 52, 19, 0.45);
  }

  .k-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 0;
    object-fit: contain;
  }

  .k-brand-name { font-size: 17px; }

  .k-navpill[data-nav-deep] .k-brand-name { color: var(--k-panel); }

  .k-tabs {
    background: transparent;
    padding: 0;
    gap: 4px;
  }

  .k-navcta {
    background: var(--k-gold-soft);
    border-radius: 999px;
    padding: 10px 22px;
    box-shadow: none;
  }
}


/* ---------------------------------------------------- < 820px — mobile */

@media (max-width: 819px) {

  .k-nav { padding: 12px 12px; }
  .k-navcta { display: none; }

  .k-scene { padding: 96px 18px 30px; }

  .k-copy {
    width: min(300px, 84%);
    padding: 16px 18px 18px;
  }

  [data-scene="0"] {
    justify-content: flex-end;
    padding-right: var(--k-mobile-scene-gutter);
    padding-bottom: var(--k-stacked-card-bottom-offset);
    padding-left: var(--k-mobile-scene-gutter);
  }

  [data-scene="0"] .k-col { align-items: center; }

  [data-scene="0"] .k-copy {
    width: 100%;
    max-width: var(--k-mobile-hero-max-width);
  }

  [data-scene="0"] .k-copy h1 { font-size: var(--k-mobile-hero-title-size); }

  [data-scene="0"] .k-copy p,
  [data-scene="0"] .k-copy-hero p { font-size: var(--k-mobile-hero-body-size); }

  [data-scene="0"] .k-eyebrow-pill { font-size: var(--k-mobile-hero-label-size); }
  [data-scene="0"] .k-scrollhint { font-size: var(--k-mobile-hero-hint-size); }

  .k-copy h1 { font-size: 23px; }
  .k-copy h2 { font-size: 21px; }

  .k-copy p,
  .k-copy-hero p {
    font-size: 13.5px;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .k-feature-outcome {
    --k-feature-outcome-margin: 14px;
    --k-feature-outcome-font-size: 12.5px;
  }

  .k-slot { height: 132px; width: 40%; }

  [data-scene="1"] .k-copy,
  [data-scene="4"] .k-copy { width: min(430px, 100%); }

  [data-scene="4"] .k-slot { height: 104px; width: 52%; }

  .k-cta-inline { --k-inline-cta-padding: 16px; }
  .k-footer { padding: 10px 16px 24px; }
  .k-footgrid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .k-cta-card { min-height: var(--k-cta-card-expanded-mobile-height); }
}


/* Keep the timer card fully visible in landscape and other short viewports. */
@media (max-height: 560px) {
  :root {
    --k-timer-card-gutter: 16px;
    --k-timer-inline-padding: 16px;
    --k-timer-icon-size: min(24%, 88px);
    --k-timer-icon-padding: 12px;
    --k-timer-section-gap: 6px;
    --k-timer-large-gap: 10px;
    --k-timer-small-gap: 6px;
    --k-timer-title-size: 20px;
    --k-timer-subtitle-size: 12px;
    --k-timer-countdown-size: 26px;
    --k-timer-button-padding: 10px;
  }
}


/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {

  .k-sound-hint.is-visible .k-sound-hint__label { animation: none; }

  .k-tabs.site-tabs .site-tab[aria-current="page"]::before,
  .k-tabs.site-tabs .site-tab[aria-current="page"] .site-tab__label { transition: none; }

  .k-wave,
  .k-phone,
  .k-phonewrap,
  .k-scrollhint-arrow,
  .k-feature-outcome-arrow,
  .k-sound-toggle,
  .k-phone-cta.is-pop,
  .k-cta-card.is-reveal-ready.is-revealed {
    animation: none !important;
  }

  .k-phone-cta.is-pop,
  .k-cta-card.is-reveal-ready,
  .k-cta-card.is-reveal-ready.is-revealed {
    opacity: 1;
    transform: none;
  }

  .k-wave { opacity: 0; }

  .k-copy,
  .k-slot {
    transform: none !important;
    opacity: 1 !important;
  }

  .k-copy { --k-card-surface-opacity: 1; }

  .k-vid,
  .k-growth-visual,
  .k-screen-shade,
  .k-cap,
  .k-timer-demo,
  .k-phone-cta,
  .k-footframe,
  .k-foot-l,
  .k-foot-r {
    transition-duration: .01ms;
  }
}
