/* PowerOS marketing site — solar & battery ERP for Pakistan */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --brand: #d97706;
  --brand-strong: #b45309;
  --brand-deep: #0b1220;
  --brand-soft: #fffbeb;
  --brand-glow: rgba(245, 158, 11, .14);
  --teal: #0f766e;
  --teal-soft: #f0fdfa;
  --orange: #f59e0b;
  --orange-soft: #fffbeb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --page: #f8fafc;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, .12);
  --display: "Outfit", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --nav-h: 4.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.03em;
}

.brand:hover { text-decoration: none; }

.brand__icon {
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
}

.brand__text {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand__power {
  color: #0f172a;
}

.brand--dark .brand__power {
  color: #f8fafc;
}

.brand__os {
  background: linear-gradient(90deg, #2563eb 0%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--brand-strong); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .45rem .6rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .28);
}

.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(37, 99, 235, .35); }

.btn-outline {
  background: #fff;
  color: var(--brand-strong);
  border-color: var(--line);
}

.btn-outline:hover { background: var(--brand-soft); color: var(--brand-strong); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover { color: var(--brand-strong); background: var(--brand-soft); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover { color: #fff; background: #1ebe57; }

.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(37, 99, 235, .14), transparent 55%),
    radial-gradient(700px 400px at 95% 10%, rgba(13, 148, 136, .1), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--page) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 1.25rem;
}

.eyebrow__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__visual {
  position: relative;
}

.dashboard-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dashboard-mock__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}

.dashboard-mock__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.dashboard-mock__dot:nth-child(1) { background: #f87171; }
.dashboard-mock__dot:nth-child(2) { background: #fbbf24; }
.dashboard-mock__dot:nth-child(3) { background: #4ade80; }

.dashboard-mock__title {
  margin-left: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
}

.dashboard-mock__body { padding: 1rem; }

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin-bottom: 1rem;
}

.mock-kpi {
  padding: .75rem;
  border-radius: .75rem;
  border: 1px solid var(--line);
  background: #fafbfc;
}

.mock-kpi__label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mock-kpi__value {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  margin-top: .2rem;
}

.mock-kpi--blue { border-color: #bfdbfe; background: var(--brand-soft); }
.mock-kpi--teal { border-color: #99f6e4; background: var(--teal-soft); }
.mock-kpi--orange { border-color: #fed7aa; background: var(--orange-soft); }
.mock-kpi--green .mock-kpi__value { color: var(--teal); }

.mock-chart {
  height: 7rem;
  border-radius: .75rem;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  padding: .75rem;
}

.mock-bar {
  flex: 1;
  border-radius: .25rem .25rem 0 0;
  background: linear-gradient(180deg, var(--brand) 0%, #93c5fd 100%);
  opacity: .85;
}

.mock-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.mock-pill {
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--muted);
}

/* ---------- Stats strip ---------- */

.stats-strip {
  padding: 2rem 0;
  border-block: 1px solid var(--line);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat__value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-strong);
  line-height: 1.1;
}

.stat__label {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: .25rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section--alt { background: #fff; }

.section__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.section__header h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -.03em;
  margin: 0 0 .75rem;
}

.section__header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Feature cards ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

.feature-card__icon {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 .45rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 .75rem;
}

.feature-card__link {
  font-size: .875rem;
  font-weight: 700;
  color: var(--brand-strong);
  text-decoration: none;
}

.feature-card__link:hover { text-decoration: underline; }

/* ---------- Testimonials ---------- */

.testimonials {
  overflow: hidden;
  padding: 2rem 0;
  background: linear-gradient(135deg, #0b1f4d 0%, var(--brand-deep) 50%, #0e7490 120%);
  color: #fff;
}

.testimonial-track {
  display: flex;
  gap: 1.25rem;
  animation: scroll 40s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex: 0 0 340px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.testimonial-card p {
  font-size: .95rem;
  margin: 0;
  line-height: 1.55;
  font-style: italic;
}

.testimonial-card cite {
  display: block;
  margin-top: .75rem;
  font-size: .82rem;
  font-style: normal;
  opacity: .75;
}

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step-card__num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-family: var(--display);
  margin: 0 0 .5rem;
}

.step-card p { color: var(--muted); margin: 0 0 .75rem; font-size: .95rem; }

.step-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .9rem;
}

.step-card li { margin-bottom: .35rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  /* Four PowerOS packages: one row on wide screens, 2×2 below. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  /* The plan badge is absolutely positioned, so every card is its own
     positioning context — not just the featured one. */
  position: relative;
}

@media (max-width: 1200px) {
  .pricing-card { padding: 1.75rem; }
}

.pricing-card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Secondary badge for the non-featured plan, so it still reads as a valid
   starting point without competing with the highlighted card. */
.pricing-card__badge--soft {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid var(--brand);
}

.pricing-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 .25rem;
}

.pricing-card__sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-strong);
  margin-bottom: .25rem;
}

@media (max-width: 1200px) {
  .pricing-card__price { font-size: 2rem; }
}

.pricing-card__price span {
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
}

/* What the price does and does not include, directly under the figure. */
.pricing-card__note {
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: .5rem;
  padding: .4rem .55rem;
  margin-bottom: .85rem;
}

.pricing-card__more {
  margin: .75rem 0 0;
  font-size: .82rem;
}

.pricing-card__more a { color: var(--brand-strong); font-weight: 600; }

/* Cards stretch to equal height, so pin the call-to-action to the bottom and
   keep the buttons on one line across the row. */
.pricing-card > .btn { margin-top: auto; }

.pricing-card__more + .btn,
.pricing-card .btn + .pricing-card__more { margin-top: 0; }

.pricing-card__ideal {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-card li {
  font-size: .9rem;
  padding: .4rem 0 .4rem 1.5rem;
  position: relative;
  color: var(--ink);
}

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

.pricing-card .btn { width: 100%; }

/* ---------- Comparison table ---------- */

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

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

.compare-table th {
  background: #f8fafc;
  font-family: var(--display);
  font-weight: 700;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table .check { color: var(--teal); font-weight: 700; }
.compare-table .dash { color: #cbd5e1; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item__body {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0b1f4d 0%, var(--brand-deep) 45%, #0e7490 120%);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 .75rem;
}

.cta-band p {
  opacity: .85;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: .9rem;
  margin: .75rem 0 0;
  max-width: 22rem;
}

.footer-brand a,
.footer-bottom a {
  color: #e2e8f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-brand a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--display);
  font-size: .9rem;
  margin: 0 0 .75rem;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: .875rem;
  margin-bottom: .45rem;
  text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .82rem;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(700px 360px at 15% 0%, rgba(37, 99, 235, .1), transparent 55%),
    #fff;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 .75rem;
  letter-spacing: -.03em;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 auto;
}

/* ---------- Feature categories (features page) ---------- */

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.category-nav a {
  padding: .45rem .9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.category-nav a:hover,
.category-nav a.is-active {
  background: var(--brand-soft);
  border-color: #bfdbfe;
  color: var(--brand-strong);
}

.module-section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.module-section h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--brand-soft);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.module-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 .35rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.module-card p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 .65rem;
}

.module-card ul {
  margin: 0;
  padding-left: 1rem;
  font-size: .82rem;
  color: var(--muted);
}

.module-card li { margin-bottom: .2rem; }

/* ---------- Role cards ---------- */

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.role-card {
  text-align: center;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.role-card__icon { font-size: 2rem; margin-bottom: .5rem; }

.role-card h3 {
  font-family: var(--display);
  font-size: .95rem;
  margin: 0 0 .25rem;
}

.role-card p {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--display);
  margin: 0 0 1rem;
}

.contact-info p { color: var(--muted); }

.contact-methods {
  margin-top: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-method__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .65rem;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  font-family: var(--body);
  font-size: .95rem;
  background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---------- Add-ons ---------- */

.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.addon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.addon-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 .45rem;
}

.addon-card p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.article-hero .crumbs { justify-content: flex-start; }

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-strong); }

/* ---------- Software screenshots ---------- */

.shot-frame,
.shot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .85rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0 0 1rem;
}

.shot-frame picture,
.shot-card picture,
.blog-card__media picture {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f7;
}

.shot-frame img,
.shot-card img,
.blog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top left;
}

