/* AI Workshop — landing + dashboard styles.
   Palette: warm sand, ink, one accent. Intentionally plain — this is a
   Chief-approvable placeholder until the Growth & Content Lead brings a
   proper brand system. Swap variables in :root to rebrand. */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #fdfaf4;
  --paper-2: #ffffff;
  --accent: #b45309;      /* burnt amber — reads warm on ivory */
  --accent-2: #78350f;
  --ok: #059669;
  --err: #b91c1c;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.brandbar .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.brandbar .where { color: var(--muted); font-weight: 500; margin-left: auto; }

.hero {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 em { color: var(--accent); font-style: normal; }
.lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 24px;
}
.metabar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
}
.metabar b { color: var(--ink-2); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; gap: 32px; }
}

section.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
section.card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
section.card p { margin: 0 0 12px; color: var(--ink-2); }

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  width: 16px; height: 16px; margin-top: 6px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 20%, 84% 8%, 40% 68%);
}

form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
input, textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}
textarea { min-height: 84px; resize: vertical; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.consent input { width: 18px; height: 18px; margin-top: 3px; }

button {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 60ms, background 120ms;
}
button:hover { background: var(--accent-2); }
button:active { transform: translateY(1px); }
button[disabled] { background: var(--muted); cursor: progress; }

.form-msg {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}
.form-msg.err { background: #fef2f2; color: var(--err); display: block; }
.form-msg.ok  { background: #ecfdf5; color: var(--ok);  display: block; }

.field-err { color: var(--err); font-size: 13px; min-height: 1em; }

.fineprint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
}

/* Thanks page */
.thanks {
  text-align: center;
  padding: 80px 0;
}
.thanks h1 { margin-bottom: 8px; }
.thanks p { color: var(--ink-2); max-width: 520px; margin: 0 auto 24px; }

/* Dashboard */
.dashwrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.dashhead { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.dashhead h1 { margin: 0; font-size: 26px; }
.dashhead .muted { color: var(--muted); font-size: 14px; }
.stat { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.stat small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.chartcard { margin-top: 20px; }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 14px; }
.legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.muted { color: var(--muted); }
.days { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.days th, .days td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.days th { color: var(--muted); font-weight: 500; }
