/* =========================================================================
   A2Z Calculator — Design System
   Palette: signal green (brand) + blueprint charcoal + safety amber accent
   ========================================================================= */

:root {
  /* Brand */
  --green: #2F9E44;
  --green-dark: #227A32;
  --green-light: #E8F6EA;
  --amber: #F5A623;

  /* Ink & surfaces */
  --ink: #10140F;
  --ink-soft: #4A544C;
  --paper: #F5F8F4;
  --surface: #FFFFFF;
  --line: #E1E8DE;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(16, 20, 15, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 20, 15, 0.08);
  --shadow-lg: 0 25px 60px rgba(16, 20, 15, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 0.5s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: inherit; }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4.5vw, 32px);
}

section { position: relative; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* --- Reveal-on-scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; }
}

/* =========================================================================
   Header
   ========================================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 248, 244, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), padding var(--speed) var(--ease);
  padding: 20px 0;
}

header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  transition: transform var(--speed) var(--ease);
}

.brand:hover .logo { transform: rotate(-4deg) scale(1.05); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: 100px;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.nav-links a:hover {
  color: var(--green-dark);
  background: var(--green-light);
}

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

.header-btn {
  background-color: var(--ink);
  color: var(--white, #fff);
  padding: 12px 26px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color var(--speed) var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  padding: clamp(52px, 11vw, 90px) 0 clamp(56px, 13vw, 110px);
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 158, 68, 0.10), transparent 45%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-position: 0 0, -1px -1px, -1px -1px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content { flex: 0 0 52%; }

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  margin-bottom: 22px;
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}

.hero p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 92%;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--green-dark);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  padding: 15px 22px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.store-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badges img {
  height: 46px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.store-badges img:hover { transform: translateY(-3px); }

/* --- Hero live calculator (signature element) --- */
.hero-image {
  flex: 0 0 44%;
  display: flex;
  justify-content: center;
}

.calc-card {
  width: 100%;
  max-width: 360px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  color: #fff;
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-12px); }
}

.calc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calc-dot-row { display: flex; gap: 6px; }

.calc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.calc-dot.on { background: var(--green); }

.calc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.calc-body {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
}

.calc-field {
  margin-bottom: 14px;
}

.calc-field label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.calc-row {
  display: flex;
  gap: 10px;
}

.calc-row input,
.calc-row select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.calc-row input:focus,
.calc-row select:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.12);
}

