/* TimeCrowd AI — Teaser + LP (Dark) */

:root {
  --color-primary: #ff6b9d;
  --color-secondary: #7c3aed;
  --color-dark: #0f0f1a;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: rgba(255, 255, 255, 0.85);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-text-dim: rgba(255, 255, 255, 0.3);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-dark);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

a { color: rgba(255, 255, 255, 0.85); }
a:hover { color: #fff; }

.teaser-page { overflow-x: hidden; }

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================
   SITE HEADER
   ================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
}

.site-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.site-header-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header-nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.site-header-nav-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-left: 8px;
}

.site-header-nav-cta:hover {
  opacity: 0.85;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.site-header-nav-api {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(124, 58, 237, 0.12));
  color: var(--color-secondary);
  font-weight: 600;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.site-header-nav-api:hover,
.site-header-nav-api.active,
.nav-dropdown.active .site-header-nav-api {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(124, 58, 237, 0.2));
  color: white;
  border-color: rgba(124, 58, 237, 0.4);
}

/* AI nav button */
.site-header-nav-ai {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(124, 58, 237, 0.12));
  color: #38bdf8;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.site-header-nav-ai:hover,
.site-header-nav-ai.active,
.nav-dropdown.active .site-header-nav-ai {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(124, 58, 237, 0.2));
  color: white;
  border-color: rgba(56, 189, 248, 0.4);
}

/* 外注 nav button */
.site-header-nav-outsourcing {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.12));
  color: #34d399;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.site-header-nav-outsourcing:hover,
.site-header-nav-outsourcing.active {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.2));
  color: white;
  border-color: rgba(52, 211, 153, 0.4);
}

/* Nav dropdown menus (API, AI) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.nav-dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: rgba(30, 30, 50, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 1100;
}

.nav-dropdown-menu.is-open {
  display: block;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.site-header-nav-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

/* User dropdown menu */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-text);
}

.user-menu-trigger:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.user-menu-arrow {
  transition: transform 0.2s ease;
}

