/* =============================================================================
   Task Matter — landing page
   Palette mirrors the app (modules/client/css/style.css):
     cream base + near-black raised + gold + teal accents, Quicksand type.
   ============================================================================= */

:root {
  --tm-light:        #fdfbf7;
  --tm-light-dim:    #f5f2eb;
  --tm-light-hover:  #eeeae2;
  --tm-light-raised: #fffefa;

  --tm-dark:         #0e0e13;
  --tm-dark-raised:  #181820;
  --tm-dark-elev:    #1a1a21;

  --tm-text:         #2d2a26;
  --tm-text-2:       #4d4843;
  --tm-text-muted:   #6b6560;
  --tm-text-on-dark: #fffaea;

  --tm-gold:         #b8860b;
  --tm-gold-light:   #daa520;
  --tm-teal:         #2d6a6a;
  --tm-teal-light:   #408080;

  --tm-border:       #e5e0d4;

  --tm-radius-sm: 6px;
  --tm-radius-md: 10px;
  --tm-radius-lg: 18px;

  --tm-shadow-sm: 0 1px 2px rgba(20, 16, 8, 0.06);
  --tm-shadow-md: 0 6px 18px rgba(20, 16, 8, 0.08);
  --tm-shadow-lg: 0 20px 50px rgba(20, 16, 8, 0.12);

  --tm-font: 'Quicksand', Helvetica, Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--tm-font);
  background: var(--tm-light);
  color: var(--tm-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--tm-teal); text-decoration: none; }
a:hover { color: var(--tm-teal-light); }

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

/* =============================================================================
   Header
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--tm-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--tm-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-icon { width: 28px; height: 28px; object-fit: contain; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--tm-text-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--tm-text); }
.site-nav .nav-cta {
  background: var(--tm-dark);
  color: var(--tm-text-on-dark);
  padding: 0.5rem 0.9rem;
  border-radius: var(--tm-radius-sm);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--tm-dark-elev); color: var(--tm-text-on-dark); }

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* =============================================================================
   Hero
   ============================================================================= */
.hero {
  padding: 5rem 1.5rem 5.5rem;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(218, 165, 32, 0.10), transparent 70%),
    radial-gradient(40% 35% at 80% 10%, rgba(64, 128, 128, 0.10), transparent 70%),
    var(--tm-light);
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-icon {
  width: 160px;
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 8px 20px rgba(184, 134, 11, 0.18));
}

.wordmark {
  font-family: var(--tm-font);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: 0.005em;
  margin: 0 0 1.5rem;
  color: var(--tm-text);
}

.tagline {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: var(--tm-text);
  margin: 0 0 0.9rem;
  line-height: 1.35;
}

.sub {
  font-size: 1.05rem;
  color: var(--tm-text-muted);
  max-width: 580px;
  margin: 0 auto 2.25rem;
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--tm-radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--tm-dark);
  color: var(--tm-text-on-dark);
  box-shadow: var(--tm-shadow-md);
}
.btn-primary:hover {
  background: var(--tm-dark-elev);
  color: var(--tm-text-on-dark);
  box-shadow: var(--tm-shadow-lg);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* =============================================================================
   Sections
   ============================================================================= */
section { padding: 4.5rem 1.5rem; }
.section-inner { max-width: 1040px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 2.5rem;
  text-align: center;
  color: var(--tm-text);
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--tm-gold);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

/* =============================================================================
   Section lede (intro paragraph under a section title)
   ============================================================================= */
.section-lede {
  max-width: 680px;
  margin: -1rem auto 2.75rem;
  text-align: center;
  color: var(--tm-text-2);
  font-size: 1.05rem;
}
.section-lede em { color: var(--tm-text); font-style: italic; }

/* =============================================================================
   Contrast: disposable AI vs. AI with a purpose
   ============================================================================= */
.contrast { background: var(--tm-light); }

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}
@media (max-width: 820px) {
  .contrast-grid { grid-template-columns: 1fr; }
}

.contrast-card {
  border-radius: var(--tm-radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--tm-shadow-sm);
}
.contrast-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.contrast-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contrast-card li { font-size: 0.98rem; line-height: 1.5; }

.contrast-tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.contrast-card.disposable {
  background: var(--tm-light-dim);
  border: 1px solid var(--tm-border);
  color: var(--tm-text-muted);
}
.contrast-card.disposable h3 { color: var(--tm-text-2); }
.contrast-card.disposable .contrast-tag {
  background: #e8e3d8;
  color: var(--tm-text-muted);
}
.contrast-card.disposable li { text-decoration: line-through; text-decoration-color: rgba(107, 101, 96, 0.4); }

.contrast-card.durable {
  background: var(--tm-dark);
  color: var(--tm-text-on-dark);
  border: 1px solid #2a2a35;
  box-shadow: var(--tm-shadow-lg);
}
.contrast-card.durable h3 { color: var(--tm-text-on-dark); }
.contrast-card.durable .contrast-tag {
  background: var(--tm-gold);
  color: #1b1408;
}
.contrast-card.durable li::marker { color: var(--tm-gold-light); }

/* =============================================================================
   How it works
   ============================================================================= */
.how { background: var(--tm-light-dim); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--tm-light-raised);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--tm-shadow-sm);
  position: relative;
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--tm-gold);
  color: var(--tm-light);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tm-text);
}
.step p {
  margin: 0;
  color: var(--tm-text-2);
  font-size: 0.98rem;
}

/* =============================================================================
   Why
   ============================================================================= */
.why { background: var(--tm-light); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  padding: 1.5rem 1.25rem;
  border-left: 3px solid var(--tm-teal);
  background: var(--tm-light-dim);
  border-radius: 0 var(--tm-radius-md) var(--tm-radius-md) 0;
}
.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tm-text);
}
.why-card p {
  margin: 0;
  color: var(--tm-text-2);
  font-size: 0.95rem;
}

/* =============================================================================
   Signup
   ============================================================================= */
.signup {
  background: var(--tm-dark);
  color: var(--tm-text-on-dark);
}
.signup .section-title { color: var(--tm-text-on-dark); }
.signup .section-title::after { background: var(--tm-gold-light); }

.signup-inner { max-width: 620px; }

.signup-lede {
  text-align: center;
  color: var(--tm-text-on-dark);
  opacity: 0.85;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.signup-form {
  background: var(--tm-dark-raised);
  border: 1px solid #2a2a35;
  border-radius: var(--tm-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--tm-shadow-lg);
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tm-text-on-dark);
  opacity: 0.9;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--tm-text-on-dark);
  background: var(--tm-dark-elev);
  border: 1px solid #2f2f3a;
  border-radius: var(--tm-radius-md);
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 250, 234, 0.4);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--tm-gold-light);
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.signup-form .btn-primary {
  background: var(--tm-gold);
  color: #1b1408;
  margin-top: 0.25rem;
}
.signup-form .btn-primary:hover {
  background: var(--tm-gold-light);
  color: #1b1408;
}

.form-note {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--tm-text-on-dark);
  opacity: 0.85;
  text-align: center;
}
.form-note.ok  { color: #9be3a8; opacity: 1; }
.form-note.err { color: #f3a6a6; opacity: 1; }

/* =============================================================================
   Footer
   ============================================================================= */
.site-footer {
  background: var(--tm-light-dim);
  border-top: 1px solid var(--tm-border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600;
  color: var(--tm-text);
}
.footer-icon { width: 22px; height: 22px; object-fit: contain; }
.footer-meta {
  margin: 0;
  color: var(--tm-text-muted);
  font-size: 0.9rem;
}
