/* GlycoViva — the public site.
 *
 * Hand-written HTML and CSS rather than the Flutter app, because this page is what a
 * stranger meets before deciding whether to spend four megabytes downloading the app. It
 * paints in about 3 KB gzipped and a search engine can read every word of it; neither is
 * true of a Flutter page.
 *
 * No JavaScript and no web fonts, both on purpose. The dropdowns work on :hover and
 * :focus-within, the mobile menu on :target, the testimonial rail scrolls natively — a nav
 * that needs a script is a nav that is missing while the script loads. And a font fetched
 * from Google tells a third party that someone is reading a page about diabetes, before that
 * person has chosen anything at all.
 */

:root {
  --ink: #15201a;
  --ink-soft: #4a5a51;
  --ink-mute: #7b8b82;
  --green: #2b6b45;
  --green-deep: #1d5133;
  --green-dark: #16402a;
  --green-bright: #3d9160;
  --wash: #eef5f0;
  --wash-2: #f4f8f4;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e7e5dd;
  --line-soft: #f0eee7;
  --star: #f0a500;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(21, 32, 26, .05);
  --shadow: 0 2px 6px rgba(21, 32, 26, .05), 0 12px 32px rgba(21, 32, 26, .07);
  --shadow-lg: 0 24px 60px rgba(21, 32, 26, .13);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.14; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.06rem; font-weight: 650; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.center { text-align: center; }

/* ── Utility bar ──────────────────────────────────────────────────────────── */
.util {
  background: var(--wash-2); border-bottom: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--ink-soft);
}
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.util-in .lead { display: flex; align-items: center; gap: .5rem; }
.util a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 550; }
.util a:hover { color: var(--green); }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(251, 250, 247, .94); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 2.2rem; padding: .8rem 0; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; display: block; line-height: 1.05; }
.brand b span { color: var(--green); }
.brand small { display: block; font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-mute); }

.menu { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.menu > li { position: relative; }
.menu .top {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 10px; border: 0; background: none;
  font: inherit; font-size: .94rem; color: var(--ink-soft); cursor: pointer;
}
.menu .top:hover { color: var(--green); background: var(--wash); }
.menu .is-here { color: var(--green); font-weight: 600; }
.caret { width: 8px; height: 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; padding: .45rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: .58rem .7rem; border-radius: 9px; }
.drop a:hover { background: var(--wash); }
.drop strong { display: block; font-size: .93rem; font-weight: 600; }
.drop small { display: block; font-size: .8rem; line-height: 1.4; color: var(--ink-mute); }

.nav-cta { display: flex; align-items: center; gap: .55rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.25rem; border-radius: 8px; border: 1px solid transparent;
  font-size: .93rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-deep); }
.btn-line { border-color: var(--line); background: var(--card); color: var(--ink); }
/* The clinician's door. Tinted rather than outlined so it reads as a different
   audience, not a weaker version of Get Started — and it survives the 900px rule
   below that hides .btn-line, because on a tablet a doctor still needs it. */
.btn-doc { background: var(--mint, #e8f3ec); color: var(--green-deep, #1f5b3a);
           border-color: transparent; }
.btn-doc:hover { background: #dbeee2; }
.btn-line:hover { border-color: var(--green); color: var(--green); }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { background: var(--wash); }
.btn-clear { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-clear:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: .9rem 1.6rem; font-size: .98rem; border-radius: 9px; }

.burger { display: none; padding: .5rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4.5px 0; border-radius: 2px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(2.5rem, 5vw, 4.2rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .95rem; border-radius: 999px;
  background: var(--wash); border: 1px solid #dcebe1;
  font-size: .8rem; font-weight: 600; color: var(--green);
}
.hero h1 { margin: 1.25rem 0 0; }
.hero h1 em { font-style: normal; color: var(--green); display: block; }
.hero .lede { margin-top: 1.15rem; font-size: 1.06rem; color: var(--ink-soft); max-width: 30rem; }

.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 2rem; max-width: 34rem; }
.quad div { text-align: center; }
.quad .ico {
  width: 46px; height: 46px; margin: 0 auto .55rem; border-radius: 12px;
  background: var(--wash); display: grid; place-items: center; font-size: 1.2rem;
}
.quad small { font-size: .78rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; display: block; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

.proof { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; }
.proof .who { display: flex; }
.proof .who i {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--paper);
  margin-left: -10px; display: grid; place-items: center;
  font-size: .95rem; font-style: normal; background: var(--wash);
}
.proof .who i:first-child { margin-left: 0; }
.proof b { display: block; font-size: .88rem; }
.proof small { color: var(--ink-mute); font-size: .82rem; }

/* The phone. Drawn rather than photographed, so it stays sharp on any screen and weighs
   nothing — and so the figures in it can be honest sample data rather than a screenshot of
   somebody's record. */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.phone-stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #e4f0e7 0%, rgba(244,248,244,0) 68%);
}
.phone {
  position: relative; width: 260px; border-radius: 38px; padding: 9px;
  background: #1b1b1b; box-shadow: var(--shadow-lg);
}
.phone-screen { background: var(--card); border-radius: 30px; overflow: hidden; padding: 1.1rem .85rem .6rem; }
.notch { width: 78px; height: 20px; background: #1b1b1b; border-radius: 0 0 12px 12px; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 2; }
.p-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .9rem; }
.p-top small { font-size: .62rem; color: var(--ink-mute); display: block; }
.p-top b { font-size: .92rem; }
.p-score { background: var(--wash); border-radius: 14px; padding: .75rem .85rem; margin-bottom: .8rem; }
.p-score small { font-size: .58rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.p-score .n { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.p-score .n span { font-size: .62rem; color: var(--ink-mute); font-family: var(--sans); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 32px; margin-top: .3rem; }
.spark i { flex: 1; background: var(--green-bright); border-radius: 2px 2px 0 0; opacity: .85; }
.p-label { font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); margin: .1rem 0 .5rem; }
.p-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--line-soft); border-radius: 11px; margin-bottom: .4rem; }
.p-row .e { font-size: 1rem; }
.p-row b { font-size: .74rem; display: block; }
.p-row small { font-size: .62rem; color: var(--ink-mute); }
.p-row .go { margin-left: auto; color: var(--ink-mute); font-size: .7rem; }
.p-nav { display: flex; justify-content: space-around; border-top: 1px solid var(--line-soft); padding-top: .5rem; margin-top: .6rem; font-size: .55rem; color: var(--ink-mute); text-align: center; }
.p-nav i { font-style: normal; display: block; font-size: .85rem; }
.p-nav .on { color: var(--green); }