.user-menu.is-open .user-menu-arrow {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(30, 30, 50, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 1100;
}

.user-menu-dropdown.is-open {
  display: block;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
}

.user-menu-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.user-menu-item-logout {
  color: var(--color-primary);
}

.user-menu-item-logout:hover {
  background: rgba(255, 107, 157, 0.1);
  color: var(--color-primary);
}

.user-menu-logout-form {
  margin: 0;
}

/* Hamburger button — hidden on desktop */
.site-header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.site-header-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header-hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header-hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.site-header-hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay — hidden by default */
.site-header-overlay {
  display: none;
}

/* Mobile header */
@media (max-width: 768px) {
  /* CRITICAL: Remove backdrop-filter on mobile.
     backdrop-filter creates a containing block for position:fixed children
     in Safari/iOS, causing the sidebar nav (top:60px;bottom:0) to be
     positioned relative to the 60px-tall header instead of the viewport,
     resulting in a 0px-tall invisible sidebar. */
  .site-header {
    background: #0f0f1a;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header-hamburger {
    display: flex;
  }

  .site-header-nav {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    background-color: #0f0f1a;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header-nav.is-open {
    transform: translateX(0);
  }

  .site-header-nav-link {
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-header-nav-link:first-child {
    border-top: 1px solid var(--color-border);
  }

  .site-header-nav-cta {
    margin: 16px 24px 0;
    text-align: center;
    border-radius: 50px;
    border-bottom: none;
  }

  .user-menu {
    position: static;
  }

  .user-menu-trigger {
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .user-menu-dropdown {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .user-menu-item {
    padding: 16px 24px 16px 40px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }

  /* Nav dropdown mobile styles */
  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-trigger {
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .nav-dropdown-item {
    padding: 16px 24px 16px 40px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-header-nav-outsourcing {
    border-radius: 0;
  }

  .site-header-overlay.is-open {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Header spacing — only for pages without full-screen hero */
.teaser-page > .lp-body:first-child {
  padding-top: 80px;
}

/* ================================
   TEASER HERO
   ================================ */
.teaser {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

.teaser-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.teaser-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15,15,26,0.60) 0%,
    rgba(15,15,26,0.78) 50%,
    rgba(15,15,26,0.95) 100%);
}

.teaser-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.5;
}

.teaser-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 16px;
  max-width: 820px;
}

.teaser-title {
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: white;
}
.teaser-title-highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.teaser-catchcopy-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}
.teaser-catchcopy-link:hover {
  opacity: 0.85;
}
.teaser-catchcopy-link:hover .teaser-title-highlight {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 4px;
}

.teaser-sub {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 2;
  margin-bottom: 20px;
}

.teaser-lead {
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  color: var(--color-text-muted);
  line-height: 2.2;
  margin-bottom: 8px;
}

.teaser-lead-strong {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: white;
  margin-bottom: 36px;
}

/* Countdown */
.teaser-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-value {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.12em;
  margin-top: 6px;
}

.countdown-sep {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  padding-top: 4px;
}

.teaser-date {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}

/* Metrics (ARR + Contacts) */
.teaser-metrics {
  display: inline-flex;
  gap: 0;
  margin-bottom: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.teaser-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 36px;
}

.teaser-metric + .teaser-metric {
  border-left: 1px solid var(--color-border);
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.metric-value {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* Hero notify form */
.hero-notify {
  max-width: 440px;
  width: 100%;
  margin-bottom: 40px;
}

.hero-notify-milestone {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-notify-form .notify-input-wrap {
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.hero-notify-form .notify-input-wrap:focus-within {
  border-color: var(--color-secondary);
}

/* Scroll hint */
.teaser-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bounce 2s infinite;
}

.teaser-scroll-hint span {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  letter-spacing: 0.15em;
  font-weight: 500;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ================================
   LP BODY (dark overlay sections)
   ================================ */
.lp-body {
  background: var(--color-dark);
}

.lp-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.lp-section {
  padding: 80px 16px;
  border-top: 1px solid var(--color-border);
}

.lp-section-highlight {
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(255,107,157,0.06) 100%);
}

.lp-heading {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: white;
  line-height: 1.5;
}

.lp-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 2;
}

.lp-text strong {
  color: var(--color-text);
}

.lp-note {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  text-align: center;
  margin-top: 28px;
  line-height: 1.8;
}

/* ================================
   Lead text (narrative)
   ================================ */
.lp-lead {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.lp-lead p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 2.2;
  margin-bottom: 20px;
}

.lp-lead-strong {
  font-weight: 700 !important;
  color: white !important;
  font-size: 1.05rem !important;
}

.lp-lead-conclusion {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: white !important;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================
   Steps
   ================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.steps-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.2s ease;
}

.step-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 800;
  font-size: 1.2rem;
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.step-number-ai {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border: none;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.step-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.step-card-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.step-card-link:hover {
  border-color: var(--color-secondary);
}

/* Clickable row / card (used with Stimulus clickable controller) */
.clickable-row {
  cursor: pointer;
  transition: background 0.15s;
}
.clickable-row:hover {
  background: var(--color-surface-hover);
}
.clickable-card {
  cursor: pointer;
  transition: border-color 0.2s, background 0.15s;
}
.clickable-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--color-surface-hover);
}

.step-more {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.step-more-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.step-more-link:hover {
  opacity: 0.8;
}

/* Steps hero section (below hero, horizontal scroll on mobile) */
.steps-hero-section {
  padding: 0 20px;
  border-top: none;
}

.steps-hero-section .lp-container {
  max-width: 1100px;
  margin: 0 auto;
}

.steps-hero-section .lp-heading {
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
}

.steps-hero-section .steps-grid {
  margin: 4px 0 0;
}

.steps-scroll-wrap {
  overflow-x: visible;
}

/* Deliverables section (3ヶ月で出すもの) */
#deliverables {
  padding: 60px 16px;
  border-top: 1px solid var(--color-border);
}

.deliverables-list {
  list-style: none;
  padding: 0;
  max-width: 640px;
  margin: 0 auto 24px;
}

.deliverables-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.deliverables-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent, #7c3aed);
  font-weight: 700;
}

.deliverables-note {
  font-size: 0.9rem;
  margin-top: 16px;
}

.step-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 24px;
}

.step-back:hover {
  color: white;
}

.step-detail-header {
  text-align: center;
}

.step-detail-header .step-number {
  margin-bottom: 24px;
}

.steps-grid-nav {
  grid-template-columns: repeat(2, 1fr);
}

/* ================================
   Comparison Table
   ================================ */
.comparison-table {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr;
}

.comparison-header {
  background: rgba(255,255,255,0.06);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.comparison-row {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.comparison-cell {
  padding: 14px 12px;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.comparison-label-cell {
  font-weight: 700;
  color: var(--color-text);
  background: rgba(255,255,255,0.03);
  justify-content: flex-start;
  text-align: left;
}

.comparison-header .comparison-label-cell {
  background: transparent;
}

.comparison-highlight-col {
  background: rgba(124, 58, 237, 0.08);
}

.comparison-header .comparison-highlight-col {
  background: rgba(124, 58, 237, 0.2);
  color: white;
}

.comparison-good {
  color: var(--color-secondary);
  font-weight: 700;
}

.comparison-ok {
  color: var(--color-text-muted);
}

.comparison-bad {
  color: #ef4444;
  font-weight: 500;
}

/* ================================
   Stats
   ================================ */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-unit {
  font-size: 0.4em;
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ================================
   Pricing
   ================================ */
.pricing-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 24px 16px;
  margin: 32px -24px 0;
}

.pricing-scroll::-webkit-scrollbar { display: none; }

.pricing-grid {
  display: flex;
  gap: 20px;
  min-width: min-content;
  padding: 20px 0 8px;
}

.pricing-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-4px);
}

.pricing-card-popular {
  border: 2px solid var(--color-secondary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
}

.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.pricing-risk-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.pricing-risk-low {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.pricing-risk-mid {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.pricing-risk-high {
  background: rgba(255, 107, 157, 0.15);
  color: var(--color-primary);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 20px;
}

.pricing-unit {
  font-size: 0.35em;
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}

.pricing-features li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.pricing-disabled {
  color: var(--color-text-dim) !important;
}

.pricing-disabled::before {
  content: "\2014" !important;
  color: var(--color-text-dim) !important;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ================================
   Schedule
   ================================ */
.schedule-subtitle {
  margin-bottom: 40px;
}

.schedule-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 8px;
  margin-bottom: 48px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.schedule-timeline::-webkit-scrollbar { display: none; }

.schedule-track {
  position: absolute;
  top: 10px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.5;
}

.schedule-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
  min-width: 64px;
  z-index: 1;
}

.schedule-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-text-muted);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.schedule-dot-launch {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.5);
}

.schedule-dot-goal {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.schedule-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.schedule-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.schedule-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.schedule-detail-goal {
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.85rem;
}

.schedule-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.schedule-note-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.schedule-note-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.schedule-note-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* ================================
   Email Notify Form
   ================================ */
.notify-milestone {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.notify-form {
  max-width: 480px;
  margin: 32px auto 0;
}

.notify-input-wrap {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}

.notify-input-wrap:focus-within {
  border-color: var(--color-secondary);
}

.notify-input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: white;
  outline: none;
}

.notify-input::placeholder {
  color: var(--color-text-dim);
}

.notify-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.notify-btn:hover {
  opacity: 0.85;
}

.notify-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-align: center;
  margin-top: 12px;
}

.notify-success,
.notify-error {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notify-success { color: var(--color-secondary); }
.notify-error { color: #ef4444; }

.notify-success.show,
.notify-error.show {
  opacity: 1;
}

/* ================================
   Footer
   ================================ */
.lp-footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.lp-footer-project {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.lp-footer-note {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* Value Cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.2s ease;
}

.value-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.5;
}

.value-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 900px) {
  .comparison-header,
  .comparison-row {
    grid-template-columns: 80px 1fr 1fr 1fr;
  }

  .comparison-cell {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .steps-grid,
  .steps-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Keep horizontal layout for hero steps at tablet */
  .steps-horizontal {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .lp-section {
    padding: 32px 16px;
  }

  .lp-heading {
    margin-bottom: 12px;
  }

  .lp-text {
    margin-bottom: 12px;
  }

  .steps-hero-section {
    padding: 8px 20px;
  }
}

@media (max-width: 640px) {
  .teaser {
    align-items: flex-start;
    padding-top: 36px;
  }

  .teaser-content {
    padding: 8px 20px 12px;
  }

  .teaser-title {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }

  .teaser-sub {
    font-size: 0.8rem;
    margin-bottom: 8px;
    line-height: 1.6;
  }

  .teaser-countdown {
    gap: 4px;
    margin-bottom: 8px;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  .countdown-label {
    font-size: 0.55rem;
    margin-top: 2px;
  }

  .countdown-sep {
    font-size: 1.2rem;
  }

  .countdown-unit { min-width: 44px; }

  .teaser-metrics {
    margin-bottom: 10px;
  }

  .teaser-metric {
    padding: 8px 16px;
  }

  .metric-value {
    font-size: 1.2rem;
  }

  .teaser-scroll-hint {
    display: none;
  }

  .lp-section {
    padding: 20px 16px;
  }

  .lp-heading {
    margin-bottom: 8px;
    line-height: 1.3;
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  }

  .sales-section-number {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    margin: 0 auto 4px;
  }

  .lp-text {
    margin-bottom: 8px;
    line-height: 1.6;
  }

  .lp-lead p {
    font-size: 0.88rem;
    margin-bottom: 8px;
    line-height: 1.6;
  }

  .pricing-grid {
    padding: 8px 0 4px;
  }

  .steps-grid,
  .steps-grid-3,
  .steps-grid-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Horizontal scroll for steps below hero on mobile */
  .steps-hero-section {
    padding: 4px 0 0;
  }

  .steps-hero-section .lp-heading {
    padding: 0 20px;
  }

  .steps-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 20px;
    scrollbar-width: none;
  }

  .steps-scroll-wrap::-webkit-scrollbar {
    display: none;
  }

  .steps-horizontal {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 4px;
  }

  .steps-horizontal .step-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .value-card {
    padding: 14px 12px;
    text-align: center;
  }

  .value-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .value-title {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .value-desc {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .step-card { padding: 24px 20px; }
  .step-title { font-size: 0.95rem; }
  .step-desc { font-size: 0.8rem; }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 60px 1fr 1fr 1fr;
  }

  .comparison-cell {
    padding: 8px 4px;
    font-size: 0.7rem;
  }

  .comparison-label-cell { font-size: 0.7rem; }

  .stats-row { gap: 24px; }
  .stat-value { font-size: 2rem; }

  .pricing-scroll {
    margin-top: 8px;
  }

  .pricing-card {
    flex: 0 0 260px;
    padding: 24px 20px;
  }

  .pricing-header h3 { font-size: 1rem; }
  .pricing-price { font-size: 2rem; margin-bottom: 16px; }
  .pricing-features li { font-size: 0.85rem; }
  .pricing-note { font-size: 0.75rem; }

  .schedule-timeline {
    gap: 4px;
    padding: 0 4px;
  }

  .schedule-item {
    min-width: 48px;
  }

  .schedule-dot {
    width: 14px;
    height: 14px;
    margin-bottom: 8px;
  }

  .schedule-date {
    font-size: 0.72rem;
  }

  .schedule-label {
    font-size: 0.65rem;
  }

  .schedule-detail {
    font-size: 0.65rem;
  }

  .schedule-notes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .schedule-note-card {
    padding: 16px;
  }

  .schedule-note-card p {
    font-size: 0.82rem;
  }

  .notify-input { padding: 12px 16px; font-size: 0.9rem; }
  .notify-btn { padding: 12px 20px; font-size: 0.85rem; }
}

/* Desktop: compact teaser so LP content is visible in first viewport */
@media (min-width: 769px) {
  .teaser-content {
    padding: 100px 16px 48px;
  }

  .teaser-sub {
    margin-bottom: 12px;
  }

  .teaser-lead-strong {
    margin-bottom: 20px;
  }

  .teaser-date {
    margin-bottom: 28px;
  }

  .teaser-metrics {
    margin-bottom: 28px;
  }

  .hero-notify {
    margin-bottom: 24px;
  }

  .teaser-countdown {
    margin-bottom: 10px;
  }
}

@media (min-width: 1200px) {
  .pricing-scroll {
    display: flex;
    justify-content: center;
  }

  .pricing-grid { gap: 24px; }
  .pricing-card { flex: 0 0 270px; }
}

/* ================================
   SALES LP
   ================================ */
.sales-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 16px 100px;
  background: linear-gradient(180deg, rgba(124,58,237,0.12) 0%, var(--color-dark) 100%);
}
.sales-hero-content {
  text-align: center;
  max-width: 820px;
}
.sales-hero-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.sales-hero-title {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sales-section-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}
.sales-challenges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.sales-challenge-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.sales-challenge-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}
.sales-challenge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 16px;
  text-align: center;
}
.sales-challenge-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  text-align: center;
}
.sales-should-do {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 32px;
}
.sales-should-do-item {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(124,58,237,0.12));
  color: white;
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.sales-problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.sales-problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.sales-problem-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}
.sales-problem-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 12px;
}
.sales-problem-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.sales-needs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.sales-need-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.sales-need-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}
.sales-need-quote {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.5;
}
.sales-need-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.sales-answer {
  text-align: center;
  margin-top: 48px;
}
.sales-answer-text {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: white;
}
.sales-answer-text .gradient-text {
  font-size: 1.2em;
}
.sales-workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.sales-workflow-block {
  text-align: center;
}
.sales-workflow-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.sales-workflow-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}
.sales-tasks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sales-task-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease;
}
.sales-task-item:last-child {
  border-bottom: none;
}
.sales-task-item:hover {
  background: var(--color-surface-hover);
}
.sales-task-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  min-width: 100px;
  flex-shrink: 0;
}
.sales-task-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.sales-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.sales-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.sales-feature-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}
.sales-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.5;
}
.sales-feature-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}
.sales-price-hero {
  text-align: center;
  margin: 32px 0;
  padding: 48px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.sales-price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.sales-price-prefix {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.sales-price-value {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.sales-price-unit {
  font-size: 0.35em;
  font-weight: 700;
}
.sales-price-tax {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.sales-price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.sales-price-cta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.8;
}
.sales-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.sales-kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
}
.sales-kpi-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  background: rgba(255, 107, 157, 0.15);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.sales-kpi-badge-long {
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-secondary);
}
.sales-kpi-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.sales-kpi-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.sales-kpi-desc strong {
  color: var(--color-text);
}
.sales-kpi-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-top: 12px;
}
.sales-roi-table {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.sales-roi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}
.sales-roi-row:last-child {
  border-bottom: none;
}
.sales-roi-header {
  background: rgba(255, 255, 255, 0.06);
}
.sales-roi-header span {
  font-weight: 700;
  color: var(--color-text);
}
.sales-roi-row span {
  padding: 12px 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.sales-roi-row .gradient-text {
  font-weight: 700;
}
.sales-formula {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px 0;
  padding: 20px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.sales-formula-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.sales-formula-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}
.sales-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px auto;
  max-width: 720px;
}
.sales-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.sales-step:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}
.sales-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.sales-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}
.sales-step-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.sales-step-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}
.sales-cta-actions {
  text-align: center;
  margin-top: 32px;
}
.sales-cta-btn {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-main);
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sales-cta-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ================================
   AI Showcase (Landing Page)
   ================================ */
