/* HiloDaily design tokens: same system as hilodaily.com. All text pairs meet WCAG 4.5:1. */
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/atkinson-hyperlegible-latin-400.82a5516b3709.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/atkinson-hyperlegible-latin-700.833b135521b5.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/atkinson-hyperlegible-latin-ext-400.bee495dfc341.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/atkinson-hyperlegible-latin-ext-700.cb155ae09e92.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F}

:root {
  /* website tokens */
  --bg: #F4F6F8; --surface: #FFFFFF; --ink: #1B2430; --ink-2: #47515E; --line: #DCE3E8;
  --primary: #0F6E6A; --primary-dark: #0B5552; --primary-tint: #E6F2F1; --primary-tint-2: #D3E9E7;
  --sun: #F2B544; --warm: #FBF5EC; --warm-2: #F5E6CF; --focus: #0F6E6A; --focus-on-dark: #FFD27A;
  --radius: 20px; --radius-lg: 28px; --wrap: 1200px;
  --shadow: 0 1px 2px rgba(27,36,48,.06), 0 8px 28px rgba(27,36,48,.08);
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* app names, mapped onto the website tokens */
  --text-2: var(--ink-2); --muted: var(--ink-2); --page: var(--bg); --card: var(--surface);
  --card-border: var(--line); --divider: #E8ECF0; --input-border: #B8C3CD; --input-border-member: #9AA6B2;
  --primary-hover: var(--primary-dark); --info: var(--primary-tint);
  --safety-bg: #FFF4E5; --safety-border: #F0C98A; --danger: #A61B1B;
  --radius-card: var(--radius); --radius-btn: 999px; --radius-input: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--ink);
  background: var(--bg); text-rendering: optimizeLegibility; overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--primary-dark); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header (matches hilodaily.com) ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.logo { display: inline-flex; padding: 6px 0; margin-right: auto; }
.logo img { width: 166px; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav > a:not(.btn), .site-nav .linklike {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.0625rem; border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.site-nav > a:not(.btn):hover, .site-nav .linklike:hover { color: var(--primary); background: var(--primary-tint); }
.site-nav > a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); border-radius: 0; }
.stepinfo { font-size: 1rem; color: var(--ink-2); font-weight: 700; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 1rem; margin: 0; }
.lang-switch button, .lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px;
  border-radius: 10px; color: var(--ink-2); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
}
.lang-switch button:hover, .lang-switch a:hover { color: var(--primary); background: var(--primary-tint); }
.lang-switch [aria-pressed="true"], .lang-switch [aria-current="true"] { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; }
.lang-switch .sep { color: var(--line); }
@media (max-width: 640px) {
  .bar { gap: 6px; min-height: 64px; flex-wrap: nowrap; }
  .logo img { width: 116px; }
  .site-nav { flex-wrap: nowrap; gap: 2px; }
  .site-nav .btn-header { display: none; }  /* every page that needs it has its own call to action */
  .lang-switch button, .lang-switch a { min-width: 36px; }
  .site-nav > a:not(.btn), .site-nav .linklike { padding: 0 8px; font-size: 1rem; }
}
@media (max-width: 400px) { .wrap { padding: 0 12px; } .logo img { width: 100px; } .site-nav > a:not(.btn), .site-nav .linklike { padding: 0 6px; font-size: .95rem; } }

/* ---------- Page body ---------- */
.page { flex: 1 0 auto; }
.shell { width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.shell.wide { max-width: 1080px; }
.brand { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
h1.page-title { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); margin-bottom: 12px; }
.lead { font-size: clamp(1.18rem, 1.1rem + .35vw, 1.35rem); color: var(--ink-2); margin-bottom: 28px; }
.footnote { font-size: 1rem; color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: var(--primary-dark); background: var(--primary-tint); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.card h2 { font-size: 1.4rem; }
.card.flush { padding: 0 24px; }
.info-box { background: var(--info); border-radius: var(--radius-card); padding: 18px 20px; margin: 20px 0; }
.safety-box { background: var(--safety-bg); border: 1px solid var(--safety-border); border-radius: var(--radius-card); padding: 20px; }
.error-box { background: #FDECEC; border: 1px solid #F3B8B8; color: #7A1010; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.success-box { background: var(--info); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }

/* ---------- Checkbox rows (whole row is the label) ---------- */
.check-row { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--divider); cursor: pointer; }
.check-row:first-child { border-top: 0; }
.check-row input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--primary); cursor: pointer; }
.check-row .t { display: block; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.check-row .b { display: block; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* ---------- Forms ---------- */
label.field { display: block; font-weight: 700; margin: 0 0 6px; }
.hint { font-size: 15px; color: var(--muted); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; font-size: 17px; color: var(--ink); width: 100%; max-width: 480px; min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--input-border); border-radius: var(--radius-input); background: #fff;
}
textarea { min-height: 96px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint-2); }
input.tel { max-width: 320px; }
.field-group { margin-bottom: 20px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: 15px; }
.radio-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; min-height: 44px; }
.radio-row input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--primary); flex: none; }
.radio-row .b { display: block; font-size: 15px; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } h1.page-title { font-size: 32px; } .shell { padding-top: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--primary); border-radius: 999px; background: var(--primary); color: #fff; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.tall { min-height: 56px; }
.btn.outline, .btn.secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn.outline:hover, .btn.secondary:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.small, .btn-header { min-height: 48px; padding: 0 20px; font-size: 1rem; white-space: nowrap; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }

