/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Accent Button - Gold */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(96, 112, 190, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ===== Hero - Premium Design ===== */
.hero {
  padding: 120px 0 80px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.hero-fractal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  pointer-events: none;
  background: none;
}

/* Decorative Elements */
.hero::before {
  content: '';
  display: none;
}

.hero::after {
  content: '';
  display: none;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.hero-badge-pill {
  background: #2952C8;
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.08em;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #6A8AD8 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 500px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-platforms-label {
  font-family: 'Sora', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-platforms-list {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.hero-platform-chip {
  padding: 3px 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 8px;
}

.stat-item {
  text-align: left;
  transition: all var(--transition-base);
  position: relative;
  padding-left: 16px;
}

.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-unit {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.8;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image-wrapper {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.floating-card {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: float 3s ease-in-out infinite;
}

.hero-screenshot-wrapper {
  background: #FFFFFF;
  border-color: rgba(148, 163, 184, 0.36);
  border-radius: 18px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.16),
    0 8px 24px rgba(41, 82, 200, 0.08);
}

.hero-product-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
}

.floating-card-1 {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 40px;
  left: -40px;
  animation-delay: 1.5s;
}

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

.floating-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 16px;
}

.floating-card-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.floating-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Demo Tracker ===== */
.demo-tracker {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(203, 213, 225, 0.9);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.demo-tracker-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 14px;
  background: #F1F5FF;
  color: #334155;
  font-family: 'Sora', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(190, 205, 235, 0.9);
}

.demo-tracker-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.demo-tracker-task {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 24px 0;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
}

.demo-task-icon {
  width: 44px;
  height: 44px;
  background: #EEF4FF;
  color: var(--primary);
  border: 1px solid rgba(82, 115, 199, 0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-task-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-task-info {
  flex: 1;
}

.demo-task-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-primary);
}

.demo-task-project {
  font-size: 12.5px;
  color: var(--text-muted);
}

.demo-tracker-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: #FFFFFF;
}

.demo-timer-display {
  font-family: 'Outfit', sans-serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.demo-timer-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid #E65275;
  background: #FFFFFF;
  color: #E65275;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(230, 82, 117, 0.12);
}

.demo-timer-btn svg {
  width: 38px;
  height: 38px;
  display: block;
  fill: currentColor;
}

.demo-timer-btn:hover {
  background: #FFF5F7;
  border-color: #D93F66;
  color: #D93F66;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(230, 82, 117, 0.18);
}

.demo-timer-btn.recording {
  background: #FFF5F7;
  color: #D93F66;
  border-color: #D93F66;
  box-shadow: 0 12px 24px rgba(230, 82, 117, 0.14);
}

.demo-tracker-hint {
  margin: 0 24px 22px;
  padding: 12px 14px;
  background: #F8FAFC;
  color: var(--text-secondary);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.demo-tracker-started {
  margin: 0 24px 22px;
  padding: 12px 14px;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.recording-dot {
  width: 8px;
  height: 8px;
  background: #E54545;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.demo-timer-btn-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Calendar Cursor Animation ===== */
.cal-cursor-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.cal-ghost-event {
  position: absolute;
  left: 2px;
  right: 2px;
  background: var(--primary);
  border-radius: 4px;
  opacity: 0;
  height: 0;
}

.cal-cursor-hand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  opacity: 0;
}

.cal-cursor-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: rgba(82, 115, 199, 0.85);
  padding: 3px 8px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}

/* ===== Calendar Demo Section ===== */
.cal-demo-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #EAF0F8 0%, #DDE6F2 100%);
  position: relative;
}

.cal-demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cal-demo-content {
  animation: fadeInUp 0.8s ease-out;
}

.cal-demo-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cal-demo-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-body);
}

.cal-step-num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.cal-demo-visual {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Demo Calendar */
.demo-cal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(82, 115, 199, 0.15), 0 0 0 1px rgba(82, 115, 199, 0.1);
  overflow: hidden;
  user-select: none;
}

.demo-cal-head {
  padding: 12px 8px 0;
  border-bottom: 1px solid var(--border);
}

.demo-cal-month {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-cal-day-row {
  display: grid;
  grid-template-columns: 38px repeat(5, 1fr);
}

.demo-cal-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 8px;
}

.demo-cal-day-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.demo-cal-day-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

.demo-cal-day-cell.is-today .demo-cal-day-num {
  background: var(--primary);
  color: white;
}

.demo-cal-body {
  display: grid;
  grid-template-columns: 38px 1fr;
  height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
}

.demo-cal-times {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.demo-cal-time-cell {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3px 6px 0 0;
  font-size: 9px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.demo-cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  cursor: crosshair;
}

/* 1時間ごとの横線 */
.demo-cal-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--border) 0px,
    transparent 1px,
    transparent 39px,
    var(--border) 40px
  );
  pointer-events: none;
  z-index: 0;
}

