/* Peptivo site, from the "Ledger Landing" design: one stylesheet for the landing and legal pages. */
:root {
  --blue: #0068ff;
  --blue-2: #38a0ff;
  --blue-deep: #0052d6;
  --ink: #13213a;
  --body: #4c586d;
  --muted: #5d6a80;
  --muted-2: #8591a5;
  --line: #e1e8f1;
  --bg: #f5f8fc;
  --tint: #e3efff;
  --card: #ffffff;
  --green: #1e9e74;
  --pink: #d23a6e;
  --shadow: 0 20px 44px -30px rgba(20, 50, 100, 0.45);
  --pad-x: clamp(20px, 5vw, 56px);
  /* Motion tokens: every transition and animation takes its timing from here. */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --reveal-ms: 800ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font-family: Manrope, system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #0052cc; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 10px; }
img { max-width: 100%; display: block; }
.page { overflow-x: clip; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 10px; z-index: 100; }

/* ---------- Nav: a floating glass pill ---------- */
.topbar { position: sticky; top: 0; z-index: 50; padding: 12px clamp(12px, 3vw, 32px); }
/* A compact pill, only as wide as its contents and centred. On narrow screens it shrinks and the links that don't fit are clipped. */
.nav {
  width: max-content; max-width: 100%; margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 22px; padding: 0 6px 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px -18px rgba(20, 50, 100, 0.35); border: 1px solid rgba(255, 255, 255, 0.9);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(0, 104, 255, 0.7); }
.mark i { color: #fff; font-size: 18px; }
.brand b { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav .mark { width: 32px; height: 32px; border-radius: 10px; }
.nav .mark i { font-size: 17px; }
.nav .brand b { font-size: 17px; }
.nav-links { flex: 0 1 auto; min-width: 0; height: 36px; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; align-items: center; line-height: 36px; font-size: 14px; font-weight: 600; }
.nav-links:empty { display: none; }
.nav-links a { color: var(--body); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.nav-cta:hover { color: #fff; background: #0b1220; }

/* ---------- Shared ---------- */
.sec { padding: 0 var(--pad-x) clamp(64px, 10vw, 120px); }
.inner { max-width: 1180px; margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.head { display: flex; flex-direction: column; gap: 14px; }

/* Store badge (Google Play). "Coming soon" until the listing is live. */
.store { height: 58px; padding: 0 20px 0 16px; border-radius: 18px; background: #000; color: #fff; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6); transition: transform 0.25s var(--ease); }
.store:hover { color: #fff; transform: translateY(-2px); }
.store i { font-size: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: 0.8; }
.store strong { font-size: 18px; font-weight: 700; }
.store.soon { cursor: default; }
.store.soon:hover { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) var(--pad-x) clamp(56px, 8vw, 110px); }
.hero-glow { position: absolute; inset: -120px 0 0 0; pointer-events: none; background: radial-gradient(60% 50% at 75% 30%, rgba(56, 160, 255, 0.35), rgba(56, 160, 255, 0) 70%), radial-gradient(45% 40% at 10% 10%, rgba(0, 104, 255, 0.18), rgba(0, 104, 255, 0) 70%); }
.hero-row { position: relative; max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 80px); }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; box-shadow: 0 8px 20px -14px rgba(20, 50, 100, 0.4); font-size: 13px; font-weight: 700; }
.pill span { padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--blue); font-size: 11px; font-weight: 800; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; }
.grad-text { background: linear-gradient(120deg, var(--blue) 10%, var(--blue-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--body); max-width: 520px; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; font-weight: 600; color: var(--body); }
.ticks span { display: flex; align-items: center; gap: 6px; }
.ticks i { color: var(--blue); font-size: 18px; }
.laurels { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; }
.laurel { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.laurel svg { fill: var(--muted-2); }
.laurel .flip { transform: scaleX(-1); }
.laurel div { text-align: center; line-height: 1.15; padding: 0 2px; }
.laurel .t { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.laurel .m { font-size: 15px; font-weight: 800; }
.laurel .s { font-size: 10px; font-weight: 600; color: var(--muted); }

/* Phone with five rotating app screens */
.stage-col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.stage { position: relative; width: min(100%, 460px); height: 660px; display: grid; place-items: center; perspective: 1400px; }
.stage-glow { position: absolute; width: 420px; height: 420px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 104, 255, 0.28), rgba(0, 104, 255, 0) 68%); filter: blur(10px); }
.tilt { transition: transform 0.4s var(--ease); transform-style: preserve-3d; }
.device { position: relative; width: 300px; height: 620px; border-radius: 54px; background: linear-gradient(145deg, #2a3348, #0b1220); padding: 10px; box-shadow: 0 50px 90px -30px rgba(10, 30, 80, 0.55), 0 30px 60px -40px rgba(0, 104, 255, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.device .btn-l { position: absolute; left: -3px; top: 130px; width: 3px; height: 56px; border-radius: 2px; background: #1b2335; }
.device .btn-r { position: absolute; right: -3px; top: 170px; width: 3px; height: 80px; border-radius: 2px; background: #1b2335; }
.display { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--bg); font-size: 12px; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 999px; background: #000; z-index: 5; }
.status { position: absolute; top: 14px; left: 26px; right: 22px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; z-index: 4; color: var(--ink); transition: color 0.5s; }
.status.light { color: #fff; }
.status span:last-child { display: flex; gap: 4px; }
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(24%) scale(0.96); transition: opacity 0.6s ease, transform 0.7s var(--ease), visibility 0s linear 0.7s; }
.screen.before { transform: translateX(-24%) scale(0.96); }
.screen.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scr-pad { padding: 48px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.scr-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.w { background: #fff; border-radius: 16px; }
.sm { font-size: 10px; color: var(--muted); }
.chipline { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 10px; background: #fff; }
.tag.on { color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--blue), #2e8bff); }

/* Progress rings inside the phone: an SVG arc whose length is the value. */
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cup { transform-origin: bottom; }
.grow-x { transform-origin: left; }
.pop { transform-box: fill-box; transform-origin: center; }
/* Counting numbers keep equal-width digits so nothing shifts while they change. */
[data-count] { font-variant-numeric: tabular-nums; }

.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 36px -18px rgba(20, 50, 100, 0.5); z-index: 2; }
.chip > span:first-child { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.chip i { font-size: 18px; }
.chip small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.chip strong { display: block; font-size: 15px; font-weight: 800; }
.chip-1 { left: 0; top: 118px; }
.chip-2 { right: 0; top: 300px; }
.chip-3 { left: 12px; bottom: 92px; }
@media (max-width: 480px) { .chip { transform: scale(0.86); } .chip-1 { left: -6px; } .chip-2 { right: -6px; } }

.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -16px rgba(20, 50, 100, 0.4); max-width: 100%; overflow-x: auto; }
.tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--body); transition: background 0.3s, color 0.3s; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.tabs button:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }

/* ---------- Medicine marquee ---------- */
.marquee { padding: 18px 0; background: var(--ink); color: #fff; overflow: hidden; }
.marquee-track { display: flex; gap: 44px; width: max-content; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.marquee-track span { display: flex; align-items: center; gap: 44px; }
.marquee-track span:nth-child(even) { opacity: 0.65; }
.marquee-track i { font-size: 14px; color: var(--blue-2); }

/* ---------- Features ---------- */
.features { padding: clamp(64px, 10vw, 120px) var(--pad-x); }
.features .inner { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.features .head { max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.card { background: #fff; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 104, 255, 0.45); }
.card .ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; }
.card .ico i { font-size: 28px; }
.card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- Who it's for ---------- */
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.people .inner, .pricing-wrap { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 48px); }
.persons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.person { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; box-shadow: 0 26px 50px -32px rgba(20, 50, 100, 0.55); background: var(--art, linear-gradient(160deg, #cfe3ff, #8ec2ff)); }
.person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .art { position: absolute; inset: 0; display: grid; place-items: center; }
.person .art i { font-size: 140px; color: rgba(255, 255, 255, 0.75); filter: drop-shadow(0 20px 30px rgba(0, 40, 120, 0.25)); }
.person .art::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%); }
.caption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.caption > span:first-child { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); display: grid; place-items: center; flex: none; }
.caption i { color: #fff; font-size: 20px; }
.caption strong { display: block; font-weight: 800; font-size: 15px; }
.caption small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Gradient band ---------- */
.band { border-radius: clamp(28px, 4vw, 44px); padding: clamp(32px, 5vw, 56px); background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 50%, var(--blue-2) 100%); color: #fff; position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 104, 255, 0.7); }
.band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%); right: -120px; top: -160px; }
.band-in { position: relative; display: flex; flex-direction: column; gap: 30px; }
.band h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; max-width: 640px; text-wrap: balance; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.promise { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); }
.promise i { font-size: 24px; }
.promise strong { font-size: 16px; font-weight: 800; }
.promise span { font-size: 13px; line-height: 1.5; opacity: 0.88; }
.promise a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pricing ---------- */
.price-box { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); align-items: center; background: #fff; border-radius: clamp(28px, 4vw, 44px); padding: clamp(28px, 5vw, 60px); box-shadow: 0 30px 70px -40px rgba(20, 50, 100, 0.5); }
.price-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 18px; }
.plans { flex: 1 1 320px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.plan { position: relative; border-radius: 26px; padding: 24px; background: var(--bg); border: 1.5px solid var(--line); }
.plan.best { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border: 0; box-shadow: 0 24px 44px -22px rgba(0, 104, 255, 0.8); }
.plan .name { font-size: 14px; font-weight: 700; color: var(--muted); }
.plan.best .name { color: #fff; opacity: 0.9; }
.plan .amt { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.plan .was { font-size: 15px; font-weight: 700; text-decoration: line-through; opacity: 0.75; margin-right: 6px; letter-spacing: 0; }
.plan .per { font-size: 13px; color: var(--muted); }
.plan.best .per { color: #fff; opacity: 0.9; }
.plan .save { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, 0.22); padding: 5px 10px; border-radius: 999px; }
.fine { font-size: 12px; color: var(--muted-2); line-height: 1.5; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-size: 20px; font-weight: 700; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; font-size: 15px; line-height: 1.65; color: var(--body); }

/* ---------- Footer ---------- */
.foot { padding: 40px var(--pad-x) 48px; border-top: 1px solid var(--line); }
.foot-row { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot .mark { width: 30px; height: 30px; border-radius: 10px; }
.foot .mark i { font-size: 16px; }
.foot .brand b { font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; font-weight: 600; }
.foot-links a { padding: 12px 0; }
.foot-links a { color: var(--body); }
.foot-links a:hover { color: var(--ink); }
.foot-note { max-width: 1180px; margin: 22px auto 0; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

/* ---------- Legal pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; font-size: 16px; line-height: 1.65; color: var(--body); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); margin-top: 40px; margin-bottom: 10px; }
.doc h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin-top: 22px; margin-bottom: 6px; }
.doc p { margin: 0 0 14px; }
.doc .meta { color: var(--muted); font-weight: 700; margin: 10px 0 26px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); background: var(--tint); }
.note { background: var(--tint); border-radius: 18px; padding: 16px 18px; color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
@media (max-width: 560px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border: 0; padding: 4px 14px; } .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }

/* ---------- Motion ---------- */
/* Without JavaScript everything is visible; main.js hides below-the-fold reveals and fades them in. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen, .tilt, .card, .store, .status { transition: none; }
  .card:hover, .store:hover { transform: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  /* "Who it's for": wide cards instead of tall ones, so the section isn't three screens long. */
  .person { aspect-ratio: 16 / 11; }
  .person .art { place-items: start center; padding-top: 6%; }
  .person .art i { font-size: 96px; }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; }
}
@media (max-width: 480px) {
  /* The phone's tabs fit the screen instead of running off the edge. */
  .tabs { gap: 2px; padding: 4px; }
  .tabs button { padding: 8px 9px; font-size: 12px; }
  .chip { transform: scale(0.82); }
}
@media (max-width: 440px) {
  /* Too narrow for links beside the logo and button: show just those two. */
  .nav-links { display: none; }
  .nav { gap: 14px; }
}
@media (max-width: 400px) {
  /* Shorter tab names on small phones so all five fit. */
  .xs-hide { display: none; }
}