.ai-showcase {
  margin: 40px auto;
  max-width: 560px;
}

.ai-showcase-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ai-showcase-prompt-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ai-showcase-prompt-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.08em;
}

.ai-showcase-prompt-bubble {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  position: relative;
}

.ai-showcase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.ai-showcase-result {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ai-showcase-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
}

.ai-showcase-result-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.ai-showcase-result-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.ai-showcase-chart-mock {
  padding: 24px 20px;
}

.chart-mock-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  height: 120px;
}

.chart-mock-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.chart-mock-bar {
  width: 100%;
  max-width: 48px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.chart-mock-bar-group:hover .chart-mock-bar {
  opacity: 1;
}

.chart-mock-label {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  font-weight: 600;
}

/* AI Showcase Examples */
.ai-showcase-examples {
  margin-top: 48px;
}

.ai-showcase-examples-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}

.ai-showcase-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ai-showcase-example-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.ai-showcase-example-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.3);
}

.ai-showcase-example-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.ai-showcase-example-prompt {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 500;
}

.ai-showcase-example-type {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-secondary);
}

/* ================================
   AI Prompt Flow (STEP 2 Page)
   ================================ */
.ai-prompt-flow {
  max-width: 640px;
  margin: 40px auto;
}

.ai-prompt-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.ai-prompt-flow-step:hover {
  background: var(--color-surface-hover);
  transform: translateX(4px);
}

