/* ============================================================================
   Uncoated — uncoated.app
   ============================================================================ */

:root {
  /* Brand palette */
  --sage:        #5B8F72;
  --sage-mid:    #7EAD96;
  --sage-pale:   #EAF2EE;
  --sage-deep:   #3D7161;
  --tan:         #C4975E;
  --tan-light:   #EDD9BB;
  --cream:       #FAF7F2;
  --parchment:   #F0EBE0;
  --warm-white:  #FDFCF9;
  --ink:         #1E1C18;
  --ink-muted:   #65605A;
  --ink-subtle:  #9E9890;
  --border:      #EDE7DC;
  --border-light:#F5F0E8;
  --grade-approved: #52A47C;
  --grade-good:     #75C26B;
  --grade-improve:  #B87040;
  --grade-switch:   #C05A52;
}

/* ----------------------------------------------------------------------------
   Reset + base
   ---------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------------- */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding-top: 24px;
  padding-bottom: 64px;
}

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

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--ink-muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--sage-deep);
  text-decoration: none;
}

@media (max-width: 480px) {
  .nav {
    gap: 14px;
    font-size: 13px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
  }
}

/* ----------------------------------------------------------------------------
   Hero (landing page)
   ---------------------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 56px 0 32px;
}

.hero .mascot {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 32px;
  object-fit: contain;
}

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero .tagline {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 32px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 24px;
  }
  .hero .mascot {
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero .tagline {
    font-size: 16px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 143, 114, 0.2);
}

.btn-primary:hover {
  background: var(--sage-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .btn {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
  }
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ----------------------------------------------------------------------------
   Feature cards (landing)
   ---------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 48px 0;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

/* ----------------------------------------------------------------------------
   Long-form content (privacy, terms, methodology)
   ---------------------------------------------------------------------------- */

.doc-header {
  text-align: left;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.doc-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}

.doc-header .updated {
  font-size: 13px;
  color: var(--ink-subtle);
}

.doc-content {
  max-width: 680px;
}

.doc-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--ink);
}

.doc-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--ink);
}

.doc-content p {
  margin: 0 0 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.doc-content strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink-muted);
}

.doc-content ul li {
  margin: 6px 0;
  line-height: 1.55;
}

.doc-content ul li::marker {
  color: var(--sage);
}

.callout {
  background: var(--sage-pale);
  border: 1px solid rgba(91, 143, 114, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
  color: var(--sage-deep);
  font-weight: 500;
}

.callout-warm {
  background: var(--parchment);
  border-color: var(--border);
}

.callout-warm p {
  color: var(--ink);
  font-weight: 400;
}

.data-table {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 16px 0;
}

.data-table .row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: start;
}

.data-table .row:last-child {
  border-bottom: none;
}

.data-table .row-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.data-table .row-value {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

@media (max-width: 540px) {
  .data-table .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .doc-header h1 {
    font-size: 30px;
  }
  .doc-content h2 {
    font-size: 20px;
  }
}

/* ----------------------------------------------------------------------------
   Score grade chips (used on methodology page)
   ---------------------------------------------------------------------------- */

.grade-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.grade-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.grade-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.grade-dot.approved { background: var(--grade-approved); }
.grade-dot.good     { background: var(--grade-good); }
.grade-dot.improve  { background: var(--grade-improve); }
.grade-dot.switch-it { background: var(--grade-switch); }
.grade-dot.unscored { background: var(--ink-subtle); }

.grade-label {
  flex: 1;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

.grade-range {
  font-size: 13px;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

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

.site-footer {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 48px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--sage-deep);
  text-decoration: none;
}

.footer-meta {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--ink-subtle);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 540px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
