/* ============================================================
   PostFlow — White Minimalistic Professional
   Rhizome AI–inspired · Light weights · Clean whitespace
   ============================================================ */

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

:root {
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --gray-50: #F7F8FA;
  --gray-100: #F1F2F5;
  --gray-200: #E4E6EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --accent: #4F6EF7;
  --accent-hover: #3B5BDB;
  --accent-light: rgba(79, 110, 247, 0.07);
  --green: #10B981;
  --green-light: rgba(16, 185, 129, 0.07);
  --purple: #7C3AED;
  --purple-light: rgba(124, 58, 237, 0.06);
  --orange: #F59E0B;
  --orange-light: rgba(245, 158, 11, 0.06);

  --font: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-hero: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 2.8vw, 2rem);
  --fs-h3: clamp(1rem, 1.5vw, 1.2rem);
  --fs-body: 0.9375rem;
  --fs-sm: 0.8125rem;
  --fs-xs: 0.75rem;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--gray-900); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
}
.navbar.scrolled { border-bottom: 1px solid var(--gray-200); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo img { height: 28px; }

.navbar-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.navbar-links a { font-size: var(--fs-sm); font-weight: 400; color: var(--gray-500); transition: var(--transition); }
.navbar-links a:hover { color: var(--gray-900); }

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

/* Language Toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  font-family: var(--font);
  border: none;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--gray-900);
  color: var(--white);
}

.mobile-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 20px; height: 1.5px; background: var(--gray-700); border-radius: 1px; transition: var(--transition); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-xs);
  font-family: var(--font); font-size: var(--fs-sm); font-weight: 500;
  border: none; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--gray-900); color: white; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

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

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

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.hero-accent {
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}

.hero-description {
  font-size: var(--fs-body);
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.65;
}
.hero-bullets li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 1px;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.hero-form-card {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-form-card .btn {
  width: 100%;
  padding: 11px 18px;
}

.form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-form-card .form-fields > input {
  min-width: 180px;
  flex: 1 1 180px;
}

.cta-form .form-fields { flex-wrap: wrap; }
.cta-form .form-fields > input {
  min-width: 180px;
  flex: 1 1 180px;
}

.hero-form input[type="email"],
.hero-form input[type="text"],
.hero-form input[type="tel"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-900);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 400;
  outline: none;
  transition: var(--transition);
}
.hero-form input::placeholder { color: var(--gray-400); }
.hero-form input:focus { border-color: var(--gray-400); }

/* Stats Row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 6px;
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.5rem; font-weight: 600; color: var(--gray-900); letter-spacing: -0.02em; }
.stat-label { font-size: var(--fs-xs); color: var(--gray-400); font-weight: 400; margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--gray-200); }

/* Hero Visual */
.hero-visual { position: relative; }

.hero-product {
  position: relative;
}

.hero-product img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.status-badge {
  position: absolute;
  bottom: -14px;
  left: -14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.status-text { font-size: var(--fs-xs); font-weight: 500; color: var(--green); }
.status-sub { font-size: 0.625rem; color: var(--gray-400); }

/* ===== SECTIONS ===== */
.section { padding: 88px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  background: var(--accent-light);
  font-size: var(--fs-xs); font-weight: 500; color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: var(--fs-h2); font-weight: 500; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--gray-900); margin-bottom: 10px;
}
.section-subtitle { font-size: var(--fs-body); color: var(--gray-500); max-width: 480px; line-height: 1.7; font-weight: 400; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-subtitle { margin: 0 auto; }
.section-header .section-title { text-align: center; }

/* ===== CALCULATOR ===== */
.calculator-section { background: var(--gray-50); }
.calculator-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.calc-sliders { display: flex; flex-direction: column; gap: 28px; }
.slider-group { display: flex; flex-direction: column; gap: 8px; }
.slider-label { display: flex; justify-content: space-between; align-items: center; }
.slider-label span:first-child { font-size: var(--fs-sm); font-weight: 400; color: var(--gray-500); }
.slider-value { font-size: var(--fs-body); font-weight: 600; color: var(--gray-900); min-width: 55px; text-align: right; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--gray-200); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gray-900); border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15); cursor: pointer; transition: var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gray-900); border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15); cursor: pointer;
}
input[type="range"] {
  background: linear-gradient(to right,
    var(--gray-900) 0%, var(--gray-900) var(--slider-fill, 50%),
    var(--gray-200) var(--slider-fill, 50%), var(--gray-200) 100%);
}