.tile {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: .7rem .85rem; box-shadow: var(--shadow); z-index: 3;
}
.tile small { font-size: .62rem; color: var(--ink-mute); display: block; }
.tile b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.tile b span { font-size: .6rem; font-family: var(--sans); color: var(--ink-mute); font-weight: 400; }
.tile .ok { font-size: .62rem; color: var(--green-bright); font-weight: 600; }
.tile.a { top: 8%; left: 0; }
.tile.b { top: 40%; left: -12px; }
.tile.c { top: 12%; right: 0; }
.tile.d { bottom: 14%; right: -8px; }
.bars { display: flex; align-items: flex-end; gap: 2.5px; height: 22px; margin-top: .25rem; }
.bars i { width: 5px; background: var(--green-bright); border-radius: 1.5px; opacity: .8; }
.ring { width: 40px; height: 40px; border-radius: 50%; margin-top: .3rem;
  background: conic-gradient(var(--green-bright) 0 72%, var(--line-soft) 72% 100%);
  display: grid; place-items: center; }
.ring::after { content: ""; width: 28px; height: 28px; background: var(--card); border-radius: 50%; }

/* ── Feature strip ────────────────────────────────────────────────────────── */
section { padding: clamp(3rem, 5.5vw, 4.6rem) 0; }
.strip4 { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.strip4 > div { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--line-soft); }
.strip4 > div:last-child { border-right: 0; }
.strip4 .ico { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-size: 1.4rem; }
.strip4 p { margin-top: .5rem; font-size: .88rem; color: var(--ink-soft); }

/* ── Section heads ────────────────────────────────────────────────────────── */
.head { max-width: 40rem; margin: 0 auto clamp(2.2rem, 4vw, 3rem); text-align: center; }
.head p { margin-top: .85rem; color: var(--ink-soft); }
.leafmark { color: var(--green-bright); font-size: 1.1rem; margin-top: .6rem; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%;
  border-top: 2px dotted #cfe0d5;
}
.step { text-align: center; position: relative; }
.step .ico { width: 76px; height: 76px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--wash); border: 6px solid var(--paper); display: grid; place-items: center; font-size: 1.6rem; position: relative; z-index: 1; }
.step .n { position: absolute; top: 0; left: 50%; margin-left: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; z-index: 2; }
.step p { margin-top: .5rem; font-size: .88rem; color: var(--ink-soft); }

