/* ============================================================
   KANADE LP — uses Design System tokens (from ds-cp-tokens.css
   + ds-plan-tokens.css). No new colors/fonts invented.
   ============================================================ */

.kanade-lp {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  color: var(--cp-ink);
  background: var(--cp-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.kanade-lp * { box-sizing: border-box; }
.kanade-lp button { font-family: inherit; }

/* ============================================================
   Editorial display — sans-only, bold + tracking
   ============================================================ */
.k-display {
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.k-display-sm { font-size: 22px; }
.k-display-md { font-size: 28px; }
.k-display-lg { font-size: 36px; }
.k-display-xl { font-size: 44px; }

.k-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pink-600);
}
.k-eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
}

.k-num {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Section title
   ============================================================ */
.k-section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 22px;
}
.k-section-title.k-center { align-items: center; text-align: center; }
.k-section-title h2 {
  margin: 4px 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1.25;
}
.k-section-title p {
  margin: 4px 0 0;
  color: var(--cp-ink-soft);
  font-size: 13px;
  line-height: 1.8;
  max-width: 320px;
}

/* ============================================================
   Buttons (using cp-btn-primary base from DS)
   ============================================================ */
.k-cta {
  background: linear-gradient(180deg, var(--pink-400) 0%, var(--pink-600) 100%);
  color: var(--cp-on-pink);
  border: none;
  border-radius: var(--cp-r-pill);
  padding: 15px 24px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 2px 0 rgba(0,0,0,0.05),
    0 10px 24px rgba(229,74,124,0.30);
  transition: transform .12s ease;
}
.k-cta:active { transform: translateY(1px); }
.k-cta.k-cta-lg { padding: 17px 26px; font-size: 16px; }
.k-cta.k-cta-block { width: 100%; }

