/* ---------------------------------------------------------------------------
   OrdoMed — site vitrine
   Même langage visuel que l'application : vert profond, menthe, papier clair.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f3f7f5;
  --bg-deep: #eaf3ef;
  --panel: #ffffff;
  --ink: #142b27;
  --ink-soft: #34534d;
  --muted: #6b807b;
  --muted-light: #8a9c98;
  --line: #e1e9e6;
  --line-strong: #d3e0dc;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #e6f4f1;
  --accent-softer: #f1f9f7;
  --mint: #6ee7cf;
  --mint-bright: #a4fbe7;
  --sidebar: #0b3b34;
  --sidebar-deep: #072a25;
  --amber: #d97706;
  --amber-soft: #fff6e6;
  --blue: #2563eb;
  --blue-soft: #eef4ff;
  --violet: #7c3aed;
  --violet-soft: #f5f0ff;
  --danger: #b45309;
  --shadow-card: 0 1px 2px rgba(15, 35, 30, 0.03), 0 18px 44px -30px rgba(15, 35, 30, 0.3);
  --shadow-pop: 0 34px 80px -36px rgba(5, 35, 29, 0.42), 0 8px 24px -14px rgba(5, 35, 29, 0.18);
  --radius: 24px;
  --container: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 640px at 92% -10%, #ddf4ed 0%, rgba(221, 244, 237, 0) 60%),
    radial-gradient(900px 540px at -8% 20%, #e8f5f1 0%, rgba(232, 245, 241, 0) 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #bfe8e0;
  color: #062a26;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid #7dd3c7;
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: #fff;
  background: var(--sidebar);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(243, 247, 245, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(211, 224, 220, 0.8);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px -26px rgba(9, 40, 33, 0.4);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px -12px rgba(6, 50, 42, 0.55);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.primary-nav > a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 570;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav > a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.nav-download {
  display: none;
}

.header-cta {
  margin-left: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #128077 0%, #0b5f59 100%);
  box-shadow: 0 12px 24px -14px rgba(8, 91, 83, 0.7);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #159086 0%, #0b5f59 100%);
  box-shadow: 0 18px 30px -16px rgba(8, 91, 83, 0.62);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(15, 35, 30, 0.03);
}

.btn-secondary:hover {
  background: #fff;
  border-color: #bfd7d1;
}

.btn-sm {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 23px;
  border-radius: 13px;
  font-size: 14.5px;
}

.btn-mint {
  color: #06362f;
  background: var(--mint-bright);
  box-shadow: 0 14px 30px -18px rgba(110, 231, 207, 0.8);
}

.btn-mint:hover {
  background: #c1ffef;
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 30px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.44;
  background-image: radial-gradient(rgba(15, 118, 110, 0.17) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 52px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 50%;
  animation: pulse 2.6s ease-out infinite;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 5.05vw, 4.35rem);
  line-height: 0.99;
}

.hero-copy h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(96deg, #0f766e 4%, #129a8d 48%, #0b5f59 100%);
  background-clip: text;
  -webkit-background-clip: text;
  white-space: nowrap;
}

.hero-lead {
  max-width: 530px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 680;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 540;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-notes svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  stroke-width: 2.3;
}

.hero-stage {
  position: relative;
  min-width: 0;
}

.stage-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}

.stage-orb-a {
  top: -70px;
  right: -30px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(110, 231, 207, 0.4), rgba(110, 231, 207, 0) 68%);
}

.stage-orb-b {
  bottom: -90px;
  left: 30px;
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.17), rgba(251, 191, 36, 0) 68%);
}

.app-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #d4e3de;
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-pop);
}

.hero-frame {
  transform: perspective(1400px) rotateY(-1.6deg) rotateX(0.5deg);
  transform-origin: center right;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
  color: var(--muted);
  font-size: 10.5px;
}

.frame-dots {
  display: inline-flex;
  gap: 4px;
}

.frame-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbdad6;
}

.frame-dots i:first-child {
  background: #f0b7a5;
}

.frame-dots i:nth-child(2) {
  background: #f1d69c;
}

.frame-dots i:nth-child(3) {
  background: #a8dbc9;
}

.frame-address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frame-address svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.frame-local {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid #cfe8e1;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-frame img {
  display: block;
  width: 100%;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(215, 231, 226, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px -20px rgba(8, 50, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}

.float-card > span:not(.float-icon):not(.float-check) {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.float-card strong {
  font-size: 11.5px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.float-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.float-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.float-icon svg {
  width: 17px;
  height: 17px;
}

.float-icon-cert {
  background: var(--amber-soft);
  color: var(--amber);
}

.float-icon-db {
  background: var(--violet-soft);
  color: var(--violet);
}

.float-check {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: 2px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}

.float-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.float-rx {
  top: 7%;
  left: -7.5%;
  animation-delay: -1.2s;
}

.float-cert {
  right: -6%;
  bottom: 9%;
  animation-delay: -3.2s;
}

.float-db {
  right: -7%;
  top: 43%;
  animation-delay: -2.1s;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
  stroke-width: 1.7;
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 690;
}

/* ---------------------------------------------------------------------------
   Sections
--------------------------------------------------------------------------- */