/* ── Everything you need ──────────────────────────────────────────────────── */
.trio { display: grid; grid-template-columns: 1.35fr .85fr .8fr; gap: 1.2rem; align-items: stretch; }
.slab { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.slab.photo { background: var(--wash); display: grid; grid-template-columns: 1.2fr .8fr; }
.slab .copy { padding: 2rem 1.6rem; }
.slab .copy .chip { margin-bottom: 1rem; }
/* Contained and bottom-aligned, not stretched to the full half. At `cover` the photo grew
   with the column and took half the panel — a stock figure competing with the six lines of
   copy that are the point of it. Sized in rem so she stays the same on any monitor. */
.slab.photo img { align-self: end; justify-self: center; width: auto; max-width: 100%; height: auto; max-height: 17.5rem; object-fit: contain; object-position: bottom; }
.ticks { margin-top: 1.2rem; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; font-size: .9rem; color: var(--ink-soft); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--green-bright); color: #fff; font-size: .68rem; display: grid; place-items: center; }

.progress { background: var(--card); border: 1px solid var(--line); padding: 1.5rem 1.3rem; }
.progress > small { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.big-ring { width: 104px; height: 104px; border-radius: 50%; margin: 1rem auto 1.3rem;
  background: conic-gradient(var(--green-bright) 0 75%, var(--line-soft) 75% 100%); display: grid; place-items: center; }
.big-ring div { width: 78px; height: 78px; background: var(--card); border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1.15; }
.big-ring b { font-family: var(--serif); font-size: 1.4rem; }
.big-ring small { font-size: .6rem; color: var(--ink-mute); display: block; }
.metric { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line-soft); font-size: .84rem; }
.metric i { width: 22px; height: 22px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-size: .7rem; font-style: normal; }
.metric b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; }
.metric .none { color: var(--ink-mute); font-weight: 400; font-size: .8rem; }

.slab.dark { background: var(--green-dark); color: #dbeadf; padding: 2rem 1.6rem; display: flex; flex-direction: column; }
.slab.dark h3 { color: #fff; font-size: 1.15rem; }
.slab.dark p { margin-top: .8rem; font-size: .9rem; color: #b4cfbe; }
.wave { margin-top: auto; padding-top: 2rem; opacity: .5; }

/* ── Specialities / doctors row ───────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 1fr 2.4fr; gap: 2rem; align-items: center; }
.doc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.doc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1rem; text-align: center;
}
.doc .av { width: 60px; height: 60px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto .8rem; }
.doc b { display: block; font-size: .9rem; }
.doc small { display: block; font-size: .78rem; color: var(--ink-mute); margin-top: .2rem; }
.doc .tag { display: inline-block; margin-top: .7rem; font-size: .68rem; font-weight: 650; color: var(--green); background: var(--wash); padding: .22rem .6rem; border-radius: 999px; }
.doc.join { background: var(--wash); border-style: dashed; }
.mini { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.5rem; }
.mini span { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 8px; }

/* ── Principles (in place of testimonials) ────────────────────────────────── */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.say { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.say .q { font-family: var(--serif); font-size: 2rem; color: var(--green-bright); line-height: 1; }
.say p { margin-top: .6rem; font-size: .94rem; color: var(--ink-soft); }
.say footer { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--ink-mute); }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.band {
  background: var(--green-dark); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1.4fr .6fr;
  gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.band h2 { color: #fff; }
.band p { color: #b4cfbe; margin-top: .8rem; }
.band .hero-actions { margin-top: 1.6rem; }
.band-art { display: grid; place-items: center; font-size: 4.5rem; opacity: .9; }

/* ── Trust ────────────────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.trust div { display: flex; gap: .8rem; }
.trust .ico { font-size: 1.25rem; }
.trust b { display: block; font-size: .9rem; }
.trust small { color: var(--ink-mute); font-size: .81rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer.site { background: var(--card); border-top: 1px solid var(--line); padding: 3.2rem 0 1.6rem; margin-top: 2rem; }
.foot { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 2rem; }
.foot h4 { font-size: .82rem; margin: 0 0 .9rem; letter-spacing: .02em; }
.foot li { margin-bottom: .5rem; font-size: .89rem; color: var(--ink-soft); }
.foot a:hover { color: var(--green); }
.social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.social a { width: 34px; height: 34px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-size: .85rem; }
.social a:hover { background: var(--green); color: #fff; }
.legal { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--ink-mute); }
.legal strong { color: var(--ink-soft); }

/* ── Narrow ───────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid, .docs, .band { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .slab.photo { grid-template-columns: 1fr; }
  .slab.photo img { max-height: 14rem; width: auto; margin-top: .5rem; }
  .doc-cards { grid-template-columns: repeat(2, 1fr); }
  .strip4, .steps, .trust, .rail { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .strip4 > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .foot { grid-template-columns: repeat(2, 1fr); }
  .menu, .nav-cta .btn-line { display: none; }
  .burger { display: block; margin-left: auto; }
  .util-in .lead { display: none; }
  .util-in { justify-content: center; }
  .wrap { width: min(1200px, 100% - 2rem); }
  .phone-stage { min-height: 470px; }
  .tile.b, .tile.d { display: none; }
}
@media (max-width: 640px) {
  .strip4, .steps, .trust, .rail, .doc-cards, .foot { grid-template-columns: 1fr; }
  .quad { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  body { font-size: 16px; }
  .tile { display: none; }
}

/* The mobile menu: opened by :target, closed by returning to #. No script. */
#m { display: none; }
#m:target { display: block; position: fixed; inset: 0; z-index: 90; background: var(--paper); padding: 1.4rem; overflow-y: auto; }
#m h4 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 1.5rem 0 .4rem; }
#m a.row { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
#m .x { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 1.5rem; padding: .2rem .7rem; }