.k-cta-coral {
  background: linear-gradient(180deg, var(--coral-500) 0%, var(--coral-600) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 2px 0 rgba(0,0,0,0.05),
    0 10px 24px rgba(242,107,126,0.35);
}

.k-cta-ghost {
  background: var(--cp-surface);
  color: var(--cp-ink);
  border: 1px solid var(--cp-line-2);
  border-radius: var(--cp-r-pill);
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.k-cta-line {
  background: #06C755;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 10px 24px rgba(6,199,85,0.30);
}

/* ============================================================
   Cards
   ============================================================ */
.k-card {
  background: var(--cp-surface);
  border-radius: var(--cp-r);
  box-shadow: var(--cp-shadow-sm);
  border: 1px solid var(--cp-line);
}
.k-card-tinted {
  background: var(--cp-tint);
  border: 1px solid rgba(229,74,124,0.10);
  border-radius: var(--cp-r);
}
.k-card-cream {
  background: var(--bg-card-cream);
  border-radius: var(--cp-r);
  border: 1px solid var(--cp-line);
}

/* ============================================================
   Pill tabs (used in cast section, column section)
   ============================================================ */
.k-tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-r-pill);
  gap: 2px;
}
.k-tab {
  border: none;
  background: transparent;
  color: var(--cp-ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: var(--cp-r-pill);
  cursor: pointer;
  white-space: nowrap;
}
.k-tab[data-on="1"] {
  background: linear-gradient(180deg, var(--pink-400), var(--pink-600));
  color: #fff;
  box-shadow: 0 4px 10px rgba(229,74,124,0.30);
}

/* Lite tab (underline) */
.k-tabs-lite { display: flex; border-bottom: 1px solid var(--cp-line); }
.k-tab-lite {
  flex: 1; padding: 12px 8px;
  border: none; background: transparent;
  color: var(--cp-ink-mute);
  font-size: 13px; font-weight: 700;
  cursor: pointer; position: relative;
}
.k-tab-lite[data-on="1"] { color: var(--pink-600); }
.k-tab-lite[data-on="1"]::after {
  content: "";
  position: absolute; left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 40%; height: 2px;
  background: var(--pink-500);
  border-radius: 2px;
}

/* ============================================================
   Chip
   ============================================================ */
.k-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--cp-r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--cp-surface);
  border: 1px solid var(--cp-line-2);
  color: var(--cp-ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.k-chip[data-on="1"] {
  background: linear-gradient(180deg, var(--pink-400), var(--pink-600));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(229,74,124,0.25);
}

/* ============================================================
   Top notification strip
   ============================================================ */
.k-notif {
  margin: 10px 14px 0;
  padding: 9px 12px;
  background: var(--pink-50);
  border: 1px solid rgba(229,74,124,0.16);
  border-radius: var(--cp-r-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--cp-ink-soft);
}

/* Pulse dot from DS */
.k-pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--cp-online);
  flex-shrink: 0;
}
.k-pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--cp-online);
  opacity: 0.5;
  animation: k-pulse 1.6s ease-out infinite;
}
.k-pulse.k-pulse-pink { background: var(--pink-500); }
.k-pulse.k-pulse-pink::after { border-color: var(--pink-500); }
@keyframes k-pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Live-count pill — attention-grabbing glow */
.k-live-pill {
  position: relative;
  animation: k-live-breathe 2.4s ease-in-out infinite;
}
@keyframes k-live-breathe {
  0%, 100% { box-shadow: 0 8px 22px rgba(230,19,66,0.42), 0 0 0 0 rgba(230,19,66,0.55); }
  60%      { box-shadow: 0 8px 26px rgba(230,19,66,0.55), 0 0 0 12px rgba(230,19,66,0); }
}
.k-live-pill .k-pulse { background: #fff; }
.k-live-pill .k-pulse::after { border-color: rgba(255,255,255,0.9); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.k-faq-item {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-r);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.k-faq-item[data-open="1"] {
  border-color: rgba(229,74,124,0.30);
  box-shadow: 0 8px 22px rgba(229,74,124,0.10);
}
.k-faq-q {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  cursor: pointer; user-select: none;
}
.k-faq-q .qmark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.k-faq-q .qtext { flex: 1; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.k-faq-q .plus {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--cp-line-2);
  color: var(--cp-ink-soft);
  font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.k-faq-item[data-open="1"] .plus {
  transform: rotate(45deg);
  color: var(--pink-600);
  border-color: var(--pink-500);
}
.k-faq-a {
  padding: 0 16px 16px 54px;
  font-size: 12.5px; line-height: 1.85;
  color: var(--cp-ink-soft);
}

/* ============================================================
   Bottom nav
   ============================================================ */
.k-bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: end;
  padding: 8px 14px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--cp-line);
}
.k-bottom-nav .item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--cp-ink-mute);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.k-bottom-nav .item[data-on="1"] { color: var(--pink-600); font-weight: 700; }
.k-bottom-nav .item svg { width: 22px; height: 22px; }
.k-bottom-nav .cta-center {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--pink-400), var(--pink-600));
  border: none;
  color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.1;
  cursor: pointer;
  margin-top: -22px;
  box-shadow:
    0 6px 18px rgba(229,74,124,0.40),
    inset 0 1px 0 rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Sidebar
   ============================================================ */
.k-sidebar-backdrop {
  position: absolute; inset: 0;
  background: rgba(42,26,36,0.55);
  backdrop-filter: blur(4px);
  z-index: 50;
}
.k-sidebar {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 86%;
  background: var(--cp-bg);
  border-left: 1px solid var(--cp-line);
  z-index: 51;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(42,26,36,0.25);
}

/* ============================================================
   Marquee
   ============================================================ */
.k-marquee-wrap {
  padding: 14px 0;
  background: var(--cp-surface-2);
  border-top: 1px solid var(--cp-line);
  border-bottom: 1px solid var(--cp-line);
  overflow: hidden;
}
.k-marquee-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: k-marquee 22s linear infinite;
}
.k-marquee-track span {
  display: inline-flex; align-items: center; gap: 32px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.32em; color: var(--pink-600);
  text-transform: uppercase;
}
.k-marquee-track .dot {
  width: 5px; height: 5px;
  background: var(--pink-500);
  border-radius: 50%;
}
@keyframes k-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.33%); }
}

