/* ---------------------------------------------------------------
   HeatLog — shared design tokens and component styles
   Inter font, navy + amber color scheme
--------------------------------------------------------------- */

:root {
  --navy:       #1e3a5f;
  --navy-dark:  #0f2340;
  --amber:      #d97706;
  --amber-light:#fef3c7;
  --red:        #dc2626;
  --red-light:  #fef2f2;
  --green:      #15803d;
  --green-light:#f0fdf4;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;
  --white:      #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:  8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.10), 0 12px 32px rgba(0,0,0,.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------
   Navigation
--------------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.875rem;
  background: var(--navy);
  color: var(--white);
}
.btn-sm:hover { background: var(--navy-dark); }

.btn-primary {
  padding: 14px 24px;
  font-size: 1rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(30,58,95,.25);
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-full { width: 100%; }

/* ---------------------------------------------------------------
   Badge
--------------------------------------------------------------- */
.badge {
  display: inline-block;
  background: var(--amber-light);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  background: var(--white);
  padding: 72px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Stat callout */
.stat-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--red-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 48px;
}
.stat-callout p { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.5; }
.stat-callout strong { color: var(--red); }
.stat-icon { flex-shrink: 0; padding-top: 2px; }

/* Hero form card */
.hero-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.form-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.form-sub {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

/* Form fields */
.signup-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}
input, select {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
input:focus, select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,.12);
}
input::placeholder { color: var(--gray-500); }

.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   How it works
--------------------------------------------------------------- */
.how {
  background: var(--gray-50);
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
}
.how h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.step p { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.6; }

/* ---------------------------------------------------------------
   Inspector checks
--------------------------------------------------------------- */
.inspector-checks {
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
}
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.checks-copy h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.checks-copy p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 12px;
}
.checks-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: var(--radius);
}
.check-pass {
  background: var(--green-light);
  color: var(--green);
}
.check-pass::before {
  content: "✓";
  font-weight: 700;
  flex-shrink: 0;
}
.check-fail {
  background: var(--red-light);
  color: var(--red);
  font-weight: 600;
}
.check-fail::before {
  content: "✗";
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   Law context cards
--------------------------------------------------------------- */
.law-context {
  background: var(--gray-50);
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
}
.law-context h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gray-900);
}
.law-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.law-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.law-card-new {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}
.law-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.law-tag-new {
  color: var(--amber);
}
.law-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.law-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 14px;
  line-height: 1.6;
}
.law-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.law-card li {
  font-size: 0.9rem;
  color: var(--gray-700);
}
.law-card li strong { color: var(--gray-900); }
.law-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ---------------------------------------------------------------
   Bottom CTA
--------------------------------------------------------------- */
.cta-bottom {
  background: var(--navy);
  padding: 72px 0;
}
.cta-bottom-inner {
  text-align: center;
}
.cta-bottom h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-bottom p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 32px;
}
.cta-bottom .btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}
.cta-bottom .btn-primary:hover { background: var(--gray-100); }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
footer {
  background: var(--gray-900);
  padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-legal {
  font-size: 0.8125rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ---------------------------------------------------------------
   Thank-you page specific
--------------------------------------------------------------- */
.thankyou-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thankyou-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thankyou-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 700;
}
.thankyou-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.thankyou-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}
.thankyou-card .next-step {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
  text-align: left;
}
.thankyou-card .next-step strong {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.thankyou-card .next-step p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero { padding: 48px 0 60px; }
  .hero-sub { font-size: 1.0625rem; }
  .hero-form-wrap { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .section-sub { margin-bottom: 32px; }
  .how, .inspector-checks, .law-context { padding: 56px 0; }
  .how h2, .law-context h2 { font-size: 1.5rem; }
  .checks-grid { grid-template-columns: 1fr; gap: 32px; }
  .checks-copy h2 { font-size: 1.375rem; }
  .law-cards { grid-template-columns: 1fr; }
  .cta-bottom { padding: 56px 0; }
  .cta-bottom h2 { font-size: 1.5rem; }
  .cta-bottom .btn-primary { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 480px) {
  /* Container */
  .container { padding: 0 16px; }

  /* Landing page sections */
  .hero { padding: 36px 0 48px; }
  .hero-sub { font-size: 1rem; }
  .stat-callout { padding: 14px 16px; }
  .how, .inspector-checks, .law-context { padding: 40px 0; }
  .how h2, .law-context h2 { font-size: 1.375rem; }
  .section-sub { font-size: .9375rem; margin-bottom: 24px; }
  .cta-bottom { padding: 48px 0; }
  .cta-bottom h2 { font-size: 1.25rem; }
  .cta-bottom p { font-size: 1rem; margin-bottom: 24px; }

  /* Card padding */
  .hero-form-wrap { padding: 24px 20px; }
}
