:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #161616;
  --muted: #5c5c63;
  --line: #e2e2e7;
  --brand: #1f6fa3;
  --brand-ink: #ffffff;
  --tag: #e3eff8;
  --note: #fff6e0;
  --radius: 16px;
  --hero-top: #e4e9f8;
  color-scheme: light dark;
}
/* Dark mode follows the app's Diabetes Awareness theme: #1C1C1C background, #2D8CC8 accent. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1c;
    --surface: #2c2c2e;
    --text: #ffffff;
    --muted: #a1a1a6;
    --line: #3a3a3c;
    --brand: #2d8cc8;
    --brand-ink: #ffffff;
    --tag: #1d3547;
    --note: #3a3220;
    --hero-top: #2a2a2c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.site-header { position: sticky; top: 12px; z-index: 10; margin: 12px auto 0; max-width: 1008px; width: calc(100% - 24px); background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.site-header .wrap { padding: 0 10px 0 16px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink) !important; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-small { padding: 6px 14px; font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.25; margin: 36px 0 10px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.doc { max-width: 760px; padding-bottom: 32px; }
.doc.wide { max-width: none; }
.steps { padding-left: 1.4em; }
.steps li { margin: 8px 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.with-shot { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .doc .with-shot { grid-template-columns: 1fr 240px; width: calc(100% + 248px); } }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); display: block; max-width: 240px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); }
.note { background: var(--note); border-radius: 12px; padding: 12px 14px; }
.tag { display: inline-block; background: var(--tag); color: var(--brand); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--brand); }
.card h2, .card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 8px; font-size: 15px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; }
.feature-section { border-top: 1px solid var(--line); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.themes figure { margin: 0; }
.themes img { border-radius: 14px; display: block; width: 100%; }
.themes figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
blockquote { margin: 16px 0; padding: 14px 18px; background: var(--surface); border-left: 4px solid var(--brand); border-radius: 8px; font-size: 18px; }
blockquote cite { display: block; font-size: 14px; color: var(--muted); font-style: normal; margin-top: 6px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cta { margin: 32px 0 8px; }
.cta .muted { display: block; margin-top: 8px; font-size: 15px; }
.hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding: 16px 0; }
@media (min-width: 800px) { .hero { grid-template-columns: 1fr 280px; } }
.hero-shot img { max-width: 280px; }
.updated { font-size: 14px; color: var(--muted); margin-top: 24px; }
code { background: var(--tag); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.site-footer { background: #111111; color: #d6d6d6; margin-top: 48px; padding: 40px 0; font-size: 15px; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { color: #8e8e93; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px !important; }
.site-footer .fine { color: #8e8e93; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.site-footer h2 { font-size: 15px; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.fine { font-size: 13px; color: var(--muted); }
.hero { display: block; padding: 8px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 16px; }
.gallery a { text-decoration: none; color: var(--text); }
.gallery .shot img { width: 100%; max-width: 250px; }
.gallery figcaption { text-align: center; font-size: 15px; font-weight: 600; margin-top: 8px; }
@media (max-width: 599px) { .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; } .gallery a { scroll-snap-align: start; } }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.reviews blockquote { margin: 0; font-size: 16px; }
.store-badge { display: inline-block; vertical-align: middle; }
.store-badge img { display: block; height: 50px; width: auto; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 8px; margin-top: 32px; }
.review-grid { columns: 3 300px; column-gap: 14px; margin: 24px 0; }
.review { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; }
.review h3 { font-size: 16px; margin: 2px 0 4px; }
.review p { margin: 4px 0; overflow-wrap: anywhere; }
.review .muted { font-size: 13px; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 14px; }
@media (max-width: 599px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  h2 { font-size: 21px; margin-top: 28px; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 56px; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .main-nav { gap: 14px; flex-wrap: nowrap; }
  .main-nav a { font-size: 15px; }
  .facts { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 2px 14px; }
  .facts div { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; }
  .facts div:last-child { border-bottom: 0; }
  .table-scroll { overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  table { background: none; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 8px; margin-bottom: 12px; }
  th[scope="row"] { border: 0; padding: 10px 0 4px; font-size: 18px; }
  td { border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
  .cta .store-badge img { height: 46px; }
  .review-grid { columns: 1; }
}
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.policy h3 { font-size: 18px; }
.policy table { font-size: 14px; }

/* Homepage */
.home { display: block; }
.home .wrap { max-width: 1040px; }
.home section { padding: 64px 0; }
.home h2 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
.h-hero { text-align: center; background: linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 100%); margin-top: -76px; padding: 120px 0 0 !important; overflow: hidden; }
.h-icon { border-radius: 23%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
.h-name { font-weight: 600; font-size: 18px; margin: 14px 0 0; }
.h-hero h1 { font-size: clamp(32px, 6vw, 56px); max-width: 860px; margin: 8px auto 20px; letter-spacing: -0.03em; }
.awards { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 28px; color: var(--muted); }
.award { display: flex; align-items: center; gap: 6px; }
.award div { display: flex; flex-direction: column; line-height: 1.2; min-width: 96px; }
.award strong { color: var(--text); font-size: 20px; }
.award span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.laurel { width: 20px; height: 48px; opacity: 0.55; }
.laurel.flip { transform: scaleX(-1); }
.h-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn-big { padding: 14px 26px; font-size: 17px; }
.h-actions .store-badge img { height: 50px; }
.fan { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-top: 48px; }
.fan img { border-radius: 26px; box-shadow: 0 20px 50px rgba(20, 20, 40, 0.18); }
.fan .center { width: 300px; margin-bottom: -40px; position: relative; z-index: 1; }
.fan .side { width: 240px; margin-bottom: -120px; opacity: 0.95; }
.h-statement { padding: 96px 0 56px !important; }
.h-statement p, .h-text { font-size: clamp(22px, 3vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; margin: 0 auto; }
.h-statement p { max-width: 900px; text-align: center; }
.h-statement span, .h-text span { color: var(--brand); }
.h-works { padding: 8px 0 40px !important; text-align: center; }
.h-works h2 { font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.h-works ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.h-works a { color: var(--muted); text-decoration: none; font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.h-works a:hover { color: var(--text); }
.h-feature .wrap { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
.h-feature.flip .h-shot { order: -1; }
.h-feature.flip .wrap { grid-template-columns: 320px 1fr; }
.h-feature + .h-feature { border-top: 1px solid var(--line); }
.h-text { font-size: clamp(19px, 2.2vw, 23px); font-weight: 500; color: var(--muted); }
.h-text span { font-weight: 700; }
.h-shot { margin: 0; }
.h-shot img { width: 100%; border-radius: 26px; box-shadow: 0 16px 40px rgba(20, 20, 40, 0.14); display: block; }
.h-more { font-weight: 600; text-decoration: none; font-size: 17px; }
.mini-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; max-width: 460px; }
.mini-themes img { width: 100%; border-radius: 8px; }
.h-reviews { background: var(--surface); }
.h-reviews h2, .h-faq h2, .h-final h2 { text-align: center; }
.h-reviews h2 { max-width: 760px; margin: 0 auto 28px; }
.h-center { text-align: center; margin-top: 24px; }
.h-faq .wrap { max-width: 760px; }
.h-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.h-faq summary { font-weight: 600; cursor: pointer; }
.h-final { text-align: center; background: linear-gradient(0deg, var(--hero-top) 0%, var(--bg) 100%); padding-bottom: 80px !important; }
.h-final p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; font-size: 18px; }
.h-final .store-badge img { height: 54px; }
.home + .site-footer { margin-top: 0; }
@media (max-width: 799px) {
  .home section { padding: 48px 0; }
  .h-hero { padding-top: 104px !important; }
  .fan .side { display: none; }
  .fan .center { width: min(280px, 78vw); margin-bottom: -24px; }
  .h-feature .wrap, .h-feature.flip .wrap { grid-template-columns: 1fr; gap: 24px; }
  .h-feature .h-shot, .h-feature.flip .h-shot { order: 2; max-width: 280px; margin: 0 auto; }
  .h-statement { padding: 72px 0 40px !important; }
  .awards { flex-wrap: nowrap; gap: 0; justify-content: space-around; }
  .award { gap: 0; }
  .award .laurel { display: none; }
  .award div { min-width: 0; text-align: center; padding: 0 4px; }
  .award strong { font-size: 18px; }
  .award span { font-size: 10px; }
  .h-actions .btn-big { padding: 12px 20px; font-size: 16px; }
}
#features { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }
@media (max-width: 359px) { .main-nav { gap: 10px; } .main-nav a { font-size: 14px; } .main-nav .btn-small { padding: 6px 10px; } .site-header .wrap { padding: 0 6px 0 10px; } }
.h-hero-sm { padding-bottom: 40px !important; }
.h-hero-sm h1 { margin-top: 0; }
.h-lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 24px; }
.hub { padding-top: 16px !important; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.feature-card, .device-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--text); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.feature-card:hover, .device-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1); }
.fc-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9ebf8; }
.fc-img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fc-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fc-body h2, .device-card h2 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.fc-body p, .device-card p { margin: 0; font-size: 15px; }
.fc-body .tag { align-self: flex-start; margin-top: auto; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.device-card { padding: 22px; gap: 8px; }
.device-card h3 { font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.device-card .kind { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.device-card .h-more { margin-top: auto; padding-top: 8px; font-size: 15px; color: var(--brand); }
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card.wide { grid-column: span 2; flex-direction: row; }
  .feature-card.wide .fc-img { aspect-ratio: auto; flex: 0 0 50%; min-height: 300px; }
  .feature-card.wide .fc-body { justify-content: center; padding: 28px; }
  .feature-card.wide h2 { font-size: 28px; }
  .feature-card.wide p { font-size: 17px; }
  .feature-card.wide .tag { margin-top: 8px; }
}
.model-chips { list-style: none; padding: 0; margin: 4px 0 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.model-chips li { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