.calc-result {
  margin-top: 18px;
  background: var(--green);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.calc-result span:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.calc-result-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.calc-foot {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* =========================================================================
   Stats strip
   ========================================================================= */
.stats {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 44px 0;
}

.stat {
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* =========================================================================
   Tool grid ("Explore Calculators")
   ========================================================================= */
.content-section { padding: clamp(56px, 11vw, 110px) 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(32px, 7vw, 56px);
  text-align: center;
  padding: 0 4px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-decoration: none;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.tool-card:hover .tool-icon {
  background: var(--green);
  color: #fff;
}

.tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* =========================================================================
   Feature widgets
   ========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.feature-widget {
  text-align: center;
  background-color: var(--surface);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 100%;
  transition: box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}

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

.feature-widget h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature-widget > p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* Dashboard-focus mockup */
.sidebar-mockup {
  width: 220px;
  max-width: 100%;
  height: 400px;
  background-color: var(--surface);
  border: 8px solid var(--ink);
  border-radius: 26px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.sidebar-mockup-inner {
  background-color: var(--paper);
  height: 100%;
  padding: 12px;
}

.mockup-header {
  background-color: var(--ink);
  color: white;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: left;
  font-size: 0.85rem;
}

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

.mockup-item {
  background-color: var(--surface);
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.mockup-item.green {
  background-color: var(--green);
  border-color: var(--green);
}

.feature-widget:hover .mockup-item {
  transform: scale(1.03);
}

/* How-it-works steps */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 6px;
}

.step {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 18px;
  background-color: var(--paper);
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.step:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.step-icon {
  width: 42px;
  height: 42px;
  background-color: var(--surface);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.step-text {
  font-size: 0.94rem;
  font-weight: 500;
}

/* Testimonials */
.testimonial-box {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  margin-bottom: 16px;
  transition: border-color 0.3s var(--ease);
}

.testimonial-box:hover { border-color: var(--green); }

.testimonial-text {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-style: italic;
  line-height: 1.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.author-info h4 { font-size: 0.9rem; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 32px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(47, 158, 68, 0.28), transparent 55%);
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto 30px;
}

.cta-band .btn-primary { box-shadow: none; }

/* =========================================================================
   Legal pages (Privacy Policy / Terms & Conditions)
   ========================================================================= */
.legal-hero {
  padding: 70px 0 60px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 158, 68, 0.10), transparent 45%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-position: 0 0, -1px -1px, -1px -1px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  font-weight: 800;
}

.legal-hero p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 32px 100px;
}

.legal-content .updated {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 38px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.legal-content ul { padding-left: 20px; margin-bottom: 12px; }

.legal-content a {
  color: var(--green-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .legal-hero { padding: 50px 0 40px; }
  .legal-content { padding: 50px 20px 70px; }
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
  background-color: var(--ink);
  color: #fff;
  padding: 70px 0 34px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fff;
  padding: 4px 8px;
  box-shadow: var(--shadow-sm);
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #fff;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.94rem;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.footer-col ul li:hover { color: var(--green); }

.footer-contact {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-contact a:hover { color: var(--green); }

.footer-contact svg {
  flex-shrink: 0;
  color: var(--green);
}

.footer-bottom {
  text-align: center;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */
/* ---- Large desktop down to small laptop / large tablet ---- */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(2) { border-right: none; }
}

/* ---- Tablets (portrait) and below: single-column hero, off-canvas nav ---- */
@media (max-width: 900px) {
  .hero-container { flex-direction: column; text-align: center; }
  .hero-content { flex: none; width: 100%; }
  .hero p { margin: 0 auto 30px auto; max-width: 100%; }
  .hero-ctas, .store-badges { justify-content: center; }
  .hero-image { justify-content: center; margin-top: 20px; width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 100px 28px 28px;
    box-shadow: var(--shadow-lg);
    transition: right var(--speed) var(--ease);
    z-index: 150;
    margin: 0;
    overflow-y: auto;
  }

  .nav-links.open { right: 0; }

  .nav-links a { width: 100%; padding: 14px 16px; font-size: 1.05rem; }

  .nav-toggle { display: flex; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(16, 20, 15, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed) var(--ease);
    z-index: 140;
  }

  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* ---- Tablets / large phones (landscape) ---- */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { margin: 0 20px; padding: 48px 24px; }
  .container { padding: 0 20px; }

  .hero h1 { margin-bottom: 18px; }
  .hero-ctas { gap: 12px; margin-bottom: 28px; }
  .btn-primary, .btn-ghost { padding: 14px 22px; font-size: 0.95rem; }

  .calc-card { max-width: 420px; margin: 0 auto; }

  .feature-widget { padding: 32px 24px; }
  .sidebar-mockup { height: 340px; }
}

/* ---- Phones ---- */
@media (max-width: 640px) {
  .nav-container { gap: 12px; }
  .brand { gap: 8px; }
  .logo { height: 34px; }

  .nav-actions { gap: 10px; }
  .header-btn { padding: 10px 16px; font-size: 0.85rem; }
  .nav-toggle { width: 38px; height: 38px; }

  .hero { padding-top: 40px; }
  .eyebrow { font-size: 0.72rem; padding: 6px 12px; }
  .hero h1 { line-height: 1.14; }
  .hero p { font-size: 1.02rem; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { justify-content: center; text-align: center; }

  .store-badges { justify-content: center; }
  .store-badges img { height: 40px; }

  .stats-grid { padding: 32px 0; row-gap: 20px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }

  .section-head p { font-size: 1rem; }

  .tool-card { padding: 20px 18px; }

  .feature-widget { padding: 28px 20px; }
  .sidebar-mockup { width: 100%; max-width: 260px; height: 320px; }

  .steps-container { padding: 0; }
  .step { padding: 14px 16px; gap: 14px; }

  .testimonial-box { padding: 18px; }

  .cta-band { margin: 0 16px; padding: 40px 20px; border-radius: var(--radius-md); }

  .footer-contact a { font-size: 0.88rem; }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr; }
  .header-btn { padding: 10px 18px; font-size: 0.85rem; }
  .calc-card { max-width: 100%; padding: 20px; }

  .calc-row { flex-direction: column; }
  .calc-row input, .calc-row select { width: 100%; }

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

  .footer-grid { row-gap: 30px; }
  .footer-bottom { margin-top: 40px; font-size: 0.8rem; }
}

/* ---- Very small phones ---- */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .header-btn span, .header-btn { white-space: nowrap; }
  .header-btn { padding: 9px 14px; font-size: 0.78rem; }
  .logo { height: 30px; }

  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.2rem); }
  .hero p { font-size: 0.96rem; }
  .btn-primary, .btn-ghost { padding: 13px 18px; font-size: 0.9rem; width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.78rem; }

  .cta-band { margin: 0 10px; padding: 32px 16px; }
  .cta-band h2 { font-size: 1.5rem; }
}