.section {
  padding: 106px 0;
}

.section-head {
  max-width: 740px;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.1;
}

.section-head > p:last-child {
  max-width: 620px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.section-head-center > p:last-child {
  margin-inline: auto;
}

/* ---------------------------------------------------------------------------
   Feature cards
--------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #cfe2dc;
  box-shadow: 0 24px 54px -34px rgba(15, 35, 30, 0.35);
}

.feature-rx {
  grid-column: span 7;
  padding-bottom: 0;
}

.feature-cert {
  grid-column: span 5;
  padding-bottom: 0;
}

.feature-small {
  grid-column: span 4;
  min-height: 382px;
}

.feature-copy {
  position: relative;
  z-index: 1;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.kicker-icon svg {
  width: 14px;
  height: 14px;
}

.kicker-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.feature-card h3 {
  max-width: 27ch;
  font-size: 24px;
  line-height: 1.14;
}

.feature-small h3 {
  max-width: 22ch;
  margin-top: 16px;
  font-size: 18.5px;
  line-height: 1.2;
}

.feature-card p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 520;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border: 1px solid #c5e5dd;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")
    center / 9px no-repeat;
}

.feature-visual {
  position: relative;
  margin-top: 26px;
  padding-top: 20px;
}

.mini-frame {
  overflow: hidden;
  border: 1px solid #dce9e5;
  border-radius: 13px 13px 0 0;
  background: #f9fcfb;
  box-shadow: 0 18px 38px -28px rgba(9, 45, 38, 0.38);
}

.mini-frame-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #f4faf8;
}

.mini-frame-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d0ded9;
}

.mini-frame img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: top left;
}

.feature-cert .mini-frame img {
  max-height: 280px;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-box svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.icon-box-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.icon-box-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.feature-small > p {
  margin-top: 10px;
}

.feature-small .check-list {
  margin-top: 13px;
}

/* Mini patient UI */

.mini-patient {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 19px;
}

.mini-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbfa;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 720;
}

.mini-person > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.mini-person strong {
  font-size: 11.5px;
  font-weight: 680;
}

.mini-person small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-pills span {
  padding: 4px 8px;
  border: 1px solid #d4eae4;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 9.5px;
  font-weight: 620;
}

.mini-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #f4dfb9;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #8a4b08;
  font-size: 9.5px;
  font-weight: 570;
}

.mini-warning svg {
  width: 12px;
  height: 12px;
}

/* Mini medication search */

.mini-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  margin-bottom: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #f8fbfa;
  color: var(--muted-light);
  font-size: 10px;
}

.mini-search svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.mini-search kbd {
  margin-left: auto;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted-light);
  font-family: inherit;
  font-size: 8px;
}

.mini-med-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-med-list > div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 9.5px;
}

