@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;0,8..60,800;1,8..60,400&family=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Caveat:wght@400;600&display=swap");

/*
  Math CoTeacher starter theme

  Live references:
  - https://mathcoteacher.com
  - https://mathcoteacher.com/demo/student
  - https://mathcoteacher.com/demo/teacher

  This file is intentionally stack-agnostic.
  If the target app uses Tailwind, CSS-in-JS, or a component library,
  translate these tokens and patterns instead of inventing new ones.
*/

:root {
  /* Core neutrals */
  --mct-white: #ffffff;
  --mct-ink: #1a1a2e;
  --mct-ink-light: #2d2d4a;
  --mct-charcoal: #2d2d2d;
  --mct-slate: #6b7280;
  --mct-soft-border: #e8ddd0;

  /* Brand surfaces */
  --mct-cream-marketing: #faf9f7;
  --mct-light: #f8f6f3;
  --mct-cream-app: #fdf6ec;
  --mct-cream-app-deep: #f5ede0;

  /* Primary accents */
  --mct-warm: #c9563c;
  --mct-warm-hover: #b04530;
  --mct-warm-glow: rgba(201, 86, 60, 0.12);
  --mct-orange: #d4622b;
  --mct-orange-hover: #bf5524;
  --mct-orange-light: #f0a875;
  --mct-orange-wash: #fff0e6;

  /* Supporting accents */
  --mct-teal: #2b6b6b;
  --mct-teal-dark: #1e4f4f;
  --mct-teal-light: #4a9e9e;
  --mct-teal-wash: #e8f4f4;
  --mct-red: #b84233;
  --mct-red-wash: #fff0f0;
  --mct-sage: #7ba084;
  --mct-sage-wash: #eff5f0;
  --mct-amber: #e8a838;
  --mct-amber-wash: #fff8e8;
  --mct-gold: #d4a853;
  --mct-green: #2d8a4e;
  --mct-green-wash: #e8f5e9;
  --mct-purple: #6b5ce7;
  --mct-purple-wash: #f3f0ff;

  /* Type */
  --mct-font-brand: "Source Serif 4", Georgia, serif;
  --mct-font-display: "Outfit", "DM Sans", sans-serif;
  --mct-font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mct-font-hand: "Caveat", cursive;
  --mct-font-mono: "SF Mono", Monaco, "Cascadia Mono", "Roboto Mono", monospace;

  /* Spacing */
  --mct-space-1: 4px;
  --mct-space-2: 8px;
  --mct-space-3: 12px;
  --mct-space-4: 16px;
  --mct-space-5: 20px;
  --mct-space-6: 24px;
  --mct-space-7: 32px;
  --mct-space-8: 40px;
  --mct-space-9: 48px;
  --mct-space-10: 64px;

  /* Radius */
  --mct-radius-sm: 8px;
  --mct-radius-md: 12px;
  --mct-radius-lg: 16px;
  --mct-radius-xl: 20px;
  --mct-radius-pill: 999px;

  /* Elevation */
  --mct-shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  --mct-shadow-soft-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.06);
  --mct-shadow-float: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Layout */
  --mct-max-marketing: 1080px;
  --mct-max-reading: 760px;
  --mct-max-product-column: 760px;

  /* Type scale */
  --mct-text-2xl: 32px;
  --mct-text-xl: 22px;
  --mct-text-lg: 16px;
  --mct-text-base: 14px;
  --mct-text-sm: 12px;
  --mct-text-xs: 10px;

  /* Insight panel */
  --mct-insight-bg: rgba(212, 98, 43, 0.05);

  /* Logo shadow */
  --mct-shadow-logo: 0 2px 6px rgba(212, 98, 43, 0.3);

  /* Grid background */
  --mct-grid-line: rgba(200, 180, 160, 0.08);
  --mct-grid-size: 20px;

  /* Motion */
  --mct-transition-fast: 150ms ease;
  --mct-transition-base: 200ms ease;
  --mct-transition-slow: 400ms ease;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--mct-font-body);
  color: var(--mct-charcoal);
  background: var(--mct-cream-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--mct-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mct-charcoal);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--mct-orange);
  outline-offset: 2px;
}

.mct-surface-marketing {
  background: var(--mct-cream-marketing);
  color: var(--mct-ink);
}

.mct-surface-product {
  background: var(--mct-cream-app);
  color: var(--mct-charcoal);
}

.mct-heading-brand {
  font-family: var(--mct-font-brand);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--mct-ink);
}

.mct-heading-product {
  font-family: var(--mct-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mct-charcoal);
}

.mct-eyebrow {
  font-family: var(--mct-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mct-orange);
}

.mct-copy-lead {
  font-family: var(--mct-font-brand);
  line-height: 1.6;
  color: var(--mct-slate);
}

.mct-copy-body {
  line-height: 1.6;
  color: #555;
}

.mct-card {
  background: var(--mct-white);
  border: 1px solid var(--mct-soft-border);
  border-radius: var(--mct-radius-lg);
  box-shadow: var(--mct-shadow-soft);
}

.mct-card--flat {
  box-shadow: none;
}

