/* ==========================================================================
   Together Testing — public pages (landing, auth, legal)
   Hand-rolled, no framework. Bold violet primary with the logo's amber
   as accent.
   ========================================================================== */

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-deep: #4c1d95;
  --accent: #f0b429;
  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #f7f9fc;
  --card: #ffffff;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;
  --danger-text: #b42318;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 12px 32px rgba(76, 29, 149, 0.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

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

img { max-width: 100%; }

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

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

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

.btn-light {
  background: #fff;
  color: var(--primary-deep);
}
.btn-light:hover { background: #f3eefe; color: var(--primary-deep); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav .nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.site-nav .nav-link:hover { color: var(--primary); }

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

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(240, 180, 41, 0.22), transparent 60%),
    linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 78%);
  color: #dbe4f5;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero .hero-sub {
  font-size: 19px;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note { margin-top: 18px; font-size: 14px; color: rgba(219, 228, 245, 0.75); }

/* Report-card visual (pure CSS) */

.report-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 420px;
  margin-left: auto;
  color: var(--body);
}

.report-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.report-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3eefe;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-name { font-weight: 700; color: var(--ink); }
.report-role { font-size: 13px; color: var(--muted); }

.report-score {
  margin-left: auto;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.skill { margin-bottom: 14px; }
.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.skill-bar {
  height: 8px;
  border-radius: 4px;
  background: #eef1f6;
  overflow: hidden;
}
.skill-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #a78bfa 100%);
}
.skill-bar .fill-accent { background: linear-gradient(90deg, #d99e14 0%, var(--accent) 100%); }

.report-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Landing sections
   -------------------------------------------------------------------------- */

.section { padding: 84px 0; }
.section-alt { background: var(--surface); }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f3eefe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 15px; }

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; }

/* Split (two-column) sections */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist li span { display: block; font-weight: 400; color: var(--body); font-size: 15px; }

/* Compare panel (resume vs assessment) */

.compare-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare-row + .compare-row { border-top: 1px solid var(--line); }

.compare-cell { padding: 18px 22px; font-size: 14px; }
.compare-cell:first-child { border-right: 1px solid var(--line); }

.compare-head {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.compare-head.is-dim { color: var(--muted); background: var(--surface); }
.compare-head.is-hot { color: var(--primary); background: #f3eefe; }

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 80%);
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
  color: #dbe4f5;
}
.cta-band h2 { color: #fff; font-size: 30px; font-weight: 800; }
.cta-band p { max-width: 40em; margin: 0 auto 28px; }

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */

.auth-wrap {
  min-height: 100%;
  background: var(--surface);
  padding: 64px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 440px;
  padding: 40px;
}

.auth-card-wide { max-width: 560px; }

.auth-card h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

.auth-links { text-align: center; margin-top: 22px; font-size: 15px; color: var(--muted); }
.auth-links a { font-weight: 600; }

.auth-aside {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 14px;
}

.form-group { margin-bottom: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control::placeholder { color: #98a2b3; }

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

textarea.form-control { resize: vertical; min-height: 110px; }

.form-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.form-legal { font-size: 13px; color: var(--muted); margin: 4px 0 20px; }

/* Validation errors (classes come from common/validation_errors.html) */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}

.alert-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

/* Account message page */

.auth-card .message-body { font-size: 15px; }
.auth-card .message-body a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Legal pages (terms / privacy)
   -------------------------------------------------------------------------- */

.legal-wrap { background: #fff; padding: 56px 24px 72px; }

.legal {
  max-width: 860px;
  margin: 0 auto;
  font-size: 15px;
}

.legal h3 { font-size: 28px; margin-bottom: 4px; }
.legal h5, .legal h6 { color: var(--muted); font-weight: 600; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
  flex-shrink: 0;
}

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

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; font-weight: 500; color: var(--body); }
.footer-links a:hover { color: var(--primary); }

.footer-copy { font-size: 13px; color: var(--muted); }

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

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .report-card { margin: 0 auto; }

  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
}

@media (max-width: 520px) {
  .header-inner { height: 64px; }
  .logo img { height: 34px; }
  .site-nav { gap: 12px; }
  .hero h1 { font-size: 29px; }
  .auth-wrap { padding: 32px 16px; }
  .auth-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}
