/* Sirkit marketing site — hand-built static CSS, no framework.
   Brand: purple #873593, indigo #3D4C9F, teal #43C1C5 (accent only), ink #434343.
   System font stack (no webfont download — school-office DSL friendly); the brand
   is carried by color + the SVG logos, matching the SPA's light visual language. */

:root {
  --purple: #873593;
  --purple-dark: #6d2a77;
  --indigo: #3D4C9F;
  --teal: #43C1C5;
  --ink: #434343;
  --muted: #767676;
  --border: #E4E0EA;
  --bg-alt: #F7F5FA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--indigo); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-outline { border-color: var(--purple); color: var(--purple); background: #fff; }
.btn-outline:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--purple); }
.btn-light:hover { background: var(--bg-alt); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.nav-logo { height: 34px; }
/* Four items now (Pricing · Group sign in · Sign in) — wrap rather than overflow a phone. */
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav-links .btn { padding: 8px 20px; }
/* The chain-owner door: present, but quieter than the school Sign in button beside it. */
.nav-group-login { font-size: 15px; color: var(--indigo); }
.nav-group-login:hover { color: var(--purple); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 24px 64px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero-mark { height: 72px; margin-bottom: 24px; }
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 16px;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 64px 24px; max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-alt h2 { margin-bottom: 10px; }
.center { text-align: center; margin-top: 28px; }

/* ── Feature cards ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: #fff;
}
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--purple); }
.card p { font-size: 15px; color: var(--ink); }

/* The plan badge on a feature card. Its text is rebuilt from /api/public/plan-features
   (site.js applyFeatureBadges) so a card can never claim a tier the product doesn't
   grant; the authored value is the fallback when the API is unreachable. */
.card-plan {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
}
.card-plan[data-plan-level="all"] { border-color: #BFE3E4; background: #EDF9F9; color: #1F6F72; }
.card-plan[data-plan-level="some"] { border-color: #D8CBE0; background: #F4EEF6; color: var(--purple-dark); }

/* ── Pricing table ───────────────────────────────────────────────────── */
/* Shown only when no figures reached the page (see the comment above #plan-matrix): the
   table keeps its tier names and feature rows, and this says why there are no prices. */
.pricing-status {
  max-width: 640px; margin: 0 auto 18px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-alt); color: var(--muted); font-size: 15px;
}
.pricing-status[hidden] { display: none; }
.pricing-status a { color: var(--purple); font-weight: 600; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 640px; /* pans inside .table-wrap on phones — headers never wrap to mush */
}
.pricing th, .pricing td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
}
.pricing td:first-child { text-align: left; font-weight: 500; }
.pricing thead th { background: #fff; vertical-align: top; padding-top: 20px; padding-bottom: 16px; }
.plan-name { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.plan-price { display: block; font-size: 24px; font-weight: 800; color: var(--purple); margin-top: 4px; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-yr { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-featured { background: var(--bg-alt); }
.pricing tbody td { color: var(--ink); }

/* Paid add-ons: one bordered row each under the plan table, rendered by site.js
   applyAddOns from the API. Authored empty + hidden; wraps freely, so no sideways scroll
   on a phone. */
.addon-rows { margin-top: 16px; display: grid; gap: 10px; }
.addon-rows[hidden] { display: none; }
.addon-row {
  padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: #fff; text-align: left;
}
.addon-text { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.addon-note { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* ── Apps ────────────────────────────────────────────────────────────── */
#apps { text-align: center; }
.app-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 8px; }
.app-badges[hidden] { display: none; }
.app-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 14px; }
.app-badge img { display: block; height: 64px; width: auto; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.section-brand {
  max-width: none;
  background: var(--purple);
  color: #fff;
}
.section-brand h2, .section-brand .section-sub { color: #fff; }
.section-brand .section-sub { opacity: .9; }
.contact-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer-mark { height: 32px; margin-bottom: 14px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--purple); }

/* ── Phones (390px-class) ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 48px 20px 44px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-mark { height: 56px; }
  .section { padding: 44px 18px; }
  .section h2 { font-size: 25px; }
  .nav-logo { height: 28px; }
  .btn { padding: 11px 22px; font-size: 15px; }
}

/* ── Lead form (the secondary contact path) ─────────────────────────────── */
.lead-intro { margin-top: 28px; }
.lead-form { max-width: 640px; margin: 0 auto; text-align: left; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #fff;
  font: inherit; box-sizing: border-box;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(255, 255, 255, 0.75); }
.lead-form textarea { margin-top: 10px; resize: vertical; }
.lead-actions { margin-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lead-status { color: #fff; font-size: 14px; }
.lead-thanks { color: #fff; font-weight: 600; margin-top: 20px; }
@media (max-width: 640px) {
  .lead-grid { grid-template-columns: 1fr; }
}
