/* EZ Commerce Apps — site stylesheet.
   Palette lives in the custom properties below; tweak once to re-skin. */

:root {
  --navy: #0d1b2e;
  --navy-2: #14273f;
  --green: #17a05e;
  --green-dark: #128a50;
  --ink: #1c2733;
  --muted: #5b6b7d;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 14px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--green-dark);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.7rem;
  margin: 0 0 0.6em;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

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

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

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

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

.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-fallback {
  display: none;
}

.brand img.is-missing {
  display: none;
}

.brand img.is-missing ~ .brand-fallback {
  display: inline;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--green-dark);
}

.site-nav .nav-cta {
  color: #fff;
  padding: 9px 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 10px;
  color: var(--navy);
  cursor: pointer;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf1f8;
  padding: 72px 0 80px;
}

.hero h1 {
  color: #fff;
  max-width: 720px;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 660px;
  color: #c9d6e4;
}

.hero .hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-app {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-app img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: #fff;
}

.hero-app img.is-missing {
  display: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 10px;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section-intro {
  max-width: 700px;
  color: var(--muted);
  margin-bottom: 36px;
}

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

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

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

.card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--green-dark);
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

a.card-link:hover,
a.card-link:focus-visible {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(13, 27, 46, 0.08);
}

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

/* Feature rows (app page) */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row ul {
  padding-left: 20px;
  color: var(--ink);
}

.feature-row li {
  margin-bottom: 6px;
}

.shot {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.shot img {
  border-radius: 8px;
}

.shot img.is-missing {
  display: none;
}

.shot figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 10px;
}

/* Video embeds (app pages) */

.hero-video {
  margin-top: 44px;
  max-width: 680px;
}

.hero-video .video-embed iframe {
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.hero-video-caption {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #c9d6e4;
}

.video-featured {
  max-width: 820px;
  margin: 36px auto 0;
}

.video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* Pricing */

.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid var(--green);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 0;
}

.price .per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.pricing-card li {
  padding: 7px 0 7px 28px;
  position: relative;
}

.pricing-card li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  position: absolute;
  left: 4px;
}

.badge {
  display: inline-block;
  background: #e7f6ee;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Prose pages (legal, help, FAQ) */

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-soft);
}

.prose code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.page-head h1 {
  margin-bottom: 0.2em;
}

.page-head p {
  color: var(--muted);
  margin: 0;
  max-width: 700px;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  color: var(--navy);
  list-style-position: outside;
}

.faq-item .faq-body {
  padding: 0 20px 16px;
  color: var(--ink);
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 52px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Callouts */

.note {
  border-left: 4px solid var(--green);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 1.2em 0;
}

/* Contact */

.contact-cta {
  text-align: center;
  padding: 20px 0 6px;
}

.contact-cta .btn {
  font-size: 1.15rem;
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #c9d6e4;
}

.cta-band a:not(.btn) {
  color: #fff;
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #b9c7d6;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 48px;
  padding-bottom: 24px;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 6px;
}

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

.site-footer nav {
  display: grid;
  gap: 8px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  padding-bottom: 24px;
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 800px) {
  h1 {
    font-size: 1.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }

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

  .grid-3,
  .grid-2,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row {
    gap: 20px;
  }

  .hero {
    padding: 48px 0 56px;
  }
}