.calc-output { display: flex; flex-direction: column; gap: 16px; }
.output-card {
  padding: 24px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); text-align: center; transition: var(--transition);
}
.output-card.time { background: var(--accent-light); border-color: rgba(79,110,247,0.1); }
.output-card.money { background: var(--green-light); border-color: rgba(16,185,129,0.1); }
.output-card .output-label {
  font-size: var(--fs-xs); color: var(--gray-500);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;
}
.output-card .output-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.02em;
}
.output-card.time .output-value { color: var(--accent); }
.output-card.money .output-value { color: var(--green); }
.output-card .output-unit { font-size: var(--fs-xs); color: var(--gray-400); margin-top: 2px; }
.calc-note { font-size: var(--fs-xs); color: var(--gray-400); text-align: center; margin-top: 4px; }

/* ===== SAFETY ===== */
.safety-section { background: var(--white); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.safety-feature {
  padding: 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray-200); transition: var(--transition);
}
.safety-feature:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.safety-icon {
  width: 40px; height: 40px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.safety-icon.spintax { background: var(--purple-light); }
.safety-icon.jitter { background: var(--orange-light); }
.safety-feature h3 { font-size: var(--fs-h3); font-weight: 500; margin-bottom: 8px; color: var(--gray-900); }
.safety-feature p { font-size: var(--fs-sm); color: var(--gray-500); line-height: 1.7; margin-bottom: 18px; font-weight: 400; }

.spintax-demo {
  background: var(--gray-50); border-radius: var(--radius-xs); padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem; border: 1px solid var(--gray-100);
}
.spintax-input { color: var(--gray-400); margin-bottom: 8px; line-height: 1.5; }
.spintax-input .var { color: var(--purple); font-weight: 600; }
.spintax-input .pipe { color: var(--orange); }
.spintax-output { display: flex; align-items: center; gap: 6px; }
.spintax-output .arrow { color: var(--green); }
.spintax-result { color: var(--green); font-weight: 600; transition: all 0.4s ease; min-width: 180px; }

.jitter-timeline { display: flex; flex-direction: column; gap: 5px; }
.jitter-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; background: var(--gray-50);
  border-radius: var(--radius-xs); border: 1px solid var(--gray-100);
}
.jitter-time {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.6875rem; color: var(--orange); font-weight: 600; min-width: 50px;
}
.jitter-bar { flex: 1; height: 3px; background: rgba(245,158,11,0.1); border-radius: 2px; overflow: hidden; }
.jitter-bar-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width 1.5s ease; }
.jitter-label { font-size: 0.625rem; color: var(--gray-400); min-width: 45px; text-align: right; }

/* ===== FEATURES ===== */
.features-section { background: var(--gray-50); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.feature-card p { margin-top: auto; }
.feature-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-xs);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.feature-card h3 {
  font-size: var(--fs-h3); font-weight: 500;
  margin-bottom: 8px; color: var(--gray-900);
}
.feature-card p {
  font-size: var(--fs-sm); color: var(--gray-500);
  line-height: 1.7; font-weight: 400;
}

/* ===== HOW IT WORKS ===== */
.steps-section { background: var(--white); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 600;
  margin: 0 auto 16px;
}
.step-card h3 {
  font-size: var(--fs-h3); font-weight: 500;
  margin-bottom: 8px; color: var(--gray-900);
}
.step-card p {
  font-size: var(--fs-sm); color: var(--gray-500);
  line-height: 1.7; font-weight: 400;
}

/* ===== CTA ===== */
.cta-section { background: var(--gray-50); text-align: center; }
.cta-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 48px 40px;
  max-width: 600px; margin: 0 auto; box-shadow: var(--shadow);
}
.cta-card h2 { font-size: var(--fs-h2); font-weight: 500; margin-bottom: 10px; color: var(--gray-900); }
.cta-card p { font-size: var(--fs-body); color: var(--gray-500); margin-bottom: 24px; font-weight: 400; }
.cta-form { display: flex; flex-direction: column; gap: 8px; max-width: 400px; margin: 0 auto; }
.cta-form .form-fields { display: flex; gap: 8px; }
.cta-form input[type="email"],
.cta-form input[type="text"],
.cta-form input[type="tel"] {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-xs);
  border: 1px solid var(--gray-200); background: var(--gray-50);
  color: var(--gray-900); font-family: var(--font); font-size: var(--fs-sm);
  font-weight: 400; outline: none; transition: var(--transition);
}
.cta-form input::placeholder { color: var(--gray-400); }
.cta-form input:focus { border-color: var(--gray-400); }
.cta-form .btn { padding: 10px 24px; }

