/* Public home only. Shared tokens and components are in app.css. */

main.home { max-width: none; padding: 0; }
.section { padding: 5rem 1.25rem; }
.section-inner { max-width: 72rem; margin: 0 auto; }
.section-head { max-width: 44rem; margin: 0 0 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 0.75rem; letter-spacing: -0.03em; scroll-margin-top: 5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section.tint { background: var(--slate-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */

.hero-band {
  position: relative;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(147, 197, 253, 0.28), transparent 60%),
    linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #2563eb 100%);
  overflow: hidden;
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M27 20h2v6h6v2h-6v6h-2v-6h-6v-2h6z' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  min-height: min(calc(100vh - var(--bar-height)), 52rem);
  padding: 4.5rem 1.25rem 5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  color: #fff;
  max-width: 11em;
  text-wrap: balance;
}
.hero h1 span { color: var(--blue-200); }
.hero .support { color: #fff; font-size: 1.2rem; line-height: 1.55; max-width: 34rem; margin: 0 0 2rem; }
.hero .overview { color: var(--blue-100); font-size: 1rem; max-width: 34rem; margin: 1.25rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-actions .button.secondary { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.hero-actions .button.secondary:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.6); }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 2rem 0 0; color: var(--blue-100); font-size: 0.92rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 1.05rem; height: 1.05rem; color: #86efac; flex: none; }

/* Demo */

.stage { display: grid; gap: 1.1rem; perspective: 1100px; }
.posting, .resume {
  position: relative;
  border-radius: 16px;
  padding: 1.15rem 1.3rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 5px rgba(191, 219, 254, 0.22),
    0 24px 48px rgba(11, 18, 32, 0.32);
  transform: translateY(calc(var(--scroll-y, 0px) + var(--hover-y, 0px))) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.posting { background: var(--navy); color: #fff; margin-right: 2.5rem; }
.resume { background: #fff; color: var(--ink); font-family: var(--font-serif); padding: 1.45rem 1.5rem 1.25rem; margin-left: 2.5rem; }
.posting .kicker { color: var(--blue-300); }
.posting h2 { margin: 0.15rem 0 0.8rem; font-size: 1.3rem; color: #fff; }
.chips { list-style: none; display: flex; gap: 0.45rem; padding: 0; margin: 0; }
.chips .chip {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  padding: 0.2rem 0.75rem;
  font-weight: 600;
}
.stage[data-beat="2"] .chip-sql, .stage[data-beat="3"] .chip-sql { background: #fff; border-color: #fff; color: var(--navy); }
.resume .name { margin: 0; font-size: 1.45rem; font-weight: 650; color: var(--slate-900); }
.resume .role { margin: 0.15rem 0 0.9rem; color: var(--slate-600); font-family: var(--font-sans); font-size: 0.9rem; }
.bullet { margin: 0.35rem 0; color: var(--slate-900); }
.match { border-radius: 4px; padding: 0 0.18rem; }
.stage[data-beat="2"] .match, .stage[data-beat="3"] .match { background: var(--blue-600); color: #fff; }
.label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 650;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  padding: 0;
}
.caption, .fact-note { font-family: var(--font-sans); font-size: 0.9rem; }
.caption { margin: 0.55rem 0 0; color: var(--slate-600); }
.fact-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #fde68a;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
}
.fact-note .fake-button { flex: none; font-size: 0.78rem; font-weight: 600; background: #fff; border: 1px solid #fcd34d; border-radius: 8px; padding: 0.25rem 0.55rem; }
.sql-word { display: inline-block; max-width: 7.2em; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.stage[data-beat="1"] .sql-word { max-width: 0; }
.caption-ask, .caption-tailored, .label, .globex { max-height: 0; opacity: 0; overflow: hidden; }
.stage[data-beat="1"] .caption-ask,
.stage[data-beat="2"] .caption-tailored,
.stage[data-beat="3"] .caption-tailored,
.stage[data-beat="2"] .label,
.stage[data-beat="3"] .label { max-height: 4rem; opacity: 1; }
.stage[data-beat="2"] .label, .stage[data-beat="3"] .label { display: inline-block; margin: 0.5rem 0 0.15rem; padding: 0.15rem 0.6rem; }
.stage[data-beat="3"] .globex { max-height: 12rem; opacity: 1; }

/* How it works and why Pinpoint */

.step-grid, .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.step-card, .why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-card h3, .why-card h3 { font-size: 1.12rem; margin: 0.9rem 0 0.4rem; }
.step-card p, .why-card p { color: var(--muted); margin: 0; }
.step-badge {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 700;
}
.step-card .tag { display: inline-block; margin-left: 0.4rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); border-radius: 999px; padding: 0.1rem 0.5rem; vertical-align: middle; }
.why-icon { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--blue-300); }
.why-icon svg { width: 1.3rem; height: 1.3rem; }

/* Plans */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 56rem; margin: 0 auto; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 2rem 1.9rem 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.plan h3 { margin: 0; font-size: 1.05rem; color: inherit; }
.price { font-size: 3rem; font-weight: 700; line-height: 1; margin: 0.9rem 0 0.6rem; letter-spacing: -0.04em; }
.price span { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-line { margin: 0 0 1.4rem; color: var(--muted); min-height: 3.1em; }
.plan .button { width: 100%; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.plan li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan li svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.18rem; color: var(--blue-600); }
.plan.pro { background: linear-gradient(160deg, #1d4ed8 0%, #1e3a8a 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.pro .price span, .plan.pro .plan-line { color: var(--blue-100); }
.plan.pro li svg { color: #86efac; }
.plan.pro .button { background: #fff; color: var(--blue-800); }
.plan.pro .button:hover { background: var(--blue-50); }
.plan-tag { display: inline-block; margin-left: 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 0.15rem 0.55rem; vertical-align: middle; }
.plan.free { transition: transform 180ms ease, box-shadow 180ms ease; }
.plan.free:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plans-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 1.5rem 0 0; }

/* Compare */

.compare-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); max-width: 56rem; margin: 0 auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 36rem; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 1rem; border-bottom: 1px solid var(--line); }
.compare th[scope="row"] { font-weight: 500; color: var(--slate-700); }
.compare thead th:nth-child(2), .compare td:nth-child(2) { width: 28%; }
.compare thead th:nth-child(3), .compare td:nth-child(3) { width: 34%; background: var(--blue-50); }
.compare .price-row td { font-weight: 650; }
.compare .group th { background: var(--slate-50); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; color: var(--blue-700); padding-top: 0.6rem; padding-bottom: 0.6rem; }
.compare .yes svg { width: 1.15rem; height: 1.15rem; color: var(--blue-600); vertical-align: -0.2rem; }
.compare .no { color: var(--slate-400); }

/* FAQ */

.faq { max-width: 48rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 1.25rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; color: var(--slate-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; font-weight: 400; color: var(--blue-600); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.15rem; color: var(--muted); }

/* Closing band */

.closing { background: linear-gradient(135deg, var(--navy) 0%, #13284f 100%); color: #fff; text-align: center; }
.closing h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 0 0 0.75rem; letter-spacing: -0.03em; }
.closing p { color: var(--slate-300); font-size: 1.1rem; margin: 0 0 2rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 2.75rem; padding: 3.25rem 1.25rem 4rem; }
  .step-grid, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 3.75rem 1.25rem; }
}
@media (max-width: 520px) {
  .posting { margin-right: 0; }
  .resume { margin-left: 0; }
  .fact-note { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .chip, .match, .sql-word, .caption-ask, .caption-tailored, .label, .globex, .resume {
    transition: background-color 700ms ease, color 700ms ease, border-color 700ms ease, max-width 800ms ease, max-height 700ms ease, opacity 700ms ease, box-shadow 700ms ease, margin 700ms ease, transform 200ms ease;
  }
  .posting { transition: transform 200ms ease, box-shadow 700ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .plan.free:hover, .posting, .resume { transform: none; }
}