.shot-frame figcaption,
.shot-card figcaption {
  padding: .45rem .7rem .55rem;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--muted);
}

.shot-frame--hero {
  margin: 0;
  box-shadow: var(--shadow-lg);
}

.shot-frame--wide {
  max-width: 22rem;
  margin: 0 auto 1.25rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.shot-card { margin: 0; }

.shot-card figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: .82rem;
  margin-bottom: .15rem;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
  max-width: 40rem;
}

.module-section > .shot-frame {
  max-width: 28rem;
}

/* Phone/tablet shots: full portrait screens. The wrapper's aspect ratio comes
   from site_shot(), which derives it from the real file size. */
.shot-frame--phone,
.shot-card--phone {
  max-width: 21rem;
  margin-inline: auto;
}

.shot-frame--phone {
  margin-bottom: 2rem;
}

.shot-frame--phone figcaption,
.shot-card--phone figcaption {
  text-align: center;
}

/* Inline code (permission names, URLs) inside marketing copy. */
.page-hero code,
.module-card code,
.feature-card code,
.article-prose code {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid #dbeafe;
  border-radius: .35rem;
  padding: .05rem .35rem;
  font-size: .85em;
  font-weight: 600;
}

.page-hero .hero__actions {
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ---------- Editorial split (text + screenshot) ---------- */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-grid > figure { margin: 0; }

.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -.03em;
  margin: 0 0 .75rem;
}

