/* ===== HRD Grant Eligibility Calculator — Product Page ===== */

/* --- Tokens --- */
:root {
  --navy: #1a2744;
  --navy-light: #2d3a56;
  --teal: #0e8a8a;
  --teal-light: #e6f5f5;
  --orange: #e8850c;
  --orange-light: #fff5e6;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --text: #1a2744;
  --muted: #5a6478;
  --border: #e2e6ed;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(26, 39, 68, 0.06);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; }

/* --- Layout --- */
.container { width: min(1080px, 92%); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.alt { background: var(--surface); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }

@media (max-width: 768px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 138, 138, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(14, 138, 138, 0.4);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}
.btn--sm { padding: 8px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

.text-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.text-link:hover { color: var(--navy); }

/* --- Header (sticky) --- */
.calc-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  transition: box-shadow 0.3s;
}
.calc-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.calc-brand { display: flex; align-items: center; }
.calc-brand-logo {
  height: 48px;
  width: auto;
}
.calc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.calc-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.calc-nav a:hover { color: var(--navy); }
.calc-nav .btn { color: #fff; }
.calc-nav .btn:hover { color: #fff; }
.calc-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.calc-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .calc-nav {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid var(--border);
    z-index: 99;
  }
  .calc-nav.open { display: flex; }
  .calc-nav a { font-size: 1.05rem; padding: 12px 0; }
  .calc-nav .btn { width: 100%; text-align: center; }
  .calc-nav-toggle { display: flex; }
}

/* --- Hero --- */
.hero {
  padding-top: clamp(100px, 14vw, 140px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-center-icon {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto 24px;
}
.eyebrow {
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 16px;
}
.hero-centered h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(90deg, #16a34a, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 20px;
}
.hero-centered .hero-ctas { justify-content: center; }
.hero-text { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.highlight {
  color: var(--teal);
}
.subheadline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 460px;
  margin: 0;
}
.benefit-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}
.benefit-bullets li::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-light);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e8a8a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 40%, var(--teal-light), transparent 60%),
    radial-gradient(circle at 70% 60%, var(--orange-light), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-logo-img {
  max-width: 280px;
  height: auto;
}

@media (max-width: 768px) {
  .hero-visual { order: -1; }
  .hero-text { text-align: center; align-items: center; }
  .benefit-bullets { align-items: center; }
  .hero-ctas { justify-content: center; }
  .screenshot-placeholder { max-width: 320px; }
  .hero-logo-img { max-width: 220px; }
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--surface);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-items span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-items svg { color: var(--teal); flex-shrink: 0; }
.trust-dot {
  width: 4px !important;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-dot { display: none; }
  .trust-items { flex-direction: column; gap: 10px; }
}

/* --- Feature Cards --- */
.cards { gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26, 39, 68, 0.08);
}
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 14px;
}
.card:nth-child(1) .card-icon { background: var(--teal-light); }
.card:nth-child(2) .card-icon { background: var(--orange-light); }
.card:nth-child(3) .card-icon { background: color-mix(in oklab, var(--navy), transparent 90%); }
.card h3 { font-size: 1.1rem; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* --- Steps --- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin-inline: auto;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 10px;
}
.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: -18px;
}

@media (max-width: 600px) {
  .steps { flex-direction: column; gap: 0; }
  .step-connector {
    width: 2px;
    height: 28px;
    margin: 0;
  }
}

/* --- Download Section --- */
.download-section {
  background:
    radial-gradient(600px 300px at 30% 50%, var(--teal-light), transparent),
    radial-gradient(500px 300px at 70% 50%, var(--orange-light), transparent),
    var(--surface);
}
.download-box {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.download-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
}
.download-box h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--navy);
  margin-bottom: 8px;
}
.download-box p {
  color: var(--muted);
  margin-bottom: 24px;
}
.download-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.download-note {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item[open] {
  box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "-";
}
.faq-item p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.disclaimer {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* --- Footer --- */
.calc-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0;
}
.calc-footer .container {
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
}
.footer-copy {
  font-size: 0.82rem;
  margin: 2px 0 0;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 600px) {
  .calc-footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