.mini-med-list span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 560;
}

.mini-med-list em {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 8.5px;
  font-style: normal;
}

.med-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.med-dot-blue {
  background: #60a5fa;
}

.med-dot-amber {
  background: #fbbf24;
}

/* Paper stack */

.paper-stack {
  position: relative;
  height: 156px;
  margin-top: auto;
  padding-top: 16px;
}

.paper {
  position: absolute;
  left: 50%;
  width: 108px;
  height: 140px;
  border: 1px solid #d9e7e2;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 24px -16px rgba(7, 46, 38, 0.34);
}

.paper-back {
  transform: translateX(-58%) rotate(7deg);
  background: #f0f8f5;
}

.paper-front {
  display: flex;
  flex-direction: column;
  padding: 11px 10px;
  transform: translateX(-46%) rotate(-3deg);
}

.paper-brand {
  color: var(--accent);
  font-size: 6px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-title {
  margin: 7px 0 9px;
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.paper-line {
  display: block;
  height: 2px;
  margin-bottom: 5px;
  border-radius: 2px;
  background: #dbe8e4;
}

.w80 {
  width: 80%;
}

.w60 {
  width: 60%;
}

.w70 {
  width: 70%;
}

.paper-sign {
  width: 26px;
  height: 8px;
  margin-top: auto;
  margin-left: auto;
  border-bottom: 1px solid #c8d8d3;
  border-radius: 50%;
}

.format-pill {
  position: absolute;
  right: 12%;
  bottom: 19px;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #cde7e1;
  border-radius: 7px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 720;
  box-shadow: 0 6px 12px -8px rgba(7, 46, 38, 0.35);
}

.format-pill-alt {
  right: 2%;
  bottom: 50px;
  background: var(--accent-soft);
}

/* ---------------------------------------------------------------------------
   Showcase
--------------------------------------------------------------------------- */

.showcase {
  position: relative;
  overflow: hidden;
  padding: 100px 0 104px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 95% 0%, rgba(26, 139, 124, 0.4), transparent 62%),
    radial-gradient(700px 500px at 5% 100%, rgba(251, 191, 36, 0.08), transparent 62%),
    var(--sidebar);
}

.showcase::before {
  content: "Rx";
  position: absolute;
  right: -2%;
  bottom: -23%;
  color: rgba(255, 255, 255, 0.035);
  font-size: 34rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.1em;
  pointer-events: none;
}

.showcase-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.showcase-head h2 {
  max-width: 650px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.showcase-head > p {
  max-width: 380px;
  padding-bottom: 4px;
  color: #b9d6cf;
  font-size: 13.5px;
  line-height: 1.65;
}

.eyebrow-light {
  color: #8fe7d8;
}

.showcase-layout {
  position: relative;
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.showcase-tab {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d3e7e2;
  text-align: left;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.showcase-tab:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.showcase-tab.is-active {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.45);
}

.tab-index {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #8fbab1;
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: 0.03em;
}

.showcase-tab.is-active .tab-index {
  border-color: #cdebe5;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.showcase-tab > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.showcase-tab strong {
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
}

.showcase-tab small {
  margin-top: 2px;
  overflow: hidden;
  color: #94bab2;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.showcase-tab.is-active small {
  color: var(--muted);
}

.showcase-panel {
  min-width: 0;
}

.showcase-frame {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 42px 90px -42px rgba(0, 0, 0, 0.65);
}

.showcase-frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 7px 0 5px;
  color: #a7c7c0;
  font-size: 9.5px;
}

.showcase-frame-bar .frame-dots i {
  background: rgba(255, 255, 255, 0.24);
}

.showcase-frame-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.expand-btn {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  color: #bfdbd4;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.expand-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.expand-btn svg {
  width: 12px;
  height: 12px;
}

.showcase-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #0b3b34;
  cursor: zoom-in;
}

.showcase-image-button img {
  display: block;
  width: 100%;
  border-radius: 10px;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.25s ease;
}

.showcase-image-button img.is-loading {
  opacity: 0.35;
}

body.lightbox-open {
  overflow: hidden;
}

.showcase-image-button:hover img {
  transform: scale(1.012);
}

.showcase-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-top: 17px;
  padding: 0 2px;
}

