:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --divider: #d2d2d7;
  --brand: #ff6b35;
  --on-brand: #1d1d1f;
  --brand-text: #c2410c;
  --brand-tint: #ffe9df;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --divider: #38383a;
    --brand-text: #ff8a5c;
    --brand-tint: #3a2117;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand-text); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 19px; }
.brand img { width: 36px; height: 36px; }
nav.site { display: flex; gap: 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

.hero { padding: 56px 0 40px; text-align: center; }
.hero img { width: 112px; height: 112px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 20px 0 14px; }
.hero p.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto; }
.badge {
  display: inline-block; margin-top: 28px; padding: 10px 18px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-text); font-weight: 600; font-size: 15px;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 24px 0 48px; }
.card { background: var(--surface); border-radius: 18px; padding: 24px; }
.card h2 { font-size: 19px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 2px; }

.doc { background: var(--surface); border-radius: 18px; padding: 32px clamp(20px, 5vw, 48px); margin: 16px auto 48px; }
.doc h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.01em; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--divider); }
.doc th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--divider); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  header.site { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding-top: 32px; }
}

/* Forms and controls (Teams page) */
.stack { display: grid; gap: 10px; margin: 16px 0; max-width: 420px; }
.stack label { font-weight: 600; font-size: 15px; }
input[type="email"], input[type="number"], input[inputmode="numeric"] {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--divider); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
input:focus-visible, .button:focus-visible, .link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.button {
  font: inherit; font-weight: 600; color: var(--on-brand); background: var(--brand); border: 0; border-radius: 12px;
  padding: 12px 18px; cursor: pointer; justify-self: start;
}
.button:disabled { opacity: 0.6; cursor: progress; }
.link { font: inherit; color: var(--brand-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; justify-self: start; }
.muted { color: var(--muted); font-size: 15px; }
.notice { border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: var(--brand-tint); }
.notice[data-kind="error"] { background: #fde8e7; color: #8a1712; }
.notice[data-kind="success"] { background: #e3f4e8; color: #14532b; }
@media (prefers-color-scheme: dark) {
  .notice[data-kind="error"] { background: #3b1513; color: #ffb4ae; }
  .notice[data-kind="success"] { background: #12301d; color: #9be3b2; }
}
.card-inset { border: 1px solid var(--divider); border-radius: 16px; padding: 20px; margin: 16px 0; }
.card-inset h2 { margin-top: 0; }
.segmented { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.segmented legend { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.segmented label { font-weight: 400; }
.total { font-weight: 600; margin: 0; }

/* Pricing (home page) */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding: 8px 0 24px; }
.plan { background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { outline: 2px solid var(--brand); }
.plan h3 { margin: 0; font-size: 19px; }
.plan .who { color: var(--muted); font-size: 15px; margin: 0; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 6px 0 0; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .annual { color: var(--muted); font-size: 15px; margin: 0; }
.plan ul { padding-left: 20px; margin: 8px 0 0; font-size: 15px; }
.plan li { margin: 4px 0; }
.section-title { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.01em; text-align: center; margin: 32px 0 4px; }
.section-lede { text-align: center; color: var(--muted); margin: 0 0 20px; }

[hidden] { display: none !important; }
