/* =====================================================================
   Peptide Mate — marketing site
   Palette: Conduit Blue #1E5BFF (primary / structure)
   + Coral #FF6B5C (accent / CTA) on white,
   warm-charcoal ink #15181C, warm-dark sections #0E1517
   ===================================================================== */

:root {
  /* Brand */
  --blue:      #1E5BFF;   /* Conduit Blue — primary / structure  */
  --blue-700:  #1746CC;
  --blue-050:  #EAF0FF;
  --coral:     #FF6B5C;   /* Coral / orange — accent + CTA       */
  --coral-700: #E14B3C;
  --coral-050: #FFEDEA;

  /* Neutrals */
  --ink:       #15181C;   /* near-black navy ink */
  --ink-soft:  #39424A;
  --muted:     #6B7680;
  --line:      #E4E9E8;
  --cream:     #FFFFFF;   /* page background (white) */
  --cream-2:   #F4F6F5;   /* subtle cool-grey alt sections */
  --white:     #FFFFFF;

  /* Dark sections */
  --night:     #0E1517;
  --night-2:   #15211F;

  /* System */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow:    0 18px 50px -22px rgba(14,23,38,.45);
  --shadow-sm: 0 8px 24px -14px rgba(14,23,38,.35);
  --maxw:      1160px;

  /* Motion (LenderBridge art-direction tokens) */
  --dur-fast:  160ms;
  --dur-base:  320ms;
  --dur-slow:  640ms;
  --ease:      cubic-bezier(.2,0,0,1);
  --ease-emph: cubic-bezier(.2,0,0,1.2);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow.on-dark { color: #74D2C9; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.section { padding: 86px 0; }
.section-tight { padding: 58px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .82rem 1.4rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 12px 26px -12px rgba(255,107,92,.8); }
.btn-primary:hover { background: var(--coral-700); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(30,91,255,.7); }
.btn-blue:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-dark:hover { border-color: #fff; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

.appstore {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--ink); color: #fff; padding: .7rem 1.25rem; border-radius: 14px;
  font-family: var(--font-display); transition: transform var(--dur-fast) var(--ease);
}
.appstore:hover { transform: translateY(-2px); }
.appstore small { display: block; font-size: .62rem; opacity: .8; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); }
.appstore strong { font-size: 1.05rem; line-height: 1; }
.appstore svg { width: 26px; height: 26px; flex: none; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.4rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color var(--dur-fast) var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: var(--dur-base); }

/* ---------- Logo mark ---------- */
.logo-mark { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(30,91,255,.12), transparent 60%),
    radial-gradient(46% 42% at 6% 90%, rgba(255,107,92,.14), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.hero h1 .accent { color: var(--coral); }
.hero p.lead { max-width: 30rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; color: var(--muted); font-size: .9rem; }
.stars { color: var(--coral); letter-spacing: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* ---------- Phone mockups ---------- */
.phone {
  width: 270px; border-radius: 38px; background: var(--ink); padding: 12px;
  box-shadow: var(--shadow); position: relative; border: 1px solid rgba(255,255,255,.06);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #000; border-radius: 999px; z-index: 3; }
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--cream); aspect-ratio: 9/19.5; position: relative; }
.phone-stack { position: relative; display: flex; justify-content: center; }
.phone-stack .phone { margin: 0; }
.phone-stack .phone.back { position: absolute; transform: scale(.86) translateX(58%) rotate(6deg); filter: blur(.3px); opacity: .92; z-index: 0; }
.phone-stack .phone.back2 { position: absolute; transform: scale(.86) translateX(-58%) rotate(-6deg); opacity: .92; z-index: 0; }
.phone-stack .phone.front { z-index: 2; }

/* App screen interiors */
.scr { position: absolute; inset: 0; padding: 40px 16px 16px; font-size: 12px; color: var(--ink); }
.scr-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink-soft); font-size: 11px; margin-bottom: 10px; }
.scr h4 { font-size: 16px; margin: 4px 0 12px; }
.ring { width: 96px; height: 96px; border-radius: 50%; margin: 6px auto 12px;
  background: conic-gradient(var(--coral) 0 72%, var(--blue-050) 72% 100%);
  display: grid; place-items: center; }
