:root {
  --paper: #f5f0e8;
  --paper-deep: #ebe4d9;
  --ink: #20332d;
  --muted: #68766f;
  --sage: #53766a;
  --sage-dark: #345a4e;
  --mint: #dce9df;
  --terra: #c96e52;
  --clay: #ead2c5;
  --white: #fffdf9;
  --line: rgba(47, 78, 68, .14);
  --shadow: 0 24px 70px rgba(54, 70, 62, .14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 110, 82, .11), transparent 25rem),
    radial-gradient(circle at 5% 42%, rgba(83, 118, 106, .10), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.03em;
  font-size: 20px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--sage-dark);
}
.brand-mark svg { width: 25px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.version {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: 70px 0 88px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sage);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}
.eyebrow span { width: 26px; height: 2px; background: var(--terra); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 680px;
  margin: 18px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}
h1 em { color: var(--terra); font-style: italic; }
.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}
.actions { display: flex; align-items: center; gap: 20px; margin: 34px 0; }
.download-button {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 20px;
  border-radius: 18px;
  background: var(--sage-dark);
  color: white;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(52, 90, 78, .22);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.download-button:hover { transform: translateY(-2px); background: #294d42; box-shadow: 0 18px 34px rgba(52, 90, 78, .28); }
.download-button:focus-visible { outline: 3px solid var(--terra); outline-offset: 4px; }
.download-button svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-button span { display: flex; flex-direction: column; }
.download-button small { opacity: .76; font-size: 11px; }
.download-button strong { font-size: 15px; }
.android-note { color: var(--muted); font-size: 13px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row i { font-style: normal; font-weight: 900; color: var(--terra); }

.preview-wrap { position: relative; min-height: 510px; display: grid; place-items: center; }
.preview-card {
  position: relative;
  z-index: 2;
  width: min(430px, 90%);
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 42px;
  background: rgba(255,255,255,.47);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  overflow: hidden;
}
.preview-card img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 33px; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(83, 118, 106, .22); }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 390px; height: 390px; border-color: rgba(201, 110, 82, .24); }
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 15px;
  background: rgba(255,253,249,.9);
  box-shadow: 0 12px 28px rgba(49,69,60,.13);
  backdrop-filter: blur(12px);
  font-size: 12px;
}
.float-status { top: 12%; left: -1%; }
.float-status b { width: 9px; height: 9px; border-radius: 50%; background: #65a87e; box-shadow: 0 0 0 4px rgba(101,168,126,.16); }
.float-reading { right: -2%; bottom: 14%; flex-direction: column; align-items: flex-start; gap: 0; }
.float-reading strong { color: var(--terra); font-family: Georgia, serif; font-size: 22px; line-height: 1; }
.float-reading span { color: var(--muted); }

.how, .features { padding: 96px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 44px; }
.section-number { color: var(--terra); font: italic 20px Georgia, serif; }
.section-heading p, .feature-intro > p, .privacy p, .final-cta p { margin-bottom: 7px; color: var(--sage); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
h2 { margin-bottom: 16px; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,249,.65);
}
.steps article:nth-child(2) { transform: translateY(18px); background: var(--mint); }
.steps small { display: block; margin: 26px 0 8px; color: var(--terra); font-weight: 800; }
.steps h3, .feature-grid h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.02em; }
.steps p, .feature-grid p { color: var(--muted); font-size: 14px; }
.step-icon { width: 45px; height: 45px; display: block; position: relative; border-radius: 15px; background: var(--clay); }
.step-icon::before, .step-icon::after { content: ""; position: absolute; }
.camera::before { inset: 13px 9px 10px; border: 2px solid var(--terra); border-radius: 5px; }
.camera::after { width: 7px; height: 7px; left: 19px; top: 20px; border: 2px solid var(--terra); border-radius: 50%; }
.pulse::before { width: 27px; height: 2px; top: 22px; left: 9px; background: var(--sage); transform: rotate(-8deg); }
.pulse::after { width: 8px; height: 16px; top: 13px; left: 18px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(31deg); }
.chart::before { inset: 10px; border-left: 2px solid var(--terra); border-bottom: 2px solid var(--terra); }
.chart::after { width: 23px; height: 12px; left: 12px; top: 14px; border-top: 2px solid var(--terra); transform: skewY(-27deg); }

