/*
 * Deliberately one small stylesheet with no build step and no external
 * requests. This site has to stay up when the app does not - it is where a
 * merchant looks for support when something is wrong - so it depends on
 * nothing but itself.
 */

/*
 * The gradient is the logo's, stop for stop, so the mark and the site cannot
 * drift apart:
 *
 *   #053D94  deep blue      gradient start
 *   #2B2FB2  indigo         gradient middle
 *   #9F1BE8  violet         gradient end
 *   #2F1366  dark purple    the wordmark, and this site's near-black
 *
 * The working accent is #1737A2, which sits between the gradient's first two
 * stops rather than on one of them. Links, borders and small type all take it,
 * and a shade deeper than the indigo suits that: it reads 10:1 on white
 * against the indigo's 9.8, and it stays clearly a blue where the indigo was
 * beginning to look violet at small sizes.
 *
 * Violet only manages about 5:1 on white, so it stays in the gradient and in
 * large elements, never behind body text.
 */
:root {
  /* Not a neutral grey: the ink is the wordmark's own purple, and the greys
     are mixed toward it, so nothing on the page reads as off-the-shelf. */
  --ink: #2f1366;
  --muted: #6a6280;
  --line: #e6e3ee;
  --bg: #ffffff;
  --soft: #f8f7fb;
  --brand: #1737a2;
  --brand-deep: #053d94;
  --brand-violet: #9f1be8;
  --brand-soft: rgba(23, 55, 162, 0.07);
  --brand-gradient: linear-gradient(135deg, #053d94 0%, #2b2fb2 55%, #9f1be8 100%);
  --radius: 12px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

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

a { color: var(--brand); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Mark plus wordmark, not the stacked lockup - that one is tall enough to
   double the header's height. The mark carries the gradient; the word beside
   it stays flat so the two do not compete. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

nav a:hover { color: var(--ink); }

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

/* The gradient runs the logo's own three stops. It appears on the primary
   button and nowhere else on the page - spending it twice would make neither
   instance mean anything. */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn:hover { filter: brightness(1.08); }

.btn:hover { filter: brightness(1.08); }

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

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

section { padding: 72px 0; }

section.alt { background: var(--soft); border-block: 1px solid var(--line); }

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h3 { font-size: 17px; margin: 0 0 6px; }

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ---------- grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
}

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card .icon { font-size: 22px; display: block; margin-bottom: 10px; }

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

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg);
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 6px 24px rgba(15, 123, 70, 0.09);
}

.plan .price {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 2px;
}

.plan .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.plan .orders { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }

.plan li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 15px;
}

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

.tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- prose pages ---------- */

.prose { max-width: 720px; }

.prose h2 { margin-top: 40px; font-size: 22px; }

.prose ul { padding-left: 20px; }

.prose li { margin-bottom: 8px; }

.prose .updated { color: var(--muted); font-size: 14px; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }

footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  nav a { margin-left: 12px; font-size: 14px; }
}