.ring::after { content: "72%"; width: 70px; height: 70px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.dose-row { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; }
.dose-row .tick { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 12px; }
.dose-row .tick.done { background: var(--blue); }
.dose-row .tick.next { background: var(--coral); }
.dose-row .tick.todo { background: var(--cream-2); border: 1.5px solid var(--line); }
.dose-row b { display: block; font-size: 12.5px; }
.dose-row span { color: var(--muted); font-size: 10.5px; }
.calc-field { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 7px; }
.calc-field small { color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.calc-field b { font-family: var(--font-display); font-size: 14px; }
.calc-result { background: var(--blue); color: #fff; border-radius: 12px; padding: 11px; text-align: center; margin-top: 4px; }
.calc-result b { font-family: var(--font-display); font-size: 19px; display: block; }
.calc-result small { opacity: .85; }

/* ---------- Logo strip ---------- */
.logostrip { border-block: 1px solid var(--line); background: var(--cream-2); }
.logostrip .container { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: center; justify-content: center; padding-block: 22px; }
.logostrip span { font-family: var(--font-display); font-weight: 600; color: var(--muted); opacity: .8; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-050); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue); margin-bottom: 16px;
}
.card .ic.coral { background: var(--coral-050); color: var(--coral-700); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- Feature split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { display: flex; justify-content: center; }
.split h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.split .lead { font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--ink-soft); }
.checklist li::before { content: "✓"; color: var(--blue); font-weight: 700; flex: none; }

/* ---------- Dark band ---------- */
.dark { background: var(--night); color: #E8EDF6; }
.dark::selection { background: var(--coral); }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: #A9B6CE; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { padding: 8px 0; }
.stat b { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.9rem); color: #fff; display: block; }
.stat .coral { color: var(--coral); }
.stat span { color: #93A2BE; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.tcols { columns: 3; column-gap: 22px; }
.tcard { break-inside: avoid; margin-bottom: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.tcard .stars { font-size: .9rem; }
.tcard p { font-size: .97rem; color: var(--ink); margin: .6rem 0 1rem; }
.tcard .who { display: flex; align-items: center; gap: .7rem; }
.tcard .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: .95rem; }
.tcard .who b { font-size: .95rem; }
.tcard .who span { font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 1.5rem; line-height: 1; transition: transform var(--dur-base) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-700) 60%, #0A2A6E 100%); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 85% 20%, rgba(255,107,92,.4), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.85); max-width: 540px; margin-inline: auto; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); position: relative; }
.price.feat { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.price .tag { position: absolute; top: -13px; left: 30px; background: var(--coral); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .78rem; padding: .3rem .8rem; border-radius: 999px; }
.price h3 { font-size: 1.3rem; }
.price .amt { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.price .amt small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price li { display: flex; gap: .6rem; padding: .42rem 0; color: var(--ink-soft); font-size: .95rem; border-bottom: 1px dashed var(--line); }
.price li::before { content: "✓"; color: var(--blue); font-weight: 700; }
.price li.off { color: var(--muted); }
.price li.off::before { content: "—"; color: var(--line); }

/* ---------- Peptide / protocol library ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lib { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.lib:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.lib-top { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.lib-top .mono { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.chip { font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; font-family: var(--font-display); }
.chip.blue { background: var(--blue-050); color: var(--blue); }
.chip.coral { background: var(--coral-050); color: var(--coral-700); }
.chip.green { background: #E7F6EE; color: #138A5A; }
.lib-body { padding: 16px 20px 20px; }
.lib-body p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 12px; }
.lib-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); }
.lib-meta b { color: var(--ink); font-family: var(--font-display); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { font-family: var(--font-display); font-weight: 600; font-size: .88rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; transition: var(--dur-fast) var(--ease); }
.filters button.active, .filters button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 20px; text-align: center; }
.post .pbody { padding: 20px; }
.post .pmeta { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.post h3 { font-size: 1.15rem; margin: .5rem 0; }
.post p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.post-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; }
.post-feature .thumb { aspect-ratio: auto; min-height: 260px; }

/* ---------- Disclaimer / footer ---------- */
.disclaimer { background: var(--cream-2); border-top: 1px solid var(--line); }
.disclaimer .container { padding-block: 26px; }
.disclaimer p { color: var(--muted); font-size: .82rem; margin: 0; max-width: 880px; }

.footer { background: var(--night); color: #AEBAD0; padding: 64px 0 30px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: #AEBAD0; font-size: .94rem; display: block; padding: .28rem 0; transition: color var(--dur-fast) var(--ease); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #7E8BA6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-media { order: -1; }
  .split, .split.rev .split-media, .post-feature { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .grid-3, .grid-4, .price-grid, .lib-grid, .post-grid, .stat-grid { grid-template-columns: repeat(2,1fr); }
  .tcols { columns: 2; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line); padding: 18px 22px; gap: 1rem; }
  .nav-toggle { display: block; }
  .cta-band { padding: 38px 24px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .price-grid, .lib-grid, .post-grid, .stat-grid { grid-template-columns: 1fr; }
  .tcols { columns: 1; }
  .section { padding: 60px 0; }
  .phone-stack .phone.back, .phone-stack .phone.back2 { display: none; }
  .cta-band { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
