/* App Connector — public site.
   One restrained accent (taken from the logo), system type, tokens defined once.
   Light and dark are both first-class; there is no toggle, we follow the OS. */

:root {
  --canvas: #ffffff;
  --surface: #fafafb;
  --ink: #0f1218;
  --ink-2: #545b6b;
  --ink-3: #868c99;
  --line: #e7e8ed;
  --line-strong: #d6d8e0;
  --accent: #1d4ed8;
  --accent-hover: #1a44bd;
  --accent-ring: rgba(29, 78, 216, 0.32);
  --on-accent: #ffffff;
  --ok-bg: #eef7f1;
  --ok-line: #cfe7d8;
  --ok-ink: #1a6b3c;
  --bad-bg: #fdf1f1;
  --bad-line: #f2d3d3;
  --bad-ink: #a32b2b;

  --radius: 10px;
  --radius-sm: 7px;
  /* Shell is wide so the page reads as a site; prose blocks stay narrow
     inside it so long legal copy keeps a comfortable line length. */
  --maxw: 64rem;
  --measure: 40rem;
  --gap: 1rem;
  --pad-x: 1.5rem;

  --fs-hero: clamp(1.85rem, 1.25rem + 2vw, 2.6rem);
  --fs-h2: 1.2rem;
  --fs-h3: 1rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d0f14;
    --surface: #14171e;
    --ink: #f2f3f6;
    --ink-2: #a6adbb;
    --ink-3: #7b8291;
    --line: #232733;
    --line-strong: #333846;
    --accent: #6f9bff;
    --accent-hover: #86adff;
    --accent-ring: rgba(111, 155, 255, 0.36);
    --on-accent: #0d0f14;
    --ok-bg: #12241a;
    --ok-line: #23412f;
    --ok-ink: #7fd4a2;
    --bad-bg: #251416;
    --bad-line: #452527;
    --bad-ink: #f09b9b;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- shared shell ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 550;
  background: var(--surface);
}

main {
  flex: 1 0 auto;
}

/* Full-bleed horizontal bands. Each page composes sections rather than
   pouring one long column into a single container. */
.section {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--line);
}
.section:last-child {
  border-bottom: 0;
}
.section--alt {
  background: var(--surface);
}
.section--hero {
  padding: 5rem 0 4.5rem;
  background: var(--surface);
}
.section--plain {
  padding: 3.25rem 0 4rem;
  border-bottom: 0;
}

/* Long-form copy: keep the measure readable inside the wide shell. */
.prose {
  max-width: var(--measure);
}
.prose h2:first-child,
.prose h1 + p + h2 {
  margin-top: 2rem;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}
.section-head h2 {
  margin-top: 0;
}
.section-head p:last-child {
  margin-bottom: 0;
}

.section-note {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}
.site-foot a {
  color: var(--ink-3);
  text-decoration: none;
}
.site-foot a:hover {
  color: var(--ink-2);
  text-decoration: underline;
}
.foot-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- type ---------- */

h1 {
  font-size: var(--fs-hero);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  text-wrap: balance;
  font-weight: 600;
}
h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.012em;
  margin: 2.5rem 0 0.75rem;
  font-weight: 600;
}
h3 {
  font-size: var(--fs-h3);
  margin: 1.75rem 0 0.5rem;
  font-weight: 600;
}
p {
  margin: 0 0 1rem;
  color: var(--ink-2);
}
main a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-2);
}
li {
  margin-bottom: 0.4rem;
}
strong {
  color: var(--ink);
  font-weight: 600;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.lede {
  font-size: 1.075rem;
  color: var(--ink-2);
  max-width: 38rem;
}
.eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.updated {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin: -0.4rem 0 2rem;
}

/* ---------- home ---------- */

.hero {
  max-width: 44rem;
}
.hero h1 {
  margin-bottom: 1.25rem;
}
/* Policy links above the fold as well as in the nav and footer. Google's
   checker looks for an easily accessible privacy link on the homepage, and a
   footer link alone is repeatedly reported as not being picked up. */
.hero-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  font-size: var(--fs-sm);
}
.hero-links a {
  color: var(--accent);
  font-weight: 550;
}

.hero-mark {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: block;
  margin: 0 0 1.75rem;
}

/* Providers: three equal columns so no single platform dominates the page. */
.providers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.providers > li {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
  background: var(--canvas);
}
.providers h3 {
  margin: 0 0 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.providers ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.providers ul li {
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin-bottom: 0.7rem;
}
.providers ul li:last-child {
  margin-bottom: 0;
}
.providers ul strong {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* minmax is sized so three items land on one row inside the content column
   rather than breaking 2 + 1 and leaving an orphan. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.cards li {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--surface);
}
.cards h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  color: var(--ink);
}
.cards p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ---------- form ---------- */

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
  margin-top: 2rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
label {
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--ink);
}
.hint {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
}
textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
}
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile renders its own fixed-size iframe. Reserve the height so the
   submit button does not jump when the widget finishes loading. */
.cf-turnstile {
  min-height: 65px;
}

.btn {
  justify-self: start;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 550;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-hover);
}

.note {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 0 0 1.5rem;
}
.note.ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-ink);
}
.note.bad {
  background: var(--bad-bg);
  border-color: var(--bad-line);
  color: var(--bad-ink);
}
.note strong {
  color: inherit;
}

.contact-direct {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: 2rem;
}

.postal {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
