/* SyncMyInventory marketing site.
 *
 * Hand-written CSS, no framework and no build step: these pages are served
 * as static files so that they paint immediately and can be read by search
 * engines, which is the entire reason they are not part of the Flutter app.
 * Adding a bundler would give that back.
 *
 * Palette follows the app - orange app bar, purple accents. */

:root {
  --orange: #f57c00;
  --orange-dark: #e65100;
  --purple: #6d28d9;
  --purple-dark: #5b21b6;
  --ink: #1c1b1f;
  --body: #44464f;
  --muted: #74767f;
  --line: #e4e2e6;
  --bg: #ffffff;
  --bg-alt: #faf9fc;
  --radius: 14px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(28, 27, 31, .06), 0 8px 24px rgba(28, 27, 31, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center .lede { margin-left: auto; margin-right: auto; }

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

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 800;
}

.nav nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--body); font-size: .95rem; font-weight: 500; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
.nav nav a[aria-current="page"] { color: var(--purple); }

.menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 11px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-light { background: #fff; color: var(--purple); }
.btn-light:hover { background: #f4f1fe; color: var(--purple-dark); }

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

section { padding: 84px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 64ch; margin: 0 auto 48px; text-align: center; }

.hero { padding: 96px 0 72px; }
.hero .eyebrow {
  display: inline-block;
  background: #f4f1fe;
  color: var(--purple);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.center .cta { justify-content: center; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: #f4f1fe;
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}

/* --- Steps ---------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: .92rem;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

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

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), var(--shadow);
}
.plan .badge {
  align-self: flex-start;
  background: var(--purple); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.plan .price { font-size: 2.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.plan .price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan .yearly { font-size: .88rem; color: var(--muted); margin: 2px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; }
.plan li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  color: var(--purple); font-weight: 700;
}
.plan li.off { color: var(--muted); }
.plan li.off::before { content: '—'; color: var(--line); }
.plan .btn { margin-top: auto; text-align: center; }

table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.compare th, table.compare td {
  padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left;
}
table.compare th { color: var(--ink); font-weight: 600; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
.table-scroll { overflow-x: auto; }

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

.band {
  background: linear-gradient(135deg, var(--purple), var(--orange));
  color: #fff;
  text-align: center;
  padding: 76px 0;
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .9); max-width: 56ch; margin: 0 auto 28px; }

/* --- Form ----------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: .97rem;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

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

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  font-size: .93rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
footer h4 { color: var(--ink); font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: var(--body); }
footer a:hover { color: var(--purple); }
.foot-bottom {
  margin-top: 38px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: .88rem;
}

/* --- Responsive ----------------------------------------------------- */

@media (max-width: 900px) {
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 62px 0; }
  .hero { padding: 64px 0 52px; }
  .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav nav .btn { margin-top: 12px; text-align: center; border-bottom: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
