/* Ask Bob AI: Assisted Living website, v2 (front-end design polish).
   Concept: Bob's conversation is the hero. Swiss off-white page (Kevin, 2026-11-28),
   white panels outlined in navy, black text, golden olive only for actions, the
   logo's roofline as the single ornament. Left-aligned throughout. One light look
   in every theme, because the brand colors are fixed by Kevin. */
:root {
  --navy: #1F3C73;
  --navy-deep: #162C57;
  --navy-ink: #0F2147;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C8D5EC;
  --paper: #FFFFFF;
  --bg: #F4F4F0;
  --outline: 1.5px solid var(--navy);
  --sunk: #F4F2EA;
  --ink: #141414;
  --muted: #4A4A4A;
  --line: #E3E1D6;
  --olive: #7A6A1A;
  --olive-deep: #5E521A;
  --olive-soft: #F2EDD8;
  --gold: #C9B04A;
  --f-display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Type scale (1.25 ratio from 17px) */
  --t-sm: 0.875rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.6rem;
  --t-2xl: clamp(1.75rem, 3.2vw, 2.25rem);
  --t-hero: clamp(2.6rem, 6.4vw, 4.6rem);
  --col: 1120px;
  --read: 700px;
  --r-panel: 22px;
  --r-ctl: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-md)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--olive-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; text-wrap: balance; margin: 0; font-optical-sizing: auto; }
