:root {
  --ink: #102e2d;
  --muted: #586967;
  --teal: #0b5b57;
  --deep: #063b39;
  --mint: #dceee8;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --coral: #e77a66;
  --coral-text: #a94636;
  --line: rgba(16, 46, 45, 0.16);
  --shadow: 0 28px 70px rgba(6, 59, 57, 0.17);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.035em; }
h1 { margin-bottom: 28px; font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 650; }
h1 em { color: var(--teal); font-family: Georgia, serif; font-weight: 400; }
h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 4.6vw, 4.4rem); font-weight: 620; }
h3 { font-size: 1.5rem; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; color: white; background: var(--deep); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 48px)); min-height: 92px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 12px; box-shadow: 0 8px 18px rgba(6, 59, 57, 0.15); }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a, .site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--teal); }
.section-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(44px, 7vw, 104px); align-items: center; min-height: calc(100vh - 92px); padding-block: 72px 96px; }
.hero-intro { max-width: 680px; font-size: clamp(1.15rem, 1.8vw, 1.38rem); color: var(--muted); }
.eyebrow { margin-bottom: 16px; color: var(--teal); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.status-chip { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; padding: 9px 14px; border: 1px solid rgba(11, 91, 87, 0.2); border-radius: 999px; color: var(--teal); background: rgba(255, 253, 248, 0.75); font-size: 0.78rem; font-weight: 750; }
.status-chip span { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(231, 122, 102, 0.13); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; color: white; background: var(--deep); font-weight: 750; text-decoration: none; box-shadow: 0 12px 28px rgba(6, 59, 57, 0.18); transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); background: var(--teal); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--teal); font-weight: 750; text-underline-offset: 5px; }
.phone-stage { position: relative; padding: 62px 30px 34px; border-radius: 44px; background: linear-gradient(145deg, var(--deep), #0d6a64); overflow: hidden; box-shadow: var(--shadow); }
.phone-stage::before { content: ""; position: absolute; top: -90px; right: -100px; width: 260px; height: 260px; border: 64px solid rgba(251, 246, 236, 0.07); border-radius: 50%; }
.stage-note { position: absolute; top: 23px; left: 30px; color: rgba(255,255,255,0.7); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.phone-frame { position: relative; width: min(360px, 100%); margin: 0 auto; padding: 12px; background: #071c1c; border: 1px solid rgba(255,255,255,0.22); border-radius: 48px; box-shadow: 0 30px 50px rgba(0,0,0,0.27); }
.phone-top { position: absolute; z-index: 2; top: 22px; left: 50%; width: 96px; height: 25px; background: #071c1c; border-radius: 20px; transform: translateX(-50%); }
.phone-screen { min-height: 590px; padding: 58px 19px 24px; background: var(--paper); border-radius: 38px; }
.screen-heading, .shift-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.screen-heading span { display: block; color: var(--muted); font-size: 0.75rem; }
.screen-heading strong { display: block; margin-top: 3px; font-size: 1.35rem; }
.screen-heading .avatar { display: grid; width: 38px; height: 38px; place-items: center; color: var(--deep); background: #f2a99a; border-radius: 50%; font-weight: 850; }
.shift-card { margin-top: 22px; padding: 19px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 14px 30px rgba(6,59,57,0.08); }
.shift-title > span { font-size: 1.02rem; font-weight: 800; }
.shift-title strong { padding: 5px 8px; color: var(--teal); background: var(--mint); border-radius: 999px; font-size: 0.64rem; text-transform: uppercase; }
.shift-card > p { margin: 8px 0 16px; color: var(--muted); font-size: 0.78rem; }
.shift-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.shift-card dl div { padding-top: 10px; border-top: 1px solid var(--line); }
.shift-card dt { color: var(--muted); font-size: 0.62rem; }
.shift-card dd { margin: 2px 0 0; font-size: 0.82rem; font-weight: 800; }
.record-flow { list-style: none; margin: 28px 0 0; padding: 0; }
.record-flow li { position: relative; display: flex; gap: 12px; min-height: 78px; }
.record-flow li:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: 4px; left: 14px; width: 1px; background: #a5c8bf; }
.record-flow li > span { position: relative; z-index: 1; display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-size: 0.72rem; font-weight: 800; }
.record-flow .current > span { color: var(--coral-text); background: #fde2db; }
.record-flow strong, .record-flow small { display: block; }
.record-flow strong { margin-top: 2px; font-size: 0.87rem; }
.record-flow small { margin-top: 3px; color: var(--muted); font-size: 0.68rem; }
.promise { display: grid; grid-template-columns: 70px 1.1fr 0.9fr; gap: 38px; align-items: start; padding-block: 96px; border-block: 1px solid var(--line); }
.section-number { color: var(--coral-text); font-family: Georgia, serif; font-size: 1.8rem; }
.promise p:last-child { color: var(--muted); font-size: 1.1rem; }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 54px; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.workflow, .roles, .evidence, .privacy, .comparison { padding-block: 112px; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.workflow-list li { display: grid; grid-template-columns: 80px 1fr 120px; gap: 28px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.workflow-list li > span { color: var(--coral-text); font-family: Georgia, serif; font-size: 1.35rem; }
.workflow-list h3, .workflow-list p { margin-bottom: 6px; }
.workflow-list p { color: var(--muted); }
.workflow-list small { justify-self: end; padding: 7px 12px; color: var(--teal); background: var(--mint); border-radius: 999px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.roles { border-radius: 48px; background: var(--paper); }
.roles > * { margin-inline: clamp(24px, 5vw, 72px); }
.role-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.role-pair article { padding: clamp(32px, 5vw, 62px); }
.caregiver-card { color: white; background: var(--deep); }
.role-label { color: var(--coral-text); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.caregiver-card .role-label { color: #f2a99a; }
.role-pair ul { margin: 28px 0 0; padding: 0; list-style: none; }
.role-pair li { padding: 14px 0 14px 26px; border-top: 1px solid currentColor; border-color: rgba(16,46,45,0.14); }
.caregiver-card li { border-color: rgba(255,255,255,0.15); }
.role-pair li::before { content: "✓"; float: left; margin-left: -26px; color: var(--coral-text); font-weight: 900; }
.caregiver-card li::before { color: #f2a99a; }
.evidence { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 9vw, 130px); align-items: center; }
.evidence-copy > p:last-child { max-width: 670px; color: var(--muted); font-size: 1.08rem; }
.calculation-card { padding: 34px; color: white; background: var(--deep); border-radius: var(--radius); box-shadow: var(--shadow); }
.calculation-card > p { color: #a9d5cc; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.calculation-card dl { margin: 28px 0; }
.calculation-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.calculation-card dd { margin: 0; font-weight: 750; }
.calculation-card .calculation-total { padding-top: 24px; color: #ffd0c7; font-size: 1.4rem; }
.calculation-card small { color: rgba(255,255,255,0.62); }
.privacy { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: clamp(44px, 9vw, 140px); align-items: center; border-block: 1px solid var(--line); }
.privacy-icon { display: grid; aspect-ratio: 1; max-width: 360px; place-items: center; border: 1px solid rgba(11,91,87,0.2); border-radius: 50%; background: radial-gradient(circle at 42% 38%, white 0 10%, var(--mint) 11% 53%, transparent 54%), var(--paper); box-shadow: inset 0 0 0 26px var(--cream); }
.privacy-icon span { display: grid; width: 128px; height: 86px; place-items: center; color: white; background: var(--teal); border-radius: 46% 54% 44% 56%; font-weight: 800; }
.privacy-copy > p { color: var(--muted); font-size: 1.08rem; }
.privacy-copy ul { margin: 28px 0; padding: 0; list-style: none; }
.privacy-copy li { display: flex; justify-content: space-between; gap: 30px; padding: 16px 0; border-top: 1px solid var(--line); }
.privacy-copy li span { color: var(--muted); text-align: right; }
.comparison-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.comparison-row { display: grid; grid-template-columns: 0.75fr 1.4fr 0.85fr; gap: 24px; padding: 28px; background: var(--paper); border-top: 1px solid var(--line); }
.comparison-row:first-child { border-top: 0; }
.comparison-head { padding-block: 14px; color: var(--muted); background: var(--mint); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.comparison-row > span:last-child { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.comparison-row a { display: inline-flex; min-height: 44px; align-items: center; color: var(--teal); font-size: 0.85rem; font-weight: 750; }
.live-dot, .build-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; }
.live-dot::before, .build-dot::before { content: ""; width: 8px; height: 8px; background: #1b9a75; border-radius: 50%; }
.build-dot::before { background: var(--coral); }
.closing { padding-block: 120px; text-align: center; }
.closing img { margin: 0 auto 24px; border-radius: 22px; box-shadow: var(--shadow); }
.closing p:not(.eyebrow) { max-width: 660px; margin-inline: auto; color: var(--muted); font-size: 1.1rem; }
.closing .hero-actions { justify-content: center; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.site-footer > p { margin: 0; justify-self: end; }

.text-page .site-header { margin-bottom: 80px; }
.article-shell { width: min(800px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 110px; }
.article-shell h1 { max-width: 760px; font-size: clamp(3rem, 6.5vw, 5.5rem); }
.article-lead { margin-bottom: 70px; color: var(--muted); font-size: 1.25rem; }
.article-shell section { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); }
.article-shell section h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.article-shell section p, .article-shell section li { color: var(--muted); }
.article-shell li { margin-block: 10px; }
.updated { margin: 54px 0 28px; color: var(--muted); font-size: 0.82rem; }
.status-section > div { display: flex; align-items: center; gap: 14px; }
.status-section > div > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-weight: 900; }
.status-section > div h2 { margin: 0; }
.status-section.proving > div > span { color: var(--deep); background: #f2a99a; }
.status-section.next > div > span { color: var(--deep); background: var(--mint); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { min-height: 80px; }
  .site-header nav { gap: 16px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .phone-stage { width: min(620px, 100%); margin: 0 auto; }
  .promise { grid-template-columns: 54px 1fr; }
  .promise > p:last-child { grid-column: 2; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; }
  .evidence, .privacy { grid-template-columns: 1fr; }
  .privacy-icon { width: min(300px, 70vw); margin: 0 auto; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; grid-row: 1; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .site-header, .section-shell, .site-footer, .article-shell { width: min(100% - 32px, 1240px); }
  .site-header nav a:not(:last-child) { display: none; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.1rem); }
  h2 { font-size: 2.25rem; }
  .hero { padding-block: 48px 72px; }
  .phone-stage { padding: 58px 13px 20px; border-radius: 32px; }
  .phone-frame { border-radius: 40px; }
  .phone-screen { min-height: 560px; border-radius: 31px; }
  .promise { grid-template-columns: 1fr; gap: 12px; padding-block: 72px; }
  .promise > p:last-child { grid-column: 1; }
  .section-number { margin-bottom: 8px; }
  .workflow, .roles, .evidence, .privacy, .comparison { padding-block: 78px; }
  .workflow-list li { grid-template-columns: 48px 1fr; gap: 16px; }
  .workflow-list small { grid-column: 2; justify-self: start; }
  .roles { width: 100%; border-radius: 30px; }
  .role-pair { grid-template-columns: 1fr; }
  .privacy-copy li { display: block; }
  .privacy-copy li span { display: block; margin-top: 5px; text-align: left; }
  .comparison-table { border: 0; overflow: visible; }
  .comparison-head { display: none; }
  .comparison-row { grid-template-columns: 1fr; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 20px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer nav { grid-column: 1; }
  .site-footer > p { justify-self: center; }
  .article-shell { padding-bottom: 80px; }
  .text-page .site-header { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
