:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffefa;
  --ink: #1c3d3a;
  --sea: #285b53;
  --glass: #e1ebe3;
  --muted: #4f615b;
  --line: #cdd4cb;
  --sand: #efe6cf;
  --font-body: Arial, Helvetica, sans-serif;
  --font-accent: Georgia, "Times New Roman", serif;
  --radius: 20px;
  --space: 24px;
  --consent-tracking: -2px;
  --consent-label-gap: 6px;
  --consent-target: 44px;
  --age-label-gap: 14px;
  --shadow: 0 8px 24px #1c3d3a08;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, .button { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 20px; background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; }
.primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.secondary { background: transparent; }
button:hover:not(:disabled), .button:hover { box-shadow: inset 0 0 0 1px currentColor; }
button:disabled { background: var(--glass); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; }
main:focus-visible { outline: none; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; background: var(--white); padding: 12px; }
.skip:focus { top: 12px; }
.site-header { max-width: 1288px; margin: auto; padding: 32px 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 36px; height: 36px; }
.wordmark { display: block; font-size: 34px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.byline { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; margin-top: 5px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 16px; font-size: 14px; text-decoration: none; border-radius: 8px; }
.nav [aria-current="page"]:not(.primary) { background: var(--glass); }
.nav .button, .nav button { font-size: 14px; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 0 32px; }
h1, h2, h3 { font-weight: 500; margin-top: 0; }
h1 { font-size: clamp(52px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -4px; margin-bottom: 28px; }
h1 em { font-family: var(--font-accent); font-weight: 500; }
h2 { font-size: 34px; letter-spacing: -1.3px; margin-bottom: 18px; }
h3 { font-size: 29px; letter-spacing: -1px; margin-bottom: 12px; }
p { line-height: 1.6; }
.small, .field-help { font-size: 13px; line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; margin: 0 0 24px; }
.status { font-size: 13px; line-height: 1.6; border-left: 2px solid var(--line); padding: 10px 14px; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 76px; padding: 48px 0 76px; }
.lead { max-width: 490px; font-size: 18px; line-height: 1.6; margin-bottom: 28px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero .small { margin-top: 18px; }
.art { position: relative; min-width: 0; margin: 0; border-radius: 140px 16px 16px 16px; overflow: hidden; background: var(--glass); }
.art img { width: 100%; height: 450px; display: block; object-fit: cover; }
.art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 30px 30px; background: linear-gradient(transparent, #153f3de6); color: var(--white); }
.art figcaption span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.art figcaption strong { font-family: var(--font-accent); font-size: 34px; font-weight: 500; line-height: 1.1; }
.hero-visual { position: relative; min-width: 0; padding-bottom: 96px; }
.sample { position: absolute; left: -32px; right: 32px; bottom: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 16px 40px #1c3d3a1f; }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sample-head h2 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: 0; }
.sample-tag { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--sand); color: var(--ink); white-space: nowrap; }
.sample-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sample-row .eyebrow { font-size: 10px; margin: 0 0 8px; }
.sample-row .small { margin: 6px 0 0; font-size: 12px; }
.sample-row.local { border-left: 1px solid var(--line); padding-left: 18px; }
.sample-value { font-size: 28px; font-weight: 700; margin: 0; line-height: 1.1; }
.sample-value span { font-size: 14px; font-weight: 400; color: var(--muted); }
.sample-quote { font-family: var(--font-accent); font-size: 16px; line-height: 1.4; margin: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 0; }
.section-head > .small { text-align: right; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); min-width: 0; }
.card .eyebrow { margin-bottom: 22px; }
.sea-glass { background: var(--glass); }
.notice { border-radius: 8px; background: var(--sand); padding: 14px 16px; font-size: 13px; line-height: 1.5; margin-top: 24px; }
.source, .line-text { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; font-size: 13px; line-height: 1.6; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 44px; }
.intro .eyebrow { margin-bottom: 14px; }
.intro p:first-child { margin-top: 0; }
footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 64px; padding-top: 28px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.login-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; margin: 36px 0; }
.login-story { position: relative; overflow: hidden; min-height: 590px; padding: 64px; color: var(--white); background: var(--ink); }
.login-story h1 { font-size: 64px; margin-top: 56px; position: relative; z-index: 1; }
.login-story p { position: relative; z-index: 1; }
.login-wave { width: 760px; height: 340px; position: absolute; bottom: -140px; right: -280px; border: 1px solid #d5e1d480; border-radius: 50%; transform: rotate(-15deg); }
.login-wave::before, .login-wave::after { content: ""; position: absolute; inset: 22px; border: 1px solid #d5e1d480; border-radius: 50%; }
.login-wave::after { inset: 44px; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 64px; background: var(--white); }
.login-form h2 { font-size: 38px; margin: 28px 0 12px; }
.login-form > p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.pill { display: inline-block; width: fit-content; padding: 7px 12px; border-radius: 20px; background: var(--glass); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.provider { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; }
.provider svg { width: 20px; height: 20px; flex-shrink: 0; }
.page-title { padding: 44px 0 36px; }
.page-title h1 { font-size: 52px; letter-spacing: -2.5px; margin-bottom: 16px; }
.page-title .eyebrow { margin-bottom: 18px; }
.settings-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 46px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; position: sticky; top: 24px; gap: 6px; }
.settings-nav a { padding: 14px 16px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.settings-nav a:hover { background: var(--glass); }
.settings-content { min-width: 0; }
.settings-content > .card { margin-bottom: var(--space); box-shadow: none; scroll-margin-top: 24px; }
.settings-content h2 { font-size: 24px; letter-spacing: -.6px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-label h2 { margin: 0; }
.account-facts { border-bottom: 1px solid var(--line); padding-bottom: 24px; overflow-wrap: anywhere; }
dt { font-size: 13px; font-weight: 600; }
dd { margin: 12px 0 0; line-height: 1.6; }
.grant, .key { border-top: 1px solid var(--line); padding: 20px 0; overflow-wrap: anywhere; }
.grant p, .key p { margin: 0 0 12px; }
.grant .small { display: block; }
.key button { font-size: 13px; min-height: 44px; padding: 8px 16px; margin-right: 10px; }
.key button:last-child { margin-right: 0; }
code { display: block; background: var(--glass); padding: 16px; border-radius: 8px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
.developer-content { padding-top: 16px; }
form { border-bottom: 1px solid var(--line); padding: 16px 0 28px; margin-bottom: 28px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
input, select { width: 100%; min-height: 48px; padding: 12px; color: var(--ink); background: var(--white); border: 1px solid #9eb2a7; border-radius: 8px; }
#age-before-signin label { display: flex; align-items: center; gap: var(--age-label-gap); min-height: var(--consent-target); cursor: pointer; }
#age-eligible { flex: none; width: calc(var(--space) * .75); height: calc(var(--space) * .75); min-height: 0; padding: 0; margin: 0; accent-color: var(--sea); }
select { white-space: normal; }
form button { margin-top: 24px; }
.secret-panel { padding: 24px; background: var(--glass); border-radius: 12px; margin-bottom: 28px; }
.secret-panel code { background: var(--white); margin: 20px 0; }
.secret-panel h3 { font-size: 24px; }
.connection-guide { max-width: 880px; margin: 0 auto; }
.connection-guide .card { margin-bottom: var(--space); }
.connection-guide li { line-height: 1.6; margin: 12px 0; }
.connection-guide pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1350px) {
  .site-header { margin: 0 28px; }
  .wrap { margin: 0 48px; }
  .hero, .intro { gap: 40px; }
}
@media (max-width: 760px) {
  .site-header { margin: 0; padding: 24px 20px; gap: 12px; }
  .wordmark { font-size: 28px; }
  .brand { gap: 6px; }
  .brand svg { width: 30px; height: 30px; }
  .nav { gap: 0; }
  .nav a:not(.button) { padding: 10px; font-size: 12px; }
  .nav .button, .nav button { padding: 10px 12px; font-size: 12px; min-height: 44px; }
  .site-header.portal-header { flex-direction: column; align-items: stretch; gap: calc(var(--space) / 2); }
  .portal-header .brand { align-self: flex-start; min-height: var(--consent-target); }
  .portal-header .nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-inline-start: 0; gap: var(--consent-label-gap); }
  .portal-header .nav > * { min-width: 0; justify-content: center; }
  .portal-header .nav .button { gap: var(--consent-label-gap); }
  .wrap { margin: 0 20px; padding-bottom: 28px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 28px 0 44px; }
  h1 { font-size: 56px; letter-spacing: -3.5px; }
  .hero h1 { max-width: 360px; }
  .lead { font-size: 16px; }
  .art { border-top-left-radius: 90px; }
  .art img { height: 300px; }
  .hero-visual { padding-bottom: 0; }
  .sample { position: relative; left: auto; right: auto; margin: -56px 12px 0; padding: 18px; }
  .sample-rows { grid-template-columns: 1fr; gap: 14px; }
  .sample-row.local { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .art figcaption { padding: 40px 22px 24px; }
  .art figcaption strong { font-size: 28px; }
  .section-head h2 { font-size: 27px; }
  .section-head > .small { font-size: 11px; max-width: 100px; }
  .cards, .intro { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .intro { margin-top: 44px; padding-top: 32px; gap: 10px; }
  .intro h2 { font-size: 29px; }
  footer { flex-direction: column; margin-top: 40px; gap: 8px; }
  .login-panel { grid-template-columns: 1fr; margin: 24px 0; }
  .login-story { min-height: 260px; padding: 32px; }
  .login-story h1 { font-size: 44px; margin: 26px 0 20px; }
  .login-story .eyebrow { margin-bottom: 0; }
  .login-story p { font-size: 14px; }
  .login-wave { bottom: -320px; right: -280px; }
  .login-form { padding: 32px 24px; }
  .login-form h2 { font-size: 30px; }
  .provider { padding: 12px; font-size: 14px; }
  .page-title { padding: 28px 0 20px; }
  .page-title h1 { font-size: 40px; letter-spacing: -2px; }
  .settings-grid { grid-template-columns: 1fr; gap: 24px; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; position: static; gap: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .settings-nav a { font-size: 12px; padding: 10px; }
  .section-label { align-items: start; gap: 12px; }
  .section-label h2 { font-size: 22px; }
  .section-label .pill { max-width: 120px; }
  .secret-panel { padding: 20px; }
}
@media (max-width: 380px) {
  .site-header { gap: 8px; flex-wrap: wrap; }
  .nav { margin-inline-start: auto; }
  .nav a:not(.button) { padding: 10px 6px; }
  .nav .button, .nav button { padding: 10px; }
  .wordmark { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.consent-facts dd { margin-block-start: var(--consent-label-gap); margin-block-end: var(--space); overflow-wrap: anywhere; }
.consent-page .login-story h1 { letter-spacing: var(--consent-tracking); }
.consent-page .nav a, .consent-back { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; }
.consent-page footer { flex-wrap: wrap; gap: 12px 24px; }
.consent-page footer a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.consent-page.consent-failed .pill { display: none; }
.consent-page .secondary { border-color: var(--muted); }
@media (max-width: 760px) {
  .consent-page footer { align-items: flex-start; gap: 8px; }
  .consent-page.consent-failed .login-panel { display: flex; flex-direction: column; }
  .consent-page.consent-failed .login-form { order: 1; }
  .consent-page.consent-failed .login-story {
    order: 2; position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
.consent-permissions { display: block; white-space: pre-line; }

/* Profile controls reuse the portal spacing, palette and native focus states. */
.profile-form { border: 0; padding: 0; margin: 0; }
.profile-intro { margin-block: 0 var(--space); }
.profile-skip { margin-block-end: var(--space); }
.profile-fields, .profile-fields fieldset { border: 0; padding: 0; min-width: 0; margin: 0; }
.profile-fields > .profile-section { padding-block: var(--space); border-top: thin solid var(--line); }
.profile-section h3, .profile-section > legend { font-size: calc(var(--space) * 5 / 6); letter-spacing: normal; font-weight: 600; margin-block: 0 calc(var(--space) * 2 / 3); }
.profile-fields > fieldset.profile-section { margin-block-start: var(--space); }
.profile-fields > fieldset.profile-section > legend { float: left; width: 100%; font-size: calc(var(--space) * 5 / 6); }
.profile-fields > fieldset.profile-section > .field-help { clear: both; }
.profile-grid, .profile-board-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space); }
.profile-field { display: grid; gap: calc(var(--space) / 3); align-content: start; min-width: 0; }
.profile-field > label, .profile-board label { margin: 0; }
.profile-field input, .profile-field select, .profile-board input, .profile-board select { min-width: 0; width: 100%; }
.profile-field .field-help { margin: 0; }
#profile-home-selection { overflow-wrap: anywhere; }
.break-picker { position: relative; }
.break-picker-options { position: absolute; inset-inline: 0; inset-block-start: 100%; z-index: 2; list-style: none; margin: calc(var(--space) / 3) 0 0; padding: 0; max-height: calc(var(--space) * 12); overflow: auto; border: thin solid var(--line); border-radius: calc(var(--radius) / 2); background: var(--white); box-shadow: var(--shadow); }
.break-picker-options [role="option"] { min-height: calc(var(--space) * 2); padding: calc(var(--space) / 2); cursor: pointer; overflow-wrap: anywhere; }
.break-picker-options [role="option"][aria-selected="true"], .break-picker-options [role="option"]:hover { background: var(--glass); }
.profile-section > .field-help { margin-block: 0 calc(var(--space) * 2 / 3); }
.profile-section .profile-grid + .field-help { margin-block: calc(var(--space) / 2) 0; }
.profile-section > fieldset { margin-block-end: var(--space); }
.profile-section legend { font-size: calc(var(--space) * 7 / 12); font-weight: 600; margin-block-end: calc(var(--space) / 3); }
.profile-choices { display: flex; flex-wrap: wrap; gap: calc(var(--space) / 3); }
.profile-choices label { display: flex; align-items: center; gap: calc(var(--space) / 3); min-height: calc(var(--space) * 2); max-width: 100%; overflow-wrap: anywhere; margin: 0; padding: calc(var(--space) / 3) calc(var(--space) / 2); border: thin solid var(--line); border-radius: calc(var(--radius) / 2); font-weight: 400; cursor: pointer; }
.profile-choices label:has(input:checked) { background: var(--glass); border-color: var(--sea); }
.profile-choices input[type="checkbox"] { width: calc(var(--space) * 5 / 6); height: calc(var(--space) * 5 / 6); min-height: 0; padding: 0; margin: 0; accent-color: var(--sea); }
.profile-spot-choices { max-height: calc(var(--space) * 10); overflow: auto; padding: calc(var(--space) / 6); }
.profile-board { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: calc(var(--space) / 2); padding: calc(var(--space) * 2 / 3); margin-block-end: calc(var(--space) / 2); background: var(--paper); border: thin solid var(--line); border-radius: calc(var(--radius) / 2); }
.profile-board-fields { grid-column: 1 / -1; gap: calc(var(--space) / 2); }
.profile-board-fields input, .profile-board-fields select { font-weight: normal; }
.profile-board-fields label { display: grid; gap: calc(var(--space) / 3); }
.profile-form button { margin: 0; }
.profile-form #profile-add-board { margin-block-start: calc(var(--space) / 3); }
.profile-actions { border-top: thin solid var(--line); padding-block-start: var(--space); }
.profile-status { font-size: calc(var(--space) * 7 / 12); color: var(--muted); line-height: 1.6; margin-block: calc(var(--space) / 2) 0; }
#onboarding-page { max-width: calc(var(--space) * 35); margin-inline: auto; }
@media (max-width: 760px) { .profile-grid, .profile-board-fields { grid-template-columns: minmax(0, 1fr); } }
.privacy-page .wrap{max-width:54rem}

.notice-page .wrap { max-width: 880px; }
.notice-page article { display: block; }
.notice-page article h2:not(:first-child) { margin-top: 32px; }
.notice-page article p { overflow-wrap: anywhere; }
.notice-page footer { flex-wrap: wrap; }
.notice-page a { min-height: 44px; display: inline-flex; align-items: center; }
.build { border-top: 1px solid var(--line); margin-top: 72px; padding-top: 56px; }
.build-head { max-width: 760px; margin-bottom: 40px; }
.build-head .eyebrow { margin-bottom: 14px; }
.build-head h2 em { font-family: var(--font-accent); font-weight: 500; }
.build-head .lead { max-width: 640px; margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space); }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.step-num { display: block; font-family: var(--font-accent); font-size: 44px; line-height: 1; color: var(--sea); margin-bottom: 18px; }
.step h3 { margin: 0 0 10px; }
.step p { margin: 0; line-height: 1.6; }
.step .small { margin-top: 12px; }
.build .actions .small { max-width: 320px; }
@media (max-width: 760px) {
  .build { margin-top: 44px; padding-top: 32px; }
  .build-head { margin-bottom: 28px; }
  .build-head h2 { font-size: 29px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px; }
}
