/*
 * EasySME Commerce — green theme layout (commerce.php).
 * Compiled from the ecommerce, ecommerce-2 and ecommerce-blue layouts.
 * Standalone on purpose: style.css carries unscoped rules tuned for the
 * legacy pages, so this layout ships its own complete stylesheet.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --brand: #278c72;
  --brand-dark: #176b58;
  --brand-soft: #eaf5f1;
  --brand-line: #cfe6de;
  --blue: #388fba;
  --red: #e45b4f;
  --ink: #172b32;
  --ink-soft: #263d46;
  --muted: #64747a;
  --line: #e7edeb;
  --canvas: #f5f8f7;
  --white: #fff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 36px rgba(23, 43, 50, .07);
  --shadow-lg: 0 24px 60px rgba(23, 43, 50, .12);
  --container: 1160px;

  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Manrope", var(--font-body);
}

/* ------------------------------------------------------------------ base */

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -.02em;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid rgba(39, 140, 114, .35);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }

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

.btn-white { background: var(--white); color: var(--brand-dark); border-color: var(--white); }
.btn-white:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-soft); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- shared bits */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.check {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.footnote {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------------------------------------------------------------- header */

.announcement {
  padding: 10px 20px;
  background: var(--ink);
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  text-align: center;
}

.announcement strong { color: var(--white); }
.announcement a { margin-left: 6px; color: #9fe0c9; font-weight: 700; white-space: nowrap; }
.announcement a:hover { color: var(--white); }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.nav-brand { display: inline-flex; flex-direction: column; line-height: 1.05; }

.logo {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.5px;
  white-space: nowrap;
}

.logo .easy { color: #1c9a69; }
.logo .s { color: var(--red); }
.logo .me { color: var(--ink-soft); }

.nav-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #52636a;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:not(.btn):hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(circle at 85% 15%, rgba(39, 140, 114, .12), transparent 32%),
    linear-gradient(180deg, #f7fbfa 0%, var(--white) 100%);
}

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

.hero h1 {
  max-width: 620px;
  font-size: clamp(40px, 5.4vw, 64px);
  letter-spacing: -.045em;
  line-height: 1.04;
}

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

.lead {
  max-width: 580px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-note { margin-top: 20px; color: var(--muted); font-size: 14px; }
.hero-note strong { color: var(--ink); }

.hero-visual { position: relative; }

.dashboard-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.dashboard-dots { display: flex; gap: 5px; }
.dashboard-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c8d4d0; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat { padding: 14px; border-radius: 12px; background: var(--canvas); }
.stat small { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 6px; font-family: var(--font-heading); font-size: 22px; }

.dashboard-chart {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dashboard-chart small { color: var(--muted); font-size: 12px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-top: 14px;
}

.chart-bars span {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--brand-line);
}

.chart-bars span:nth-child(3n) { background: rgba(56, 143, 186, .45); }
.chart-bars span.peak { background: var(--brand); }

.floating-tag {
  position: absolute;
  right: -14px;
  bottom: -18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 15px;
}

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

/* ----------------------------------------------------------- trust strip */

.trust-strip { border-block: 1px solid var(--line); background: var(--white); }

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.trust-inner span { display: inline-flex; align-items: center; gap: 10px; }

/* -------------------------------------------------------------- sections */

.section { padding: 96px 0; }
.section-soft { background: var(--canvas); }

.section-heading {
  max-width: 700px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; }
.section-heading p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* -------------------------------------------------------------- features */

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

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

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-card h3 { font-size: 18px; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

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

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
}

.step h3 { font-size: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------- pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

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

.badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.plan-label {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.price-card h3 { margin-top: 8px; font-size: 24px; }
.plan-description { margin-top: 8px; color: var(--muted); font-size: 15px; min-height: 48px; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0;
}

.price strong { font-family: var(--font-heading); font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.price del { margin-left: 4px; color: var(--muted); font-size: 15px; }

.plan-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}

.plan-list li { position: relative; padding-left: 30px; }

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.plan-meta { margin-top: 14px; color: var(--muted); font-size: 13px; }
.plan-list + .plan-meta { margin-top: auto; padding-top: 22px; }
.plan-meta strong { color: var(--ink); }

.offer-card {
  border: 0;
  background: linear-gradient(155deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.offer-card .plan-label { color: #bdeedc; }
.offer-card .plan-description,
.offer-card .price span,
.offer-card .price del,
.offer-card .plan-meta { color: rgba(255, 255, 255, .78); }
.offer-card .plan-list { border-top-color: rgba(255, 255, 255, .2); }
.offer-card .plan-list li::before { background: rgba(255, 255, 255, .16); color: var(--white); }

/* ---------------------------------------------------------------- addons */

.addon-wrap {
  max-width: 920px;
  margin-inline: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.addon-intro h3 { font-size: 20px; }
.addon-intro p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.addon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 20px;
}

.addon-tab {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.addon-tab:hover { border-color: var(--brand-line); color: var(--brand); }
.addon-tab.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.addon-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.addon-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.addon-item[hidden] { display: none; }
.addon-item:hover { border-color: var(--brand-line); }
.addon-item:has(.addon-check:checked) { border-color: var(--brand); background: #f7fbfa; }

.addon-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.addon-info { flex: 1; min-width: 0; }
.addon-info strong { display: block; font-size: 15px; }
.addon-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.addon-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.addon-tag.muted { background: var(--canvas); color: var(--muted); }

.addon-price { flex: none; color: var(--brand-dark); font-weight: 800; font-size: 15px; text-align: right; }
.addon-price small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }

.addon-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
}

.addon-summary small { display: block; color: rgba(255, 255, 255, .7); font-size: 13px; }
.addon-summary strong { display: block; margin: 2px 0; font-family: var(--font-heading); font-size: 32px; letter-spacing: -.03em; }

/* ------------------------------------------------------------------- faq */

.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color .2s;
}

.faq-item[open] { border-color: var(--brand-line); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 18px;
  transition: transform .2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ final cta */

.final-cta { padding: 0 0 96px; }

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 52px 56px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .14), transparent 30%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
}

.cta-panel h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.03em; }
.cta-panel p { margin-top: 10px; color: rgba(255, 255, 255, .82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- footer */

.footer { padding: 64px 0 28px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 15px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.footer .logo .me { color: var(--white); }
.footer .nav-brand small { color: rgba(255, 255, 255, .55); }
.footer-about p { max-width: 320px; margin-top: 16px; }

.footer h4 { margin-bottom: 14px; color: var(--white); font-size: 15px; }
.footer-grid > div:not(.footer-about) { display: flex; flex-direction: column; gap: 9px; }
.footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  .pricing-grid.has-offer { grid-template-columns: repeat(2, 1fr); }
  .offer-card { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 0; }
  .nav-cta-mobile { display: inline-flex; margin-top: 8px; }
  .nav-actions .btn { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .floating-tag { right: 12px; }

  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-about { grid-column: 1 / -1; }

  .cta-panel { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 36px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px; }
  .stat strong { font-size: 18px; }
  .chart-bars { height: 110px; gap: 6px; }

  .trust-inner { justify-content: flex-start; }
  .trust-inner span { flex: 1 1 45%; }

  .feature-grid, .steps, .pricing-grid, .pricing-grid.has-offer, .addon-list { grid-template-columns: 1fr; }
  .plan-description { min-height: 0; }

  .addon-wrap { padding: 22px 18px; }
  .addon-summary { flex-direction: column; align-items: stretch; }

  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
