/* Sestra Health — static production stylesheet */
:root {
  --ivory: #fdf7f2;
  --paper: #fffdfa;
  --terracotta: #dc7e64;
  --rust: #cc6a53;
  --rust-dark: #934432;
  --charcoal: #202124;
  --brown: #6f574e;
  --sand: #ead8c8;
  --line: rgba(66, 42, 34, .16);
  --shadow: 0 30px 80px rgba(91, 52, 39, .14);
  --radius: 28px;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-width: 320px; max-width: 100%; overflow-x: hidden; overflow-x: clip; color: var(--charcoal); background: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .24; background-image: radial-gradient(rgba(104,67,53,.12) .55px, transparent .7px); background-size: 5px 5px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
p, h1, h2, h3, h4 { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7d3324; outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding-block: clamp(88px, 11vw, 160px); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; color: white; background: var(--charcoal); border-radius: 999px; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(68, 42, 33, .08); background: rgba(253, 247, 242, .9); backdrop-filter: blur(16px); }
.nav { min-height: 86px; display: flex; align-items: center; gap: 34px; }
.brand-link { display: inline-flex; text-decoration: none; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; color: var(--charcoal); font-weight: 600; letter-spacing: .21em; line-height: .92; text-transform: uppercase; }
.wordmark > span { font-size: 21px; }
.wordmark small { margin-top: 8px; font-size: 9px; letter-spacing: .35em; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links a, .footer-links a { color: #51453f; font-size: 13px; font-weight: 650; text-decoration: none; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: var(--rust); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--charcoal); border-radius: 999px; color: white; background: var(--charcoal); font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; box-shadow: 0 8px 24px rgba(32, 33, 36, .12); }
.button:hover { background: #393532; transform: translateY(-2px); }
.button:active, .store-button:active { transform: translateY(1px) scale(.985); }
.button-small { min-height: 44px; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(72px, 8vw, 118px); border-bottom: 1px solid var(--line); }
.hero-wash { position: absolute; z-index: -2; width: min(760px, 80vw); aspect-ratio: 1; top: -280px; right: -180px; border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgba(220,126,100,.42), rgba(220,126,100,.12) 46%, transparent 70%); filter: blur(2px); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(125deg, transparent 55%, rgba(255,255,255,.46) 55.1%, transparent 55.3%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .82fr); align-items: center; gap: clamp(48px, 8vw, 112px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 25px; color: var(--rust-dark); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 32px; height: 1px; margin-right: 11px; vertical-align: middle; background: currentColor; }
.eyebrow.light { color: #ffd8cc; }
.hero h1 { max-width: 770px; margin-bottom: 30px; font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -.065em; line-height: .97; }
.hero h1 em { color: var(--rust); font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
.hero-lede { max-width: 675px; margin-bottom: 36px; color: #554b46; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; }
.store-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; }
.store-row.centered { justify-content: center; }
.store-button { display: inline-flex; min-width: 176px; min-height: 60px; align-items: center; gap: 11px; padding: 9px 17px; border: 1px solid var(--charcoal); border-radius: 14px; color: white; background: var(--charcoal); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; box-shadow: 0 8px 20px rgba(32,33,36,.1); }
a.store-button:hover { background: #393532; transform: translateY(-2px); box-shadow: 0 13px 30px rgba(32,33,36,.16); }
.store-button small, .store-button strong { display: block; line-height: 1.15; }
.store-button small { margin-bottom: 3px; font-size: 9px; letter-spacing: .04em; }
.store-button strong { font-size: 17px; }
.store-mark { width: 24px; height: 28px; display: grid; place-items: center; color: white; font-size: 27px; line-height: 1; }
.play-mark { width: 0; height: 0; margin-inline: 5px 6px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid currentColor; }
.availability { margin: 14px 0 0; color: #75675f; font-size: 12px; }
.availability span { display: block; margin-top: 3px; }
.availability code { color: var(--rust-dark); font-family: inherit; }
.hero-product { position: relative; min-height: 720px; display: grid; place-items: center; }
.device-frame { position: relative; z-index: 2; width: min(370px, 82%); padding: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 54px; background: #171717; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); filter: drop-shadow(0 45px 44px rgba(63, 37, 29, .22)); transform: rotate(1.8deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-product:hover .device-frame { transform: rotate(.2deg) translateY(-6px); }
.screen-carousel { position: relative; width: 100%; aspect-ratio: 341 / 732; overflow: hidden; border-radius: 44px; background: #f6efea; }
.screen-track { display: flex; width: 500%; height: 100%; will-change: transform; animation: sestra-slideshow 8.8s linear infinite; }
.screen-slide { flex: 0 0 20%; height: 100%; overflow: hidden; background: #f8f5f1; }
.screen-slide picture { display: block; width: 100%; height: 100%; }
.screen-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@keyframes sestra-slideshow {
  0%, 22.727% { transform: translateX(0); }
  25%, 47.727% { transform: translateX(-20%); }
  50%, 72.727% { transform: translateX(-40%); }
  75%, 97.727% { transform: translateX(-60%); }
  100% { transform: translateX(-80%); }
}
.orbit { position: absolute; border: 1px solid rgba(147, 68, 50, .22); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 650px; height: 650px; }
.floating-card { position: absolute; z-index: 3; max-width: 230px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.68); border-radius: 18px; background: rgba(255,253,250,.9); backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(74,41,31,.14); }
.floating-card span { display: block; margin-bottom: 6px; color: var(--rust-dark); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.floating-card p { margin: 0; font-size: 13px; line-height: 1.45; }
.card-one { left: -30px; top: 26%; }
.card-two { right: -25px; bottom: 15%; }
.hero-footnote { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); color: #877269; font-family: var(--serif); font-size: 14px; font-style: italic; letter-spacing: .12em; text-transform: uppercase; }

.statement { color: white; background: var(--charcoal); }
.statement-grid { display: grid; grid-template-columns: .65fr 1.8fr; gap: 70px; }
.statement h2 { max-width: 920px; margin-bottom: 30px; font-size: clamp(42px, 5.5vw, 78px); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.statement p:not(.eyebrow) { max-width: 760px; margin: 0; color: #d7cbc4; font-size: clamp(17px, 1.6vw, 21px); }

.section-intro { display: grid; grid-template-columns: .65fr 1.15fr .8fr; gap: 48px; align-items: start; margin-bottom: 72px; }
.section-intro h2, .showcase-copy h2, .trust h2, .cta-card h2 { margin-bottom: 24px; font-size: clamp(40px, 5vw, 68px); font-weight: 550; letter-spacing: -.055em; line-height: 1.02; }
.section-intro > p:last-child, .showcase-copy > p, .trust-grid > div > p { color: #675951; font-size: 17px; }
.benefit-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 100px 1fr; gap: 34px; padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.benefit-list li:hover { padding-inline: 18px; background: rgba(255,255,255,.48); }
.benefit-list li > span { color: var(--rust-dark); font-family: var(--serif); font-size: 18px; font-style: italic; }
.benefit-list li > div { display: grid; grid-template-columns: .8fr 1fr; gap: 50px; }
.benefit-list h3 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -.035em; }
.benefit-list p { max-width: 560px; margin: 3px 0 0; color: #675951; }

.showcase { overflow: hidden; background: #f2e4d8; }
.showcase-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(60px, 9vw, 130px); }
.showcase-art { position: relative; min-height: 760px; }
.screenshot-panel { width: min(390px, 74%); margin-left: 12%; padding: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 54px; background: #171717; box-shadow: var(--shadow); transform: rotate(-2deg); }
.showcase-carousel { border-radius: 44px; }
.showcase-copy > p:not(.eyebrow) { margin-bottom: 40px; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 95px 1fr; gap: 22px; padding: 20px 0; border-top: 1px solid rgba(66,42,34,.2); }
.detail-list dt { color: var(--rust-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.detail-list dd { margin: 0; color: #564a44; }

.trust { background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(50px, 10vw, 150px); align-items: start; }
.text-links { display: flex; flex-direction: column; margin-top: 42px; border-top: 1px solid var(--line); }
.text-links a { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--charcoal); font-weight: 700; text-decoration: none; transition: color .2s ease, padding .2s ease; }
.text-links a:hover { padding-left: 10px; color: var(--rust-dark); }

.final-cta { padding-top: 0; background: var(--paper); }
.cta-card { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) clamp(28px, 8vw, 100px); border-radius: 40px; color: white; background: var(--rust-dark); text-align: center; box-shadow: 0 34px 90px rgba(112, 57, 42, .2); }
.cta-card::before, .cta-card::after { content: ""; position: absolute; width: 420px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.cta-card::before { top: -270px; left: -160px; }
.cta-card::after { right: -180px; bottom: -300px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { max-width: 800px; margin-inline: auto; }
.cta-card > p:not(.eyebrow) { max-width: 690px; margin: 0 auto 32px; color: #fff1ec; font-size: 17px; }
.store-light { color: var(--charcoal); border-color: white; background: white; }
a.store-light:hover { color: white; background: var(--charcoal); }
.store-light .store-mark { color: inherit; }
.store-google-light { color: white; border-color: rgba(255,255,255,.55); background: rgba(61,20,13,.28); box-shadow: none; }
a.store-google-light:hover { border-color: var(--charcoal); background: var(--charcoal); }

.site-footer { padding: 74px 0 24px; color: #4e443f; background: #ead8c8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .5fr; gap: 50px; align-items: start; }
.footer-brand { margin-bottom: 25px; }
.footer-note { max-width: 340px; margin: 0; font-size: 14px; }
.footer-address p { margin: 0; font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-links a:hover { color: var(--rust-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(66,42,34,.16); font-size: 11px; }
.footer-bottom p { margin: 0; }

/* Policy and support pages */
.content-page { background: linear-gradient(180deg, #fdf7f2 0, #f5e8de 420px, #fdf7f2 900px); }
.document-wrap { padding-top: 76px; padding-bottom: 120px; }
.document-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--brown); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.document-kicker a { color: var(--rust-dark); }
.document-card { padding: clamp(32px, 7vw, 82px); border: 1px solid rgba(66,42,34,.12); border-radius: 32px; background: rgba(255,253,250,.96); box-shadow: 0 24px 80px rgba(82,49,37,.09); }
.document-card h1 { margin-bottom: 34px; font-size: clamp(42px, 6vw, 72px); font-weight: 560; letter-spacing: -.055em; line-height: 1; }
.document-card h2 { margin-top: 58px; margin-bottom: 20px; font-size: clamp(27px, 3vw, 38px); font-weight: 620; letter-spacing: -.035em; line-height: 1.15; }
.document-card h3 { margin-top: 42px; margin-bottom: 12px; font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.document-card p, .document-card li { color: #514742; }
.document-card p { margin-bottom: 16px; }
.document-card a { color: var(--rust-dark); font-weight: 650; overflow-wrap: anywhere; }
.document-card strong { color: var(--charcoal); }
.document-card ul, .document-card ol { padding-left: 22px; }
.document-card li { margin-bottom: 10px; }
.document-card .overflow-x-auto { max-width: 100%; overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; }
.document-card table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.document-card th { color: var(--charcoal); background: #f3e6dc; text-align: left; }
.document-card th, .document-card td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.support-page .document-card > div:first-child { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.support-page .document-card section { margin-top: 54px; }
.support-page .document-card section:first-of-type { margin-top: 40px; }
.support-page .document-card section > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.support-page .document-card section > div:last-child { border-bottom: 0; }
.support-page .document-card section h3 { margin: 0 0 7px; font-size: 18px; }
.support-page .document-card section p { margin: 0; }

@supports (animation-timeline: view()) {
  .reveal { animation: reveal-up both linear; animation-timeline: view(); animation-range: entry 8% cover 26%; }
  @keyframes reveal-up { from { opacity: .25; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 980px) {
  .nav-links a:nth-child(-n+3) { display: none; }
  .hero-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 790px; }
  .hero-product { min-height: 650px; }
  .hero h1 { max-width: 850px; }
  .section-intro { grid-template-columns: 1fr 1.4fr; }
  .section-intro > p:last-child { grid-column: 2; }
  .statement-grid, .trust-grid { grid-template-columns: 1fr; gap: 30px; }
  .showcase-art { max-width: 650px; width: 100%; margin-inline: auto; }
  .showcase-copy { max-width: 740px; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .section-pad { padding-block: 86px; }
  .nav { min-height: 74px; gap: 15px; }
  .nav-links { display: none; }
  .nav .button { margin-left: auto; min-height: 40px; padding-inline: 15px; font-size: 11px; }
  .wordmark > span { font-size: 18px; }
  .wordmark small { margin-top: 6px; font-size: 8px; }
  .hero { padding-top: 65px; }
  .hero h1 { font-size: clamp(45px, 13.5vw, 70px); }
  .hero-grid { gap: 50px; }
  .hero-product { min-height: 600px; }
  .device-frame { width: min(330px, 82%); }
  .orbit-one { width: 430px; height: 430px; }
  .orbit-two { width: 560px; height: 560px; }
  .floating-card { max-width: 195px; padding: 15px; }
  .floating-card p { font-size: 11px; }
  .card-one { left: -5px; top: 19%; }
  .card-two { right: -5px; bottom: 12%; }
  .hero-footnote { margin-top: 20px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; }
  .section-intro > p:last-child { grid-column: auto; }
  .benefit-list li { grid-template-columns: 50px 1fr; gap: 15px; }
  .benefit-list li > div { grid-template-columns: 1fr; gap: 10px; }
  .showcase-art { min-height: 610px; }
  .screenshot-panel { margin-left: 6%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .document-wrap { padding-top: 44px; padding-bottom: 80px; }
  .document-card { padding: 31px 23px; border-radius: 22px; }
}

@media (max-width: 460px) {
  .nav .button { max-width: 135px; padding-inline: 12px; line-height: 1.15; text-align: center; }
  .store-row { flex-direction: column; }
  .store-button { width: 100%; }
  .hero-product { min-height: 540px; }
  .device-frame { width: 270px; }
  .card-one { left: -10px; top: 22%; }
  .card-two { right: -10px; bottom: 13%; }
  .hero-footnote { font-size: 11px; }
  .showcase-art { min-height: 520px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-column: auto; }
  .document-kicker { align-items: flex-start; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .screen-track { animation: none !important; }
}
