/* SuiteCo public site (suiteco.org). Every color, the gradient, font, spacing and corner radius come from tokens.css,
   which is generated from brand/tokens.json (`npm run brand:tokens`): change the brand there, never here.
   Dark mode follows the visitor's device. No scripts and no outside files: Inter is served from /fonts. */

@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

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

.top, main, .bottom { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: var(--space-4); padding-right: var(--space-4); }

/* Header: mark + wordmark, the site's pages, Owner login. Wraps on phones. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-right: auto;
  color: var(--text);
  font-weight: var(--weight-bold);
  font-size: 22px;
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: var(--space-4); order: 3; width: 100%; }
.nav a { color: var(--text); font-weight: var(--weight-semibold); text-decoration: none; }
.nav a:hover { color: var(--link); }
@media (min-width: 720px) {
  .nav { order: 0; width: auto; }
}

/* Buttons: the brand gradient (blue → purple) for the main action, a quiet outline for the rest. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-button);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.button-primary { background: var(--gradient); color: var(--white); }
.button-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

main { flex: 1; padding-top: var(--space-6); padding-bottom: var(--space-7); }

h1 { margin: 0 0 var(--space-4); font-size: clamp(32px, 6vw, 52px); font-weight: var(--weight-bold); line-height: 1.12; letter-spacing: -0.02em; }
h2 { margin: 0 0 var(--space-2); font-size: 22px; font-weight: var(--weight-semibold); line-height: 1.3; }
h3 { margin: 0 0 var(--space-1); font-size: 18px; font-weight: var(--weight-semibold); line-height: 1.3; }
p { margin: 0 0 var(--space-3); }
.lead { max-width: 640px; font-size: 19px; color: var(--muted); }
.tagline { margin-bottom: var(--space-3); color: var(--link); font-weight: var(--weight-semibold); }

.hero { padding: var(--space-6) 0 var(--space-7); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* Cards: surface, hairline border, 16 px corners. Two columns from tablet width. */
.cards, .plans { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
@media (min-width: 720px) { .cards, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.card p:last-child { margin-bottom: 0; color: var(--muted); }

.band { margin-bottom: var(--space-5); padding: var(--space-5); border-radius: var(--radius-card); background: var(--info-soft); }
.band-soft { background: var(--secondary-soft); }
.band p:last-child { margin-bottom: 0; }
.cta { padding: var(--space-4) 0; font-size: 18px; }

/* Pricing */
.plan .price { margin: var(--space-2) 0 0; font-size: 40px; font-weight: var(--weight-bold); line-height: 1.1; }
.plan .price span { font-size: 17px; font-weight: var(--weight-regular); color: var(--muted); }
.plan .annual { color: var(--muted); }
.plan p:last-child { color: var(--text); }

/* How it works: numbered steps */
.steps { margin: 0 0 var(--space-6); padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.steps li { display: flex; gap: var(--space-4); align-items: flex-start; }
.step {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: var(--white);
  font-weight: var(--weight-bold);
}
.steps p { margin: 0; color: var(--muted); }

ul { margin: 0 0 var(--space-4); padding-left: 22px; }
li { margin-bottom: var(--space-2); }

/* Footer: the site's pages, the legal pages note (or links once they're live), legal name and address. */
.bottom { padding-top: var(--space-5); padding-bottom: var(--space-5); border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.bottom p, .footer-links { margin: 0 0 var(--space-2); }
.bottom a { color: var(--muted); }
.bottom a:hover { color: var(--link); }

/* Legal pages (privacy, terms, SMS terms; generated from backend/legal/site/*.md once they're live). */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 5vw, 36px); }
.legal h2 { margin: var(--space-6) 0 var(--space-2); font-size: 20px; }
.legal ul { margin-bottom: var(--space-3); }
.draft { margin: var(--space-4) 0 var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-button); background: var(--info-soft); color: var(--info); font-weight: var(--weight-semibold); }