/* ============================================================
   Scroll
   ============================================================ */
.k-scroll {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  background: var(--cp-bg);
  scroll-behavior: smooth;
}
.k-scroll-pad-bottom { padding-bottom: 110px; }

.k-hr {
  height: 1px;
  background: var(--cp-line);
  border: 0;
}

/* ============================================================
   Photo placeholder — dusty rose stripes (carried from DS)
   ============================================================ */
.k-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--cp-r);
}
.k-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent 0 18px, rgba(255,255,255,0.08) 18px 19px
  );
}
.k-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(255,255,255,0.18), transparent 60%);
}
.k-photo .caption {
  position: absolute; left: 12px; bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes k-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes k-cast-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes k-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

/* ============================================================
   Hero blobs (cream + pink ambient)
   ============================================================ */
.k-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

/* ============================================================
   NIGHT × SEDUCTIVE RED THEME OVERRIDE
   Applied at .kanade-lp[data-theme="night"]. Re-maps the DS
   tokens at LP scope so all components inherit dark+red.
   ============================================================ */
.kanade-lp[data-theme="night"] {
  /* Surfaces — deep wine black */
  --cp-bg:        #0E0509;
  --cp-surface:   #1B0911;
  --cp-surface-2: #28101A;
  --cp-tint:      #2A0D17;
  --bg-page:      #100610;

  /* Ink */
  --cp-ink:        #FFF1F0;
  --cp-ink-soft:   rgba(255,241,240,0.68);
  --cp-ink-mute:   rgba(255,241,240,0.42);

  /* Hairlines */
  --cp-line:    rgba(255,255,255,0.08);
  --cp-line-2:  rgba(255,255,255,0.16);

  /* Crimson / seductive red scale (replaces pink scale) */
  --pink-50:  #1F0810;     /* faint dark wash */
  --pink-100: #3A0D1A;     /* badge bg */
  --pink-200: #6E1530;     /* blob */
  --pink-300: #8E1734;
  --pink-400: #D31A4A;     /* CTA gradient top */
  --pink-500: #E61342;     /* PRIMARY seductive red */
  --pink-600: #A30D2C;     /* deeper red */
  --pink-700: #FF8FA0;     /* light text on dark surfaces */
  --pink-800: #FFB2C0;

  /* Coral / warm CTA pair */
  --coral-500: #FF3D55;
  --coral-600: #B6132C;

  /* Gold — slightly warmer for night */
  --cp-gold: #E0B068;

  /* Shadows — deeper for dark UI */
  --cp-shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 16px rgba(0,0,0,0.55);
  --cp-shadow:    0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.65);
  --cp-shadow-lg: 0 24px 60px rgba(0,0,0,0.7), 0 0 60px rgba(230,19,66,0.18);

  /* Plan tokens kept dark-friendly */
  --bg-card-cream:   #2A1018;
  --bg-card-cream-2: #1A0810;
}

/* Re-tone individual surfaces under night theme that the LP
   intentionally renders in a non-default fill. */
.kanade-lp[data-theme="night"] .k-notif {
  background: rgba(230,19,66,0.10);
  border-color: rgba(230,19,66,0.30);
  color: var(--cp-ink-soft);
}
.kanade-lp[data-theme="night"] .k-marquee-wrap {
  background: var(--cp-surface);
  border-color: var(--cp-line);
}
.kanade-lp[data-theme="night"] .k-marquee-track span {
  color: var(--pink-700);
}

/* Top bar — light by default, white when night */
.k-topbar {
  background: rgba(250,243,240,0.85);
  border-bottom: 1px solid var(--cp-line);
  color: var(--cp-ink);
}
.k-topbar .k-wordmark { color: var(--cp-ink); }
.k-topbar-btn {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  color: var(--cp-ink);
}

