/*
 * public-pages.css — the shared style for the public, ungated pages (support, privacy-policy,
 * terms-of-use, sms-consent). Same tokens, type, header and footer as the home page (index.html).
 * It lives in assets/brand/ because that is the asset folder middleware.js leaves public.
 * shortcut: assets are cached for a day (vercel.json), so bump the ?v= on every <link> when this changes.
 */
:root {
  --canvas: #fbf8f3;
  --surface: #ffffff;
  --ink: #0b3e4f;
  --night: #104b60;
  --night-deep: #073947;
  --slate: #586a73;
  --line: #e4dcd1;
  --steel: #9caeb4;
  --coral: #e9563f;
  --heart: #ff5b50;
  --danger: #c8392b;
  --mint: #bcece3;
  --aqua: #ddf4f4;
  --blush: #fdeae3;
  --display: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body); background: var(--canvas); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--night); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; border-radius: 6px; }
span.uc b { color: var(--heart); font-weight: inherit; } /* span.: outranks .about b */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { flex: none; width: var(--s, 36px); height: var(--s, 36px); border-radius: 50%; overflow: hidden; }
.logo img { display: block; width: 109%; height: 109%; margin: -4.5%; }
.brand .word { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.01em; line-height: 1.1; color: var(--night); }
.brand .by { display: block; font-size: 10px; font-weight: 500; color: var(--slate); }
.pill-link { display: inline-flex; align-items: center; border: 1.5px solid var(--night); border-radius: 999px; padding: 9px 18px; font-size: 15px; text-decoration: none; }
.pill-link:hover { background: var(--night); color: #fff; }

/* Page */
.page { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
h1 { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; margin-top: 12px; }
.lede { margin-top: 14px; font-size: 17px; color: var(--slate); }
.page > h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 14px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--slate); }

/* Legal documents */
.policy { margin-top: 8px; }
.policy h2 { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--slate); }
.policy h3 { font-family: var(--display); margin-top: 40px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.policy p, .policy ul { margin-top: 14px; font-size: 16px; }
.policy ul { padding-left: 22px; }
.policy li + li { margin-top: 10px; }

/* Cards and notes (support, sms-consent) */
.card { margin-top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.urgent { margin-top: 28px; background: var(--blush); border-radius: 18px; padding: 18px 20px; font-size: 15px; }
.urgent strong { display: block; margin-bottom: 2px; }
.urgent a { color: var(--danger); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; background: var(--night); color: #fff; border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.meta { margin-top: 20px; font-size: 15px; color: var(--slate); }
.meta ul { margin-top: 6px; padding-left: 20px; }
.note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; color: var(--night); font-weight: 700; font-size: 20px; line-height: 1.2; }
details[open] summary::after { content: '−'; }
details p { margin-top: 10px; color: var(--slate); font-size: 15px; }

/* SMS consent form */
form.card { margin-top: 32px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
input[type='tel'] { width: 100%; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 17px; }
input[type='tel']:focus-visible { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(16, 75, 96, 0.15); }
.hint { margin-top: 6px; padding-left: 18px; font-size: 13.5px; color: var(--slate); }
.consent { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
input[type='checkbox'] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--night); cursor: pointer; }
.consent label { font-size: 14.5px; line-height: 1.55; cursor: pointer; }
.consent label strong { display: block; font-size: 15px; margin-bottom: 4px; }
form.card .btn { width: 100%; margin-top: 24px; }
.notice { display: none; margin-top: 24px; padding: 14px 18px; border-radius: 16px; font-size: 15px; }
.notice.ok { background: var(--mint); color: var(--night); }
.notice.err { background: var(--blush); color: var(--danger); }
.about { margin-top: 40px; }
.about h2 { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about ul { list-style: none; font-size: 14.5px; color: var(--slate); }
.about li + li { margin-top: 6px; }
.about b { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer — the home page's, minus the in-page links */
footer.site { background: var(--night-deep); color: #fff; padding: 48px 0 32px; }
.foot { display: grid; gap: 36px; }
.foot .brand .word { color: #fff; }
.foot .brand .by { color: var(--mint); }
.foot .about-us { color: var(--steel); font-size: 14px; margin-top: 14px; max-width: 340px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.cols h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.cols ul { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.cols a { color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; }
.cols a:hover { text-decoration: underline; }
.legal { border-top: 1px solid var(--night); margin-top: 40px; padding-top: 24px; display: grid; gap: 12px; color: var(--steel); font-size: 12px; }
.legal a { color: #fff; font-size: 14px; text-decoration: none; }

@media (min-width: 960px) {
  .wrap { padding: 0 120px; }
  .top { padding-block: 22px; }
  .brand .word { font-size: 22px; }
  .brand .by { font-size: 12px; }
  .top .logo { --s: 44px; }
  .page { padding: 48px 20px 112px; }
  h1 { font-size: 52px; }
  .lede { font-size: 19px; }
  .card { padding: 32px; }
  footer.site { padding: 80px 0 40px; }
  .foot { grid-template-columns: 340px 1fr; gap: 48px; }
  .foot .about-us { font-size: 15px; }
  .cols { grid-template-columns: repeat(4, 1fr); }
  .legal { grid-template-columns: 1fr auto; align-items: center; margin-top: 56px; font-size: 13px; }
}