/* ===== FOOTER ===== */
.footer { padding: 36px 0; border-top: 1px solid var(--gray-200); }
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo img { height: 22px; opacity: 0.5; }
.footer-disclaimer { font-size: 0.625rem; color: var(--gray-400); text-align: center; max-width: 500px; line-height: 1.6; font-weight: 400; }
.footer-links { display: flex; gap: 18px; list-style: none; }
.footer-links a { font-size: var(--fs-xs); color: var(--gray-400); transition: var(--transition); font-weight: 400; }
.footer-links a:hover { color: var(--gray-700); }
.footer-copy { font-size: 0.625rem; color: var(--gray-400); }

/* ===== POLICY PAGE ===== */
.policy { padding-top: 92px; padding-bottom: 72px; background: var(--white); }
.policy-header { padding: 18px 0 28px; border-bottom: 1px solid var(--gray-200); margin-bottom: 24px; }
.policy-title {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 10px 0 8px;
  font-weight: 600;
}
.policy-meta { color: var(--gray-500); font-size: var(--fs-sm); line-height: 1.6; }
.policy-article { max-width: 820px; margin: 0 auto; }
.policy-article h2 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
.policy-article h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--gray-900);
}
.policy-article p,
.policy-article li {
  color: var(--gray-500);
  font-size: var(--fs-body);
  line-height: 1.8;
}
.policy-article ul { padding-left: 18px; margin: 10px 0 10px; }
.policy-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.policy-note { margin-top: 18px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px); display: none;
  align-items: center; justify-content: center;
  z-index: 1000; padding: 24px; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); width: 100%; max-width: 600px;
  max-height: 90vh; overflow: hidden; animation: modalSlide 0.3s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes modalSlide { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: var(--fs-h3); font-weight: 500; color: var(--gray-900); }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  color: var(--gray-500); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.modal-body {
  padding: 24px; min-height: 300px; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
}
.modal-body .success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-light); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px; animation: scaleIn 0.4s ease;
}
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }
.modal-body .success-msg { font-size: var(--fs-h3); font-weight: 500; margin-bottom: 4px; color: var(--gray-900); }
.modal-body .success-sub { color: var(--gray-500); font-size: var(--fs-sm); margin-bottom: 24px; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */

/* --- Tablet --- */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-content { order: 1; max-width: 540px; margin: 0 auto; }
  .hero-visual { order: 2; max-width: 380px; margin: 0 auto; }
  .hero-form { max-width: 380px; margin: 0 auto 28px; }
  .hero-stats { justify-content: center; }
  .calculator-grid { grid-template-columns: 1fr; gap: 24px; }
  .safety-grid { grid-template-columns: 1fr; gap: 14px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  /* Prevent horizontal overflow globally */
  html, body { overflow-x: hidden; }

  :root {
    --fs-hero: 1.5rem;
    --fs-h2: 1.2rem;
    --fs-h3: 0.95rem;
    --fs-body: 0.8125rem;
    --fs-sm: 0.75rem;
    --fs-xs: 0.6875rem;
  }

  /* Tighter section spacing — reduces dead air */
  .section { padding: 36px 0; }
  .container { padding: 0 20px; max-width: 100%; }

  /* Navbar */
  .navbar { padding: 8px 0; }
  .navbar-links {
    display: none; position: fixed; top: 48px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
    flex-direction: column; padding: 16px 20px; gap: 12px;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { font-size: var(--fs-body); padding: 6px 0; }
  .navbar-cta { display: none; }
  .mobile-toggle { display: flex; }
  .lang-toggle { margin-right: 6px; }
  .lang-btn { padding: 4px 10px; font-size: 0.625rem; }

  /* Hero — compact, not overwhelming */
  .hero { min-height: auto; padding: 64px 0 32px; }
  .hero-container { gap: 20px; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; max-width: 260px; }
  .hero-title { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.25; letter-spacing: -0.02em; }
  .hero-accent { font-size: inherit; }
  .hero-description { margin-bottom: 20px; font-size: var(--fs-sm); line-height: 1.6; }
  .hero-product img { border-radius: 8px; }

  /* Forms — ALWAYS stacked vertically on mobile */
  .hero-form { margin-bottom: 20px; gap: 6px; }
  .form-fields { flex-direction: column; gap: 6px; }
  .hero-actions { gap: 14px; }
  .hero-form-card { padding: 12px; }
  .hero-form .btn,
  .cta-form .btn {
    width: 100%; padding: 11px; font-size: var(--fs-sm);
    min-height: 44px; /* iOS minimum touch target */
  }
  .hero-form input[type="email"],
  .hero-form input[type="text"],
  .hero-form input[type="tel"],
  .cta-form input[type="email"],
  .cta-form input[type="text"],
  .cta-form input[type="tel"] {
    width: 100%;
    padding: 11px 12px;
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 44px;
    border-radius: var(--radius-xs);
  }

  /* Stats — compact row */
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .stat-number { font-size: 1.1rem; }
  .stat-label { font-size: 0.625rem; }
  .stat-divider { display: none; }

  /* Section headers — tighter */
  .section-header { margin-bottom: 24px; }
  .section-title { font-size: 1.15rem; }
  .section-subtitle { font-size: var(--fs-sm); line-height: 1.5; }
  .section-label { font-size: 0.625rem; padding: 3px 10px; margin-bottom: 10px; }

  /* Features — single column, compact cards */
  .features-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { padding: 16px; }
  .feature-icon { width: 32px; height: 32px; font-size: 16px; margin-bottom: 10px; }
  .feature-card h3 { font-size: 0.9rem; margin-bottom: 4px; }
  .feature-card p { font-size: 0.75rem; line-height: 1.55; }

  /* Calculator — bigger touch targets for sliders */
  .calculator-card { padding: 16px; }
  .calc-sliders { gap: 16px; }
  .slider-label span:first-child { font-size: 0.75rem; }
  .slider-value { font-size: var(--fs-sm); }
  input[type="range"] { height: 6px; }
  input[type="range"]::-webkit-slider-thumb {
    width: 24px; height: 24px; /* bigger thumb for mobile */
  }
  input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px;
  }
  .output-card { padding: 14px; }
  .output-card .output-value { font-size: 1.35rem; }
  .output-card .output-label { font-size: 0.625rem; }
  .output-card .output-unit { font-size: 0.625rem; }
  .calc-note { font-size: 0.625rem; }

  /* Safety — compact */
  .safety-grid { grid-template-columns: 1fr; gap: 10px; }
  .safety-feature { padding: 16px; }
  .safety-feature h3 { font-size: 0.9rem; }
  .safety-feature p { margin-bottom: 12px; font-size: 0.7rem; line-height: 1.55; }
  .spintax-demo { padding: 10px; font-size: 0.625rem; }
  .jitter-item { padding: 5px 8px; }
  .jitter-time { font-size: 0.6rem; min-width: 42px; }
  .jitter-label { font-size: 0.55rem; min-width: 38px; }

  /* Steps / How it works — compact */
  .steps-grid { gap: 6px; }
  .step-card { padding: 16px 14px; }
  .step-number { width: 28px; height: 28px; font-size: 0.7rem; margin-bottom: 10px; }
  .step-card h3 { font-size: 0.9rem; }
  .step-card p { font-size: 0.75rem; line-height: 1.5; }

  /* CTA */
  .cta-card { padding: 24px 16px; }
  .cta-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
  .cta-card p { font-size: var(--fs-sm); margin-bottom: 16px; }
  .cta-form { flex-direction: column; max-width: 100%; }
  .cta-form .form-fields { flex-direction: column; }

  /* Footer */
  .footer { padding: 24px 0; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .footer-links a { font-size: 0.625rem; }
  .footer-copy { font-size: 0.55rem; }
  .footer-disclaimer { font-size: 0.55rem; }

  /* Modal */
  .modal-content { max-width: 92vw; }
  .modal-body { padding: 20px; min-height: 180px; }
  .modal-body .success-icon { width: 44px; height: 44px; font-size: 22px; }
}

/* --- Small phones --- */
@media (max-width: 380px) {
  :root { --fs-hero: 1.35rem; }
  .container { padding: 0 14px; }
  .hero { padding: 60px 0 24px; }
  .hero-visual { max-width: 220px; }
  .hero-title { font-size: 1.3rem; }
  .hero-stats { gap: 12px; }
  .stat-number { font-size: 1rem; }
  .feature-card, .safety-feature, .step-card { padding: 14px; }
  .calculator-card { padding: 14px; }
  .cta-card { padding: 20px 14px; }
}
