/* ============================================================
   PeptiGuide AI — peptiguide.app
   Dark theme matching the mobile app (bg #0A0E1A, accent #00D4AA)
   ============================================================ */

:root {
  --bg: #0A0E1A;
  --bg-2: #0D1322;
  --card: #131927;
  --card-2: #18243A;
  --accent: #00D4AA;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --warn: #FF6B35;
  --warn-dim: rgba(255, 107, 53, 0.1);
  --danger: #E53E3E;
  --text: #F7F9FC;
  --text-2: #8892A4;
  --border: #1E2D40;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links { display: flex; gap: 28px; font-size: .92rem; color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #00D4AA, #00B894);
  color: #052019;
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(0, 212, 170, 0.5); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  border: 1px solid #3a4657;
  border-radius: 12px;
  padding: 9px 18px 9px 14px;
  transition: transform .15s, border-color .2s;
  min-width: 168px;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--accent); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: .64rem; color: #cfd6e0; letter-spacing: .02em; }
.store-badge .sb-big { font-size: 1.06rem; font-weight: 600; color: #fff; }
.store-badge.soon { position: relative; }
.store-badge.soon::after {
  content: 'Coming soon';
  position: absolute;
  top: -9px; right: 10px;
  background: var(--accent);
  color: #052019;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .03em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 45, 64, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 45, 64, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.25);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
  letter-spacing: .01em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.13rem;
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-actions { margin-bottom: 34px; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.stat .stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat .stat-label { font-size: .82rem; color: var(--text-2); }

/* ---------- Phone mockups ---------- */
.phone {
  width: 290px;
  background: #05070d;
  border: 2px solid #232f42;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 212, 170, 0.08);
  flex-shrink: 0;
}
.phone-screen {
  background: var(--bg);
  border-radius: 31px;
  overflow: hidden;
  height: 590px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 13px;
}
.phone-notch {
  width: 108px; height: 26px;
  background: #05070d;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  flex-shrink: 0;
}
.hero-phone { justify-self: center; transform: rotate(2.5deg); }

/* App UI primitives inside mockups */
.app-pad { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; overflow: hidden; }
.app-title { font-size: 19px; font-weight: 800; }
.app-sub { font-size: 11.5px; color: var(--text-2); }
.app-search {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--text-2);
  font-size: 12px;
  display: flex; align-items: center; gap: 8px;
}
.app-chips { display: flex; gap: 7px; flex-wrap: nowrap; overflow: hidden; }
.app-chip {
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 10.5px;
  padding: 5px 11px;
  border-radius: 99px;
  white-space: nowrap;
}
.app-chip.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 13px;
}
.app-card h5 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.app-card p { font-size: 10.8px; color: var(--text-2); line-height: 1.45; }
.app-row { display: flex; align-items: center; gap: 10px; }
.app-ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.app-tag {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  letter-spacing: .02em;
}
.app-tag.warn { background: var(--warn-dim); color: var(--warn); }
.app-tag.ok { background: var(--accent-dim); color: var(--accent); }
.app-warnbar {
  background: var(--warn-dim);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--warn);
  font-size: 9.6px;
  font-weight: 600;
  border-radius: 9px;
  padding: 7px 10px;
  line-height: 1.4;
}
.app-result {
  background: linear-gradient(135deg, rgba(0,212,170,.14), rgba(0,212,170,.05));
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 13px;
  padding: 13px;
  text-align: center;
}
.app-result .big { font-size: 26px; font-weight: 800; color: var(--accent); }
.app-result .lbl { font-size: 10px; color: var(--text-2); }
.app-field {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 11.5px;
}
.app-field .fl { font-size: 9px; color: var(--text-2); display: block; }
.app-btn {
  background: linear-gradient(135deg, #00D4AA, #00B894);
  color: #052019;
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  border-radius: 11px;
  padding: 11px;
}
.app-tabbar {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 9px 0 13px;
  flex-shrink: 0;
}
.app-tabbar span { font-size: 15px; opacity: .4; }
.app-tabbar span.on { opacity: 1; }
.app-bubble-q {
  align-self: flex-end;
  background: var(--card-2);
  border-radius: 13px 13px 3px 13px;
  padding: 9px 12px;
  font-size: 11.3px;
  max-width: 85%;
}
.app-bubble-a {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px 13px 13px 3px;
  padding: 10px 12px;
  font-size: 10.8px;
  color: #c6cdd8;
  max-width: 92%;
  line-height: 1.5;
}
.app-bubble-a b { color: var(--accent); }

/* Body map dots */
.bodymap { position: relative; display: flex; justify-content: center; padding: 6px 0 2px; }
.bodymap svg { height: 200px; }
.map-legend { display: flex; justify-content: center; gap: 12px; font-size: 9px; color: var(--text-2); }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 4px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-header h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 14px 0 12px;
}
.section-sub { color: var(--text-2); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.feature-icon {
  width: 46px; height: 46px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-2); font-size: .93rem; }