.kanade-lp[data-theme="night"] .k-topbar {
  background: #FFFFFF;
  border-bottom-color: rgba(0,0,0,0.08);
}
.kanade-lp[data-theme="night"] .k-topbar .k-wordmark { color: #0A0508; }
.kanade-lp[data-theme="night"] .k-topbar-btn {
  background: #F2F2F4;
  border-color: rgba(0,0,0,0.08);
  color: #0A0508;
}

/* Bottom nav — dark glass */
.kanade-lp[data-theme="night"] .k-bottom-nav {
  background: rgba(14,5,9,0.85);
  border-top-color: var(--cp-line);
}

/* Sidebar */
.kanade-lp[data-theme="night"] .k-sidebar {
  background: var(--cp-surface);
}
.kanade-lp[data-theme="night"] .k-sidebar-backdrop {
  background: rgba(0,0,0,0.65);
}

/* FAQ active glow → red */
.kanade-lp[data-theme="night"] .k-faq-item[data-open="1"] {
  border-color: rgba(230,19,66,0.40);
  box-shadow: 0 8px 24px rgba(230,19,66,0.18);
}
.kanade-lp[data-theme="night"] .k-faq-q .qmark {
  background: rgba(230,19,66,0.18);
  color: var(--pink-700);
}

/* Pricing featured cream-side becomes burgundy on night */
.kanade-lp[data-theme="night"] .cream-side.featured {
  background: linear-gradient(180deg, #3D1424 0%, #5E1530 100%);
  color: var(--cp-ink);
}
.kanade-lp[data-theme="night"] .cream-side.featured .k-num,
.kanade-lp[data-theme="night"] .cream-side.featured span {
  color: #FFD8BE !important;
}
.kanade-lp[data-theme="night"] .save-pill {
  background: rgba(230,19,66,0.22);
  color: var(--pink-700);
  border-color: rgba(230,19,66,0.40);
}
.kanade-lp[data-theme="night"] .popular-ribbon {
  background: linear-gradient(180deg, #E0B068 0%, #8B6320 100%);
}

/* Stats card border tint */
.kanade-lp[data-theme="night"] .k-card-tinted {
  background: rgba(230,19,66,0.08);
  border-color: rgba(230,19,66,0.18);
}

/* Eyebrow → seductive red */
.kanade-lp[data-theme="night"] .k-eyebrow {
  color: var(--pink-500);
  text-shadow: 0 0 16px rgba(230,19,66,0.45);
}

/* Buttons retain pink-400→600 (now crimson scale) automatically */
.kanade-lp[data-theme="night"] .k-cta {
  background: linear-gradient(180deg, #FF4566 0%, #D31A4A 55%, #B0102E 100%);
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0,0,0,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 1px 0 rgba(0,0,0,0.18),
    0 6px 18px rgba(230,19,66,0.30);
}
.kanade-lp[data-theme="night"] .k-cta-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--cp-line-2);
  color: var(--cp-ink);
}

/* Featured pricing purple side → dark red */
.kanade-lp[data-theme="night"] .purple-side.featured {
  background:
    radial-gradient(120% 140% at 100% 0%, #8E1734 0%, transparent 55%),
    linear-gradient(135deg, #5E1530 0%, #2A0810 100%);
}

/* Bottom nav center CTA — keep crimson glow */
.kanade-lp[data-theme="night"] .k-bottom-nav .cta-center {
  box-shadow:
    0 6px 22px rgba(230,19,66,0.55),
    inset 0 1px 0 rgba(255,255,255,0.20);
}

/* ============================================================
   Hero video wrap (night theme)
   ============================================================ */
.k-hero-video {
  position: relative;
  width: 100%;
  border-radius: var(--cp-r-lg);
  overflow: hidden;
  border: 1px solid var(--cp-line-2);
  box-shadow: var(--cp-shadow-lg);
}
.k-hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.k-hero-video::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,5,9,0.0) 40%, rgba(14,5,9,0.55) 100%),
    radial-gradient(140% 80% at 50% 0%, rgba(230,19,66,0.20), transparent 60%);
}