h1 { font-size: var(--t-hero); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* The roofline: a small gold gable taken from the logo's house. Used only to
   mark the start of a page's main heading. */
.roof { display: block; width: 44px; height: 14px; color: var(--olive); }

/* Header */
.site-head { background: var(--paper); color: var(--navy); position: relative; z-index: 2; border-bottom: var(--outline); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font: 700 1.08rem/1.2 var(--f-display); letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { color: var(--navy); background: var(--sunk); }
.nav a[aria-current="page"] { color: #FFFFFF; background: var(--navy); }
.menu-btn { display: none; }
@media (max-width: 800px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: var(--outline); color: var(--navy); font: 600 0.95rem var(--f-body); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
  .menu-btn::before { content: ""; width: 14px; height: 10px; border-block: 2px solid currentColor; box-shadow: inset 0 4px 0 -2px transparent; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  .nav { display: none; width: 100%; flex-direction: column; padding-block: 6px 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; border-radius: 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--olive); color: #FFFFFF; font: 700 1rem/1.2 var(--f-body); text-decoration: none; padding: 15px 24px; border-radius: var(--r-ctl); border: 0; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 14px -8px rgba(94,82,26,0.7); }
.btn:hover { background: var(--olive-deep); }
.btn.ghost { background: var(--paper); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.ghost:hover { background: var(--sunk); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 700; color: var(--olive-deep); }

.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 12px; border-radius: 10px; background: var(--navy-ink); color: #FFFFFF; text-decoration: none; min-width: 160px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
.store svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 0.72rem; opacity: 0.75; line-height: 1.2; }
.store b { display: block; font: 700 1rem/1.15 var(--f-display); }
.store.soon { cursor: default; }
.store.soon b { opacity: 0.8; }

/* Hero: headline left, Bob's conversation right */
.hero { color: var(--ink); overflow: hidden; }
.hero h1, .section-title h2, .page-head h1, .about h2 { color: var(--navy-ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero .stack { display: grid; gap: 24px; min-width: 0; justify-items: start; }
.hero h1 { max-width: 11ch; }
.lede { color: var(--muted); font-size: var(--t-lg); line-height: 1.55; max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.credit { color: var(--muted); font-size: var(--t-sm); display: flex; align-items: center; gap: 10px; }
.credit b { color: var(--ink); font-weight: 600; }
.credit::before { content: ""; width: 24px; height: 1.5px; background: var(--olive); }

/* The demo card */
.demo { position: relative; min-width: 0; padding-top: 118px; }
.demo .bob { position: absolute; top: 0; right: 36px; width: 190px; z-index: 1; filter: drop-shadow(0 8px 14px rgba(15,33,71,0.18)); }
.demo .panel { position: relative; z-index: 2; background: var(--paper); color: var(--ink); border-radius: var(--r-panel); padding: 22px; display: grid; gap: 16px; border: var(--outline); box-shadow: 8px 8px 0 var(--navy); }
.demo-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.demo-top .who { font: 700 1rem/1.2 var(--f-display); }
.demo-top .who span { display: block; font: 400 var(--t-sm)/1.3 var(--f-body); color: var(--muted); }
.seg { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; font: 600 0.86rem var(--f-body); padding: 7px 13px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
.chat { display: grid; gap: 12px; }
.chat .q { justify-self: end; max-width: 88%; background: var(--olive); color: #FFFFFF; padding: 11px 16px; border-radius: 18px 18px 4px 18px; }
.chat .a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.chat .a img { width: 36px; height: 36px; border-radius: 50%; }
.chat .a > div { background: var(--sunk); padding: 12px 16px; border-radius: 4px 18px 18px 18px; display: grid; gap: 8px; }
.cite { font-size: var(--t-sm); color: var(--olive-deep); font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; }
.demo-note { font-size: var(--t-sm); color: var(--muted); }

/* One orchestrated moment: the question lands, Bob "types", the answer appears. */
@media (prefers-reduced-motion: no-preference) {
  .anim .q { animation: rise 0.45s 0.25s cubic-bezier(.2,.7,.2,1) both; }
  .anim .typing { animation: show-then-hide 1.15s 0.7s both; }
  .anim #ans-family { animation: rise 0.45s 1.85s cubic-bezier(.2,.7,.2,1) both; }
  .anim .bob { animation: peek 0.7s 0.05s cubic-bezier(.2,.8,.2,1.15) both; }
  .chat .a.swap > div { animation: rise 0.3s cubic-bezier(.2,.7,.2,1) both; }
  .btn, .nav a, .seg button { transition: background-color 0.15s ease, color 0.15s ease; }
}
.chat .typing { display: none; }
@media (prefers-reduced-motion: no-preference) { .anim .chat .typing { display: grid; } }
.typing > div { display: flex !important; gap: 5px; align-items: center; height: 44px; padding-block: 0 !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.5; animation: blink 0.9s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes peek { from { transform: translateY(40px); } to { transform: none; } }
@keyframes blink { 50% { opacity: 1; } }
@keyframes show-then-hide { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; visibility: hidden; height: 0; margin-top: -12px; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .demo { padding-top: 84px; }
  .demo .bob { width: 136px; right: 16px; }
}

/* Sections */
.section { padding-block: clamp(36px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.section > .wrap { display: grid; gap: 28px; }
.section-title { color: var(--ink); display: grid; gap: 10px; max-width: 46rem; }
.section-title p { color: var(--muted); font-size: var(--t-lg); line-height: 1.5; }

/* Paper panels: the main reading surface. Items inside are divided by rules,
   not boxed one by one. */
.panel-paper { background: var(--paper); border-radius: var(--r-panel); min-width: 0; border: var(--outline); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features > div { padding: clamp(22px, 3.2vw, 36px); display: grid; gap: 10px; align-content: start; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; }
.features > div > :not(.icon) { grid-column: 2; }
.features > div:nth-child(odd) { border-right: 1px solid var(--line); }
.features > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.features p { color: var(--muted); }
.icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--olive-soft); color: var(--olive-deep); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .features > div:nth-child(odd) { border-right: 0; }
  .features > div + div { border-top: 1px solid var(--line); }
}

/* Plans */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.plan { background: var(--paper); border: var(--outline); border-radius: var(--r-panel); padding: clamp(24px, 3.2vw, 36px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.plan.pro { background: var(--olive-soft); border: 2px solid var(--olive); }
.plan-name { font: 700 var(--t-lg)/1.2 var(--f-display); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price { font: 700 3rem/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price span { font: 500 1rem var(--f-body); letter-spacing: 0; color: var(--muted); }
.plan .btn { justify-self: start; }
.pill { display: inline-block; background: var(--olive); color: #FFFFFF; font: 700 0.8rem/1 var(--f-body); padding: 6px 10px; border-radius: 999px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--olive); border-bottom: 2.5px solid var(--olive); transform: rotate(-45deg); }

/* Guide list */
.guides { list-style: none; margin: 0; padding: 0; }
.guides li + li { border-top: 1px solid var(--line); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: clamp(20px, 3vw, 28px) clamp(22px, 3.2vw, 36px); text-decoration: none; color: var(--ink); }
.guide h3 { grid-column: 1; }
.guide p { grid-column: 1; color: var(--muted); max-width: 60ch; }
.guide .go { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; color: var(--olive-deep); white-space: nowrap; }
.guide .time { font-size: var(--t-sm); color: var(--muted); }
.guide:hover h3 { text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 4px; }
@media (max-width: 600px) { .guide { grid-template-columns: 1fr; } .guide .go { grid-column: 1; grid-row: auto; } }

/* About strip: quiet text on navy */
.about { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; color: var(--ink); max-width: 52rem; }
.about img { width: 96px; height: 96px; border-radius: 50%; }
.about p { color: var(--muted); }
.about .stack { display: grid; gap: 12px; }
@media (max-width: 560px) { .about { grid-template-columns: 1fr; } .about img { width: 72px; height: 72px; } }

/* Inner pages */
.kicker { color: var(--olive-deep); font-weight: 600; font-size: var(--t-md); }
.page-head { color: var(--ink); }
.page-head .wrap { padding-block: clamp(36px, 6vw, 64px) 32px; display: grid; gap: 16px; max-width: calc(var(--read) + 64px); justify-items: start; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p { color: var(--muted); font-size: var(--t-lg); line-height: 1.5; }
.page-head .meta { font-size: var(--t-sm); }
.crumb { color: var(--olive-deep); font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.crumb::before { content: "\2190\00a0"; }
.crumb:hover { color: var(--navy); }
.read { max-width: calc(var(--read) + 64px); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-block: 0 64px; }
.card { background: var(--paper); border: var(--outline); border-radius: var(--r-panel); padding: clamp(22px, 4vw, 40px); min-width: 0; }
.card p, .card li { color: var(--ink); }
.label { font-size: var(--t-sm); font-weight: 600; color: var(--olive-deep); }
.prose { display: grid; gap: 16px; }
.prose h2 { font-size: var(--t-xl); margin-top: 20px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 8px; font-size: 1.12rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose ul.checks { padding-left: 0; }
.prose li::marker { color: var(--olive); }
.prose .date { color: var(--muted); font-size: var(--t-sm); }
.callout { border: 1px solid #D9CF9F; background: var(--olive-soft); border-radius: 14px; padding: 18px 20px; color: var(--ink); }
.callout.warn { background: #FBE3E0; border-color: #EDB7B1; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--sunk); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.article-list { display: grid; gap: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.article-link { display: grid; gap: 8px; text-decoration: none; color: var(--ink); align-content: start; }
.article-link:hover h3 { text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 4px; }
.more { font-weight: 700; color: var(--olive-deep); }
.cta-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: center; background: var(--olive-soft); border-color: var(--olive); }
.cta-card img { width: 88px; }
@media (max-width: 520px) { .cta-card { grid-template-columns: 1fr; } .cta-card img { width: 72px; } }

/* Footer */
.site-foot { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 0.92rem; }
.site-foot .wrap { padding-block: 40px; display: grid; gap: 18px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--on-navy); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { max-width: 72ch; }
.plan-note{margin:-4px 0 10px;font-weight:600;color:var(--olive,#7A6A1A);font-size:.92rem}

.plan.soon{opacity:.8;border-style:dashed}