.ai-prompt-flow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  flex-shrink: 0;
}

.ai-prompt-flow-content {
  flex: 1;
}

.ai-prompt-flow-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.ai-prompt-flow-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.ai-prompt-flow-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0 4px 16px;
}

/* AI Prompt Examples Compact */
.ai-prompt-examples-compact {
  margin-top: 40px;
}

.ai-prompt-examples-compact-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.ai-prompt-examples-compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.ai-prompt-example-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.ai-prompt-example-chip:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(124, 58, 237, 0.1));
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateX(4px);
}

.ai-prompt-example-chip-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* AI Showcase Responsive */
@media (max-width: 640px) {
  .ai-showcase-examples-grid {
    grid-template-columns: 1fr;
  }

  .ai-showcase-prompt-bubble {
    font-size: 0.85rem;
    padding: 12px 20px;
  }

  .chart-mock-bars {
    gap: 12px;
    height: 90px;
  }

  .ai-prompt-flow-step {
    padding: 16px 18px;
  }

  .ai-prompt-flow-title {
    font-size: 0.92rem;
  }

  .ai-prompt-flow-desc {
    font-size: 0.8rem;
  }

  .ai-prompt-example-chip {
    font-size: 0.82rem;
    padding: 12px 16px;
  }
}

/* Sales LP responsive */
@media (max-width: 900px) {
  .sales-challenges,
  .sales-workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sales-hero {
    padding: 120px 24px 60px;
  }
  .sales-problems,
  .sales-needs,
  .sales-features,
  .sales-kpi-grid {
    grid-template-columns: 1fr;
  }
  .sales-task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .sales-task-name {
    min-width: auto;
  }
}