/* ---------- Member page (mobile-first, large type) ---------- */
body.member { background: #fff; font-size: 19px; }
.m-shell { width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 20px 48px; display: flex; flex-direction: column; gap: 28px; }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-top .brand { font-size: 20px; }
.m-top .logo img { width: 150px; }
.m-shell h1 { font-size: 32px; margin: 0; }
.m-text { font-size: 20px; line-height: 1.5; margin: 0; }
.panel { background: var(--page); border-radius: var(--radius-card); padding: 20px; }
.panel h2, .m-section h2 { font-size: 24px; margin-bottom: 12px; }
.m-card { border: 1px solid var(--input-border-member); border-radius: var(--radius-card); padding: 18px; margin-bottom: 14px; }
.m-card .check-row { padding: 0; border: 0; }
.m-card .check-row input[type="checkbox"], .safety-box input[type="checkbox"] { width: 30px; height: 30px; }
.m-card .t { font-size: 20px; }
.m-card .b { font-size: 18px; }
.code-input { font-size: 24px !important; letter-spacing: .4em; max-width: 240px !important; text-align: center; border-color: var(--input-border-member) !important; }
.m-btn { width: 100%; min-height: 60px; font-size: 20px; border-radius: 14px; }
.m-btn-stack { display: flex; flex-direction: column; gap: 14px; }
.listen-btn { min-height: 56px; font-size: 19px; }
.m-shell ul { padding-left: 22px; margin: 0; }
.m-shell li { margin-bottom: 10px; }

/* ---------- Dashboard ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stat { font-size: 32px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 15px; }
.badge { display: inline-block; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--info); color: var(--primary-hover); }
.badge.warn { background: var(--safety-bg); color: #7A4B00; }
.badge.crit { background: #FDECEC; color: #7A1010; }
.badge.muted { background: var(--divider); color: var(--text-2); }
table.list { width: 100%; border-collapse: collapse; font-size: 16px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--divider); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 700; font-size: 14px; border-top: 0; }
.table-wrap { overflow-x: auto; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar .day { border: 1px solid var(--divider); border-radius: 10px; padding: 6px; min-height: 64px; font-size: 13px; background: #fff; }
.calendar .day.missed { background: var(--safety-bg); border-color: var(--safety-border); }
.calendar .day.answered { background: var(--info); }
.calendar .day .n { font-weight: 700; }
.calendar .dow { font-size: 13px; color: var(--muted); text-align: center; }
.chart svg { width: 100%; height: auto; display: block; }
.alert-item { border-left: 4px solid var(--primary); padding: 10px 14px; margin-bottom: 10px; background: #fff; border-radius: 8px; }
.alert-item.critical { border-color: var(--danger); }
.alert-item.warning { border-color: #C77700; }
.private-note { color: var(--muted); font-style: italic; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 8px 14px; border-radius: 10px; text-decoration: none; border: 1px solid var(--card-border); background: #fff; }
.tabs a.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }

/* ---------- Landing ---------- */
.hero { padding: 24px 0 32px; }
.hero h1 { font-size: 48px; max-width: 720px; }
@media (max-width: 640px) { .hero h1 { font-size: 34px; } }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 16px; left: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
details.faq { border-top: 1px solid var(--divider); padding: 14px 0; }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 18px; min-height: 32px; }
.price { font-size: 44px; font-weight: 700; }
/* ---------- Footer (matches hilodaily.com) ---------- */
.site-footer { background: var(--ink); color: #D3DAE2; padding: 48px 0 28px; font-size: 1.0625rem; margin-top: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--focus-on-dark); }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.footer-top { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid #36414F; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 380px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 4px; flex: none; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: #fff; font-size: 1.2rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-contact > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.site-footer .lang-switch button { color: #D3DAE2; }
.site-footer .lang-switch [aria-pressed="true"] { color: #fff; }
.site-footer .lang-switch button:hover { background: #2A3544; color: #fff; }
.site-footer .lang-switch .sep { color: #4A5666; }
.site-footer .compliance { margin: 24px 0 8px; font-size: 1rem; }
.site-footer .copyright { margin: 0; font-size: .95rem; color: #AEB8C4; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr 1.4fr .9fr; gap: 48px; } }

/* ---------- Sign-in / sign-up pages ---------- */
.auth-shell { width: 100%; max-width: 540px; margin: 0 auto; padding: 48px 20px 72px; }
.auth-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 6px solid var(--primary); padding: 32px 24px; }
@media (min-width: 640px) { .auth-card { padding: 40px 44px; } }
.auth-card h1 { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.3rem); text-align: center; }
.auth-card h1 + p { text-align: center; color: var(--ink-2); margin-bottom: 24px; }
.auth-card h2 { font-size: 1.3rem; }
.auth-card form { margin-top: 8px; }
.auth-card .field-group input { max-width: none; }
.auth-card .actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.auth-card hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.auth-card .hint ul { margin: 6px 0 0; padding-left: 20px; }
.button-group { display: flex; flex-direction: column; gap: 12px; }
.auth-card section { margin-top: 24px; }
.auth-card section ul.actions-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

@media print {
  body { background: #fff; }
  .no-print, .site-header, .site-footer { display: none !important; }
  .card { border: 0; padding: 0; box-shadow: none; }
}
.billing-points { margin: 0; padding-left: 22px; }
.billing-points li { margin-bottom: 8px; }
.billing-points li:last-child { margin-bottom: 0; }
