/* Clark design system, taken from the Clark App Mockup.
   Link it in every page: <link rel="stylesheet" href="/static/clark.css">
   Font: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap"> */

:root {
  /* Colors */
  --bg: #F4F6F5;          /* page background */
  --surface: #FFFFFF;     /* cards */
  --border: #D7DDDA;      /* card borders */
  --divider: #E6EAE8;     /* lines between list rows */
  --text: #17211D;        /* main text */
  --text-muted: #55605B;  /* secondary text, labels, dates */

  --primary: #1F5C46;       /* main buttons, links, mic */
  --primary-hover: #163F31;
  --primary-ring: #DCEBE4;  /* halo around the mic */

  --clash-bg: #FFF4DB;      /* "Clark noticed a clash" */
  --clash-border: #E9B949;
  --clash-text: #7A4A00;
  --clash-body: #3D2A00;

  --success-bg: #E3F2EA;    /* "Saved to your Sheet" */
  --success-text: #154733;

  /* Type */
  --font: 'DM Sans', system-ui, sans-serif;
  --text-h1: 28px;     /* screen titles */
  --text-h2: 26px;     /* decision title */
  --text-lg: 18px;     /* transcript, questions */
  --text-md: 16px;     /* body, list rows, buttons */
  --text-sm: 14px;     /* secondary */
  --text-xs: 12px;     /* uppercase labels */

  /* Shape and spacing */
  --radius-card: 16px;
  --radius-btn: 14px;
  --radius-sm: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --tap: 48px;         /* minimum button height */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.45;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* Layout: phone-first, centered on larger screens */
.screen {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

h1 { margin: 0; font-size: var(--text-h1); font-weight: 700; line-height: 1.2; }
h2 { margin: 0; font-size: var(--text-h2); font-weight: 700; line-height: 1.25; }

.label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.muted { color: var(--text-muted); font-size: var(--text-sm); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-clash {
  background: var(--clash-bg);
  border: 1px solid var(--clash-border);
  border-radius: var(--radius-card);
  padding: 18px;
  color: var(--clash-body);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card-clash .title { color: var(--clash-text); font-weight: 700; }
.card-clash .quote { font-size: var(--text-sm); font-style: italic; color: #5C4310; }

.banner-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-radius: var(--radius-btn);
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Lists (recent changes, house rules) */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.list-row { padding: 14px 16px; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; }
.list-row:last-child { border-bottom: none; }
.list-row .title { font-weight: 500; }

.tag-exception {
  align-self: flex-start;
  font-size: 13px;
  background: var(--clash-bg);
  color: var(--clash-text);
  border-radius: 8px;
  padding: 4px 8px;
}

/* Buttons */
.btn {
  min-height: var(--tap);
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #FFFFFF; border: none; }
.btn-primary:hover { background: var(--primary-hover); color: #FFFFFF; }
.btn-secondary { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); }
.btn-plain { background: transparent; color: var(--text-muted); border: none; }
.btn-block { width: 100%; min-height: 56px; }

/* The mic */
.mic {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 12px var(--primary-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
}
.mic.listening { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse {
  50% { box-shadow: 0 0 0 20px var(--primary-ring); }
}

/* Inputs */
textarea, input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: var(--text-md);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.checklist label { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); }
.checklist input { width: 22px; height: 22px; accent-color: var(--primary); }

/* Staff message box */
.message-box { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; line-height: 1.5; }
