/* ===== CSS Variables ===== */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #FAFBFC;
  --accent: #10B981;
  --accent-hover: #047857;
  --accent-text: #047857;
  --accent-btn: #059669;
  --accent-light: #D1FAE5;
  --text-dark: #111827;
  --text-gray: #6B7280;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-heading: 'Onest', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--border) transparent;
  scrollbar-width: thin;
}

a, button {
  touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Normalize form elements across browsers */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== Animations ===== */
/* Elements visible by default; only hidden when JS is ready */
.fade-in {
  opacity: 1;
  transform: none;
}

.js-ready .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js-ready .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  transition: box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .header {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  border-radius: 18px;
  transition: all 0.25s;
  font-family: var(--font-body);
}

.lang-btn.active {
  background: var(--bg-primary);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--accent-btn);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: transparent;
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--accent-btn);
  color: white;
}

.btn-outline:active {
  transform: translateY(0);
}

/* Mobile Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 32px 24px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav a {
  display: block;
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 64px;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-cta-sub {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  border-radius: 36px;
  background: #1a1a2e;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #EFEFF4;
  border-radius: 28px;
  overflow: hidden;
  min-height: 500px;
}

.tg-header {
  background: #5B9BD5;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.tg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.tg-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.tg-status {
  font-size: 0.7rem;
  opacity: 0.8;
}

.tg-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.tg-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
}

.tg-msg.bot {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.tg-msg.user {
  background: #DCFDD2;
  color: var(--text-dark);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.tg-msg.user-photo {
  background: #DCFDD2;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  padding: 4px;
  max-width: 70%;
}

.tg-photo-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.tg-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tg-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #5B9BD5;
  color: #5B9BD5;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: default;
  flex: 1;
  text-align: center;
}

.tg-msg .score {
  color: var(--accent-text);
  font-weight: 700;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-items: center;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-gray);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* ===== How It Works ===== */
.how-it-works {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: flex-start;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
  color: var(--border);
  font-size: 1.5rem;
}

/* step-dashboard removed per TZ Task 3 */

/* ===== Stats ===== */
.stats-section {
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.quote-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.6;
  position: relative;
}

.quote-text::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--accent-light);
  position: absolute;
  top: -24px;
  left: -16px;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-author {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Demo Section ===== */
.demo-section {
  background: var(--bg-primary);
}

.demo-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: flex-start;
  justify-items: center;
}

.demo-phone {
  width: 320px;
  border-radius: 36px;
  background: #1a1a2e;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
  flex-shrink: 0;
}

.demo-phone-notch {
  width: 120px;
  height: 24px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.demo-phone-screen {
  background: #EFEFF4;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-phone-header {
  background: #5B9BD5;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.demo-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 340px;
  max-height: 340px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.demo-input-bar {
  background: #f0f0f0;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: #999;
  font-family: var(--font-body);
  border-top: 1px solid #e0e0e0;
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}

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

.demo-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.demo-step--active {
  opacity: 1;
}

.demo-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 4px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.demo-step--active .demo-step-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.demo-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-step-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.demo-step-desc {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.demo-explanation {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  min-height: 48px;
  transition: opacity 0.3s;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.demo-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== Segments ===== */
.segments-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 28px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-gray);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
}

.tab-btn.active {
  border-color: var(--accent-btn);
  background: var(--accent-btn);
  color: white;
}

.tab-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent-text);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.segment-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.segment-problem {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #FEF3C7;
  border-radius: var(--radius-md);
  border-left: 4px solid #F59E0B;
}

.segment-solutions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.segment-solutions li {
  padding-left: 28px;
  position: relative;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.segment-solutions li::before {
  content: "✅";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.segment-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.segment-illustration {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment-illustration-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed var(--accent-light);
  animation: spin-slow 30s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.segment-illustration-icon {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light) 0%, #A7F3D0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-lg);
}

/* ===== Calculator ===== */
.calculator-section {
  background: var(--bg-secondary);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.calc-field .slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-field input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.calc-field input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  border: none;
}

.calc-field input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.calc-field .slider-value {
  min-width: 48px;
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-text);
  font-family: var(--font-heading);
}

.calc-field input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-primary);
  transition: border-color 0.2s;
}

