/* BackBy at home (seniors edition): token, type-scale, control-size, and imagery overrides
   layered on the copied styles.css. Same layout as the main site, warmer, larger, higher contrast.
   Values follow docs/design/SENIORS_AUDIENCE.md. System font stack only. No third-party assets. */

:root {
  --ink: #1c1814;            /* warm near-black */
  --ink-soft: #4a433b;       /* 8.9:1 on paper */
  --paper: #fbf7ef;
  --paper-warm: #f3ecdd;
  --white: #fffdf8;
  --pine: #145a43;
  --pine-soft: #dcefe4;
  --amber: #7a4a03;
  --amber-soft: #fdeecb;
  --coral: #9b2f23;
  --coral-soft: #fbe3dc;
  --line: #d9d0c1;
  --line-dark: #bfb3a1;
  --shadow: 0 24px 70px rgba(58, 42, 30, 0.14);
  /* Seniors-only tokens */
  --focus: #0a4bd6;
  --focus-on-dark: #ffd166;
  --hero-dark: #2a1d16;      /* dark panels and hero overlay */
  --hero-image: url("hero-kitchen.jpg");
}

/* Type scale: 20 px body (19 px on phones), shorter headings, 65ch measure, underlined body links */
body { font-size: 20px; line-height: 1.65; font-variant-numeric: tabular-nums; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); }
p, li { max-width: 65ch; }
small { font-size: 0.95rem; }
strong { font-weight: 750; }
p a, li a, dd a, td a, figcaption a, summary a { color: var(--indigo-dark); font-weight: 750; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
p a:hover, li a:hover, dd a:hover, td a:hover { text-decoration-thickness: 3px; }
.section { padding: clamp(72px, 8vw, 120px) 0; }
.section-intro { max-width: 780px; margin-bottom: 52px; }
.section-intro.compact { margin-bottom: 40px; }
.section-intro > p:last-child { font-size: 1.2rem; max-width: 60ch; }
.eyebrow { font-size: 0.95rem; letter-spacing: 0.1em; line-height: 1.3; }

/* Header, brand, and menu: 52 px controls */
.skip-link { min-height: 52px; display: inline-flex; align-items: center; padding: 12px 18px; font-weight: 750; }
.site-header { border-bottom-color: rgba(28, 24, 20, 0.12); background: rgba(251, 247, 239, 0.96); }
.nav { min-height: 80px; }
.brand { min-height: 52px; font-size: 1.15rem; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; }
.brand .brand-variant {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.links a, .foot a { min-height: 52px; padding: 10px 14px; border-radius: 10px; font-size: 1.05rem; }
.links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav-cta { min-height: 52px; padding: 10px 18px; border-radius: 12px; background: var(--indigo); font-size: 1rem; }
.nav-cta:hover { background: var(--indigo-dark); }
.menu-btn { min-height: 52px; padding: 10px 16px; border: 2px solid var(--line-dark); border-radius: 12px; font-size: 1rem; }
.mobile-menu-panel { box-shadow: 0 18px 30px rgba(28, 24, 20, 0.1); }
.mobile-menu-links a { min-height: 56px; padding: 12px 14px; border-radius: 10px; font-size: 1.1rem; }
.mobile-menu-links .mobile-menu-cta { background: var(--indigo); }

/* Hero: warm kitchen at five o'clock. Copy sits over the left half; the picture stays visible on the right. */
.hero-photo {
  padding: 56px 48px;
  background-color: #3b2a21;
  background-image: linear-gradient(90deg, rgba(42, 29, 22, 0.9) 0%, rgba(42, 29, 22, 0.82) 38%, rgba(42, 29, 22, 0.45) 58%, rgba(42, 29, 22, 0.04) 78%), var(--hero-image);
  background-position: right center;
  background-size: cover;
}
.hero-copy { max-width: 48%; }
.hero-copy h1 { max-width: 820px; }
.hero-photo .eyebrow { color: #f6d391; }
.hero-lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.6; }
.hero-photo .hero-lead { color: rgba(255, 255, 255, 0.94); }
.hero-photo .hero-readiness { color: #f6d391; font-size: 1.2rem; line-height: 1.5; margin: 0 0 28px; }
.cta-row { gap: 14px; }
.hero-photo .btn.primary { background: var(--white); }
.hero-photo .btn.primary:hover { background: #f3ebd9; }
.hero-photo .btn.secondary { border-color: rgba(255, 255, 255, 0.9); }
.hero-photo .btn.secondary:hover { background: rgba(255, 255, 255, 0.14); }
.hero-assurances { gap: 10px 26px; margin-top: 30px; font-size: 1rem; }
.hero-assurances li::before { margin-right: 8px; }
.hero-photo .hero-assurances { color: rgba(255, 255, 255, 0.94); }
.hero-photo .hero-assurances li::before { color: #9fe6c6; }
.hero-plan { min-width: 260px; padding: 20px 22px; border-color: rgba(255, 255, 255, 0.6); border-radius: 20px; background: rgba(255, 253, 248, 0.96); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22); }
.hero-plan-label { font-size: 0.95rem; }
.hero-plan > strong { font-size: 2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-plan-state { gap: 9px; margin-top: 8px; font-size: 0.95rem; }
.hero-plan-state i { width: 14px; height: 14px; box-shadow: 0 0 0 3px var(--pine-soft); }

/* Buttons: 56 px, 2 px borders, dark outline on secondary */
.btn { min-height: 56px; padding: 14px 26px; border-width: 2px; border-radius: 14px; font-size: 1.1rem; }
.btn.secondary { border-color: var(--ink); }

.plain-promise { padding: 32px 0; }
.promise-grid p { max-width: none; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.promise-line { height: 2px; }

/* Product story and phone mockups */
.product-copy { max-width: 500px; }
.product-copy .story-number { margin-bottom: 26px; }
.story-number { font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 400; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.product-copy h3 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.product-copy p { font-size: 1.15rem; }
.device-stage::before { border-color: rgba(255, 255, 255, 0.7); }
.stage-pine { background: #d3ebdd; }
.stage-coral { background: #f8ddd2; }
.phone-demo, .app-shot { box-shadow: 0 30px 65px rgba(58, 42, 30, 0.22); }
.phone-status { font-size: 0.8rem; }
.phone-title-row > span:not(.phone-avatar) { color: #3d4158; }
.phone-label { font-size: 0.9rem; }
.quick-time-grid span { font-size: 0.85rem; }
.backby-line span { color: #3d4158; font-size: 0.85rem; }
.backby-line strong { font-size: 1rem; }
.phone-field { color: #4a4f66; font-size: 0.85rem; }
.phone-setting strong { font-size: 0.9rem; }
.phone-setting small { color: #4a4f66; font-size: 0.95rem; }
.phone-primary { min-height: 48px; font-size: 0.9rem; }
.phone-center-copy { color: #4a4f66; font-size: 0.85rem; }
.words-card small { color: #4a4f66; font-size: 0.95rem; }
.words-card strong { font-size: 0.85rem; }
.no-account, .phone-text-link, .phone-avatar, .active-plan-card p, .phone-actions span, .quiet-reminder { font-size: 0.85rem; }
.active-plan-card p { color: #3d4158; }
.active-plan-card > small { color: #4a4f66; font-size: 0.95rem; }
.status-chip { padding: 4px 10px; font-size: 0.85rem; }
.phone-actions span { min-height: 44px; }
.quiet-reminder { color: #4a4f66; }

/* State sequence panel: dark warm brown instead of ink, gold eyebrow */
.state-demo { background: var(--hero-dark); }
.state-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.state-copy p:last-child { color: #e6ddd2; }
.state-demo .eyebrow { color: #f6d391; }
.state-rail::before { top: 19px; height: 3px; background: #6e6058; }
.state-rail li { max-width: none; }
.rail-dot { width: 40px; height: 40px; margin-bottom: 16px; border-color: var(--hero-dark); background: #8d8078; outline: 3px solid #8d8078; }
.is-done .rail-dot { background: #7fd6ac; outline-color: #7fd6ac; }
.is-wait .rail-dot { background: #f3c46a; outline-color: #f3c46a; }
.is-alert .rail-dot { background: #f5907c; outline-color: #f5907c; }
.state-rail strong { font-size: 1.05rem; }
.state-rail small { margin-top: 6px; color: #e0d6ca; font-size: 0.95rem; }

/* Role cards */
.backer-card { border-color: #a9cdbb; color: #14352a; }
.role-label { margin-bottom: 56px; font-size: 0.95rem; }
.role-label > span:first-child { width: 42px; height: 42px; border-width: 2px; }
.role-card h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.role-summary { font-size: 1.1rem; }
.planner-card .role-summary { color: #eef0ff; }
.backer-card .role-summary { color: #26483b; }
.planner-ui { background: rgba(255, 255, 255, 0.12); }
.planner-ui > span { min-height: 64px; padding: 10px 12px; }
.planner-ui small { color: #e6e8ff; font-size: 0.95rem; }
.planner-ui strong { font-size: 1rem; }
.planner-ui .role-action { min-width: 96px; font-size: 0.95rem; }
.backer-ui > span { grid-template-columns: 40px 1fr auto; gap: 10px; min-height: 68px; padding: 10px 12px; border-color: rgba(20, 90, 67, 0.16); background: rgba(255, 255, 255, 0.78); }
.backer-ui strong { font-size: 1rem; }
.backer-ui small { color: #3b574a; font-size: 0.95rem; }
.person-dot { width: 40px; height: 40px; font-size: 0.95rem; }
.coral-dot { background: #f8d2c8; }
.mini-state { padding: 5px 10px; font-size: 0.9rem; }
.mini-state.coral { background: var(--coral-soft); }

/* Trust, flow, limits */
.text-link, .inline-links a { min-height: 52px; text-decoration: underline; text-decoration-thickness: 2px; }
.trust-facts dt { margin-bottom: 8px; font-size: 1.25rem; }
.trust-facts dd { max-width: 65ch; }
.privacy-flow figcaption h3 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
.flow-track li { max-width: none; }
.flow-track li:not(:last-child)::after { top: 20px; color: #3f6a56; font-size: 1.25rem; }
.flow-track strong { font-size: 1rem; }
.flow-track small { color: #2f5344; font-size: 0.95rem; line-height: 1.4; }
.flow-icon { width: 60px; height: 60px; border: 2px solid #9cc6b3; border-radius: 18px; }
.phone-icon::before, .backer-icon::before { width: 22px; height: 34px; }
.phone-icon::after { bottom: 14px; }
.lock-icon::before { top: 12px; width: 20px; height: 19px; }
.lock-icon::after { bottom: 12px; width: 28px; height: 23px; }
.server-icon::before { width: 30px; height: 25px; }
.server-icon::after { font-size: 0.85rem; }
.backer-icon::after { width: 22px; height: 22px; font-size: 0.8rem; }
.limits-panel { border-color: var(--line-dark); }
.limits-panel h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }

/* Readiness, scenarios, organizations teaser, FAQ, access, footer */
.readiness-card { grid-template-columns: 60px 1fr; border: 2px solid #d9b56b; }
.readiness-mark { width: 60px; height: 60px; font-size: 1.8rem; }
.readiness-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
.readiness-card p:not(.eyebrow) { max-width: 65ch; color: #4a3612; }
.readiness-card .eyebrow, .readiness-card .inline-links a { color: #6a3f02; }
.scenario-grid article { padding: 30px; }
.scenario-time { margin-bottom: 52px; padding: 8px 14px; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.org-card .eyebrow { color: #d3d7ff; }
.org-card h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.org-card p:last-child { max-width: 65ch; color: #eceefc; }
.faq-list summary { min-height: 76px; padding: 24px 56px 24px 0; font-size: 1.2rem; line-height: 1.4; }
.faq-list summary::after { top: 18px; display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid var(--line-dark); border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.faq-list details p { padding: 0 56px 26px 0; }
.access-card { border: 1px solid var(--line); }
.access-card > p:not(.eyebrow) { max-width: 60ch; }
.site-footer { padding: 40px 0; }
.foot-brand span { font-size: 0.95rem; }

/* Interior pages */
.interior-hero { padding: clamp(64px, 8vw, 110px) 0 70px; }
.interior-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
.prose-wide h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.prose-wide a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.data-card, .pilot-card, .principle-card { border-color: var(--line-dark); }
.data-card.good { border-color: #9cc6b3; }
.disclosure-list details { border-color: var(--line-dark); }
.disclosure-list summary { min-height: 60px; padding: 16px 22px; font-size: 1.15rem; }
.disclosure-body { padding: 0 22px 22px; }
.status-table th, .status-table td { border-color: var(--line-dark); }
.tag { align-items: center; gap: 6px; padding: 5px 12px; font-size: 0.95rem; }
.page-cta p { color: #eceefc; }

/* Organizations page */
.org-hero-copy h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
.org-hero-copy .hero-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.org-hero-points { gap: 12px 22px; }
.org-hero-points li { gap: 10px; font-size: 1rem; max-width: none; }
.org-hero-points li > span:first-child { width: 30px; height: 30px; }
.org-hero-visual::before { background: #f0dcc0; }
.org-photo-note { max-width: 320px; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 20px; border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 253, 248, 0.96); box-shadow: 0 16px 36px rgba(28, 24, 20, 0.18); }
.org-note-mark { width: 46px; height: 46px; font-size: 1.35rem; }
.org-photo-note strong { line-height: 1.3; }
.org-photo-note small { margin-top: 4px; font-size: 0.95rem; line-height: 1.4; }
.org-flow-node small { margin-top: 4px; font-size: 0.95rem; opacity: 0.9; }
.organization-node { background: rgba(255, 255, 255, 0.12); }
.org-node-icon { width: 44px; height: 44px; font-size: 1.25rem; }
.org-flow-arrow span { width: 2px; background: #aab0ee; }
.org-flow-arrow em { padding: 5px 12px; color: #eceefc; background: rgba(255, 255, 255, 0.1); font-size: 0.9rem; }
.org-flow-arrow b { color: #c8ccf6; font-size: 1.2rem; }
.person-arrow { color: #d5d8fb; font-size: 1.5rem; }
.org-flow-boundary { padding: 14px 16px; border-color: rgba(255, 255, 255, 0.28); color: #f6f7ff; font-size: 0.95rem; line-height: 1.4; }
.org-flow-boundary > span { color: #d3d7ff; font-size: 1.2rem; }
.principle-list .principle-card { grid-template-columns: 52px 1fr; }
.principle-list .principle-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.principle-index { width: 48px; height: 48px; font-size: 0.95rem; }
.org-action-card { padding: 30px; }
.org-action-label { min-height: 34px; padding: 5px 12px; font-size: 0.9rem; }
.org-action-number { margin: 44px 0 16px; font-size: 0.95rem; letter-spacing: 0.1em; }
.org-action-card::after { border-color: #f0dcc0; opacity: 0.8; }
.briefing-tool > summary strong { font-size: clamp(1.45rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -0.025em; }
.briefing-summary-action { min-height: 52px; padding: 10px 18px; border-radius: 12px; font-size: 1rem; }
.briefing-summary-action::after { font-size: 1.1rem; }
.practice-warning { padding: 22px 24px; border-left-width: 6px; }
.practice-warning strong { color: #5e3800; line-height: 1.4; }
.practice-warning p { color: #4a3612; }
.briefing-steps li { max-width: none; }
.briefing-steps li > span { width: 48px; height: 48px; font-size: 0.95rem; }
.briefing-steps h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.briefing-prompts-label { font-size: 0.95rem; letter-spacing: 0.1em; }
.briefing-prompts li { padding: 18px; border-color: rgba(20, 90, 67, 0.24); color: #1d3f33; font-size: 1rem; max-width: none; }
.org-practice-visual figcaption { padding: 20px 22px; box-shadow: 0 12px 30px rgba(20, 90, 67, 0.24); }
.org-practice-visual figcaption span { color: #e6f5ec; font-size: 0.95rem; }
.pilot-timeline::before { width: 3px; }
.pilot-timeline li { max-width: none; }
.pilot-marker { font-size: 0.95rem; }
.pilot-timeline h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }

/* Focus: a 3 px high-contrast ring, offset 2 px, with a gold ring on dark surfaces. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero-photo :focus-visible, .state-demo :focus-visible, .planner-card :focus-visible, .org-card :focus-visible,
.page-cta :focus-visible, .org-responsibility-flow :focus-visible, .skip-link:focus-visible,
.btn.primary:focus-visible, .nav-cta:focus-visible, .mobile-menu-cta:focus-visible, .briefing-summary-action:focus-visible { outline-color: var(--focus-on-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .briefing-tool[open] .briefing-summary-action::after { transition: none; }
}

@media (max-width: 760px) {
  body { font-size: 19px; }
  .section { padding: 72px 0; }
  .nav { min-height: 72px; }
  .brand-icon { width: 34px; height: 34px; }
  /* Picture above the copy on phones, so large text never sits on a busy image. */
  .hero-photo {
    min-height: 0;
    padding: calc(clamp(220px, 56vw, 400px) + 28px) 24px 170px;
    background-image: linear-gradient(180deg, var(--hero-dark) 0%, #3b2a21 100%);
  }
  .hero-photo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: clamp(220px, 56vw, 400px);
    background: var(--hero-image) 80% center / cover no-repeat;
  }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .hero-assurances { gap: 10px; }
  .hero-plan { min-width: 230px; }
  .state-rail::before { left: 18px; width: 3px; }
  .state-rail li { grid-template-columns: 40px 1fr; gap: 0 16px; }
  .planner-ui .role-action { min-height: 56px; }
  .flow-track li { grid-template-columns: 60px 1fr; gap: 0 16px; }
  .flow-track li:not(:last-child)::after { left: 24px; }
  .readiness-mark { width: 52px; height: 52px; }
  .foot nav { margin-left: -14px; }
  .org-hero-copy h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .principle-list .principle-card { grid-template-columns: 48px 1fr; }
  .principle-index { width: 44px; height: 44px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 24px); }
  .brand span { font-size: 1.05rem; }
  .brand .brand-variant { font-size: 0.62rem; letter-spacing: 0.1em; }
  .hero-copy h1 { font-size: 2.1rem; }
  .hero-photo { padding-inline: 18px; }
  .hero-plan { right: 14px; left: 14px; bottom: 16px; min-width: 0; }
  .promise-grid p { font-size: 1.1rem; }
}

@media print {
  .site-header, .skip-link, .menu-btn, .mobile-menu-panel, .nav-cta, .cta-row { display: none !important; }
  .hero-photo { min-height: 0; background-image: none; background-color: var(--hero-dark); color: white; }
  a { text-decoration: underline; }
}

/* Let the role examples reflow when readers enlarge text. */
@media (max-width: 760px) {
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .role-card { min-width: 0; }
  .role-label > span:first-child { flex-shrink: 0; }
  .role-label > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .planner-ui { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-ui > span { min-width: 0; overflow-wrap: anywhere; }
  .backer-ui > span { grid-template-columns: 40px minmax(0, 1fr); }
  .backer-ui .mini-state { grid-column: 2; justify-self: start; white-space: normal; }
}

@media (max-width: 760px) {
  .readiness-card > div { min-width: 0; overflow-wrap: anywhere; }
}
