:root {
  --ink: #212121;
  --muted: #646464;
  --line: #d3d3d3;
  --paper: #f8f8f5;
  --blue: #116dff;
  --blue-dark: #0755d3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.connect-page { max-width: 900px; margin: 0 auto; padding: 28px 28px 40px; }

.service-home { display: flex; flex-direction: column; min-height: 100vh; max-width: 900px; margin: 0 auto; padding: 28px 28px 40px; }
.service-home-content { display: grid; align-content: center; flex: 1; max-width: 720px; padding: 9vh 0; }
.service-home-content h1 { margin-top: 18px; }
.service-home-content > p:last-child { max-width: 540px; margin: 27px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.service-pulse { width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgba(17, 109, 255, .12); }
.service-home footer { margin-top: auto; }

.brand-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mygrid-logo { width: 136px; height: auto; }

.connect-hero { padding: 70px 0 62px; max-width: 680px; }
.eyebrow, .section-marker, footer { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.eyebrow { margin: 0 0 17px; }

h1, h2 { margin: 0; font-family: "Avenir Next", "Helvetica Neue", sans-serif; letter-spacing: -.045em; }
h1 { max-width: 640px; font-size: clamp(44px, 8vw, 76px); font-weight: 750; line-height: .98; }
h1 em { color: var(--blue); font-style: normal; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.08; }
.hero-copy { margin: 30px 0 0; max-width: 580px; color: var(--muted); font-size: 19px; line-height: 1.55; }

.what-shares, .consent-panel { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 35px 0; border-top: 1px solid var(--line); }
.what-shares p, .consent-panel p { max-width: 610px; margin: 16px 0 0; color: var(--muted); }
.what-shares ul { margin: 24px 0 0; padding: 0; list-style: none; }
.what-shares li { position: relative; margin: 12px 0; padding-left: 25px; }
.what-shares li::before { position: absolute; left: 0; color: var(--blue); content: "✓"; font-weight: 800; }

.consent-panel { background: var(--ink); color: white; margin: 26px -28px 0; padding: 42px 28px; border-top: 0; }
.consent-panel .section-marker { color: #86b2ff; }
.consent-panel p { color: #d3d3d3; }
.consent-panel.is-disabled { background: #303030; }
.consent-panel.is-disabled h2 { color: #f2f2f2; }
.consent-action { margin-top: 25px; max-width: 600px; }
.consent-check { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.consent-check input { appearance: none; flex: 0 0 21px; width: 21px; height: 21px; margin: 1px 0 0; border: 2px solid #bdbdbd; background: transparent; cursor: pointer; }
.consent-check input:checked { border-color: var(--blue); background: var(--blue); }
.consent-check input:checked::after { display: block; color: white; content: "✓"; font-size: 15px; font-weight: 800; line-height: 17px; text-align: center; }
.consent-check input:focus-visible, .continue-button:focus-visible { outline: 3px solid #86b2ff; outline-offset: 3px; }

.continue-button { display: inline-block; margin-top: 24px; border: 0; padding: 14px 20px; background: var(--blue); color: white; cursor: pointer; font: inherit; font-weight: 750; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.continue-button span { margin-left: 10px; font-size: 20px; line-height: 0; }
.continue-button:hover:not(:disabled) { background: var(--blue-dark); transform: translateX(2px); }
.continue-button:disabled { cursor: not-allowed; opacity: .42; }
.signin-note { margin-top: 15px !important; font-size: 13px; }
.signed-in { margin: 26px 0 0; padding: 14px 16px; border-left: 3px solid var(--blue); background: #f2f6ff; color: var(--ink) !important; }
.error-message { color: #ffb7b0 !important; }
.connection-setup, .connection-status { margin-top: 25px; max-width: 600px; }
.connection-setup h3, .connection-status h3 { margin: 0; font-size: 22px; }
.connection-setup > p, .connection-status > p { margin: 11px 0 0 !important; }
.setup-kicker { color: #86b2ff !important; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.household-select { display: grid; gap: 7px; margin-top: 23px; font-size: 14px; font-weight: 700; }
.household-select select { width: 100%; padding: 12px; border: 1px solid #bdbdbd; border-radius: 0; background: white; color: var(--ink); font: inherit; }
.source-list { display: grid; gap: 9px; margin: 23px 0 0; padding: 15px; border: 1px solid rgba(255,255,255,.22); }
.source-list legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.source-check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.source-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.source-check span { display: grid; gap: 1px; }
.source-check small { color: #d3d3d3; }
.disconnect-button { display: block; margin-top: 18px; padding: 0; border: 0; background: transparent; color: #d3d3d3; cursor: pointer; font: inherit; text-decoration: underline; }

footer { padding-top: 28px; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .connect-page { padding: 20px 20px 32px; }
  .service-home { padding: 20px 20px 32px; }
  .brand-bar { gap: 11px; font-size: 10px; }
  .mygrid-logo { width: 118px; }
  .connect-hero { padding: 51px 0 45px; }
  .hero-copy { font-size: 17px; }
  .what-shares, .consent-panel { grid-template-columns: 38px 1fr; gap: 14px; }
  .consent-panel { margin: 20px -20px 0; padding: 34px 20px; }
}