@media (max-width: 640px) {
  .sales-hero {
    padding: 100px 20px 48px;
  }
  .sales-challenge-card,
  .sales-problem-card,
  .sales-need-card,
  .sales-feature-card,
  .sales-kpi-card {
    padding: 24px 20px;
  }
  .sales-step {
    padding: 24px 20px;
  }
  .sales-price-hero {
    padding: 32px 20px;
  }
  .sales-roi-row span {
    padding: 10px 4px;
    font-size: 0.78rem;
  }
  .sales-should-do {
    gap: 8px;
  }
  .sales-should-do-item {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

/* ================================
   TWO-COLUMN APP LAYOUT
   ================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
}

.app-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.app-sidebar {
  width: 360px;
  flex-shrink: 0;
  border-left: 1px solid var(--color-border);
  background: rgba(15, 15, 26, 0.95);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  transition: width 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.sidebar-collapsed .app-sidebar {
  width: 0;
  border-left: none;
  opacity: 0;
  pointer-events: none;
}

.sidebar-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.sidebar-expanded .sidebar-toggle-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* ================================
   SIDEBAR CHAT
   ================================ */
.sidebar-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-chat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.sidebar-chat-provider-label {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-chat-provider-online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.sidebar-chat-provider-offline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.sidebar-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.sidebar-chat-empty {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  text-align: center;
  padding: 32px 8px;
  align-self: center;
}

.sidebar-chat-login-hint {
  padding: 6px 14px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  background: rgba(124,58,237,0.06);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  text-align: center;
}

.sb-msg {
  display: flex;
  flex-direction: column;
  max-width: 95%;
  animation: sbFadeIn 0.25s ease;
}

.sb-msg-user { align-self: flex-end; }
.sb-msg-ai { align-self: flex-start; }
.sb-msg-system { align-self: center; }

.sb-msg-bubble {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.sb-msg-user .sb-msg-bubble {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-bottom-right-radius: 3px;
}

.sb-msg-ai .sb-msg-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-bottom-left-radius: 3px;
}

.sb-greeting-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  transition: color 0.15s, border-color 0.15s;
}
.sb-greeting-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.sb-msg-error {
  background: rgba(234,67,53,0.12) !important;
  border: 1px solid rgba(234,67,53,0.25) !important;
  color: #ff6b6b !important;
  font-size: 0.78rem !important;
}

.sb-msg-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 50px;
  background: rgba(124,58,237,0.15);
  color: var(--color-secondary);
  margin-right: 4px;
}

.sidebar-chat-context {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(124,58,237,0.08);
  border-top: 1px solid rgba(124,58,237,0.15);
  flex-shrink: 0;
}

.sidebar-chat-form {
  padding: 10px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.sidebar-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.sidebar-chat-input {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--color-text);
  font-family: var(--font-main);
  resize: none;
  line-height: 1.5;
  max-height: 100px;
  overflow-y: auto;
}

.sidebar-chat-input:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.sidebar-chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.sidebar-chat-send:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.sidebar-chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.sb-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 8px 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  border-bottom-left-radius: 3px;
}

