/* ============================================================
   MaleCheck — shadcn-inspired design system
   Neutral zinc palette + deep green brand accent.
   ============================================================ */

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --muted: #71717a;
  --muted-light: #a1a1aa;
  --primary: #166534;
  --primary-hover: #15803d;
  --primary-soft: #dcfce7;
  --primary-ring: rgba(22, 101, 52, 0.25);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  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;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 720px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #f4f4f5;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 560px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.bn-a {
  color: var(--text);
}

.bn-b {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: #f4f4f5;
  color: var(--text);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: #f4f4f5;
  color: var(--text);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.02rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn:focus-visible,
.form-card select:focus-visible,
.form-card input:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(22, 101, 52, 0.10), transparent 70%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 20px auto 18px;
  max-width: 780px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  max-width: 620px;
  margin: 0 auto 30px;
}

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

.trust-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-list svg {
  color: var(--primary);
}

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.step {
  padding: 26px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Stats band ---------- */

.stats-band {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 30px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Dimensions ---------- */

.dim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.dim {
  padding: 22px;
}

.dim-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 12px;
}

.dim h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.dim p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Sample report ---------- */

.sample-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 36px;
}

.sample-copy h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.sample-copy p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.96rem;
}

.sample-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sample-list li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.94rem;
}

.sample-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  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='%23166534' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.phone {
  max-width: 340px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone-screen {
  padding: 22px;
}

.phone-score {
  text-align: center;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
}

.phone-score .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.phone-score .lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.phone-item:last-child {
  border-bottom: 0;
}

.phone-item .pi-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 3px;
}

.phone-item .pi-detail {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.phone-note {
  font-size: 0.72rem;
  color: var(--muted-light);
  text-align: center;
  padding: 9px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* ---------- Style notes ---------- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.note {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.note-tag {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.note h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

.note p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 16px;
  flex: 1;
}

.note a {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- What this is not ---------- */

.not-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.not-item {
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.not-item svg {
  flex-shrink: 0;
  color: var(--muted-light);
  margin-top: 3px;
}

/* ---------- Form ---------- */

.form-card {
  padding: 32px;
}

.mode-switch {
  display: flex;
  gap: 6px;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 12px;
}

.mode-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mode-btn:hover {
  color: var(--text);
}

.mode-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.mode-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
}

.field-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -8px 0 16px;
}

.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: #fafafa;
  padding: 28px 18px;
  text-align: center;
  margin-bottom: 14px;
}

.upload-hint {
  color: var(--muted-light);
  font-size: 0.8rem;
  margin: 10px 0 0;
}

.upload-previews {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.preview-thumb {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f4f4f5;
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.form-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 26px;
}

.form-progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.form-step h3 {
  font-size: 1.2rem;
  margin: 0 0 20px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.field select,
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--card);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
}

.field select:focus,
.field input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.privacy-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 18px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Compare ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}

.compare-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.compare-card .badge {
  align-self: flex-start;
  margin-bottom: 12px;
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.compare-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.price {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.price span {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.check-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.check-list li {
  padding: 7px 0 7px 30px;
  position: relative;
  font-size: 0.94rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  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='%23166534' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.compare-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.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 ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- CTA band ---------- */

.cta {
  background:
    radial-gradient(800px 320px at 50% -80px, rgba(255, 255, 255, 0.12), transparent 70%),
    var(--primary);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.cta-inner p {
  opacity: 0.85;
  margin: 0 0 28px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: #f0fdf4;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 30px;
  background: #f4f4f5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 20px;
  color: var(--muted-light);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-disclaimer {
  max-width: 460px;
  text-align: right;
}

/* ---------- Report page ---------- */

.report-hero {
  padding: 56px 0 32px;
  text-align: center;
  background:
    radial-gradient(800px 380px at 50% -130px, rgba(22, 101, 52, 0.10), transparent 70%),
    var(--bg);
}

.report-score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 30px auto 0;
  flex-wrap: wrap;
  max-width: 680px;
}

.score-ring {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}

.score-ring .track {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.score-ring .value {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.9s ease;
}

.score-ring .score-text {
  font-size: 2rem;
  font-weight: 800;
  fill: var(--text);
}

.score-ring .score-label {
  font-size: 0.72rem;
  fill: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict {
  font-size: 1.08rem;
  text-align: left;
  color: var(--muted);
  max-width: 460px;
  margin: 0;
}

.report-section {
  margin-top: 36px;
}

.report-card {
  padding: 26px 28px;
  margin-bottom: 16px;
}

.report-card h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.report-card .report-summary {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rec-list li {
  padding: 9px 0 9px 24px;
  position: relative;
  font-size: 0.94rem;
  border-top: 1px solid var(--border);
}

.rec-list li:first-child {
  border-top: 0;
}

.rec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.upgrade-card {
  background: linear-gradient(135deg, #14532d, #166534 55%, #15803d);
  color: #fff;
  border: none;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}

.upgrade-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.upgrade-card p {
  opacity: 0.9;
  margin: 0 auto 22px;
  max-width: 520px;
  font-size: 0.96rem;
}

.upgrade-card .btn {
  background: #fff;
  color: var(--primary);
}

.upgrade-card .btn:hover {
  background: #f0fdf4;
}

.error-banner {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.preview-banner {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 30px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: #3f3f46;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .steps,
  .compare,
  .dim-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
  }

  .sample-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sample-copy {
    text-align: left;
  }

  .not-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 24px 18px;
  }

  .report-score-wrap {
    gap: 18px;
  }

  .verdict {
    text-align: center;
  }
}
