/* =========================================================
   ApnaCloudy — Global Stylesheet
   Mobile-first, performance-focused
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@100..900&display=swap");

:root {
  --navy: #0b1f3a;
  --navy-800: #123057;
  --navy-700: #1b3d6d;
  --text: #23344f;
  --text-muted: #5b6b82;
  --accent: #ff6b00;
  --accent-dark: #e85d00;
  --accent-soft: #fff1e6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --border: #e4e9f1;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 31, 58, 0.12);
  --container: 1200px;
  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeSpeed;
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--navy);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.brand:hover { color: var(--navy); }

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand span.accent {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

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

/* ---------- Mobile slide-out drawer ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 150;
}

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

.drawer-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}

.primary-nav {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  margin: 0;
  padding: 5.5rem 1.5rem 2rem;
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(11, 31, 58, 0.18);
  transform: translateX(104%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 200;
}

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

.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.nav-item:has(> .submenu) > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  transition: transform 0.3s ease;
}

.nav-item.open:has(> .submenu) > a::after {
  transform: rotate(180deg);
}

.nav-item ul.submenu {
  padding: 0.35rem 0 0.85rem 0.9rem;
  border-left: 2px solid var(--accent-soft);
  display: none;
}

.nav-item.open ul.submenu {
  display: block;
  animation: submenuIn 0.25s ease both;
}

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

.nav-item ul.submenu li a {
  display: block;
  padding: 0.55rem 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.nav-item ul.submenu li a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-cta {
  margin: 1.4rem 0 0;
  justify-content: center;
  width: 100%;
}

.primary-nav > ul > li > a.nav-cta {
  padding: 0.7rem 1.1rem;
  min-height: 0;
  font-size: 0.9rem;
  border-bottom: 0;
  border-radius: var(--radius-sm);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0.7rem 0;
  font-size: 0.85rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

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

.breadcrumbs [aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-trust strong {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
}

.hero-visual {
  position: relative;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.75rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: 1fr; }
.grid-cols-3 { grid-template-columns: 1fr; }
.grid-cols-4 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card-img {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}

/* ---------- Checklist ---------- */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats-band {
  background: var(--navy);
  color: #dbe4f0;
}

.stats-band .grid {
  gap: 2rem;
}

.stat h3 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.stat h3 .hl {
  color: var(--accent);
}

.stat p {
  color: #b9c6da;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.testimonial blockquote {
  font-size: 1.02rem;
  color: var(--text);
}

.testimonial .person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.avatar.accent {
  background: var(--accent);
}

.testimonial .person strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

.testimonial .person span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: #fff;
}

.cta-band .container {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: #fff0e6;
  margin: 0;
}

.cta-band .btn {
  justify-self: center;
  background: var(--navy);
  color: #fff;
}

.cta-band .btn:hover {
  background: var(--navy-800);
}

/* ---------- Pricing ---------- */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.price-card .desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1.2rem;
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  padding: 1.2rem 0 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--border);
  flex: 1;
}

.price-card ul li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.price-card ul li.off {
  color: var(--text-muted);
  opacity: 0.7;
  text-decoration: line-through;
}

/* ---------- Compare table ---------- */
.compare-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.93rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 700;
}

.compare-table th:first-child {
  color: var(--navy);
}

.compare-table td.yes {
  color: var(--accent);
  font-weight: 700;
}

.compare-table td.no {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---------- Accordion / FAQ ---------- */
.accordion {
  display: grid;
  gap: 0.85rem;
}

.accordion details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion details .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------- Info list / details ---------- */
.contact-card {
  padding: 1.6rem;
  height: 100%;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.post-cat {
  color: var(--accent);
  font-weight: 600;
}

.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.post-card h3 a {
  color: var(--navy);
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-body img {
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.9rem;
}

.post-body h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.7rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.2rem;
}

.post-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text);
}

/* ---------- Callout ---------- */
.callout {
  background: var(--accent-soft);
  border: 1px solid #ffd2ad;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}

.callout strong {
  color: var(--navy);
}

.callout a {
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---------- Logos / trust strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem 2.6rem;
  align-items: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---------- Pagination / chips ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.83rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c6d2e6;
  padding: 3.5rem 0 1.5rem;
}

.site-footer a {
  color: #c6d2e6;
}

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

.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  font-size: 0.94rem;
  max-width: 30rem;
}

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

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

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col ul li a {
  font-size: 0.94rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 3.25rem 0 2.75rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin-bottom: 0.9rem;
}

.page-hero .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 44rem;
}

/* ---------- Misc ---------- */
.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.two-col.flip > *:first-child {
  order: 2;
}

.two-col.flip > *:last-child {
  order: 1;
}

.img-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

.numeric-list {
  list-style: none;
  padding: 0;
  counter-reset: item;
}

.numeric-list li {
  counter-increment: item;
  margin-bottom: 0.8rem;
}

.numeric-list li::before {
  content: counter(item) ".";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.4rem;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children of a grid so they cascade in nicely */
.grid > .reveal:nth-child(2),
.two-col > .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.grid > .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.grid > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- Hero entrance animation ---------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-enter > * {
  animation: heroFadeUp 0.7s ease both;
}

.hero-enter > *:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-enter > *:nth-child(3) {
  animation-delay: 0.2s;
}

/* ---------- Card hover lift ---------- */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.6s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d7deea;
}

.card .btn,
.card .card-link {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* ---------- Responsive / desktop ---------- */
@media (min-width: 720px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field.full { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.flip > *:first-child { order: 1; }
  .two-col.flip > *:last-child { order: 2; }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    width: auto;
  }

  .primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .primary-nav > ul > li {
    position: relative;
  }

  .primary-nav > ul > li > a {
    border-bottom: 0;
    padding: 1.25rem 0.7rem;
    font-size: 0.95rem;
    min-height: 68px;
    display: inline-flex;
    align-items: center;
  }

  .nav-item ul.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 120;
  }

  .nav-item:hover ul,
  .nav-item:focus-within ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item ul li a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .nav-item ul li a:hover {
    background: var(--bg-soft);
    color: var(--accent);
  }

  .primary-nav > ul > li > .nav-cta {
    margin: 0 0 0 0.7rem;
    padding: 0.5rem 1.05rem;
    min-height: 0;
    font-size: 0.9rem;
  }

  .hero {
    padding: 5.5rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .hero-actions {
    margin-top: 2.1rem;
  }

  .section {
    padding: 5.5rem 0;
  }

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

  .cta-band .container {
    grid-template-columns: 1fr auto;
    text-align: left;
  }

  .cta-band .btn {
    justify-self: end;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}