:root {
  --ink: oklch(24% 0.05 260);
  --ink-2: oklch(30% 0.05 260);
  --paper: oklch(98% 0.005 260);
  --gold: oklch(78% 0.15 75);
  --slate: oklch(45% 0.02 260);
  --slate-light: oklch(80% 0.01 260);
  --line: oklch(90% 0.01 260);
  --line-dark: oklch(38% 0.03 260);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }

.wordmark {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.wordmark .accent { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.site-header .brand svg { flex-shrink: 0; }
.site-header .brand .wordmark { font-size: 19px; color: #fff; }

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  color: var(--slate-light);
  font-size: 15px;
  font-weight: 600;
}
.site-nav a:hover { color: #fff; }

.btn-login {
  border: 1px solid oklch(55% 0.02 260);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
}
.btn-login:hover { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  padding: 64px 32px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: start;
}
.hero-copy h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 20px;
}
.hero-copy h1 .accent { color: var(--gold); }
.hero-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-light);
  max-width: 480px;
  margin: 0 0 14px;
}
.hero-copy .free-note {
  font-size: 14px;
  color: var(--slate-light);
}
.hero-copy .free-note .accent { color: var(--gold); font-weight: 600; }

/* Auth widget card, styled after motorlog.co.uk's inline hero widget */
.auth-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 32px oklch(15% 0.05 260 / 0.35);
}
.auth-tabs {
  display: flex;
  background: var(--paper);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--slate);
}
.auth-tabs a.active {
  background: var(--gold);
  color: var(--ink);
}
.auth-tabs a:hover:not(.active) { color: var(--ink); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.btn-primary {
  width: 100%;
  padding: 13px 0;
  border-radius: 8px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary:hover { background: var(--ink-2); }

.auth-foot {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate);
}

.form-error {
  background: oklch(92% 0.08 30);
  color: oklch(35% 0.12 30);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ---------- How it works ---------- */
.how-it-works {
  padding: 64px 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.how-it-works h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 26px;
  margin: 0 0 32px;
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  margin: 0 0 8px;
}
.step p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slate);
  font-size: 13px;
}
.site-footer .brand { display: flex; align-items: center; gap: 8px; }
.site-footer .brand .wordmark { font-size: 14px; color: var(--ink); }

/* ---------- Dashboard ---------- */
.dashboard {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.dash-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  margin: 0;
}
.dash-header form { margin: 0; }
.link-btn {
  background: none;
  border: none;
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.link-btn:hover { color: var(--ink); }

.dash-sub { color: var(--slate); margin: 0 0 32px; font-size: 14px; }

.stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.stat-card .stat-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
}
.stat-card .stat-value.accent { color: var(--gold); }
.stat-card .stat-label {
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  background: #fff;
}
.panel h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  margin: 0 0 6px;
}
.panel .panel-sub {
  color: var(--slate);
  font-size: 13px;
  margin: 0 0 18px;
}

.theme-toggle { display: flex; gap: 10px; margin-bottom: 18px; }
.theme-toggle label {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.theme-toggle input { margin: 0; }

.code-block {
  background: var(--ink);
  color: oklch(90% 0.01 260);
  border-radius: 10px;
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 12px;
}
.copy-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.copy-btn:hover { border-color: var(--ink); }

.review-link-box {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 8px;
  word-break: break-all;
}

.preview-frame {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--paper);
}
.preview-frame iframe {
  border: none;
  width: 100%;
  display: block;
}

.saved-banner {
  background: oklch(90% 0.08 145);
  color: oklch(30% 0.1 145);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-item .review-verdict {
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
}
.review-item .review-verdict.yes { color: oklch(50% 0.13 165); }
.review-item .review-verdict.no { color: var(--slate); }
.review-item p { margin: 6px 0 0; font-size: 14px; color: var(--ink); }
.review-item .review-date { font-size: 12px; color: var(--slate); }

/* ---------- Review request page ---------- */
.review-request-page {
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.review-request-page .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.review-request-page .brand .wordmark { font-size: 14px; }
.review-request-page .kicker {
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 4px;
}
.review-request-page h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  margin: 0 0 22px;
}
.question-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}
.question-card .question {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 16px;
}
.yes-no-row { display: flex; gap: 10px; margin-bottom: 20px; }
.yes-no-option {
  flex: 1;
  position: relative;
}
.yes-no-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.yes-no-option span {
  display: block;
  text-align: center;
  padding: 13px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate);
}
.yes-no-option input:checked + span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.yes-no-option.no-option input:checked + span {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  min-height: 90px;
  resize: vertical;
  margin-bottom: 18px;
  color: var(--ink);
}
.btn-gold {
  width: 100%;
  padding: 13px 0;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.thank-you {
  text-align: center;
  padding: 40px 0;
}
.thank-you svg { margin-bottom: 16px; }
.thank-you h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  margin: 0 0 8px;
}
.thank-you p { color: var(--slate); font-size: 14px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .stat-row { flex-direction: column; }
}
