/* TearSense institutional page. */
:root {
    color-scheme: light;
    --navy: #15243a;
    --ink: #1b2d43;
    --muted: #5e6d7e;
    --blue: #1769dc;
    --line: #dfe6ee;
    --surface: #f4f7fa;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #72aaff; outline-offset: 5px; }
img { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
::selection { background: #d7e7ff; color: var(--ink); }
.container { width: min(calc(100% - 64px), 1180px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 20px; padding: 12px 20px; background: #fff; border: 2px solid var(--blue); border-radius: 6px; color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; z-index: 100; top: 0; background: #24324a; box-shadow: 0 4px 18px rgba(24, 34, 56, .18); font-family: Inter, Arial, Helvetica, sans-serif; line-height: 1.5; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 9px; width: 100%; max-width: none; min-height: 64px; margin: 0; padding: 10px 28px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { width: 162px; height: auto; }
.site-header .brand { min-height: 40px; }
.site-header .brand img { width: auto; height: 27px; }
.nav-access { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background-color .18s ease, transform .18s ease; }
.nav-access { margin-left: auto; background: #315fae; border-color: #315fae; }
.nav-access:hover { background: #3b6abb; transform: translateY(-1px); }
.site-header svg { width: 18px; height: 18px; }

.hero { padding: 82px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.hero-grid > * { min-width: 0; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }
h1 { margin: 18px 0 0; color: var(--ink); font-size: clamp(42px, 4.7vw, 62px); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }
h1 span { color: var(--blue); }
.hero-copy { max-width: 470px; margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #1259bd; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.loom-photo { width: calc(100% - 24px); margin: 16px auto; padding: 8px; border: 1px solid #e1e8f1; border-radius: 22px; background: #fff; box-shadow: 0 22px 44px -22px #15243a40; transform: rotate(-3deg); }
.loom-photo img { width: 100%; height: auto; border-radius: 14px; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); }
.benefit { display: flex; align-items: center; justify-content: center; gap: 11px; min-width: 0; padding-block: 4px; color: #43546a; font-size: 13px; line-height: 1.6; text-align: center; }
.benefit svg { width: 20px; height: 20px; color: var(--blue); }

h2 { margin: 14px 0 0; color: var(--ink); font-size: clamp(30px, 3.3vw, 42px); font-weight: 650; letter-spacing: -.035em; line-height: 1.18; }
.platform-section { padding: 80px 0; background: var(--surface); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: end; gap: 60px; margin-bottom: 36px; }
.section-intro > p { max-width: 450px; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.platform-preview { margin: 0; }
.preview-toolbar { display: flex; align-items: center; min-height: 54px; padding: 12px 20px; border: 1px solid #d7e0eb; border-radius: 12px 12px 0 0; background: #fff; }
.preview-toolbar > span { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #43546a; font-size: 12px; font-weight: 600; }
.preview-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #21946d; }
.preview-image-link { display: block; overflow: hidden; border: 1px solid #d7e0eb; border-top: 0; border-radius: 0 0 12px 12px; background: #fff; cursor: zoom-in; }
.preview-image-link img { width: 100%; height: auto; }

.resources-section { padding: 88px 0; }
.resources-heading { max-width: 660px; margin-bottom: 42px; }
.resources-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.feature { min-width: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 9px; background: #eef4fc; color: var(--blue); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 12px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

.access-section { padding-bottom: 80px; }
.access-content { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 54px; border-top: 1px solid var(--line); }
.access-content h2 { margin-top: 0; font-size: clamp(27px, 3vw, 36px); }
.access-content .eyebrow { margin-bottom: 12px; }
.access-content p:not(.eyebrow) { max-width: 650px; margin: 15px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.access-content > .button { flex-shrink: 0; }
.site-footer { padding: 34px 0; background: var(--navy); color: #c3cfde; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer .brand img { width: 146px; }
.footer-content p { margin: 0; color: #b7c5d7; font-size: 12px; line-height: 1.7; }
.footer-top { display: inline-flex; align-items: center; min-height: 44px; color: #e3ebf6; font-size: 12px; white-space: nowrap; }
.footer-top:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1050px) {
    .hero-grid { gap: 38px; }
    .hero { padding-top: 66px; }
    .section-intro { gap: 40px; }
    .feature-grid { gap: 26px; }
}

@media (max-width: 880px) {
    .nav { min-height: 62px; padding: 9px 14px; }
    .site-header .brand img { height: 23px; }
}

@media (max-width: 820px) {
    html { scroll-padding-top: 86px; }
    .container { width: min(calc(100% - 40px), 640px); }
    .hero { padding: 56px 0 26px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
    h1 { max-width: 570px; font-size: clamp(40px, 7vw, 54px); }
    .hero-copy { max-width: 560px; }
    .benefits { gap: 20px; margin-top: 38px; padding-top: 22px; }
    .benefit { font-size: 12px; }
    .platform-section { padding: 60px 0; }
    .section-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 28px; }
    .section-intro > p { max-width: 590px; margin: 0; }
    .resources-section { padding: 64px 0; }
    .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .feature { padding-top: 24px; }
    .feature-icon { margin-bottom: 14px; }
    .feature p { max-width: 580px; }
    .access-section { padding-bottom: 60px; }
    .access-content { align-items: flex-start; flex-direction: column; gap: 24px; padding-top: 40px; }
    .footer-content { flex-wrap: wrap; }
    .footer-content p { flex: 1 1 250px; }
}

@media (max-width: 480px) {
    .hero { padding-top: 42px; }
    .eyebrow { font-size: 10px; letter-spacing: .1em; }
    h1 { font-size: clamp(36px, 9.2vw, 44px); line-height: 1.13; }
    .hero-copy { margin-top: 22px; font-size: 15px; line-height: 1.8; }
    .hero-actions { display: grid; gap: 8px; margin-top: 26px; }
    .hero-actions .text-link { justify-content: center; }
    .loom-photo { width: calc(100% - 12px); margin-block: 10px; padding: 7px; border-radius: 18px; box-shadow: 0 16px 32px -20px #15243a40; transform: rotate(-2deg); }
    .loom-photo img { border-radius: 11px; }
    .benefits { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 30px; }
    .benefit { align-items: center; font-size: 12px; }
    .benefit svg { margin: 0; }
    h2 { font-size: 30px; }
    .platform-section { padding: 48px 0; }
    .section-intro > p { font-size: 14px; }
    .preview-toolbar { padding: 12px 14px; }
    .preview-toolbar > span { font-size: 11px; }
    .resources-section { padding: 50px 0; }
    .resources-heading { margin-bottom: 30px; }
    .resources-heading > p:last-child { font-size: 14px; }
    .feature-grid { gap: 26px; }
    .access-section { padding-bottom: 48px; }
    .access-content { gap: 22px; padding-top: 32px; }
    .access-content h2 { font-size: 28px; }
    .access-content p:not(.eyebrow) { font-size: 14px; }
    .access-content > .button { width: 100%; }
    .site-footer { padding: 28px 0; }
    .footer-content { align-items: flex-start; flex-direction: column; gap: 12px; }
    .footer-content p { flex: initial; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