/* 30分ごとの細線 */
.demo-cal-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 19px,
    rgba(0,0,0,0.04) 20px,
    transparent 21px,
    transparent 39px,
    transparent 40px
  );
  pointer-events: none;
  z-index: 0;
}

.demo-cal-col {
  position: relative;
  border-right: 1px solid var(--border);
  z-index: 1;
}

.demo-cal-col:last-child {
  border-right: none;
}

.demo-cal-event {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 4px;
  padding: 3px 5px;
  color: white;
  font-size: 10px;
  overflow: hidden;
  z-index: 2;
}

.demo-cal-event.is-preset {
  opacity: 0.9;
  cursor: default;
}

.demo-cal-event.is-dragging {
  background: var(--primary) !important;
  opacity: 0.75;
  cursor: ns-resize;
}

.demo-cal-event.is-user {
  background: var(--primary) !important;
  animation: calEventPop 0.25s ease;
}

@keyframes calEventPop {
  0% { transform: scaleY(0.6); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

.demo-event-name {
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-event-time {
  font-size: 9px;
  opacity: 0.85;
  margin-top: 1px;
}

.cal-drag-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cal-success-toast {
  display: none;
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 40px;
  padding: 10px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  z-index: 10;
  animation: calToastIn 0.3s ease;
}

.cal-success-toast.is-visible {
  display: flex;
}

@keyframes calToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
  .cal-demo-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== Floating Timer ===== */
.floating-timer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.floating-timer.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-timer-inner {
  background: linear-gradient(135deg, #2D3A5C 0%, #1A2744 100%);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: white;
  min-width: 240px;
  border: 1px solid rgba(82, 115, 199, 0.3);
}

.floating-timer-task {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.floating-timer-task .recording-dot {
  width: 6px;
  height: 6px;
}

.floating-timer-time {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.floating-timer-stop {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.floating-timer-stop:hover {
  background: rgba(229, 69, 69, 0.2);
  color: white;
}

.stop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #E54545;
  color: white;
  border-radius: 50%;
  font-size: 8px;
}

/* ===== Hero Form ===== */
.hero-form {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(82, 115, 199, 0.15);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-form-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-form-badge {
  background: white;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.hero-form-header h3 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.hero-form-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(82, 115, 199, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(82, 115, 199, 0.1);
}

.form-group select:invalid {
  color: var(--text-muted);
}

.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(82, 115, 199, 0.1);
}

.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group-radio {
  margin-bottom: 16px;
}

.radio-group {
  display: flex;
  gap: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.form-group-checkbox {
  margin-top: 16px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: var(--primary-dark);
}

.corporate-only {
  transition: all 0.3s ease;
  max-height: 60px;
  overflow: hidden;
  opacity: 1;
}

.corporate-only.hidden {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ===== Hero Demo Section ===== */
.hero-demo {
  padding: 80px 0;
  background: linear-gradient(135deg, #E8EEF5 0%, #DCE5F0 100%);
  position: relative;
  overflow: hidden;
}

.hero-demo-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.hero-demo-header .hero-demo-label {
  margin-bottom: 14px;
}

.hero-demo-header .hero-demo-title {
  margin-bottom: 12px;
}

.hero-demo-header .hero-demo-description {
  margin: 0 auto;
}

.hero-demo-description-line,
.hero-demo-method {
  display: inline-flex;
  align-items: center;
}

.hero-demo-description-line {
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 2px;
}

.hero-demo-inline-play {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border: 2px solid #E65275;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E65275;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-demo-inline-play svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}

.demo-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(82, 115, 199, 0.22);
  border-radius: 100px;
  margin: 0 auto 44px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(82, 115, 199, 0.12);
  position: relative;
  overflow: hidden;
}

.demo-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(82, 115, 199, 0.18) 35%,
    rgba(106, 138, 216, 0.32) 50%,
    rgba(82, 115, 199, 0.18) 65%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: demoTabsShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes demoTabsShimmer {
  0%   { left: -60%; }
  45%  { left: 130%; }
  100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-tabs::before { animation: none; display: none; }
}

.demo-tabs-wrap {
  text-align: center;
}

.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.demo-tab:hover {
  color: var(--text-primary);
}

.demo-tab.is-active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.demo-tab-icon {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 560px) {
  .demo-tab {
    padding: 12px 22px;
    font-size: 15px;
    gap: 8px;
  }
  .demo-tab-icon { font-size: 19px; }
  .demo-tabs { margin-bottom: 36px; }
}

.demo-panel {
  display: none;
}

.demo-panel.is-active {
  display: block;
  animation: demoPanelFade 0.4s ease-out;
}

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

.demo-panel-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.demo-panel-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(82, 115, 199, 0.15);
}

.hero-demo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(82, 115, 199, 0.15);
}

.hero-demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-demo-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-demo-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero-demo-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-demo-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-demo-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-demo-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-demo-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hero-demo-visual {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.demo-tracker-large {
  transform: scale(1);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(203, 213, 225, 0.9);
}

/* ===== Demo Tracker Compact ===== */
.demo-tracker-compact {
  margin-top: 16px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.demo-tracker-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.demo-tracker-compact-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-task-icon-small {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.demo-task-info-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-task-info-compact .demo-task-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.demo-timer-display-compact {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.demo-timer-btn-compact {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #E54545 0%, #D43939 100%);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(229, 69, 69, 0.4);
  animation: btnAttention 2s ease-in-out infinite;
}

.demo-timer-btn-compact:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(229, 69, 69, 0.5);
}

.demo-timer-btn-compact.recording {
  animation: pulse-btn 1.5s infinite;
}

.demo-tracker-hint-compact {
  padding: 10px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.demo-tracker-started-compact {
  padding: 10px 20px;
  background: rgba(229, 69, 69, 0.1);
  color: #E54545;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== Mini Tracker (when not started) ===== */
.mini-tracker {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mini-tracker.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mini-tracker-inner {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  border: 2.5px solid rgba(82, 115, 199, 0.42);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-tracker-inner:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.mini-tracker-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mini-tracker-text {
  text-align: left;
}

.mini-tracker-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mini-tracker-hint {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}

.mini-tracker-expanded {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 2.5px solid rgba(82, 115, 199, 0.78);
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.2s ease;
}

.mini-tracker.expanded .mini-tracker-inner {
  opacity: 0;
  visibility: hidden;
}

.mini-tracker.expanded .mini-tracker-expanded {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mini-tracker-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.mini-task-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mini-task-info {
  flex: 1;
}

.mini-task-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mini-task-project {
  font-size: 11px;
  color: var(--text-muted);
}

.mini-tracker-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mini-tracker-start {
  width: 100%;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.mini-tracker-start:hover {
  background: var(--primary-dark);
}

.mini-tracker-close {
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mini-tracker-close:hover {
  color: var(--text-primary);
}

.floating-timer-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.floating-timer-current-info {
  flex: 1;
  min-width: 0;
}

.floating-timer-label {
  display: none;
}

.floating-timer-next {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.floating-timer-next.visible {
  max-height: 180px;
  opacity: 1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-timer-next .floating-timer-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.next-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.next-task-item:last-child {
  margin-bottom: 0;
}

.next-task-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.next-task-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-task-icon {
  font-size: 16px;
}

.next-task-name {
  font-size: 13px;
  font-weight: 500;
}

.next-task-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-task-play:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ===== Result Modal ===== */
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.result-modal.visible {
  opacity: 1;
  visibility: visible;
}

.result-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 43, 60, 0.8);
  backdrop-filter: blur(4px);
}

.result-modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  max-width: 760px;
  width: 100%;
  margin: auto;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.result-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
  text-align: left;
  margin-bottom: 28px;
}

.result-modal-left .result-modal-task,
.result-modal-left .result-modal-time,
.result-modal-left .result-modal-message {
  margin-bottom: 16px;
}

.result-modal-left .result-modal-message:last-child {
  margin-bottom: 0;
}

.result-modal.visible .result-modal-content {
  transform: scale(1);
}

.result-modal-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.result-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.result-modal-task {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.result-task-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.result-task-project {
  font-size: 13px;
  color: var(--text-muted);
}

.result-modal-time {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.result-modal-message {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.result-modal-preview {
  margin-bottom: 24px;
  text-align: left;
}

.result-modal-preview-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-section),
      var(--bg-section) 10px,
      var(--bg-light) 10px,
      var(--bg-light) 20px
    );
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-modal-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-modal-preview-placeholder {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.result-modal-preview-placeholder small {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-light);
}

.result-modal-preview-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.result-modal-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.result-modal-close-link {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.result-modal-close-link:hover {
  color: var(--text-primary);
}

/* ===== Confetti Animation ===== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1003;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  opacity: 0;
}

.confetti.circle {
  border-radius: 50%;
}

.confetti.square {
  border-radius: 2px;
}

.confetti.ribbon {
  width: 6px;
  height: 16px;
  border-radius: 2px;
}

.confetti.star {
  width: 0;
  height: 0;
  background: transparent !important;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid var(--confetti-color);
}

/* ===== Completion Toast ===== */
.completion-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1002;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.completion-toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.completion-toast-inner {
  background: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  color: white;
}

.completion-toast-check {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.completion-toast-content {
  text-align: left;
}

.completion-toast-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.completion-toast-time {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.completion-toast-next {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--primary);
  padding: 8px 12px;
  background: rgba(82, 115, 199, 0.15);
  border-radius: var(--radius-sm);
}

/* ===== Feature Modal ===== */
.feature-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  z-index: 10000;
  isolation: isolate;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feature-modal.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feature-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: block;
  padding: 0;
  border: 0;
  background: rgba(26, 43, 60, 0.8);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.feature-modal-content {
  position: relative;
  z-index: 1;
  width: 720px;
  max-inline-size: 100%;
  max-block-size: 100%;
  margin: 0;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.feature-modal.has-screen-gallery .feature-modal-content {
  width: 720px;
}

.feature-modal.visible .feature-modal-content {
  transform: none;
}

.feature-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-section);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.feature-modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.feature-modal-header {
  padding: 20px 32px 16px;
  border-bottom: 1px solid var(--border);
}

.feature-modal-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.feature-modal-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.feature-modal.has-screen-gallery .feature-modal-header {
  padding: 20px 32px 16px;
}

.feature-modal.has-screen-gallery .feature-modal-badge {
  font-size: 11px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.feature-modal.has-screen-gallery .feature-modal-title {
  font-size: 22px;
  line-height: 1.35;
}

.feature-modal-visual {
  padding: 0 32px;
}

.feature-modal.has-screen-gallery .feature-modal-visual {
  padding: 0 32px;
}

.feature-modal-image {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
}

.feature-modal-image img,
.feature-modal-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-modal-image.has-screen-gallery {
  aspect-ratio: auto;
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
}

.feature-screen-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 8px;
  background: #F1F5F9;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
}

.feature-screen-tab {
  min-width: 96px;
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.feature-screen-tab.is-active {
  background: #FFFFFF;
  color: #2952C8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.feature-screen-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  max-height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.feature-modal-image .feature-screen-shot {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-modal-gif-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature-modal-gif-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-modal-gif-text {
  font-size: 13px;
  color: var(--text-muted);
}

.feature-modal-body {
  padding: 18px 32px 20px;
}

.feature-modal.has-screen-gallery .feature-modal-body {
  padding: 18px 32px 20px;
}

.feature-modal-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.feature-modal.has-screen-gallery .feature-modal-description {
  line-height: 1.8;
  margin-bottom: 12px;
}

.feature-modal-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
}

.feature-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.feature-modal.has-screen-gallery .feature-highlight-item {
  gap: 10px;
  padding: 8px 12px;
}

.feature-modal.has-screen-gallery .feature-modal-highlights {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
}

.feature-modal.has-screen-gallery .feature-highlight-icon {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.feature-modal.has-screen-gallery .feature-highlight-text {
  font-size: 13px;
  line-height: 1.35;
}

.feature-highlight-icon {
  width: 30px;
  height: 30px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.feature-highlight-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
}

.feature-modal-footer {
  padding: 8px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.feature-modal.has-screen-gallery .feature-modal-footer {
  padding: 8px 32px;
}

.feature-modal-task-complete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(82, 115, 199, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.task-complete-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.task-complete-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.task-complete-time {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.feature-modal-cta {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.feature-modal-footer .btn {
  min-height: 0;
  padding: 8px 20px;
  line-height: 1.25;
}

/* Next task item highlight when active */
.next-task-item.current {
  background: rgba(82, 115, 199, 0.2);
  border: 1px solid var(--primary);
}

.next-task-item.completed {
  opacity: 0.5;
  pointer-events: none;
}

.next-task-item.completed .next-task-play {
  background: var(--text-muted);
}

.next-task-item.completed::after {
  content: '✓';
  position: absolute;
  right: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Logo Bar ===== */
.logo-bar {
  padding: 60px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.logo-bar-title {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.logo-bar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.company-logo {
  height: 32px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.company-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.company-logo-placeholder {
  padding: 12px 24px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* ===== Problems Section - Premium ===== */
.problems {
  padding: 80px 0;
  background: var(--bg-section);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: var(--primary-light);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.85;
}

.section-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.problems-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.problem-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.problem-card:hover {
  border-color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.problem-card:nth-child(even) .problem-illust {
  order: 2;
}

.problem-card:nth-child(even) .problem-content {
  order: 1;
}

.problem-illust {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-section),
      var(--bg-section) 12px,
      var(--bg-light) 12px,
      var(--bg-light) 24px
    );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-illust svg {
  width: 100%;
  height: 100%;
  display: block;
}

.problem-illust-placeholder {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.problem-illust-placeholder small {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-light);
}

.problem-content {
  min-width: 0;
}

.problem-number {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.problem-number::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--text-light);
}

.problem-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.problem-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
}

::target-text {
  background-color: transparent;
  color: inherit;
}

.problem-quote {
  margin-top: 22px;
  padding: 16px 18px 16px 36px;
  background: rgba(229, 72, 77, 0.065);
  border-left: 3px solid rgba(229, 72, 77, 0.62);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #7F1D1D;
  font-style: normal;
  line-height: 1.7;
  position: relative;
}

.problem-quote::before {
  content: '“';
  position: absolute;
  left: 10px;
  top: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 34px;
  color: rgba(229, 72, 77, 0.58);
  font-style: normal;
  line-height: 1;
}

/* ===== Solutions Section - Premium ===== */
.solutions {
  padding: 80px 0;
  background: var(--bg-white);
  position: relative;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.solution-card {
  background: linear-gradient(135deg, rgba(82, 115, 199, 0.02) 0%, rgba(96, 112, 190, 0.02) 100%);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(82, 115, 199, 0.04) 0%, rgba(96, 112, 190, 0.04) 100%);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.solution-icon {
  width: 58px;
  min-width: 58px;
  height: 58px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%),
    linear-gradient(145deg, rgba(82, 115, 199, 0.14), rgba(82, 115, 199, 0.05));
  border: 1px solid rgba(82, 115, 199, 0.34);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(31, 41, 55, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.solution-icon::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.solution-icon svg {
  width: 42px;
  height: 42px;
  display: block;
  position: relative;
  z-index: 1;
}

.solution-icon-unify {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(8, 145, 178, 0.1));
  border-color: rgba(8, 145, 178, 0.3);
}

.solution-icon-analytics {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%),
    linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(82, 115, 199, 0.08));
  border-color: rgba(245, 158, 11, 0.34);
}

.solution-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  color: var(--text-primary);
}

.solution-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
}

@media (max-width: 480px) {
  .solution-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .solution-title {
    width: 100%;
  }
}


/* ===== Features Section ===== */
.features {
  padding: 80px 0;
  background: var(--bg-section);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) > * {
  direction: ltr;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-content {
  max-width: 480px;
}

.feature-number {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  border-radius: 50%;
  margin-top: 2px;
}

.feature-visual {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border-radius: var(--radius-xl);
  box-shadow: 0 22px 48px rgba(31, 41, 55, 0.12);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 82% 18%, rgba(82, 115, 199, 0.16), rgba(82, 115, 199, 0) 30%);
  pointer-events: none;
  z-index: 1;
}

.feature-visual:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-mock {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  position: relative;
  z-index: 0;
}

.feature-visual::after {
  content: '▶ 詳しく見る';
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: 2;
}

.feature-visual:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.feature-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 80px 0;
  background: var(--bg-cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* 奇数枚（5枚目など）の最後のカードを中央に配置 */
.testimonials-grid .testimonial-card-link:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}

.testimonial-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.testimonial-card-link .testimonial-card {
  flex: 1;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.testimonial-card::after {
  content: '詳しく見る →';
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-base);
}

.testimonial-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-image {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.testimonial-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.testimonial-card-link:hover .testimonial-image img {
  transform: scale(1.05);
}

.testimonial-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 23, 51, 0) 0%, rgba(11, 23, 51, 0) 45%, rgba(11, 23, 51, 0.35) 85%, rgba(11, 23, 51, 0.8) 100%);
  z-index: 1;
}

.testimonial-image-inner {
  position: absolute;
  inset: 18px 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  pointer-events: none;
}

.testimonial-image-industry {
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.testimonial-image-headline {
  font-family: 'Sora', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.testimonial-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0;
  padding: 16px 22px 20px 36px;
  color: var(--text-primary);
  position: relative;
  border-left: none;
}

.testimonial-quote::before {
  content: '“';
  position: absolute;
  left: 12px;
  top: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  color: #2952C8;
  opacity: 0.25;
  line-height: 1;
  background: transparent;
  width: auto;
  border-radius: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: #2952C8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-avatar-logo {
  width: 78px;
  background: #FFFFFF;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 0 8px;
}

.testimonial-avatar-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.testimonial-avatar-logo-square {
  width: 40px;
  padding: 6px;
}

.testimonial-avatar-logo-triumph {
  width: 46px;
  padding: 3px;
}

.testimonial-avatar-logo-wide {
  width: 112px;
  padding: 0 10px;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
}

.testimonial-company {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-tags {
  display: flex;
  gap: 6px;
  padding: 18px 22px 0;
  flex-wrap: wrap;
}

.testimonial-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.testimonial-tag-icon {
  font-size: 10px;
}

.testimonial-tag.industry {
  background: rgba(41, 82, 200, 0.08);
  color: #2952C8;
  border-color: rgba(41, 82, 200, 0.18);
}

.testimonial-tag.size {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* ===== Pricing - Premium ===== */
.pricing {
  padding: 80px 0;
  background: var(--bg-section);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.popular {
  border-color: var(--accent);
  border-width: 1.5px;
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular::before {
  content: 'おすすめ';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.08em;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.pricing-target {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.pricing-amount {
  font-family: 'Sora', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-amount .currency {
  font-size: 20px;
  vertical-align: top;
  margin-right: 2px;
}

.pricing-period {
  font-size: 12.5px;
  color: var(--text-muted);
}

.pricing-tax {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-annual {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-annual-label {
  font-family: 'Sora', 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-annual-price {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

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

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

.pricing-note {
  text-align: center;
  margin-top: 48px;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

/* ===== Flow ===== */
.flow {
  padding: 80px 0;
  background: var(--bg-white);
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 140px;
  max-width: 160px;
  text-align: center;
  position: relative;
}

.flow-step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 18px rgba(82, 115, 199, 0.22);
  z-index: 2;
}

.flow-step-icon {
  width: 82px;
  height: 82px;
  background: var(--flow-icon-bg, #F4F7FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
  color: var(--flow-icon-color, var(--primary));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08), inset 0 0 0 8px rgba(255, 255, 255, 0.56);
  border: 1.5px solid rgba(82, 115, 199, 0.22);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.flow-step-icon::before {
  content: none;
}

.flow-step-icon::after {
  content: none;
}

.flow-step-icon svg {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-base);
}

.flow-step-icon svg .flow-icon-dot {
  fill: currentColor;
  stroke: none;
}

.flow-step-icon-contact {
  --flow-icon-color: #5273C7;
  --flow-icon-bg: #EDF3FF;
}

.flow-step-icon-hearing {
  --flow-icon-color: #6070BE;
  --flow-icon-bg: #F0F2FF;
}

.flow-step-icon-proposal {
  --flow-icon-color: #2F6F9E;
  --flow-icon-bg: #EAF7FB;
}

.flow-step-icon-trial {
  --flow-icon-color: #C46A21;
  --flow-icon-bg: #FFF1E2;
}

.flow-step-icon-contract {
  --flow-icon-color: #4F5CA3;
  --flow-icon-bg: #F2F3FB;
}

.flow-step-icon-support {
  --flow-icon-color: #2F7D62;
  --flow-icon-bg: #EAF9F2;
}

.flow-step:hover .flow-step-icon,
.flow-step-icon:hover {
  background: #FFFFFF;
  border-color: var(--flow-icon-color, var(--primary));
  color: var(--flow-icon-color, var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12), inset 0 0 0 8px var(--flow-icon-bg, #F4F7FF), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.flow-step:hover .flow-step-icon svg,
.flow-step-icon:hover svg {
  transform: scale(1.06);
}

.flow-step-content {
  min-width: 0;
}

.flow-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.flow-step-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.flow-arrow {
  position: relative;
  width: 30px;
  min-width: 24px;
  height: 76px;
  color: rgba(96, 112, 190, 0.5);
  font-size: 0;
  padding-top: 0;
  align-self: flex-start;
}

.flow-arrow::before {
  content: '';
  position: absolute;
  top: 37px;
  left: 0;
  right: 6px;
  height: 1px;
  background: currentColor;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  top: 33px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
  background: var(--bg-section);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer-inner a {
  color: var(--primary);
  text-decoration: underline;
}

.faq-answer-inner a:hover {
  color: var(--primary-dark);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-content {
  padding-top: 20px;
}

.contact-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.contact-benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(82, 115, 199, 0.1);
}

.contact-form-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 10px 40px rgba(82, 115, 199, 0.1);
  border: 1px solid var(--border);
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(82, 115, 199, 0.1);
}

.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

.contact-corporate-only {
  transition: all 0.3s ease;
  max-height: 60px;
  overflow: hidden;
  opacity: 1;
}

.contact-corporate-only.hidden {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* ===== CTA Section - Premium ===== */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0D1B2A 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(96, 112, 190, 0.2) 0%, transparent 60%);
  pointer-events: none;
  animation: floatSlow 15s ease-in-out infinite;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-tracking {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 28px;
  border-radius: 100px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-tracking .recording-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseGlow 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent);
}

.cta-tracking-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.cta-tracking-time {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  background: var(--bg-cream);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ===== Mid CTA ===== */
.mid-cta {
  padding: 56px 0;
  background: linear-gradient(135deg, #163489 0%, #132449 100%);
  color: white;
}

.mid-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.mid-cta-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.mid-cta-content p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.mid-cta-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.mid-cta-buttons .btn-outline {
  background: var(--bg-white);
}

.mid-cta-buttons .btn-outline:hover {
  background: var(--primary);
}

.btn-md {
  padding: 12px 24px;
  font-size: 14px;
}

.btn-next-task {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #E54545;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  padding-left: 2px;
  animation: playPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(229, 69, 69, 0.5);
}

@keyframes playPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(229, 69, 69, 0.5);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(229, 69, 69, 0);
  }
}
}

.btn-white .btn-play {
  background: #E54545;
}

.btn-outline-white .btn-play {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-primary);
  padding: 16px 24px;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.cookie-link {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-link:hover {
  color: white;
}

.cookie-accept {
  flex-shrink: 0;
  background: white;
  color: var(--text-primary);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-accept:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ===== Final CTA Section ===== */
.final-cta {
  padding: 80px 0;
  background: var(--bg-white);
}

.final-cta-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.final-cta-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(82, 115, 199, 0.1);
  border: 1px solid var(--border);
  padding: 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.final-cta-heading {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text-primary);
}
.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.final-cta-actions {
  display: flex;
  flex-direction: column;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.final-cta-trust {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 16px;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.trust-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.final-cta-content {
  padding: 32px 32px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(82, 115, 199, 0.08);
  border: 1px solid var(--border);
}

.final-cta-content h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.final-cta-image {
  margin-bottom: 0;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: hidden;
}

.final-cta-doc-stack {
  position: relative;
  width: min(100%, 470px);
  padding: 14px 0 18px;
  display: flex;
  justify-content: center;
}

.final-cta-doc-stack::before {
  content: '';
  position: absolute;
  left: 64px;
  right: 48px;
  bottom: 16px;
  height: 18px;
  background: rgba(15, 23, 42, 0.1);
  filter: blur(16px);
  z-index: 0;
}

.final-cta-doc {
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12), 0 3px 10px rgba(15, 23, 42, 0.06);
}
.final-cta-doc-back {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 68%;
  max-width: 360px;
  transform: translateX(-58%) rotate(-3deg);
  opacity: 0.42;
  z-index: 1;
}
.final-cta-doc-front {
  position: relative;
  z-index: 2;
  width: 86%;
  max-width: 440px;
  transform: none;
}

.final-cta-image-placeholder {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 2px dashed var(--border);
}

.final-cta-recommend {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.recommend-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.recommend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommend-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.recommend-list li:last-child {
  margin-bottom: 0;
}

.recommend-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.final-cta-form-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 10px 40px rgba(82, 115, 199, 0.1);
  border: 1px solid var(--border);
}

.final-cta-form-lead {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.final-cta-form .form-group {
  margin-bottom: 14px;
}

.final-cta-form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 0;
}

.final-corporate-only {
  transition: all 0.3s ease;
  max-height: 60px;
  overflow: hidden;
  opacity: 1;
}

.final-corporate-only.hidden {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 0 72px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-content {
    width: 100%;
    max-width: 720px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-visual {
    width: min(100%, 600px);
    max-width: 600px;
    margin: 0 auto;
  }

  .problems-grid,
  .solutions-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .problem-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }

  .problem-card:nth-child(even) .problem-illust,
  .problem-card:nth-child(even) .problem-content {
    order: initial;
  }

  .problem-title {
    font-size: 19px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-image {
    height: 210px;
  }

  .mini-tracker {
    top: 88px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    margin: 0 auto;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .hero-platforms {
    justify-content: center;
  }

  .problems-grid {
    max-width: 920px;
    gap: 24px;
  }

  .problem-card {
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
    gap: 28px;
    padding: 32px;
  }

  .problem-card:nth-child(even) .problem-illust {
    order: 2;
  }

  .problem-card:nth-child(even) .problem-content {
    order: 1;
  }

  .problem-title {
    font-size: 20px;
  }

  .feature-block {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: 36px;
    margin-bottom: 80px;
  }

  .feature-block:nth-child(even) {
    direction: rtl;
  }

  .feature-block:nth-child(even) > * {
    direction: ltr;
  }

  .feature-content {
    max-width: 420px;
  }

  .feature-title {
    font-size: 24px;
  }

  .feature-description {
    font-size: 15px;
  }

  .feature-list li {
    font-size: 14px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
  }

  .testimonial-image {
    height: 200px;
  }

  .testimonial-quote {
    font-size: 13.5px;
    padding: 14px 18px 18px 32px;
  }

  .testimonial-author {
    padding: 12px 18px 18px;
  }

  .testimonial-tags {
    padding: 16px 18px 0;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 920px;
  }

  .pricing-card {
    padding: 32px 28px;
  }

  .pricing-amount {
    font-size: 40px;
  }

  .pricing-card.popular {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    grid-template-areas:
      "name features"
      "target features"
      "price features"
      ". cta";
    column-gap: 32px;
    row-gap: 0;
    align-items: start;
  }

  .pricing-card.popular .pricing-name {
    grid-area: name;
  }

  .pricing-card.popular .pricing-target {
    grid-area: target;
  }

  .pricing-card.popular .pricing-price {
    grid-area: price;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .pricing-card.popular .pricing-features {
    grid-area: features;
    margin-bottom: 18px;
  }

  .pricing-card.popular .btn {
    grid-area: cta;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .feature-title {
    font-size: 24px;
  }

  .pricing-grid {
    gap: 16px;
  }

  /* Flow Mobile */
  .flow {
    padding: 60px 0;
  }

  .flow-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .flow-step {
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(82, 115, 199, 0.08);
  }

  .flow-step-number {
    position: absolute;
    top: 12px;
    left: 62px;
    transform: none;
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .flow-step-icon {
    width: 62px;
    height: 62px;
    margin: 0;
    flex-shrink: 0;
  }

  .flow-step-icon::before {
    width: 14px;
    height: 14px;
    inset: 7px 7px auto auto;
  }

  .flow-step-icon::after {
    left: 14px;
    bottom: 12px;
    width: 26px;
  }

  .flow-step-icon svg {
    width: 34px;
    height: 34px;
  }

  .flow-step-content {
    flex: 1;
  }

  .flow-arrow {
    display: none;
  }

  /* Contact Section Mobile */
  .contact-section {
    padding: 60px 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-content {
    text-align: center;
    padding-top: 0;
  }

  .contact-title {
    font-size: 26px;
  }

  .contact-description br {
    display: none;
  }

  .contact-benefits {
    align-items: center;
  }

  .contact-form-wrapper {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-inner {
    padding: 0;
  }

  .cta h2 {
    font-size: 28px;
  }

  /* Mid CTA Mobile */
  .mid-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .mid-cta-content h3 {
    font-size: 18px;
  }

  .mid-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .mid-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Final CTA Mobile */
  .final-cta {
    padding: 60px 0;
  }

  .final-cta-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .final-cta-card {
    padding: 28px 20px;
  }
  .final-cta-heading {
    font-size: 20px;
    margin-bottom: 24px;
  }
  .final-cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .final-cta-content {
    padding: 24px;
  }

  .final-cta-content h3 {
    font-size: 18px;
  }

  .final-cta-form-wrapper {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Cookie Banner Mobile */
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-accept {
    width: 100%;
  }

  /* Demo Tracker Mobile */
  .demo-timer-display {
    font-size: 36px;
  }

  .demo-timer-btn {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  /* Hero Form Mobile */
  .hero-visual {
    max-width: 100%;
    width: 100%;
  }

  .hero-form {
    margin-top: 20px;
    width: 100%;
  }

  .hero-form-header {
    padding: 16px 20px;
  }

  .hero-form-header h3 {
    font-size: 14px;
  }

  .hero-form-body {
    padding: 20px;
  }

  .form-group input {
    padding: 12px 14px;
  }

  /* Hero Demo Mobile */
  .hero-demo {
    padding: 60px 0;
  }

  .hero-demo-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-demo-title {
    font-size: 28px;
  }

  .hero-demo-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-demo-feature {
    font-size: 13px;
  }

  .hero-demo-feature-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .floating-timer {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .floating-timer-inner {
    min-width: auto;
  }

  .floating-timer-time {
    font-size: 20px;
  }

  .floating-timer-task {
    font-size: 12px;
  }

  .result-modal-content {
    padding: 32px 24px;
  }

  .result-modal-time {
    font-size: 40px;
  }

  .result-modal-preview-caption {
    font-size: 12px;
  }

  .result-modal-body {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .result-modal-left .result-modal-message {
    text-align: center;
  }

  .result-modal-cta {
    flex-direction: column;
  }

  /* Completion Toast Mobile */
  .completion-toast-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    margin: 0 16px;
  }

  .completion-toast-content {
    text-align: center;
  }

  /* Feature Modal Mobile */
  .feature-modal-content {
    max-height: 100%;
    width: 90%;
  }

  .feature-modal.has-screen-gallery .feature-modal-content {
    max-height: 100%;
  }

  .feature-modal-header {
    padding: 24px 24px 20px;
  }

  .feature-modal-title {
    font-size: 20px;
  }

  .feature-modal-visual {
    padding: 0 24px;
  }

  .feature-screen-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .feature-screen-tab {
    min-width: 104px;
    flex: 1 0 auto;
    padding: 9px 12px;
  }

  .feature-screen-frame {
    height: clamp(180px, 32vh, 280px);
  }

  .feature-modal-body {
    padding: 20px 24px;
  }

  .feature-modal-highlights {
    grid-template-columns: 1fr;
  }

  .feature-modal-footer {
    padding: 8px 24px;
  }

  .feature-modal-cta {
    flex-direction: column;
  }

  /* Mini Tracker Mobile */
  .mini-tracker {
    top: 88px;
    right: 16px;
  }

  .mini-tracker-inner {
    padding: 10px 12px;
  }

  .mini-tracker-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .mini-tracker-title {
    font-size: 12px;
  }

  .mini-tracker-expanded {
    width: 260px;
    padding: 16px;
  }
}

/* Feature modal final layout guard.
   Keep this at the end so no older modal rules can reintroduce offset centering. */
.feature-modal {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 10000 !important;
}

.feature-modal.visible {
  display: block !important;
}

.feature-modal-content {
  position: fixed !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 1 !important;
}