.showcase-meta > div {
  max-width: 620px;
}

#showcase-kicker {
  display: block;
  margin-bottom: 4px;
  color: #8fe7d8;
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#showcase-caption {
  color: #b9d6cf;
  font-size: 12.5px;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  color: #d8ebe6;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--mint-bright);
}

.text-link svg {
  width: 13px;
  height: 13px;
}

/* ---------------------------------------------------------------------------
   Workflow
--------------------------------------------------------------------------- */

.workflow {
  padding-top: 96px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 54px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 86px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c7ded8 15%, #c7ded8 85%, transparent);
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 13px;
  border: 1px solid #c6e3dc;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 740;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border: 1px solid #d6e7e2;
  border-radius: 19px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 14px 30px -22px rgba(8, 50, 42, 0.4);
}

.step-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.65;
}

.step h3 {
  font-size: 18px;
}

.step p {
  max-width: 310px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   Local / data
--------------------------------------------------------------------------- */

.local {
  padding: 108px 0;
  overflow: hidden;
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 70px;
  align-items: center;
}

.local-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
}

.local-lead {
  max-width: 500px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.check-list-lg {
  gap: 11px;
  margin-top: 26px;
  font-size: 13px;
}

.check-list-lg li::before {
  width: 17px;
  height: 17px;
  background-size: 10px;
}

.local-note {
  display: flex;
  gap: 11px;
  max-width: 500px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid #d9e9e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.6);
}

.local-note svg {
  width: 21px;
  height: 21px;
  margin-top: 1px;
  color: var(--accent);
}

.local-note p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.local-note strong {
  display: block;
  margin-bottom: 1px;
  color: var(--ink);
  font-size: 12px;
}

.local-visual {
  position: relative;
  padding: 34px 26px 42px;
}

.local-orbit {
  position: absolute;
  top: 0;
  right: -7%;
  bottom: 0;
  left: 4%;
  border: 1px solid #d9e9e4;
  border-radius: 30px;
  transform: rotate(-3deg);
  pointer-events: none;
}

.data-card {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin-inline: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-pop);
}

.data-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.data-icon svg {
  width: 19px;
  height: 19px;
}

.data-card-head > div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.data-card-head strong {
  font-size: 13px;
  font-weight: 700;
}

.data-card-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid #cfe8e1;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.local-badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
}

.data-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 18px;
}

.data-stats > div {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  text-align: center;
}

.data-stats strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.data-stats span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.data-path {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.data-path > span {
  color: var(--muted-light);
  font-size: 7.5px;
  font-weight: 680;
  letter-spacing: 0.09em;
}

.data-path code {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.data-path small {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 8px;
}

.data-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.data-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #c9e2dc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 620;
  box-shadow: 0 1px 2px rgba(15, 35, 30, 0.04);
}

.data-button svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.data-link {
  color: var(--accent-strong);
  font-size: 8.5px;
  font-weight: 620;
}

.local-float {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #d7e8e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px -22px rgba(8, 50, 42, 0.42);
}

.local-float > span {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #dcfce7;
  color: #15803d;
}

.local-float svg {
  width: 16px;
  height: 16px;
}

.local-float p {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.local-float strong {
  font-size: 10.5px;
  font-weight: 700;
}

.local-float small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
}

/* ---------------------------------------------------------------------------
   FAQ
--------------------------------------------------------------------------- */

.faq {
  padding: 96px 0 70px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 66px;
  align-items: start;
}

.faq-intro h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.3vw, 2.7rem);
}

.faq-intro > p:not(.eyebrow) {
  max-width: 360px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.faq-tip {
  display: flex;
  gap: 10px;
  max-width: 365px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid #dce9e5;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.56);
}

.faq-tip-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber);
}