.sb-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: sbTyping 1.4s infinite;
}

.sb-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.sb-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes sbFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sbTyping {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
  .app-sidebar { width: 320px; }
}

@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    z-index: 998;
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .sidebar-collapsed .app-sidebar {
    width: 100%;
    max-width: 360px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }

  .sidebar-expanded .app-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ================================
   ADMIN SELECTION POPUP (右下 - 245clashウィジェットと重ならないよう右側に配置)
   ================================ */
.admin-selection-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(20, 20, 35, 0.97);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  font-family: var(--font-main);
  color: var(--color-text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
  -webkit-user-select: none;
}

.admin-selection-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.admin-selection-popup__title {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-selection-popup__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.admin-selection-popup__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.admin-selection-popup__selected-text {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
}

.admin-selection-popup__label {
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.admin-selection-popup__text {
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.admin-selection-popup__actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

.admin-selection-popup__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.admin-selection-popup__btn:hover {
  background: var(--color-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-selection-popup__btn--word:hover {
  border-color: rgba(255, 107, 157, 0.4);
  color: var(--color-primary);
}

.admin-selection-popup__btn--task:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--color-secondary);
}

.admin-selection-popup__form-area {
  border-top: 1px solid var(--color-border);
}

.admin-selection-popup__form {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-selection-popup__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-selection-popup__field label {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.admin-selection-popup__field input,
.admin-selection-popup__field textarea,
.admin-selection-popup__field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--color-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.admin-selection-popup__field input:focus,
.admin-selection-popup__field textarea:focus,
.admin-selection-popup__field select:focus {
  border-color: rgba(124, 58, 237, 0.5);
}

.admin-selection-popup__field textarea {
  resize: vertical;
  min-height: 60px;
}

.admin-selection-popup__field select {
  cursor: pointer;
}

.admin-selection-popup__submit {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.admin-selection-popup__submit:hover {
  opacity: 0.9;
}

.admin-selection-popup__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-selection-popup__message {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
}

.admin-selection-popup__message--success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.admin-selection-popup__message--error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
  .admin-selection-popup {
    top: 20px;
    bottom: auto;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 60vh;
  }
}

/* ===== Tenant Settings ===== */
.settings-page {
  padding: 100px 20px 60px;
  min-height: 100vh;
}
.settings-container {
  max-width: 800px;
  margin: 0 auto;
}
.settings-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.settings-description {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.settings-flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}
.settings-flash-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.settings-flash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.settings-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.settings-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
.settings-section-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.settings-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--color-text);
  font-size: 14px;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}
.settings-input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.settings-textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--color-text);
  font-size: 14px;
  font-family: var(--font-main);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
}
.settings-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.settings-color-input {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 2px;
}
.settings-color-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: monospace;
}
.settings-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
  font-family: var(--font-main);
}
.settings-btn:hover { opacity: 0.9; }

/* Toggle Grid */
.settings-toggle-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.settings-toggle-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.settings-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.settings-toggle-desc {
  font-size: 12px;
  color: var(--color-text-muted);
}
.settings-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.settings-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.settings-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: background 0.3s;
  cursor: pointer;
}
.settings-toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.settings-checkbox:checked + .settings-toggle-slider {
  background: #10b981;
}
.settings-checkbox:checked + .settings-toggle-slider::before {
  transform: translateX(20px);
}
.settings-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* Spec Preview */
.settings-spec-preview {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.settings-spec-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}
.settings-spec-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .settings-page { padding: 80px 12px 40px; }
  .settings-section { padding: 16px; }
  .settings-toggle-item { padding: 10px 12px; }
}
