/* Senior Companion: check-in-first website. Static, dependency-free; shared by legal pages. */
@font-face { font-family: Figtree; src: url('../fonts/Figtree_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url('../fonts/Figtree_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url('../fonts/Figtree_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #fafcf9;
  --surface: #fff;
  --sage: #edf5ec;
  --sage-deep: #dbe9d9;
  --text: #142536;
  --muted: #4d605d;
  --green: #17633d;
  --green-dark: #104c2e;
  --border: #cddacb;
  --radius: 1.5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; font: 500 1.0625rem/1.65 Figtree, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
p { overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a, summary { -webkit-tap-highlight-color: #dbe9d9; }
:focus-visible { outline: 3px solid #1465af; outline-offset: 5px; }
::selection { background: var(--sage-deep); color: var(--text); }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
section { padding-block: 6rem; }
.skip-link { position: fixed; top: -8rem; left: 1rem; z-index: 100; padding: .8rem 1.2rem; background: var(--text); color: white; border-radius: .5rem; }
.skip-link:focus { top: .5rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fafcf9f7; border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; padding-block: .8rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; max-width: 100%; min-width: 0; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; line-height: 1.2; }
.brand span { min-width: 0; overflow-wrap: break-word; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: .6rem; flex-shrink: 0; }
.header-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .3rem 1.1rem; }
.header-links a { color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 700; padding: .65rem .15rem; }
.header-links a:hover { text-decoration: underline; }
.header-cta, .header-links .header-cta { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 2.75rem; padding: .65rem 1.2rem; border-radius: 3rem; color: #fff; background: var(--green); text-decoration: none; font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.header-cta:hover { background: var(--green-dark); }
.hero { background: var(--sage); padding: 4rem 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 4rem; align-items: center; padding-bottom: 3rem; }
.eyebrow, .kicker { color: var(--green); font-size: .875rem; font-weight: 700; margin-bottom: 1.25rem; }
.eyebrow { display: flex; align-items: center; gap: .55rem; }
.status-dot { width: .55rem; height: .55rem; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.hero h1 { font-size: clamp(2.65rem, 5vw, 4.6rem); }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-intro { font-size: 1.2rem; color: var(--muted); margin: 1.5rem 0 1.8rem; max-width: 35rem; }
.store-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.store-link { display: inline-flex; gap: .9rem; align-items: center; background: var(--text); border: 1px solid var(--text); color: white; text-decoration: none; padding: .65rem 1.2rem; border-radius: .8rem; min-height: 4rem; }
.store-link span:last-child { display: grid; }
.store-link small { font-size: .875rem; line-height: 1.4; }
.store-link strong { font-size: 1.2rem; line-height: 1.4; }
.store-platform { font-size: 1.6rem; }
.store-link-light { color: var(--text); background: white; }
.store-link:hover { background: var(--green-dark); color: white; }
.hero-note { font-size: .875rem; color: var(--muted); max-width: 34rem; margin-top: 1rem; }
.hero-note a { font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; padding-block: .65rem; font-weight: 700; }
.hero-copy > .text-link { margin-top: .8rem; }
.hero-preview, .family-preview { width: min(100%, 19.5rem); justify-self: center; }
.hero-preview img, .family-preview img { width: 100%; height: auto; border-radius: 1.4rem; border: 1px solid var(--border); box-shadow: 0 1rem 2.5rem #14253612; }
figcaption { font-size: .875rem; color: var(--muted); text-align: center; margin-top: .9rem; line-height: 1.5; }
.hero-bottom { border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; font-size: .875rem; color: var(--muted); }
.hero-bottom strong { color: var(--text); }
.section-heading { max-width: 44rem; margin-bottom: 2.7rem; }
.section-heading > p:last-child, .section-intro { font-size: 1.125rem; color: var(--muted); margin-top: 1.25rem; }
.section-note { font-size: .9375rem; color: var(--muted); margin-top: 1.75rem; max-width: 65rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.steps li { border-top: 2px solid var(--green); padding-top: 1.25rem; }
.step-num { display: block; font-size: 2rem; font-weight: 800; color: var(--green); margin-bottom: 1.2rem; }
.steps h3 { margin-bottom: .7rem; }
.steps p, .tool-grid p, .trust-grid p { color: var(--muted); }
.family-section { background: var(--text); color: white; }
.split-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 5rem; }
.family-section .kicker { color: #b3d8b5; }
.family-section .section-intro, .family-section figcaption { color: #d5dfdf; }
.family-section .text-link { color: #c3e7c2; }
.family-preview { width: min(100%, 20.5rem); }
.feature-list { padding: 0; margin: 1.8rem 0 .5rem; list-style: none; }
.feature-list li { padding: 1.2rem 0; border-top: 1px solid #ffffff33; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature-list p { color: #d5dfdf; font-size: 1rem; }
.tool-grid, .trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tool-grid article { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; background: var(--surface); }
.tool-mark { display: block; margin-bottom: 2rem; color: var(--green); font-size: .875rem; font-weight: 700; }
.tool-grid h3, .trust-grid h3 { margin-bottom: .8rem; }
.plans-section { background: var(--sage); }
.pricing-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { padding: 1.75rem; background: white; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; }
.price-card .plan-label { color: var(--green); font-size: .875rem; font-weight: 700; margin-bottom: 1rem; }
.price-card h3 { font-size: 1.7rem; }
.plan-purpose { margin: .8rem 0 1.3rem; color: var(--muted); }
.price-card ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.price-card li { padding-block: .4rem; font-size: 1rem; }
.price-card li::marker { color: var(--green); }
.plan-exclusion { font-size: .875rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: auto; }
.featured-plan { color: white; background: var(--green); border-color: var(--green); }
.featured-plan .plan-label, .featured-plan .plan-purpose { color: #e2efe2; }
.featured-plan li::marker { color: #cee8cd; }
.plan-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.75rem; background: white; color: var(--green-dark); padding: .65rem .9rem; border-radius: .6rem; font-weight: 700; font-size: .9375rem; margin-top: auto; }
.privacy-section { background: white; }
.trust-grid article { padding-top: 1.2rem; border-top: 1px solid var(--border); }
.privacy-section .text-link { margin-top: 1.7rem; }
.faq-section { border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { cursor: pointer; padding: 1.25rem 0; font-weight: 700; font-size: 1.1rem; }
.faq-list summary::marker { color: var(--green); }
.faq-list details > div { padding-bottom: 1.25rem; color: var(--muted); }
.download-section { background: var(--sage-deep); text-align: center; }
.download-section .section-intro { max-width: 36rem; margin-inline: auto; }
.download-section .store-links { justify-content: center; margin-top: 1.7rem; }
.download-section .hero-note { margin-inline: auto; }
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--border); font-size: .9375rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.footer-links a { padding-block: .65rem; color: var(--text); }
.disclaimer { margin-top: 2rem; color: var(--muted); font-size: .875rem; max-width: 65rem; }
.copyright { font-size: .875rem; margin-top: 1.25rem; color: var(--muted); }
/* Existing legal pages keep their content and stable URLs. */
.legal { width: min(100% - 3rem, 51rem); margin-inline: auto; padding-block: 3.5rem 5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .7rem; }
.legal .effective { font-size: 1rem; color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.6rem; line-height: 1.25; margin: 2.5rem 0 1rem; letter-spacing: -.025em; }
.legal p, .legal li { color: var(--muted); margin-bottom: .8rem; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; margin-bottom: 1rem; }
.footer-brand img { width: 1.75rem; height: 1.75rem; border-radius: .5rem; }
.site-footer > .wrap > .footer-links { margin-bottom: 1rem; }
@media (max-width: 64rem) {
  .hero-grid { gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.65rem, 5.5vw, 4rem); }
  .split-grid { gap: 3rem; }
  .price-card { padding: 1.3rem; }
  .header-links { gap: .2rem .8rem; }
}
@media (max-width: 48rem) {
  html { scroll-padding-top: 8rem; }
  section { padding-block: 4rem; }
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; }
  .header-links { justify-content: center; }
  .hero { padding-top: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  .hero-copy { max-width: 36rem; }
  .hero-preview { width: min(100%, 18rem); }
  .hero-bottom { flex-direction: column; gap: .65rem; }
  .steps, .tool-grid, .trust-grid, .pricing-cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { gap: 2rem; }
  .split-grid, .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .family-preview { order: 2; width: min(100%, 18rem); }
  .tool-mark { margin-bottom: 1.2rem; }
  .price-card { padding: 1.75rem; }
  .plan-link { align-self: flex-start; }
}
@media (max-width: 25rem) {
  .wrap, .legal { width: calc(100% - 2rem); }
  .brand { font-size: 1.05rem; }
  .header-links { gap: .1rem .6rem; }
  .header-links a { font-size: .875rem; }
  .header-links .header-cta { padding-inline: .9rem; }
  .store-link { flex: 1 1 100%; }
  .eyebrow { align-items: flex-start; }
  .status-dot { margin-top: .4rem; }
  .price-card, .tool-grid article { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .store-link, .header-cta, .plan-link { border: 1px solid ButtonText; }
}
