/* Palette sourced from iag.com.au (confirmed across CTA buttons, headings, and
   links on the live site as of 2 July 2026) — deep brand purple, pale lavender
   tint, near-black text, white cards. */
:root {
  --purple: #592c82;
  --purple-dark: #401f5f;
  --purple-tint: #f7f4f9;
  --cream: #faf8f5;
  --ink: #171717;
  --muted: #5c6270;
  --border: #e6e1eb;
  --good-bg: #e4f5ea;
  --good-text: #227a4f;
  --warn-bg: #fbf1de;
  --warn-text: #97671b;
  --shadow: 0 4px 18px rgba(89, 44, 130, 0.08);
  --shadow-hover: 0 8px 26px rgba(89, 44, 130, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

.topbar {
  height: 64px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.brand { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; color: #fff; }
.brand-sub { font-weight: 500; color: rgba(255,255,255,0.82); font-size: 13.5px; margin-left: 8px; }
.brand-by { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 600; }

#app {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 90px;
}

.screen.hidden { display: none; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.card.narrow { max-width: 620px; margin: 0 auto; }
.card.wide { max-width: 860px; margin: 0 auto; }

h1 { font-size: 28px; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  color: var(--purple);
  font-weight: 800;
  margin: 0 0 8px;
}
.lede { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.story { font-size: 17px; line-height: 1.75; color: var(--ink); }
.lesson {
  font-weight: 700;
  color: var(--ink);
  background: var(--purple-tint);
  border-left: 4px solid var(--purple);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin-top: 22px;
}
.brief {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  background: var(--purple-tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.fineprint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* --- form fields --- */
form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15.5px;
  font-family: inherit;
  background: #fcfbfd;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-tint);
  background: #fff;
}

/* --- buttons --- */
button {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  border: none;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
button:active { transform: translateY(1px); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 3px 0 var(--purple-dark);
}
.btn-primary:hover { background: #663595; }
.btn-primary:disabled { background: #d8d4de; color: #9a95a3; box-shadow: none; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-secondary:hover { background: var(--purple-tint); }

.btn-tertiary { background: transparent; color: var(--muted); box-shadow: none; padding: 13px 8px; }
.btn-tertiary:hover { color: var(--ink); }

.actions { display: flex; gap: 12px; margin-top: 28px; justify-content: flex-end; align-items: center; }

/* --- toggle / segmented control (coaching mode, training wheels) --- */
.toggle-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.toggle-btn {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: none;
  text-align: center;
}
.toggle-btn:hover { border-color: var(--purple); color: var(--ink); }
.toggle-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.toggle-hint { font-size: 12px; color: var(--muted); margin: 6px 2px 0; }

/* --- menu / scenario picker --- */
.menu-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }

.scenario-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.scenario-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 18px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.scenario-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.scenario-card .icon { font-size: 28px; line-height: 1; margin-bottom: 10px; display: block; }
.scenario-card .title { font-weight: 800; font-size: 15.5px; margin-bottom: 5px; }
.scenario-card .lesson-preview { font-size: 13px; color: var(--muted); line-height: 1.45; }
.scenario-card .status-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--good-bg);
  color: var(--good-text);
}
.scenario-card.done { border-color: var(--good-text); background: #fbfffc; }
.scenario-card.draft::after {
  content: "Draft — pending review";
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--warn-text);
}

/* --- chat / roleplay --- */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px 12px;
  margin-bottom: 16px;
}
.bubble { max-width: 78%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.bubble.counterpart { background: var(--purple-tint); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.executive { background: var(--ink); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.tip {
  background: var(--warn-bg);
  color: var(--warn-text);
  align-self: center;
  max-width: 90%;
  font-size: 13px;
  font-style: italic;
  border-radius: 10px;
  padding: 9px 14px;
}
.bubble .speaker-label { font-size: 11px; font-weight: 800; opacity: 0.6; display: block; margin-bottom: 4px; letter-spacing: 0.02em; }

.chat-input-row { display: flex; gap: 10px; }
.chat-input-row input { flex: 1; }

.suggestion-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.suggestion-chip {
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--purple);
  color: var(--purple);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: none;
  white-space: normal;
  line-height: 1.4;
}
.suggestion-chip:hover { background: var(--purple-tint); }
.suggestion-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.coaching-text { font-size: 15.5px; line-height: 1.8; white-space: pre-wrap; }

.summary-preview {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-top: 18px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--purple-tint);
}

.thinking { color: var(--muted); font-style: italic; font-size: 13.5px; padding: 6px 4px; }

/* --- footer microcopy under primary CTAs --- */
.microcopy {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: 0.01em;
}