/* ---------- Screens ---------- */
.screens-wrap {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}
.screen-item { text-align: center; }
.screen-item .phone { width: 252px; }
.screen-item .phone-screen { height: 516px; font-size: 12px; }
.screen-caption { margin-top: 16px; font-size: .92rem; color: var(--text-2); font-weight: 500; }
.screen-caption b { color: var(--text); display: block; font-size: 1rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: start; }
.step { text-align: center; padding: 0 8px; }
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 99px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.35);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .92rem; }
.step-connector {
  height: 1px; width: 56px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: 26px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 24px;
  justify-content: center;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  position: relative;
}
.price-card-featured {
  border-color: rgba(0, 212, 170, 0.5);
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.06), var(--card) 40%);
  box-shadow: 0 8px 48px rgba(0, 212, 170, 0.12);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00D4AA, #00B894);
  color: #052019;
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 99px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-header { text-align: center; margin-bottom: 24px; }
.price-header h3 { font-size: 1.05rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.price { font-size: 2.7rem; font-weight: 800; margin: 8px 0 2px; }
.price span { font-size: 1rem; color: var(--text-2); font-weight: 500; }
.price-period { color: var(--text-2); font-size: .88rem; }
.price-features { margin-bottom: 26px; display: flex; flex-direction: column; gap: 11px; }
.price-features li { font-size: .93rem; color: #c6cdd8; display: flex; gap: 10px; align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.price-features li.dim { color: var(--text-2); }
.price-features li.dim::before { content: '—'; color: var(--text-2); }
.btn-block { width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-2); font-size: .95rem; }
.faq-item .faq-a a { color: var(--accent); }

/* ---------- Legal strip ---------- */
.legal-box {
  max-width: 860px;
  margin: 0 auto;
  background: var(--warn-dim);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 20px;
  padding: 38px 40px;
  text-align: center;
}
.legal-box .legal-icon { font-size: 2rem; margin-bottom: 12px; }
.legal-box h2 { font-size: 1.5rem; margin-bottom: 16px; }
.legal-box p { color: #d5dae2; font-size: .95rem; margin-bottom: 12px; text-align: left; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-box a { color: var(--accent); font-weight: 600; }

/* ---------- CTA ---------- */
.section-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 100%, rgba(0, 212, 170, 0.12), transparent),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.cta-content h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.015em; }
.cta-content > p { color: var(--text-2); font-size: 1.08rem; max-width: 36em; margin: 0 auto 32px; }
.cta-content .store-badges { justify-content: center; }
.cta-note { margin-top: 20px; font-size: .84rem; color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-tagline { color: var(--text-2); font-size: .88rem; max-width: 26em; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); margin-bottom: 14px; }
.footer-col a { display: block; color: #c6cdd8; font-size: .92rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: .84rem;
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 140px 24px 80px; max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.015em; }
.legal-meta { color: var(--text-2); font-size: .9rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.35rem; font-weight: 700; margin: 38px 0 14px; }
.legal-page h3 { font-size: 1.08rem; font-weight: 700; margin: 26px 0 10px; }
.legal-page p, .legal-page li { color: #c6cdd8; font-size: .97rem; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-page ul li { margin-bottom: 8px; }
.legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page ol li { margin-bottom: 8px; color: #c6cdd8; font-size: .97rem; }
.legal-page a { color: var(--accent); }
.legal-page strong { color: var(--text); }
.legal-callout {
  background: var(--warn-dim);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
}
.legal-callout p { margin-bottom: 8px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.legal-toc ol { padding-left: 20px; margin-bottom: 0; }
.legal-toc li { margin-bottom: 4px; font-size: .92rem; }

/* ---------- Deletion request form ---------- */
.del-form { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin: 24px 0; }
.del-field { margin-bottom: 16px; }
.del-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.del-field input, .del-field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--font); font-size: .95rem;
}
.del-field input:focus, .del-field textarea:focus { outline: none; border-color: var(--accent); }
.del-field textarea { resize: vertical; min-height: 80px; }
.del-status { margin-top: 14px; font-size: .9rem; padding: 12px 14px; border-radius: 10px; display: none; }
.del-status.ok { display: block; background: var(--accent-dim); border: 1px solid rgba(0,212,170,.35); color: var(--accent); }
.del-status.err { display: block; background: var(--warn-dim); border: 1px solid rgba(255,107,53,.35); color: var(--warn); }
.del-form button[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions .store-badges, .hero-stats { justify-content: center; }
  .hero-phone { transform: none; margin-top: 10px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav .btn-sm { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding-top: 120px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .legal-box { padding: 28px 22px; }
}
