/* Perfect Partner — shared site styles.
   Design tokens mirror lib/theme/app_theme.dart in the Flutter app 1:1,
   so the website and the app read as the same product. */

:root {
  --bg: #0D1117;
  --surface: #161B22;
  --surface-2: #1C2330;
  --border: #21262D;
  --blush: #E8A0AE;
  --rose: #D4788A;
  --sage: #7BA897;
  --text-primary: #E6EDF3;
  --text-dim: #9BA4B0;
  --danger: #E05B5B;
  --gradient: linear-gradient(90deg, var(--blush), var(--rose), var(--sage));
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blush); text-decoration: none; }
a:hover { color: var(--rose); text-decoration: underline; }

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

/* ---- Header ---- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav.site-nav { display: flex; gap: 28px; align-items: center; }
nav.site-nav a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 15px;
}
nav.site-nav a:hover { color: var(--text-primary); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.site-nav { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: #16181c;
}
.btn-primary:hover { opacity: 0.92; text-decoration: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--rose); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(123, 168, 151, 0.12);
  border: 1px solid rgba(123, 168, 151, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.08;
}

.hero p.lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-dim);
}

.hero-phone {
  margin: 56px auto 0;
  max-width: 300px;
}

/* ---- Phone frame ---- */
.phone {
  position: relative;
  border-radius: 36px;
  border: 8px solid #23272f;
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
  aspect-ratio: 9 / 19.5;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---- Sections ---- */
section { padding: 84px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(212, 120, 138, 0.15);
  color: var(--rose);
  font-size: 22px;
}

.feature-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 15px; }

.feature-card.premium { border-color: rgba(212, 120, 138, 0.4); position: relative; }
.premium-tag {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--gradient);
  color: #16181c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---- Screenshots ---- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  align-items: start;
}
.screenshot-item { text-align: center; }
.screenshot-item .phone { max-width: 240px; margin: 0 auto 16px; }
.screenshot-item p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-grid-3 { max-width: 1040px; }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-card.highlight {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  position: relative;
}

.price-card h3 { font-size: 22px; margin: 0 0 4px; font-weight: 800; }
.price-card .price {
  font-size: 40px;
  font-weight: 800;
  margin: 12px 0 4px;
}
.price-card .price span { font-size: 16px; font-weight: 600; color: var(--text-dim); }
.price-card .price-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; flex-grow: 1; }
.price-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card li:last-child { border-bottom: none; }
.price-card li .check { color: var(--sage); font-weight: 800; }

/* ---- Research library ---- */
.bib-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.bib-entry .bib-type {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}
.bib-entry h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.bib-entry .cite { color: var(--text-dim); font-size: 13.5px; margin: 0 0 12px; font-style: italic; }
.bib-entry p { margin: 0 0 10px; font-size: 15px; }
.bib-entry .relevance { color: var(--text-primary); }
.bib-entry .tier {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.bib-entry .tier.core { color: var(--rose); border-color: rgba(212,120,138,0.4); }
.bib-entry .tier.foundational { color: var(--sage); border-color: rgba(123,168,151,0.4); }

/* ---- Legal pages ---- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.legal h1 { font-size: 32px; margin-bottom: 6px; }
.legal .meta { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin-top: 42px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; }
.legal strong { color: var(--text-primary); }
.legal ul { padding-left: 22px; }

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin-bottom: 30px; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer .foot-links a { color: var(--text-dim); font-size: 14px; }
footer .foot-links a:hover { color: var(--text-primary); }
footer .copyright { color: var(--text-dim); font-size: 13px; }

.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; }