.faq-tip-icon svg {
  width: 17px;
  height: 17px;
}

.faq-tip p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.faq-tip strong {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
}

.faq-tip em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 580;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 610;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--accent-strong);
}

.faq-plus {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid #d3e3df;
  border-radius: 50%;
  background: #fff;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 44px 20px 4px;
}

.faq-answer p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.faq-answer code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px;
}

/* ---------------------------------------------------------------------------
   Download
--------------------------------------------------------------------------- */

.download {
  padding: 58px 0 100px;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  gap: 56px;
  align-items: center;
  overflow: hidden;
  padding: 60px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(700px 440px at 88% 10%, rgba(34, 155, 139, 0.46), transparent 65%),
    radial-gradient(600px 400px at -4% 100%, rgba(251, 191, 36, 0.12), transparent 62%),
    var(--sidebar);
  box-shadow: 0 40px 90px -50px rgba(5, 42, 34, 0.75);
}

.download-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.download-ring-a {
  top: -180px;
  right: -80px;
  width: 470px;
  height: 470px;
}

.download-ring-b {
  top: -120px;
  right: -20px;
  width: 340px;
  height: 340px;
}

.download-copy {
  position: relative;
  z-index: 1;
}

.download-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 3.7vw, 3.15rem);
  line-height: 1.04;
}

.download-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin-top: 18px;
  color: #bfd8d2;
  font-size: 14.5px;
  line-height: 1.7;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #d9ebe6;
  font-size: 12.5px;
}

.download-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-list svg {
  width: 15px;
  height: 15px;
  color: var(--mint);
  stroke-width: 2.4;
}

.download-card {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 21px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.55);
}

.download-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.windows-icon {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 10px;
  background: #eef5fb;
  color: #0b6dbb;
}

