/* me.cliniweb home - patient-facing promo. Tokens + font from /assets/portal.css (premiumUI). */
.home { background: var(--premium-canvas); font-size: 16px; }
.h-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.h-kicker {
  display: inline-block; margin-bottom: 10px;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--premium-muted);
}
.h-kicker-light { color: #b9d2c3; }

/* ---- Buttons ---- */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border: 1px solid #dde3db; border-radius: 8px; background: #fff; color: #506652;
  font: inherit; font-size: .92rem; font-weight: 550; text-decoration: none; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s, transform .06s;
}
.h-btn:hover { background: #f3f6f0; border-color: #b9cdbd; color: var(--premium-accent); }
.h-btn:active { transform: translateY(1px); }
.h-btn:focus-visible { outline: 2px solid #547b42; outline-offset: 2px; }
.h-btn-primary {
  background: var(--premium-accent); border-color: var(--premium-accent); color: #fff; font-weight: 600;
  box-shadow: 0 2px 3px rgba(28,57,43,.10), inset 0 1px 0 rgba(255,255,255,.08);
}
.h-btn-primary:hover { background: var(--premium-accent-dark); border-color: var(--premium-accent-dark); color: #fff; }
.h-btn-light { background: #fff; border-color: #fff; color: var(--premium-accent); font-weight: 600; }
.h-btn-light:hover { background: #eef4ef; border-color: #eef4ef; }
.h-btn-ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #e6efe9; }
.h-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }

/* ---- Nav ---- */
.h-nav { position: sticky; top: 0; z-index: 10; background: rgba(245,245,241,.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(229,233,227,.8); }
.h-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.h-brand { display: flex; align-items: center; gap: 9px; color: var(--premium-ink); text-decoration: none; font-weight: 650; font-size: 1.08rem; letter-spacing: -.02em; }
.h-brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--premium-accent) center / 16px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.h-brand-sub { margin-left: 2px; font-weight: 450; font-size: .8rem; color: var(--premium-muted); letter-spacing: 0; }
.h-nav-cta { font-size: .84rem; font-weight: 600; color: var(--premium-accent); text-decoration: none; padding: 8px 12px; border-radius: 7px; }
.h-nav-cta:hover { background: var(--premium-accent-soft); }

/* ---- Hero ---- */
.h-hero { padding: clamp(40px, 8vw, 88px) 0 clamp(40px, 7vw, 72px); overflow: hidden; }
.h-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.h-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 550; line-height: 1.04; letter-spacing: -.045em;
}
.h-hero h1 em { font-style: normal; color: var(--premium-accent); }
.h-lead { max-width: 54ch; margin: 0 0 28px; color: #4d5c55; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; }
.h-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.h-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--premium-muted); font-size: .8rem; font-weight: 550; }
.h-trust li { display: flex; align-items: center; gap: 7px; }
.h-trust svg { width: 17px; height: 17px; color: var(--premium-accent); }

/* Illustrative phone */
.h-phone-wrap { position: relative; display: flex; justify-content: center; }
.h-phone-wrap::before {
  content: ""; position: absolute; inset: 8% -10% 4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36,91,75,.14), rgba(36,91,75,0));
}
.h-phone {
  position: relative; z-index: 1; width: min(310px, 100%); aspect-ratio: 9 / 16; padding: 54px 14px 18px;
  border-radius: 40px; background: linear-gradient(170deg, #20493d, #163a30 55%, #12322a);
  box-shadow: 0 0 0 9px #0f231d, 0 0 0 10px #2c4a40, 0 40px 70px -30px rgba(18,50,42,.55);
}
.h-phone-notch { position: absolute; top: 12px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); border-radius: 14px; background: #0f231d; }
.h-phone-time { margin: 0 0 18px; text-align: center; color: rgba(255,255,255,.88); font-size: 2.6rem; font-weight: 300; letter-spacing: -.03em; }
.h-note {
  display: grid; gap: 2px; margin-bottom: 10px; padding: 11px 13px;
  border-radius: 14px; background: rgba(255,255,255,.93); color: var(--premium-ink);
  font-size: .76rem; line-height: 1.4;
  box-shadow: 0 8px 18px -12px rgba(0,0,0,.4);
  animation: h-note-in .55s cubic-bezier(.2,.8,.2,1) backwards;
}
.h-note strong { font-size: .8rem; font-weight: 650; }
.h-note-app { display: flex; align-items: center; gap: 6px; color: var(--premium-muted); font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.h-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--premium-accent); }
.h-dot-wa { border-radius: 50%; background: #25d366; }
.h-note-btn { justify-self: start; margin-top: 6px; padding: 4px 10px; border-radius: 6px; background: var(--premium-accent); color: #fff; font-size: .7rem; font-weight: 600; }
.h-note-1 { animation-delay: .25s; }
.h-note-2 { animation-delay: .7s; }
.h-note-3 { animation-delay: 1.15s; }
@keyframes h-note-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .h-note { animation: none; } }

/* ---- Sections ---- */
.h-section { padding: clamp(52px, 8vw, 92px) 0; }
.h-section-head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 44px); }
.h-section h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 550; line-height: 1.14; letter-spacing: -.04em; }
.h-section-head p, .h-secure-grid > div > p { margin: 0; color: #4d5c55; font-size: 1rem; line-height: 1.65; }

.h-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-feature {
  padding: 24px 22px;
  background: #fff; border: 1px solid #e2e7df; border-radius: 13px;
  box-shadow: 0 3px 5px rgba(39,59,36,.025), 0 18px 40px -32px rgba(31,56,32,.20);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.h-feature:hover { transform: translateY(-2px); border-color: #cfdcd1; box-shadow: 0 3px 5px rgba(39,59,36,.03), 0 24px 44px -30px rgba(31,56,32,.28); }
.h-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 9px; background: var(--premium-accent-soft); color: var(--premium-accent); }
.h-ico svg { width: 21px; height: 21px; }
.h-feature h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.h-feature p { margin: 0; color: var(--premium-muted); font-size: .88rem; line-height: 1.6; }

/* Security band */
.h-secure { background: #fff; border-top: 1px solid var(--premium-line); border-bottom: 1px solid var(--premium-line); }
.h-secure-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.h-checks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.h-checks li {
  position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid var(--premium-line);
  color: var(--premium-muted); font-size: .9rem; line-height: 1.55;
}
.h-checks li:first-child { padding-top: 4px; }
.h-checks li:first-child::before { top: 4px; }
.h-checks li:last-child { border-bottom: 0; }
.h-checks li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--premium-accent-soft) center / 13px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23245b4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
}
.h-checks strong { display: block; color: var(--premium-ink); font-weight: 600; }

/* Journey */
.h-journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.h-journey li { position: relative; padding: 0 18px 0 0; }
.h-journey li::after { content: ""; position: absolute; top: 15px; left: 40px; right: 12px; height: 1px; background: #cfdcd1; }
.h-journey li:last-child::after { display: none; }
.h-journey span {
  display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 8px; background: var(--premium-accent); color: #fff; font-size: .8rem; font-weight: 650;
}
.h-journey h3 { margin: 0 0 4px; font-size: .98rem; font-weight: 600; }
.h-journey p { margin: 0; color: var(--premium-muted); font-size: .84rem; line-height: 1.55; }

/* CTA */
.h-cta-section { padding-top: 0; }
.h-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 16px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(126,178,150,.28), transparent 55%),
    linear-gradient(160deg, #245b4b, #194637);
  box-shadow: 0 30px 60px -40px rgba(18,50,42,.6);
}
.h-cta h2 { color: #fff; }
.h-cta-copy p { margin: 0; color: #cfe0d6; line-height: 1.65; }
.h-cta-box { padding: 18px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.h-share-preview {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px 10px 10px 3px;
  background: #fff; color: var(--premium-ink); font-size: .86rem; line-height: 1.55;
}
.h-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.h-share-actions .h-btn { flex: 1 1 auto; min-height: 42px; font-size: .86rem; }
.h-already { margin: 22px 0 0; text-align: center; color: var(--premium-muted); font-size: .86rem; }

/* Footer */
.h-foot { padding: 26px 0 34px; border-top: 1px solid var(--premium-line); color: #8a948e; font-size: .78rem; }
.h-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .h-features { grid-template-columns: repeat(2, 1fr); }
  .h-journey { grid-template-columns: 1fr; gap: 18px; }
  .h-journey li { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 0; }
  .h-journey span { grid-row: span 2; margin: 0; }
  .h-journey li::after { top: 36px; bottom: -14px; left: 15px; right: auto; width: 1px; height: auto; }
}
@media (max-width: 820px) {
  .h-hero-grid, .h-secure-grid, .h-cta { grid-template-columns: 1fr; }
  .h-phone-wrap { order: 2; }
  .h-phone { width: min(280px, 82%); }
}
@media (max-width: 560px) {
  .h-features { grid-template-columns: 1fr; }
  .h-hero-actions .h-btn { flex: 1 1 100%; }
  .h-brand-sub { display: none; }
}
