/* Caring Companions family app. Same brand as mo-care.com and the Oklahoma site: navy headings, teal buttons, honey accents.
   Built for older eyes and hands: 17px+ text, 44px+ targets, three text sizes. */
:root {
  --navy: #0D365F; --teal: #1F7A8C; --teal-hover: #155A68; --teal-deep: #14606F; --teal-darkest: #103D47; --teal-pale: #EAF4F6;
  --honey: #F0A63A; --honey-text: #9C6410; --gold-on-dark: #E8C988;
  --ink: #16283a; --muted: #55677a; --bg: #faf9f6; --panel: #f2f0e9; --card: #ffffff; --border: #e4e1d8;
  --ok: #1F7A8C; --warn-bg: #FBF0DD; --bad: #9b2c2c; --bad-bg: #fbeaea;
  --serif: 'Source Serif 4', Georgia, serif; --sans: 'Inter', Helvetica, Arial, sans-serif;
  --fs: 17px;
}
html[data-size="1"] { --fs: 19px; }
html[data-size="2"] { --fs: 22px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs); line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75em; } h2 { font-size: 1.3em; } h3 { font-size: 1.05em; }
p { margin: 0; }
a { color: var(--honey-text); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }
.loading, .noscript { padding: 48px 20px; text-align: center; color: var(--muted); }

/* header band */
.top { background: var(--teal-deep); color: #fff; padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.top.tall { padding-bottom: 60px; }
.top-row { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 10px; }
.brand { font-family: var(--serif); font-size: 1.1em; font-weight: 600; }
.top h1 { color: #fff; }
.top .sub { color: var(--gold-on-dark); font-weight: 500; }
.back { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; }
.step { color: var(--gold-on-dark); font-size: .85em; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; }

.body { padding: 16px 18px 0; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.foot { padding: 14px 18px 26px; display: flex; flex-direction: column; gap: 10px; }
.label { font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--honey-text); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.q { font-weight: 700; color: var(--navy); font-size: 1em; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; background: var(--teal); color: #fff; border: 0; font-weight: 700; font-size: 1.05em; text-decoration: none; cursor: pointer; padding: 0 18px; width: 100%; }
.btn:hover { background: var(--teal-hover); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.outline { background: var(--card); color: var(--teal); border: 2px solid var(--teal); }
.btn.outline:hover { background: var(--teal-pale); }
.btn.quiet { background: transparent; color: var(--teal); border: 0; min-height: 48px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.next { margin: -44px 18px 0; box-shadow: 0 6px 20px rgba(13,54,95,.12); border: 0; text-decoration: none; color: inherit; flex-direction: row; align-items: center; gap: 14px; cursor: pointer; text-align: left; font: inherit; }
.next .t { font-size: 1.1em; font-weight: 700; color: var(--navy); }
.avatar { width: 56px; height: 56px; border-radius: 28px; background: var(--teal-pale); color: var(--teal-deep); font-family: var(--serif); font-size: 1.4em; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 112px; height: 112px; border-radius: 56px; font-size: 2.6em; }
.ok-line { color: var(--ok); font-weight: 600; font-size: .9em; display: flex; align-items: center; gap: 6px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { min-height: 108px; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); background: var(--card); color: var(--navy); font-weight: 700; font-size: 1.05em; cursor: pointer; text-align: left; }
.tile.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.tile svg { width: 30px; height: 30px; }
.panel { background: var(--panel); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.note { background: var(--teal-pale); color: var(--teal-darkest); border-radius: 12px; padding: 12px 14px; font-size: .92em; }
.warn { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; font-size: .92em; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: .95em; font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.row .grow { flex: 1; display: flex; flex-direction: column; }
.row .t { font-weight: 700; color: var(--navy); }
.chev { color: #8a978f; flex: none; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .8em; font-weight: 700; }
.pill.wait { background: var(--warn-bg); color: var(--honey-text); }
.pill.ok { background: var(--teal-pale); color: var(--teal-darkest); }

/* booking */
.chips { display: grid; gap: 8px; }
.chips.days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chips.times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { min-height: 52px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; padding: 4px; }
.chip small { font-size: .72em; font-weight: 600; }
.chip b { font-size: 1.15em; }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 10px 16px; }
.stepper .ctl { display: flex; align-items: center; gap: 10px; }
.round { width: 48px; height: 48px; border-radius: 24px; border: 2px solid var(--teal); background: var(--card); color: var(--teal); font-size: 1.4em; font-weight: 700; cursor: pointer; }
.round.fill { background: var(--teal); color: #fff; }
.round[disabled] { opacity: .35; cursor: default; }
.hours { min-width: 84px; text-align: center; font-weight: 700; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 60px; border-radius: 14px; padding: 10px 14px; border: 1px solid var(--border); background: var(--card); cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { background: var(--teal-pale); border: 2px solid var(--teal); }
.dot { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #8a978f; flex: none; background: #fff; }
.opt[aria-checked="true"] .dot { border: 7px solid var(--teal); }
.box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #8a978f; flex: none; background: #fff; display: flex; align-items: center; justify-content: center; }
.opt[aria-pressed="true"] .box { background: var(--teal); border-color: var(--teal); }
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tasks .opt { min-height: 56px; padding: 8px 12px; font-weight: 600; color: var(--navy); }
textarea, input[type=email], input[type=text] { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--card); line-height: 1.4; }
textarea { resize: vertical; min-height: 90px; }
.code { font-size: 1.8em; letter-spacing: .4em; text-align: center; font-weight: 700; }
.sum { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sum:last-child { border-bottom: 0; }
.sum .v { font-weight: 600; text-align: right; }
.big-check { width: 96px; height: 96px; border-radius: 48px; background: var(--teal); display: flex; align-items: center; justify-content: center; margin: 24px auto 0; }
.center { text-align: center; align-items: center; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--teal-pale); color: var(--teal-darkest); border-radius: 999px; padding: 5px 12px; font-size: .85em; font-weight: 600; }
.quote { font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 1.05em; }
video { width: 100%; border-radius: 14px; background: #000; }
.demo-bar { background: var(--honey); color: var(--ink); text-align: center; font-size: .8em; font-weight: 700; padding: 6px; }
.signin-logo { height: 54px; width: auto; align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) { .btn, .tile, .chip, .opt, .row { transition: background .15s ease, border-color .15s ease; } }