.calc-field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-results {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.calc-result-item:last-of-type {
  border-bottom: none;
}

.calc-result-label {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.calc-result-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.calc-result-item.highlight .calc-result-value {
  color: var(--accent-text);
  font-size: 1.6rem;
}

.calc-result-item.saving .calc-result-value {
  color: var(--accent-text);
  font-size: 2rem;
}

.calc-result-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.calc-cta {
  margin-top: 32px;
  text-align: center;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.pricing-card.highlighted {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card.highlighted:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  margin-bottom: 24px;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.pricing-currency {
  font-size: 1rem;
  color: var(--text-gray);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-dark);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-weight: 700;
}

.pricing-upgrade-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 8px 0 16px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--bg-secondary);
}

.container--narrow {
  max-width: 800px;
}

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

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

.faq-question {
  width: 100%;
  padding: 20px 0;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--text-gray);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-answer {
  padding: 0 0 20px;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 50%, #047857 100%);
  color: white;
  text-align: center;
}

.final-cta .section-title {
  color: white;
}

.final-cta .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.final-cta .btn-primary {
  background: white;
  color: var(--accent-hover);
  font-size: 1.2rem;
  padding: 18px 48px;
}

.final-cta .btn-primary:hover {
  background: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.final-cta-sub {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.final-cta-sub a {
  color: rgba(255,255,255,0.8);
}

/* ===== Footer ===== */
.footer {
  background: var(--text-dark);
  color: #D1D5DB;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: var(--accent);
}

.footer-desc {
  font-size: 0.85rem;
  color: #9CA3AF;
  line-height: 1.6;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9CA3AF;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #D1D5DB;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-text);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: #9CA3AF;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D1D5DB;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--accent);
  color: white;
}

/* ===== Dashboard Mockup ===== */
.dashboard-mockup {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.dash-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.red { background: #EF4444; }
.dash-dot.yellow { background: #F59E0B; }
.dash-dot.green { background: #10B981; }

.dash-content {
  padding: 20px;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.dash-card-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-text);
}

.dash-card-label {
  font-size: 0.65rem;
  color: var(--text-gray);
  margin-top: 4px;
}

.dash-chart {
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 4px;
}

.dash-bar {
  flex: 1;
  background: var(--accent-light);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

.dash-bar:nth-child(odd) {
  background: var(--accent);
}

/* ===== Phone Mini (Segment Mockups) ===== */
.phone-mini {
  width: 280px;
  border: 3px solid #1a1a2e;
  border-radius: 30px;
  background: #1a1a2e;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone-mini-header {
  background: #5B9BD5;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 22px 22px 0 0;
  color: white;
}

.phone-mini .tg-chat {
  background: #EFEFF4;
  padding: 10px;
  border-radius: 0 0 22px 22px;
}

.phone-mini .tg-msg {
  font-size: 0.75rem;
  padding: 6px 10px;
}

.chat-bubble--success {
  background: #D1FAE5 !important;
  color: #065F46 !important;
  font-weight: 600;
}

/* ===== Telegram Input Bar ===== */
.tg-input {
  background: #f0f0f0;
  color: #999;
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--font-body);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-cta-wrap {
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-arrow {
    display: none;
  }

  .tab-content.active {
    grid-template-columns: 1fr;
  }

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

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

  .demo-phone {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-links,
  .nav-right .btn-primary {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-right .btn-outline {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  section {
    padding: 64px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-value {
    font-size: 2.25rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.highlighted {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .phone-mockup {
    width: 260px;
  }

  .phone-screen {
    min-height: 400px;
  }

  .segments-tabs {
    flex-wrap: wrap;
  }

  .quote-text {
    font-size: 1.05rem;
  }

  .quote-text::before {
    display: none;
  }

  /* Phone Mini mobile */
  .phone-mini {
    width: 240px;
  }

  /* Touch-friendly buttons */
  .btn-primary,
  .btn-outline,
  .tab-btn {
    min-height: 44px;
  }

  /* Calculator mobile */
  .calc-results {
    padding: 24px;
  }

  /* Segment tabs wrap */
  .segments-tabs {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .demo-phone {
    width: 280px;
  }

  .demo-chat {
    min-height: 300px;
    max-height: 300px;
  }

  .demo-step-title {
    font-size: 0.85rem;
  }

  .demo-step-desc {
    font-size: 0.75rem;
  }

  /* Touch targets 44px */
  .burger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lang-current {
    min-height: 44px;
  }

  .lang-menu button {
    padding: 12px 16px;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
  }

  input[type="range"]::-moz-range-thumb {
    width: 32px;
    height: 32px;
  }

  .footer-socials a {
    min-width: 44px;
    min-height: 44px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ===== Small phones ===== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .btn-primary.btn-lg {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-screen {
    min-height: 380px;
  }

  .phone-mini {
    width: 220px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .segment-info h3 {
    font-size: 1.25rem;
  }

  .hero-cta-wrap {
    align-items: stretch;
  }

  .nav-right .btn-outline {
    display: none;
  }

  .lang-current {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .lang-menu {
    min-width: 120px;
  }

  .lang-menu button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 48px 0;
  }

  .calc-result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .calc-result-value {
    font-size: 1.1rem;
  }

  .calc-result-item.highlight .calc-result-value {
    font-size: 1.3rem;
  }

  .calc-result-item.saving .calc-result-value {
    font-size: 1.5rem;
  }

  .segments-tabs {
    gap: 4px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .segment-problem {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .segment-solutions li {
    font-size: 0.9rem;
  }

  .quote-block {
    padding: 0 8px;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 16px 0;
  }

  .footer-grid {
    gap: 24px;
  }

  .pricing-card {
    padding: 24px 16px;
  }

  .pricing-amount {
    font-size: 2rem;
  }

  .demo-phone {
    width: 260px;
  }

  .demo-chat {
    min-height: 280px;
    max-height: 280px;
  }

  .demo-container {
    gap: 32px;
  }

  .demo-explanation {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .demo-buttons {
    flex-direction: column;
  }

  .demo-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .btn-primary.btn-lg {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .phone-mockup {
    width: 220px;
  }

  .phone-mini {
    width: 200px;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .pricing-amount {
    font-size: 1.75rem;
  }

  .lang-current {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {
  .calc-field input[type="number"] {
    font-size: 16px;
  }

  .mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* ===== Focus-visible for keyboard navigation ===== */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Selection Color ===== */
::selection {
  background: var(--accent-light);
  color: var(--text-dark);
}

::-moz-selection {
  background: var(--accent-light);
  color: var(--text-dark);
}

/* ===== Scrollbar (Webkit) ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ===== Safe Area for notched devices ===== */
.footer {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

/* ===== Language Dropdown ===== */
.lang-dropdown {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: var(--bg-secondary);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  border-radius: 18px;
  font-family: var(--font-body);
  transition: all 0.25s;
}

.lang-current:hover {
  color: var(--text-dark);
}

.lang-current::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 2px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  z-index: 1001;
  overflow: hidden;
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-menu button:hover {
  background: var(--bg-secondary);
}

.lang-menu button.active {
  color: var(--accent-text);
  font-weight: 600;
}

/* ===== Print Styles ===== */
@media print {
  .header, .mobile-nav, .burger,
  .calc-inputs, .lang-switch, .lang-dropdown, .final-cta .btn-primary {
    display: none !important;
  }

  body { color: #000; background: #fff; }

  section { padding: 24px 0; break-inside: avoid; }

  .hero { min-height: auto; padding-top: 24px; }

  .fade-in, .js-ready .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