.feature-intro { max-width: 640px; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.feature-grid article { border-radius: var(--radius); }
.feature-main { grid-row: span 2; min-height: 420px; padding: 36px; color: white; background: var(--sage-dark); overflow: hidden; position: relative; }
.feature-main p { max-width: 520px; color: rgba(255,255,255,.7); font-size: 16px; }
.tag { display: inline-block; margin-bottom: 60px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 99px; font-size: 11px; }
.queue-visual { position: absolute; left: 36px; right: 36px; bottom: 38px; display: flex; align-items: center; gap: 9px; }
.queue-visual span { width: 42px; height: 56px; display: block; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.08); }
.queue-visual span:nth-child(4), .queue-visual span:nth-child(5) { opacity: .35; }
.queue-visual b { margin-left: 8px; font-size: 11px; color: rgba(255,255,255,.55); }
.feature-small { min-height: 202px; padding: 26px; border: 1px solid var(--line); background: rgba(255,253,249,.7); }
.medicine-card { background: var(--clay); }
.mini-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 12px; background: rgba(255,255,255,.65); color: var(--terra); font-size: 22px; font-weight: 800; }

.privacy { margin: 40px auto 100px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: 34px; background: rgba(255,253,249,.68); }
.privacy h2 { margin-bottom: 9px; font-size: clamp(30px, 4vw, 46px); }
.privacy span { color: var(--muted); }
.shield { width: 74px; height: 82px; display: grid; place-items: center; color: white; background: var(--sage); font-size: 26px; clip-path: polygon(50% 0, 94% 17%, 88% 70%, 50% 100%, 12% 70%, 6% 17%); }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 28px; padding: 46px; border-radius: 34px; background: var(--clay); }
.final-cta h2 { margin-bottom: 7px; }
.final-cta > div > span { color: var(--muted); font-size: 13px; }
.compact { flex-shrink: 0; }
.medical-note { padding: 18px 22px; border-left: 3px solid var(--terra); background: rgba(255,255,255,.4); color: var(--muted); font-size: 12px; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.mobile-download { display: none; }

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 28px, 640px); }
  .hero { grid-template-columns: 1fr; padding-top: 52px; text-align: center; }
  .eyebrow, .actions, .trust-row { justify-content: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  h1 { font-size: clamp(46px, 13vw, 70px); }
  .preview-wrap { min-height: 450px; }
  .orbit-one { width: min(470px, 100vw); height: min(470px, 100vw); }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: auto; }
  .steps article:nth-child(2) { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-main { grid-row: auto; min-height: 400px; }
  .privacy { align-items: start; }
  .final-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  body { padding-bottom: 82px; }
  .site-header { min-height: 68px; }
  .hero { min-height: auto; padding: 42px 0 64px; gap: 26px; }
  .lead { font-size: 17px; }
  .actions { width: 100%; flex-direction: column; gap: 10px; margin: 26px 0; }
  .download-button { width: 100%; justify-content: center; }
  .trust-row { gap: 10px 16px; }
  .preview-wrap { min-height: 360px; }
  .preview-card { width: 88%; border-radius: 30px; }
  .preview-card img { border-radius: 23px; }
  .orbit-one { width: 350px; height: 350px; }
  .orbit-two { width: 280px; height: 280px; }
  .float-status { top: 7%; left: 0; }
  .float-reading { right: 0; bottom: 8%; }
  .how, .features { padding: 68px 0; }
  .section-heading { gap: 14px; margin-bottom: 28px; }
  .steps article, .feature-small { padding: 23px; }
  .feature-main { min-height: 430px; padding: 28px; }
  .tag { margin-bottom: 48px; }
  .queue-visual { left: 28px; right: 28px; }
  .queue-visual span { width: 34px; height: 48px; }
  .queue-visual b { display: none; }
  .privacy { grid-template-columns: 1fr; margin-bottom: 68px; padding: 28px; }
  .shield { width: 56px; height: 62px; }
  .final-cta { padding: 28px; }
  .final-cta .download-button { display: none; }
  footer { min-height: 100px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  .mobile-download {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 10px max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: rgba(245,240,232,.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(15px);
  }
  .mobile-download a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-radius: 16px; background: var(--sage-dark); color: white; text-decoration: none; }
  .mobile-download span { font-weight: 800; }
  .mobile-download strong { color: rgba(255,255,255,.65); font-size: 11px; }
}

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