/* Partprice.ai — home (landing) page styles. Loads after base.css */

/* ─── HERO ─── */
.hero {
  padding: 76px 6% 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-lt); color: var(--blue); font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
  letter-spacing: .03em; text-transform: uppercase;
}
.hero-eyebrow span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--blue); }
.hero-sub {
  font-size: 17px; color: var(--muted); line-height: 1.65;
  margin-bottom: 36px; max-width: 460px;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-primary-lg {
  padding: 13px 30px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--blue); border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 18px rgba(85,110,230,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary-lg:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(85,110,230,.45); }
.btn-outline-lg {
  padding: 12px 24px; font-size: 15px; font-weight: 500; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-outline-lg:hover { border-color: var(--blue); background: var(--blue-lt); color: var(--blue); }
.hero-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; display: flex; align-items: center; gap: 5px; }
.hero-note::before { content: '✓'; color: var(--green); font-weight: 700; }
.hero-visual {
  position: relative; display: flex; justify-content: center;
}
.screenshot-main {
  width: 100%; max-width: 540px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ss-bar {
  background: var(--navy); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.ss-dot { width: 10px; height: 10px; border-radius: 50%; }
.ss-url {
  flex: 1; background: rgba(255,255,255,.08); border-radius: 5px;
  padding: 4px 10px; font-size: 11px; color: rgba(255,255,255,.5);
  font-family: monospace;
}
.ss-body { padding: 0; }
.ss-header {
  background: #f8f9fc; border-bottom: 1px solid var(--border);
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}
.ss-header-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.ss-tag { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.ss-tag-blue { background: var(--blue-lt); color: var(--blue); }
.ss-table { width: 100%; border-collapse: collapse; }
.ss-table th {
  font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; padding: 8px 12px; background: #fafbff;
  border-bottom: 1px solid var(--border); text-align: left;
}
.ss-table td { font-size: 11.5px; padding: 9px 12px; border-bottom: 1px solid #f0f2f8; vertical-align: middle; }
.ss-item-name { font-weight: 600; color: var(--navy); font-size: 11px; }
.ss-item-mpn { font-size: 10px; color: var(--muted); font-family: monospace; }
.ss-price { font-weight: 600; color: var(--navy); }
.ss-change-down { color: var(--green); font-size: 10px; font-weight: 600; }
.ss-change-up { color: var(--red); font-size: 10px; font-weight: 600; }
.ss-badge { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 3px; }
.ss-badge-alert { background: #fff3cd; color: #856404; }
.ss-badge-ok { background: #d4edda; color: #155724; }
/* floating alert card */
.float-card {
  position: absolute; bottom: -18px; left: -24px;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14); padding: 12px 16px;
  display: flex; align-items: center; gap: 11px; min-width: 220px;
  border: 1px solid var(--border);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.float-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: #fff8e6; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.float-icon svg { width: 18px; height: 18px; }
.float-label { font-size: 11px; color: var(--muted); }
.float-val { font-size: 14px; font-weight: 600; color: var(--green); }

/* ─── SUPPLIER BAR ─── */
.supplier-bar {
  background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 6%; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap;
}
.supplier-bar-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-right: 28px; white-space: nowrap; }
.supplier-item {
  padding: 6px 22px; font-size: 14px; font-weight: 600; color: #94a3b8;
  border-right: 1px solid var(--border); letter-spacing: -.2px;
}
.supplier-item:last-child { border-right: none; }

/* ─── SECTION COMMONS ─── */
section { padding: 90px 6%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--navy); line-height: 1.2; letter-spacing: -.3px;
}
.section-sub { font-size: 17px; color: var(--muted); margin-top: 12px; max-width: 520px; line-height: 1.65; }

/* ─── HOW IT WORKS ─── */
.hiw { background: var(--bg); }
.hiw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px;
  position: relative;
}
.hiw-grid::before {
  content: ''; position: absolute; top: 36px; left: calc(33.33% - 12px); right: calc(33.33% - 12px);
  height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 100%);
  border-radius: 2px; opacity: .2;
}
.hiw-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 32px 28px;
  position: relative; transition: box-shadow .25s, transform .25s;
}
.hiw-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hiw-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px; color: var(--blue-lt); line-height: 1;
  margin-bottom: 20px; font-weight: 400;
  /* number drawn as colored outline */
  -webkit-text-stroke: 2px var(--blue);
  color: transparent;
}
.hiw-icon {
  width: 48px; height: 48px; background: var(--blue-lt); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.hiw-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hiw-card h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.hiw-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ─── FEATURES ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px;
}
.feat-card {
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.feat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feat-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 9px; }
.feat-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.feat-blue { background: #f0f2ff; }
.feat-blue .feat-icon { background: var(--blue-lt); }
.feat-blue svg { stroke: var(--blue); }
.feat-green .feat-icon { background: #edfbf3; }
.feat-green svg { stroke: #22c55e; }
.feat-amber .feat-icon { background: #fffbeb; }
.feat-amber svg { stroke: var(--amber); }

/* ─── SCREENSHOT SECTION ─── */
.screens { background: var(--bg); }
.screen-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  margin-bottom: 80px;
}
.screen-block:last-child { margin-bottom: 0; }
.screen-block.reverse .screen-text { order: 2; }
.screen-block.reverse .screen-img { order: 1; }
.screen-text h3 { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--navy); margin-bottom: 14px; line-height: 1.25; }
.screen-text p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.screen-img {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; aspect-ratio: 16/10;
  display: flex; flex-direction: column;
}
.ph-bar { height: 38px; background: var(--navy); display: flex; align-items: center; padding: 0 14px; gap: 6px; flex-shrink: 0; }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; }
.ph-body { flex: 1; background: #f8f9fc; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.ph-label { font-size: 12px; color: #cbd5e1; font-weight: 500; }

/* inline mini chart for screenshot 2 */
.mini-chart { width: 100%; padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.chart-title { font-size: 11px; font-weight: 600; color: var(--navy); padding: 12px 16px 0; }
.chart-svg-wrap { flex: 1; padding: 0 16px 12px; }
.price-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 16px; border-bottom: 1px solid #f0f2f8; }
.price-row:last-child { border-bottom: none; }
.pr-name { font-size: 11px; font-weight: 600; color: var(--navy); }
.pr-val { font-size: 11px; color: var(--muted); }
.pr-best { background: #edfbf3; border-radius: 4px; padding: 2px 7px; font-size: 10px; font-weight: 600; color: #15803d; }

/* ── MOCKUP SCREENSHOTS (in place of real screenshots) ── */
.ph-url {
  flex: 1; background: rgba(255,255,255,.08); border-radius: 5px;
  padding: 3px 10px; font-size: 9.5px; color: rgba(255,255,255,.5);
  font-family: monospace; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-body { flex: 1; background: #fff; overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.mock-topbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.mock-title { font-size: 12px; font-weight: 600; color: var(--navy); }
.mock-pill { font-size: 9.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--blue-lt); color: var(--blue); }

/* watchlist table */
.mw-table { width: 100%; border-collapse: collapse; }
.mw-table th {
  font-size: 8.5px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; text-align: left; padding: 7px 14px; background: #fafbff; border-bottom: 1px solid var(--border);
}
.mw-table td { font-size: 10px; padding: 7px 14px; border-bottom: 1px solid #f2f4f9; vertical-align: middle; }
.mw-table tr:last-child td { border-bottom: none; }
.mw-row-alert td { background: #fffdf5; }
.mw-name { font-weight: 600; color: var(--navy); font-size: 10px; line-height: 1.25; }
.mw-brand { font-size: 8.5px; color: var(--muted); font-family: monospace; }
.mw-down { color: #15803d; font-weight: 600; font-size: 8.5px; }
.mw-up { color: var(--red); font-weight: 600; font-size: 8.5px; }
.mw-flat { color: var(--muted); font-size: 8.5px; }
.mw-price { font-weight: 600; color: var(--navy); }
.mw-bell { width: 13px; height: 13px; vertical-align: middle; fill: none; stroke-width: 2; }

/* item detail compare + chart */
.md-head { padding: 9px 14px 5px; }
.md-prod { font-size: 11px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.md-mpn { font-size: 9px; color: var(--muted); font-family: monospace; margin-top: 2px; }
.md-save { margin: 5px 14px 1px; background: #edfbf3; border-radius: 6px; padding: 5px 10px; font-size: 9.5px; color: #15803d; font-weight: 600; }
.md-label { font-size: 8.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 7px 14px 2px; }
.md-chart-wrap { padding: 0 12px; }
.md-cmp-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px; border-top: 1px solid #f2f4f9; }
.md-cmp-name { font-size: 10px; color: var(--navy); font-weight: 500; }
.md-cmp-price { font-size: 10px; color: var(--muted); font-weight: 600; }
.md-cmp-row.best .md-cmp-name { font-weight: 700; }
.md-cmp-row.best .md-cmp-price { color: var(--navy); }
.md-best-badge { font-size: 8px; font-weight: 700; color: #15803d; background: #edfbf3; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }

/* email alert mockup */
.me-head { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.me-subject { font-size: 11.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.me-meta { font-size: 9px; color: var(--muted); margin-top: 3px; }
.me-meta b { color: var(--text); font-weight: 600; }
.me-body { padding: 10px 16px; font-size: 10.5px; color: var(--text); line-height: 1.4; flex: 1; }
.me-card { background: #f8f9fc; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 7px 0; }
.me-line { display: flex; justify-content: space-between; font-size: 10px; padding: 1.5px 0; }
.me-line .lbl { color: var(--muted); }
.me-line .val { font-weight: 600; color: var(--navy); }
.me-line .val.save { color: #15803d; }
.me-btn { display: inline-block; margin-top: 4px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 600; padding: 7px 16px; border-radius: 7px; }

/* ─── PRICING ─── */
.pricing-wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: start;
}
.plan-card {
  border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1.5px solid var(--border); background: var(--white);
  transition: box-shadow .25s;
}
.plan-card:hover { box-shadow: var(--shadow); }
.plan-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(85,110,230,.1), var(--shadow);
  position: relative;
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap; letter-spacing: .04em;
}
.plan-name { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 6px; }
.plan-price .amount { font-family: 'DM Serif Display', serif; font-size: 42px; color: var(--navy); line-height: 1; }
.plan-price .period { font-size: 13px; color: var(--muted); }
.plan-billing { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.plan-features li { font-size: 13.5px; color: var(--text); display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.plan-features li.dim { color: var(--muted); }
.plan-features li.dim::before { content: '–'; color: var(--border); }
.plan-cta {
  display: block; text-align: center; padding: 11px;
  border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .2s;
}
.plan-cta-outline { border: 1.5px solid var(--border); color: var(--text); }
.plan-cta-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.plan-cta-fill { background: var(--blue); color: #fff; box-shadow: 0 3px 12px rgba(85,110,230,.35); }
.plan-cta-fill:hover { background: var(--blue-dk); transform: translateY(-1px); }
.pricing-note { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.toggle-label { font-size: 13.5px; color: var(--muted); }
.toggle-label.active { color: var(--navy); font-weight: 600; }
.toggle-pill {
  width: 46px; height: 26px; border-radius: 13px;
  background: var(--blue); border: none; cursor: pointer;
  position: relative; transition: background .2s;
}
.toggle-pill::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: left .2s;
}
.toggle-pill.semi::after { left: 3px; }
.toggle-pill.annual::after { left: 23px; }
.save-badge { background: #edfbf3; color: #15803d; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px; }

/* ─── TESTIMONIALS ─── */
.testi { background: var(--bg); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.testi-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 26px 24px;
}
.testi-stars { color: var(--amber); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-quote { font-size: 14.5px; color: var(--text); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 11px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.testi-role { font-size: 11.5px; color: var(--muted); }

/* ─── FAQ ─── */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; gap: 16px;
  font-size: 15.5px; font-weight: 600; color: var(--navy);
  user-select: none; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-arrow { font-size: 18px; color: var(--blue); transition: transform .25s; flex-shrink: 0; }
details[open] .faq-arrow { transform: rotate(45deg); }
.faq-a { font-size: 14.5px; color: var(--muted); line-height: 1.7; padding-bottom: 18px; }

/* ─── FINAL CTA ─── */
.final-cta {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 70% 50%, #2a3a6b 0%, var(--navy) 60%);
  text-align: center; padding: 100px 6%;
}
.final-cta h2 { color: #fff; font-family: 'DM Serif Display', serif; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,.6); font-size: 17px; margin-bottom: 36px; }
.final-cta .btn-primary-lg { display: inline-block; font-size: 16px; padding: 15px 36px; }
.final-cta .hero-note { color: rgba(255,255,255,.4); justify-content: center; margin-top: 16px; }
.final-cta .hero-note::before { color: #4ade80; }

/* ─── FOOTER ─── */

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 46px; }
  .hero-visual { margin-top: 0; }
  .float-card { display: none; }
  .hiw-grid, .features-grid, .pricing-wrap, .testi-grid { grid-template-columns: 1fr; }
  .hiw-grid::before { display: none; }
  .screen-block, .screen-block.reverse { grid-template-columns: 1fr; }
  .screen-block.reverse .screen-text { order: 1; }
  .screen-block.reverse .screen-img { order: 2; }
  section { padding: 64px 5%; }
}