.split-grid > div > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.check-list li {
  position: relative;
  padding: .35rem 0 .35rem 1.6rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.article-prose .shot-frame {
  max-width: 26rem;
  margin: .85rem 0 1.1rem;
}

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card__media {
  display: block;
  overflow: hidden;
}

.blog-card__body { padding: 1.15rem 1.25rem 1.35rem; }

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .55rem;
}

.blog-card h2,
.blog-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}

.blog-card h2 a,
.blog-card h3 a { color: inherit; text-decoration: none; }

.blog-card h2 a:hover,
.blog-card h3 a:hover { color: var(--brand-strong); }

.blog-card p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .75rem;
}

.article-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(700px 360px at 15% 0%, rgba(37, 99, 235, .1), transparent 55%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -.03em;
  margin: 0 0 .85rem;
  max-width: 46rem;
}

.article-hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1rem;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 2.5rem;
  align-items: start;
}

.article-prose {
  max-width: 46rem;
}

.article-prose h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 2rem 0 .75rem;
}

.article-prose h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 1.5rem 0 .5rem;
}

.article-prose p,
.article-prose li { color: #334155; }

.article-prose ul,
.article-prose ol { padding-left: 1.2rem; }

.article-prose li { margin-bottom: .4rem; }

.article-prose .table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.aside-card h2 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 .5rem;
}

.aside-card p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 .85rem;
}

.aside-link {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

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

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .55);
  color: #fff;
  text-decoration: none;
}

.whatsapp-float::after {
  content: "Chat with sales";
  position: absolute;
  right: calc(100% + .65rem);
  white-space: nowrap;
  background: #0f172a;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}

.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 720px) {
  .whatsapp-float::after { display: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  .hero__grid,
  .contact-grid { grid-template-columns: 1fr; }

  .features-grid,
  .steps-grid,
  .role-grid,
  .addons-grid,
  .shot-grid,
  .blog-grid,
  .blog-grid--3 { grid-template-columns: 1fr 1fr; }

  /* Keep PowerOS packages on 2×2 through tablet widths. */
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .article-layout,
  .shot-pair,
  .split-grid { grid-template-columns: 1fr; }

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

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

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

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

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

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: .75rem;
  }

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

  .header-actions .btn-ghost { display: none; }

  .features-grid,
  .pricing-grid,
  .steps-grid,
  .role-grid,
  .addons-grid,
  .stats-grid,
  .shot-grid,
  .blog-grid,
  .blog-grid--3 { grid-template-columns: 1fr; }

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

  .form-row { grid-template-columns: 1fr; }

  .hero { padding-top: 2rem; }
}
