:root {
  --bg: #f7faf8;
  --bg-alt: #eef6f1;
  --ink: #12181f;
  --muted: #4d5b67;
  --line: rgba(18, 24, 31, 0.1);
  --green: #0b7a4b;
  --green-dark: #085c38;
  --green-soft: #d8f0e4;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(11, 32, 24, 0.1);
  --shadow-sm: 0 8px 24px rgba(11, 32, 24, 0.07);
  --shadow-btn: 0 8px 20px rgba(11, 122, 75, 0.22);
  --radius: 22px;
  --radius-lg: 28px;
  --max: 1180px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 1.02rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Homepage top promo bar ——— */
.top-bar {
  background: linear-gradient(90deg, #0a6b42, #0b7a4b 45%, #0d8a56);
  color: #f4fbf7;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1.6rem;
  min-height: 42px;
  padding-block: 0.55rem;
  text-align: center;
}

.top-bar span {
  white-space: nowrap;
}

/* ——— Header / Nav (fixed while scrolling) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(11, 32, 24, 0.04);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, #12965d, var(--green-dark));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 12px 12px;
  border: 2px solid #f4fbf7;
  border-bottom: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset-inline: 0.7rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
  color: var(--green-dark);
  background: rgba(11, 122, 75, 0.06);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-inline-start: 0.45rem;
  background: var(--green);
  color: var(--white) !important;
  padding: 0.65rem 1.2rem !important;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 122, 75, 0.3);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(11, 122, 75, 0.35);
  box-shadow: var(--shadow);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: center;
  padding: 4.5rem 0 5rem;
}

.page-home .hero {
  padding: 4.75rem 0 5.5rem;
  min-height: min(94vh, 960px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(11, 122, 75, 0.2), transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(18, 24, 31, 0.07), transparent 55%),
    linear-gradient(180deg, #e8f5ee 0%, var(--bg) 55%, #f3f7f5 100%);
  z-index: 0;
}

/* Soft green gradient + subtle geometric shapes (homepage only) */
.page-home .hero-bg {
  background:
    radial-gradient(ellipse 55% 50% at 82% 28%, rgba(11, 122, 75, 0.14), transparent 62%),
    radial-gradient(ellipse 45% 40% at 12% 70%, rgba(11, 122, 75, 0.08), transparent 60%),
    linear-gradient(165deg, #eaf7f0 0%, #f4faf7 42%, #f7faf8 100%);
}

.page-home .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(135deg, rgba(11, 122, 75, 0.05) 1px, transparent 1px),
    linear-gradient(45deg, rgba(11, 122, 75, 0.04) 1px, transparent 1px);
  background-size: 56px 56px, 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: 8%;
  width: 46%;
  height: 72%;
  background: linear-gradient(160deg, rgba(11, 122, 75, 0.16), transparent);
  filter: blur(12px);
  animation: drift 12s ease-in-out infinite alternate;
}

.page-home .hero-bg::after {
  width: 42%;
  opacity: 0.85;
  background:
    radial-gradient(circle at 30% 40%, rgba(11, 122, 75, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(11, 122, 75, 0.1), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  /* Copy ~55% | Mockup ~45% */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* More balanced homepage hero: text left, larger visual */
.page-home .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: clamp(2.25rem, 4.5vw, 3.75rem);
  align-items: center;
}

.hero-copy {
  padding-block: 0.5rem;
}

.page-home .hero-copy {
  padding-block: 0.75rem;
  max-width: 34rem;
}

.page-home .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0.25rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 11.5ch;
}

.lead {
  margin: 1.35rem 0 1.85rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.25rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.85rem 0 0;
}

.hero-points li {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.94rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.hero-visual {
  width: 100%;
  max-width: none;
}

/* ——— Buttons (unified) ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

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

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

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(11, 122, 75, 0.32);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(11, 122, 75, 0.45);
  color: var(--green-dark);
  box-shadow: var(--shadow);
}

/* Hero secondary CTA: green outline only */
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green-dark);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(11, 122, 75, 0.07);
  border-color: var(--green-dark);
  color: var(--green-dark);
  box-shadow: 0 8px 22px rgba(11, 122, 75, 0.12);
}

/* ——— Mockup (enlarged ~25–30% on homepage) ——— */
.mockup {
  width: 100%;
  background: #182029;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 30px 60px rgba(11, 32, 24, 0.14);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: perspective(1400px) rotateY(3deg) rotateX(1.5deg);
  animation: floaty 7s ease-in-out infinite;
}

.page-home .hero-visual .mockup {
  border: 1px solid rgba(11, 122, 75, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: -1px;
  box-shadow:
    0 4px 0 rgba(11, 122, 75, 0.06),
    0 22px 50px rgba(11, 32, 24, 0.16),
    0 40px 80px rgba(11, 122, 75, 0.12),
    0 0 0 8px rgba(11, 122, 75, 0.05);
  transform: perspective(1400px) rotateY(2.5deg) rotateX(1.2deg) scale(1.14);
  transform-origin: center center;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 1.15rem;
  background: #10161d;
  color: #9fb0bf;
  font-size: 0.86rem;
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4652;
}

.mockup-bar span:nth-child(1) { background: #e36d6d; }
.mockup-bar span:nth-child(2) { background: #d1b15a; }
.mockup-bar span:nth-child(3) { background: #58b07d; }

.mockup-bar em {
  margin-inline-start: auto;
  font-style: normal;
}

.mockup-body {
  display: grid;
  grid-template-columns: 78px 1fr;
  min-height: clamp(340px, 42vh, 460px);
}

.page-home .mockup-body {
  min-height: clamp(400px, 48vh, 560px);
}

.mockup-side {
  background: #0f151b;
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 0.9rem;
  align-content: start;
}

.mockup-side i {
  display: block;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-side i:first-child {
  background: rgba(11, 122, 75, 0.45);
}

.mockup-main {
  padding: 1.15rem;
  background: linear-gradient(180deg, #1d2833, #162028);
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.mockup-kpis div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.9rem;
  color: #d7e1ea;
}

.mockup-kpis b {
  display: block;
  font-size: 0.78rem;
  color: #8ea0b0;
  margin-bottom: 0.4rem;
}

.mockup-table {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.mockup-table div {
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.mockup-table div:nth-child(odd) {
  width: 92%;
}

.mockup-note {
  margin: 1rem 0 0;
  color: #7f93a5;
  font-size: 0.82rem;
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), #f5faf7);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ——— Cards ——— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.45rem;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 122, 75, 0.2);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.why-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.why-list strong {
  font-size: 1.08rem;
}

.why-list span {
  color: var(--muted);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.55rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.price-card-featured {
  border-color: rgba(11, 122, 75, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  background: linear-gradient(180deg, #ffffff, #f3faf6);
}

.price-card-featured:hover {
  transform: translateY(-10px);
}

.badge {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.price-tag {
  margin: 0;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--green-dark);
  font-weight: 800;
}

.price-card ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
}

.pricing-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ——— Download page (Microsoft / Notion style) ——— */
.download-section {
  position: relative;
  overflow: hidden;
}

.download-layout {
  display: grid;
  gap: 2.75rem;
  max-width: 920px;
}

.download-hero {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.download-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.download-hero h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.05rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.download-lead {
  margin: 0 auto 1.85rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.85;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: min(100%, 280px);
  padding: 1rem 1.85rem;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: var(--shadow-btn);
}

.btn-download-icon {
  flex-shrink: 0;
}

.download-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-block-title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.install-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.45rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: 100%;
}

.install-steps li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 122, 75, 0.22);
}

.install-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(11, 122, 75, 0.25);
}

.install-steps li strong {
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--ink);
}

.install-steps li span:not(.install-step-num) {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.download-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem 1.65rem;
  box-shadow: var(--shadow-sm);
}

.sys-req-card .download-block-title {
  margin-bottom: 1.1rem;
}

.sys-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.sys-req-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1.05rem 0.85rem;
  border-top: 1px solid var(--line);
}

.sys-req-list li:nth-child(1),
.sys-req-list li:nth-child(2) {
  border-top: none;
  padding-top: 0.15rem;
}

.sys-req-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-dark);
}

.sys-req-value {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}

.download-notes {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  background: linear-gradient(180deg, #f3faf6, var(--white));
  border: 1px solid rgba(11, 122, 75, 0.18);
  border-radius: 20px;
  padding: 1.45rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.download-notes-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  font-style: italic;
  flex-shrink: 0;
}

.download-notes h3 {
  margin: 0.15rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}

.download-notes ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.98rem;
}

.download-notes li + li {
  margin-top: 0.3rem;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 840px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(11, 122, 75, 0.18);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-size: 1.02rem;
}

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

.faq-item p {
  margin: 0.8rem 0 0.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.96rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: #fbfdfc;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 122, 75, 0.15);
}

.form-feedback {
  margin: 0;
  color: var(--green-dark);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #10161d;
  color: #d7e1ea;
  padding: 2.4rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: #9fb0bf;
}

.site-footer nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #b7ebcf;
}

.legal-page {
  padding: 3.25rem 0 4.5rem;
}

.legal-page article {
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.legal-page h1 {
  font-family: var(--display);
  margin-top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@keyframes floaty {
  0%, 100% { transform: perspective(1400px) rotateY(3deg) rotateX(1.5deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(1.5deg) rotateX(1deg) translateY(-12px); }
}

@keyframes floaty-home {
  0%, 100% { transform: perspective(1400px) rotateY(2.5deg) rotateX(1.2deg) scale(1.14) translateY(0); }
  50% { transform: perspective(1400px) rotateY(1.2deg) rotateX(0.8deg) scale(1.14) translateY(-10px); }
}

.page-home .hero-visual .mockup {
  animation: floaty-home 7s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, 18px, 0); }
}

/* ——— Tablet ——— */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 2rem, var(--max));
  }

  .top-bar {
    font-size: 0.84rem;
  }

  .top-bar-inner {
    gap: 0.4rem 1rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0 3.5rem;
  }

  .page-home .hero {
    padding: 3.25rem 0 3.75rem;
    min-height: auto;
  }

  .hero-grid,
  .page-home .hero-grid,
  .why-list,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .download-layout {
    gap: 2.25rem;
    max-width: none;
  }

  .hero-grid {
    gap: 2.25rem;
  }

  .hero-visual,
  .page-home .hero-visual {
    order: 2;
    max-width: 720px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-copy,
  .page-home .hero-copy {
    order: 1;
    max-width: none;
  }

  .hero h1 {
    max-width: none;
  }

  .price-card-featured {
    transform: none;
  }

  .price-card-featured:hover {
    transform: translateY(-3px);
  }

  .mockup,
  .page-home .hero-visual .mockup {
    transform: none;
    animation: none;
  }

  .page-home .hero-visual .mockup {
    transform: scale(1.08);
    transform-origin: center top;
  }

  .mockup-body,
  .page-home .mockup-body {
    min-height: 300px;
  }

  .page-home .mockup-body {
    min-height: 340px;
  }
}

/* ——— Mobile ——— */
@media (max-width: 760px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 0.7rem;
  }

  .top-bar span {
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 1rem;
    top: calc(100% + 0.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.9rem;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-inline-start: 0;
    margin-top: 0.35rem;
    text-align: center;
    justify-content: center;
  }

  .header-inner {
    position: relative;
    min-height: 70px;
  }

  .feature-grid,
  .why-list,
  .install-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .download-hero {
    padding-top: 0.25rem;
  }

  .download-layout {
    gap: 1.85rem;
  }

  .btn-download {
    width: 100%;
    min-width: 0;
  }

  .sys-req-list {
    grid-template-columns: 1fr;
  }

  .sys-req-list li:nth-child(2) {
    border-top: 1px solid var(--line);
    padding-top: 1.05rem;
  }

  .sys-req-list li:nth-child(1) {
    padding-top: 0.15rem;
  }

  .download-card,
  .download-notes {
    padding: 1.35rem 1.2rem;
  }

  .download-notes {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero {
    padding: 2.25rem 0 2.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    margin-top: 1.35rem;
  }

  .mockup-kpis {
    grid-template-columns: 1fr;
  }

  .mockup-body {
    grid-template-columns: 64px 1fr;
    min-height: 280px;
  }

  .section {
    padding: 3.25rem 0;
  }

  .download-card,
  .download-notes,
  .contact-form,
  .price-card {
    padding: 1.35rem 1.2rem;
  }

  .contact-channels {
    flex-direction: column;
  }

  .contact-channels .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mockup,
  .page-home .hero-visual .mockup,
  .hero-bg::after { animation: none; }
  .btn:hover,
  .feature:hover,
  .why-list li:hover,
  .install-steps li:hover,
  .price-card:hover,
  .nav-cta:hover {
    transform: none;
  }
  .page-home .hero-visual .mockup {
    transform: scale(1.1);
  }
}