.mct-card--wash-orange {
  background: var(--mct-orange-wash);
  border-color: rgba(212, 98, 43, 0.25);
}

.mct-card--wash-teal {
  background: var(--mct-teal-wash);
  border-color: rgba(43, 107, 107, 0.25);
}

.mct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mct-space-2);
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--mct-radius-md);
  font-family: var(--mct-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--mct-transition-base), color var(--mct-transition-base),
    border-color var(--mct-transition-base), transform var(--mct-transition-base),
    box-shadow var(--mct-transition-base);
}

.mct-btn:hover {
  transform: translateY(-1px);
}

.mct-btn--brand {
  color: var(--mct-white);
  background: var(--mct-warm);
  box-shadow: 0 2px 8px rgba(201, 86, 60, 0.25);
}

.mct-btn--brand:hover {
  background: var(--mct-warm-hover);
  box-shadow: 0 4px 16px rgba(201, 86, 60, 0.3);
}

.mct-btn--product {
  color: var(--mct-white);
  background: var(--mct-orange);
}

.mct-btn--product:hover {
  background: var(--mct-orange-hover);
}

.mct-btn--secondary {
  color: var(--mct-charcoal);
  background: var(--mct-white);
  border-color: rgba(0, 0, 0, 0.12);
}

.mct-btn--secondary:hover {
  color: var(--mct-orange);
  border-color: var(--mct-orange);
}

.mct-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--mct-radius-pill);
  font-family: var(--mct-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mct-pill--orange {
  color: var(--mct-orange);
  background: var(--mct-orange-wash);
}

.mct-pill--teal {
  color: var(--mct-teal);
  background: var(--mct-teal-wash);
}

.mct-pill--danger {
  color: var(--mct-red);
  background: var(--mct-red-wash);
}

.mct-pill--success {
  color: var(--mct-sage);
  background: var(--mct-sage-wash);
}

.mct-shell-bar {
  min-height: 56px;
  background: var(--mct-charcoal);
  color: var(--mct-white);
}

.mct-chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--mct-radius-lg);
  line-height: 1.55;
}

.mct-chat-bubble--assistant {
  background: var(--mct-white);
  color: var(--mct-charcoal);
  border: 1px solid var(--mct-soft-border);
  border-bottom-left-radius: 4px;
}

.mct-chat-bubble--student {
  background: var(--mct-teal);
  color: var(--mct-white);
  border-bottom-right-radius: 4px;
}

.mct-thinking-panel {
  background: var(--mct-orange-wash);
  border-left: 3px solid var(--mct-orange);
  border-radius: 0 var(--mct-radius-md) var(--mct-radius-md) 0;
  padding: 14px 18px;
}

.mct-thinking-label {
  font-family: var(--mct-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mct-orange);
}

.mct-work-surface {
  background: var(--mct-white);
  border: 1px solid var(--mct-soft-border);
  border-radius: 14px;
  padding: 20px 24px;
  color: var(--mct-charcoal);
  font-family: var(--mct-font-hand);
}

.mct-manipulative-card {
  background: var(--mct-white);
  border: 1px solid var(--mct-soft-border);
  border-radius: 14px;
  padding: 20px 24px;
}

.mct-diagram-label {
  font-family: var(--mct-font-display);
  font-weight: 600;
  color: var(--mct-charcoal);
}

.mct-mono {
  font-family: var(--mct-font-mono);
}

.mct-surface-grid {
  background-image:
    linear-gradient(var(--mct-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mct-grid-line) 1px, transparent 1px);
  background-size: var(--mct-grid-size) var(--mct-grid-size);
}

.mct-microlabel {
  font-family: var(--mct-font-display);
  font-size: var(--mct-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mct-microlabel--orange {
  color: var(--mct-orange);
}

.mct-microlabel--teal {
  color: var(--mct-teal);
}

.mct-microlabel--gray {
  color: var(--mct-slate);
}

.mct-insight-panel {
  background: var(--mct-insight-bg);
  border-left: 3px solid var(--mct-orange);
  border-radius: 0 var(--mct-radius-sm) var(--mct-radius-sm) 0;
  padding: var(--mct-space-4);
}

.mct-insight-text {
  font-family: var(--mct-font-brand);
  font-size: var(--mct-text-base);
  line-height: 1.6;
  color: #4a4a4a;
}

.mct-progress-track {
  height: 4px;
  background: var(--mct-soft-border);
  border-radius: 2px;
  overflow: hidden;
}

.mct-progress-fill {
  height: 100%;
  background: var(--mct-teal);
  border-radius: 2px;
}

.mct-fox-logo {
  width: 32px;
  height: 32px;
  background: var(--mct-orange);
  border-radius: var(--mct-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--mct-shadow-logo);
}

.mct-pill--sage {
  color: #5c8066;
  background: rgba(123, 160, 132, 0.12);
}

.mct-pill--orange-subtle {
  color: var(--mct-orange);
  background: rgba(212, 98, 43, 0.1);
}

.mct-copy-light {
  font-family: var(--mct-font-body);
  font-weight: 300;
  font-size: var(--mct-text-sm);
  color: #666;
}