.windows-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.download-label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.download-card h3 {
  margin-top: 18px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.download-card h3 span {
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0;
}

.download-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.btn-download {
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 13.5px;
}

.download-fineprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.download-fineprint svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.checksum {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.checksum summary {
  color: var(--muted);
  font-size: 9.5px;
  cursor: pointer;
}

.checksum code {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--muted-light);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */

.site-footer {
  padding: 52px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(247, 251, 249, 0.7);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer-brand {
  max-width: 330px;
}

.footer-brand .brand-text strong {
  font-size: 18px;
}

.footer-brand > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 50px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links span {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 740;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  width: fit-content;
  color: var(--muted);
  font-size: 11.5px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 10px;
}

.footer-bottom > p:last-child {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.footer-version {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

/* ---------------------------------------------------------------------------
   Lightbox
--------------------------------------------------------------------------- */

.lightbox {
  display: none;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 30px;
  border: 0;
  color: #fff;
  background: rgba(4, 25, 21, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
}

.lightbox img {
  display: block;
  max-width: min(94vw, 1600px);
  max-height: 83vh;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}

.lightbox p {
  margin-top: 14px;
  color: #b9d6cf;
  font-size: 12px;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox::backdrop {
  background: transparent;
}

/* ---------------------------------------------------------------------------
   Motion
--------------------------------------------------------------------------- */

.reveal {
  animation: rise 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.reveal[data-delay="80"] {
  animation-delay: 80ms;
}

.reveal[data-delay="120"] {
  animation-delay: 120ms;
}

.reveal[data-delay="160"] {
  animation-delay: 160ms;
}

.reveal[data-delay="200"] {
  animation-delay: 200ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero-inner {
    gap: 34px;
  }

  .float-rx {
    left: -3%;
  }

  .float-db,
  .float-cert {
    right: -2%;
  }

  .feature-rx,
  .feature-cert {
    grid-column: span 12;
  }

  .feature-rx {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 26px;
    align-items: center;
  }

  .feature-rx .feature-visual {
    margin-top: 0;
    padding-top: 0;
  }

  .feature-cert {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 26px;
    align-items: center;
  }

  .feature-cert .feature-visual {
    margin-top: 0;
    padding-top: 0;
  }

  .feature-small {
    grid-column: span 4;
  }

  .showcase-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .nav-wrap {
    min-height: 72px;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-pop);
  }

  .nav-open .primary-nav {
    display: flex;
  }

  .primary-nav > a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .nav-download {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    border: 1px solid var(--line);
    color: var(--accent-strong);
    background: var(--accent-soft);
  }

  .nav-download svg {
    width: 15px;
    height: 15px;
  }

  .header-cta {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
    margin-left: 0;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .hero-stage {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .hero-frame {
    transform: none;
  }

  .float-rx {
    top: 5%;
    left: -2%;
  }

  .float-db {
    right: -2%;
    top: 39%;
  }

  .float-cert {
    right: -1%;
    bottom: 6%;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .showcase-head {
    display: block;
  }

  .showcase-head > p {
    margin-top: 16px;
  }

  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .showcase-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .showcase-tab {
    background: rgba(255, 255, 255, 0.045);
  }

  .showcase-tab.is-active {
    background: #fff;
  }

  .local-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .local-copy {
    max-width: 620px;
  }

  .local-copy h2 {
    max-width: 16ch;
  }

  .local-visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .faq-intro {
    max-width: 620px;
  }

  .faq-intro h2 {
    max-width: 18ch;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px;
  }

  .download-copy h2 {
    max-width: 16ch;
  }

  .download-card {
    max-width: 460px;
  }

  .footer-main {
    flex-direction: column;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 76px 0;
  }

  .header-cta {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-inner {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.4rem);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-notes {
    gap: 7px 15px;
  }

  .float-card {
    display: none;
  }

  .hero-stage {
    padding-bottom: 0;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .feature-grid {
    gap: 14px;
    margin-top: 32px;
  }

  .feature-rx,
  .feature-cert {
    display: flex;
    grid-column: span 12;
    padding: 22px;
    padding-bottom: 0;
  }

  .feature-rx .feature-visual,
  .feature-cert .feature-visual {
    margin-top: 22px;
  }

  .feature-small {
    grid-column: span 12;
    min-height: 0;
    padding: 22px;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .mini-frame img {
    max-height: 240px;
  }

  .mini-patient,
  .mini-search,
  .paper-stack {
    margin-top: 20px;
  }

  .showcase {
    padding: 72px 0 78px;
  }

  .showcase-tabs {
    grid-template-columns: 1fr;
  }

  .showcase-tab {
    padding: 11px 12px;
  }

  .showcase-tab small {
    white-space: normal;
  }

  .showcase-frame {
    padding: 6px;
  }

  .showcase-frame-bar {
    height: 30px;
  }

  .showcase-meta {
    display: block;
  }

  .showcase-meta .text-link {
    margin-top: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 36px;
  }

  .steps::before {
    display: none;
  }

  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    text-align: left;
  }

  .step-num {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .step-icon {
    grid-column: 1;
    grid-row: 2;
    width: 52px;
    height: 52px;
    margin: 8px 0 0;
    border-radius: 15px;
  }

  .step h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-top: 0;
  }

  .step p {
    grid-column: 2;
    grid-row: 2;
    margin: 2px 0 0;
  }

  .local {
    padding: 78px 0;
  }

  .local-visual {
    padding: 20px 8px 42px;
  }

  .local-orbit {
    right: -2%;
    left: -2%;
  }

  .data-card {
    padding: 16px;
  }

  .data-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .local-float {
    right: 0;
    bottom: 6px;
  }

  .faq {
    padding: 76px 0 50px;
  }

  .faq-answer {
    padding-right: 10px;
  }

  .download {
    padding: 36px 0 76px;
  }

  .download-panel {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .download-card {
    padding: 22px;
  }

  .footer-links {
    gap: 32px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom > p:last-child {
    margin-top: 10px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    max-height: 78vh;
  }
}

@media (max-width: 430px) {
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .data-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
