:root {
  --navy: #071b36;
  --blue: #147be8;
  --blue-dark: #0754aa;
  --sky: #dff4ff;
  --ice: #f4faff;
  --line: #cfe0ef;
  --muted: #58708a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 52, 104, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: var(--white); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7.3vw, 6.6rem); max-width: 11ch; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.3rem); max-width: 14ch; }
h3 { font-size: 1.6rem; }

.site-header { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: clamp(190px, 22vw, 260px); height: auto; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; font-size: .94rem; font-weight: 650; }
nav a:hover, nav a:focus-visible { color: var(--blue); }
.nav-contact { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; }

.hero { width: min(1180px, calc(100% - 40px)); min-height: 720px; margin: 22px auto 0; padding: clamp(42px, 7vw, 88px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; overflow: hidden; border-radius: 40px; background: radial-gradient(circle at 82% 20%, rgba(125, 218, 255, .65), transparent 32%), linear-gradient(145deg, #eefaff 0%, #d8f2ff 52%, #b8e8ff 100%); position: relative; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 1rem; color: var(--blue-dark); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero-text { max-width: 600px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; padding: 14px 23px; color: white; background: var(--navy); border-radius: 999px; text-decoration: none; font-weight: 750; box-shadow: 0 12px 26px rgba(7, 27, 54, .18); }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-muted { cursor: default; background: #7991a8; box-shadow: none; }
.hero-visual { min-height: 520px; display: grid; place-items: center; position: relative; }
.hero-visual img { width: min(420px, 92%); border-radius: 26%; box-shadow: var(--shadow); transform: rotate(3deg); position: relative; z-index: 2; }
.orbit { position: absolute; border: 1px solid rgba(20, 123, 232, .22); border-radius: 50%; }
.orbit-one { width: 500px; height: 500px; }
.orbit-two { width: 610px; height: 610px; }

.section { width: min(1080px, calc(100% - 40px)); margin: 150px auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 58px; }
.section-heading h2 { margin-bottom: 0; }
.app-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(26px, 5vw, 65px); background: var(--ice); border: 1px solid var(--line); border-radius: 34px; }
.app-card + .app-card { margin-top: 24px; }
.app-icon { width: 100%; border-radius: 25%; box-shadow: var(--shadow); }

.app-content h3 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 1rem; }
.app-content p { max-width: 530px; color: var(--muted); font-size: 1.1rem; }
.app-meta { display: flex; gap: 9px; margin-bottom: 24px; }
.app-meta span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-dark); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.text-link { color: var(--blue-dark); font-weight: 780; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.values { width: min(1180px, calc(100% - 40px)); margin: 0 auto 150px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values > div { padding: 50px 34px; }
.values > div + div { border-left: 1px solid var(--line); }
.values p { color: var(--muted); margin-bottom: 0; }
.value-number, .feature-index { display: block; margin-bottom: 36px; color: var(--blue); font-size: .8rem; font-weight: 850; }

.product-hero { width: min(1080px, calc(100% - 40px)); margin: 70px auto 140px; display: grid; grid-template-columns: 380px 1fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.product-icon { border-radius: 25%; box-shadow: var(--shadow); }
.medizen-logo { border-radius: 0; box-shadow: none; }
.product-hero h1 { margin-bottom: .8rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 290px; padding: 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid p { color: var(--muted); }
.privacy-callout { width: min(1180px, calc(100% - 40px)); margin: 0 auto 90px; padding: clamp(42px, 7vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; color: white; background: var(--navy); border-radius: 36px; }
.privacy-callout .eyebrow { color: #71ccff; }
.privacy-callout h2 { margin-bottom: 0; }
.privacy-callout p { color: #c2d2e2; }
.privacy-callout .text-link { color: #71ccff; }
.health-note { width: min(820px, calc(100% - 40px)); margin: 0 auto 140px; padding-left: 25px; border-left: 3px solid var(--blue); }
.health-note h2 { font-size: 1.4rem; }
.health-note p { color: var(--muted); }

.legal-layout { width: min(950px, calc(100% - 40px)); margin: 90px auto 140px; }
.legal-intro { padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.legal-intro h1 { max-width: 13ch; font-size: clamp(3rem, 7vw, 5.8rem); }
.legal-intro > p:last-child { color: var(--muted); }
.privacy-meta { color: var(--muted); font-size: .9rem; }
.legal-content { max-width: 760px; margin: 70px 0 0 auto; }
.legal-content section { padding: 0 0 42px; }
.legal-content h2 { font-size: 1.65rem; max-width: none; }
.legal-content p, .legal-content li { color: #334d68; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: var(--blue-dark); }
.plain-list { padding-left: 0; list-style: none; }
.draft-warning { display: inline-block; padding: 10px 14px; color: #733f00 !important; background: #fff1cd; border: 1px solid #f0d18a; border-radius: 10px; font-weight: 700; }
mark { padding: 2px 5px; color: #733f00; background: #fff1cd; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 55px 0 34px; display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; border-top: 1px solid var(--line); }
footer p { color: var(--muted); margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--blue); }
.copyright { grid-column: 1 / -1; padding-top: 24px; font-size: .88rem; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; background: var(--ice); }
.error-page main { max-width: 620px; }
.centered-brand { margin-bottom: 50px; }
.error-code { margin: 0; color: var(--blue); font-size: clamp(6rem, 22vw, 13rem); font-weight: 900; line-height: .8; letter-spacing: -.08em; }
.error-page h1 { margin: 30px auto 16px; font-size: clamp(2rem, 5vw, 4rem); }
.error-page p:not(.error-code) { color: var(--muted); }

@media (max-width: 820px) {
  .site-header { min-height: 74px; }
  nav a:not(.nav-contact) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 42px 26px; border-radius: 26px; }
  .hero-visual { min-height: 360px; }
  .hero-visual img { width: min(320px, 84%); }
  .orbit-one { width: 340px; height: 340px; }
  .orbit-two { width: 430px; height: 430px; }
  .section { margin: 100px auto; }
  .section-heading { display: block; margin-bottom: 38px; }
  .app-card, .product-hero, .privacy-callout { grid-template-columns: 1fr; }
  .app-icon, .product-icon { width: min(330px, 100%); margin: 0 auto; }
  .product-hero { margin-top: 50px; gap: 42px; }
  .values { grid-template-columns: 1fr; margin-bottom: 100px; }
  .values > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .privacy-callout { gap: 25px; border-radius: 26px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .hero-visual img { transition: transform .2s ease; }
  .hero-visual img:hover { transform: rotate(0deg) translateY(-4px); }
}
