/* LabFolio website. Colors match the app (app/index.html in myHealthDashboard). */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f0f0f2;
  --line: #e0e0e0;
  --text: #1d1d1f;
  --text-2: #48484a;
  --text-3: #6e6e73;
  --brand: #f60000;
  --brand-text: #d70000;
  --accent: #0066cc;
  --good: #0ca30c;
  --good-text: #006300;
  --watch: #fab219;
  --watch-text: #946600;
  --out: #ec835a;
  --out-text: #b4461c;
  --band: rgba(12, 163, 12, .10);
  --phone: #1d1d1f;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113; --surface: #1f1f21; --surface-2: #2a2a2d; --line: #333336;
    --text: #f5f5f7; --text-2: #cccccc; --text-3: #98989d;
    --brand-text: #ff4d4d; --accent: #2997ff;
    --good-text: #4cc94c; --out-text: #f19b78; --watch-text: #f5c451;
    --band: rgba(12, 163, 12, .16);
    --phone: #3a3a3d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .drop { width: 20px; height: 27px; }
.brand .word { width: 92px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-dark { color: var(--bg); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 980px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.btn-ghost { color: var(--accent); }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--brand-text); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 700; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); margin-top: 20px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.hero .note { font-size: 13px; color: var(--text-3); margin-top: 14px; }
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
}

/* Phone frame around a real app screenshot */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto;
  border-radius: 50px; padding: 10px;
  background: var(--phone);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06);
}
.phone img { width: 100%; height: auto; border-radius: 40px; background: var(--bg); }

/* Screenshot gallery: a row on wide screens, a swipeable strip on phones */
.shots {
  display: flex; gap: 28px; justify-content: center;
  padding: 8px 22px 36px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: 0 0 236px; scroll-snap-align: center; text-align: center; }
.shots .phone { width: 100%; border-radius: 40px; padding: 8px; }
.shots .phone img { border-radius: 32px; }
.shots figcaption { margin-top: 16px; font-size: 15px; font-weight: 600; }
@media (max-width: 1080px) { .shots { justify-content: flex-start; } }
@media (max-width: 480px) { .shots { padding-left: 16px; padding-right: 16px; gap: 18px; } .shots figure { flex-basis: 72vw; } }

/* Sections */
section { padding: 88px 0; }
.sec-head { max-width: 660px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; }
.sec-head p { font-size: 19px; color: var(--text-2); margin-top: 14px; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }
.feat { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.feat .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--text-2); }
.ic.red { background: var(--brand); }
.ic.blue { background: #0066cc; }
.ic.green { background: #0ca30c; }
.ic.purple { background: #7a3fd1; }
.ic.teal { background: #0f766e; }
.ic.pink { background: #c81e68; }

/* Formats strip */
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.formats span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 20px; background: var(--surface-2); color: var(--text-2); }

/* Privacy band */
.privacy { background: var(--surface); }
.privacy .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .privacy .wrap { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 24px; height: 24px; color: var(--good); margin-top: 1px; }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--text-2); font-size: 15px; }
.shield { display: grid; place-items: center; }
.shield .lock { width: min(320px, 80%); aspect-ratio: 1; border-radius: 36%; background: var(--bg); display: grid; place-items: center; }
.shield .lock img { width: 42%; height: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-2); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 20px; color: var(--text-2); font-size: 16px; }
.faq .a p + p { margin-top: 10px; }

/* Final CTA */
.cta { text-align: center; }
.cta .icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 22px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25); }
.cta h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; }
.cta p { font-size: 19px; color: var(--text-2); margin: 14px auto 28px; max-width: 30em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 13px; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text-2); }
footer .fine { flex-basis: 100%; max-width: 760px; line-height: 1.55; }

/* Policy and support pages */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 22px 88px; }
@media (max-width: 480px) { .doc { padding: 40px 16px 64px; } }
.doc h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 700; }
.doc .meta { color: var(--text-3); font-size: 15px; margin-top: 10px; }
.doc .summary { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin: 32px 0 8px; font-size: 16px; color: var(--text-2); }
.doc h2 { font-size: 24px; font-weight: 700; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.contact-card b { display: block; font-size: 18px; }
.contact-card span { color: var(--text-2); font-size: 15px; }
