:root {
  --green: #175d38;
  --gold: #d2a323;
  --navy: #10244a;
  --deep: #071526;
  --ink: #172033;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #f4f7f6;
  --line: #dde5e0;
  --blue: #0a72b8;
  --red: #bb3e4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eaf2ee 0%, #f6f8fb 44%, #eaf2ee 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: #eef4f1;
  box-shadow: 0 0 40px rgba(16, 36, 74, 0.16);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar img {
  width: 148px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.topbar button,
.site-link,
.modal form button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}
.site-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--navy);
  background: #edf8f1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.topbar button {
  min-height: 38px;
  padding: 0 14px;
}

.intro {
  padding: 14px 14px 10px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 21, 38, 0.98), rgba(16, 36, 74, 0.94));
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(7, 21, 38, 0.18);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.hero-card > p:first-child {
  margin: 0 0 8px;
  color: #a8e477;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.intro-copy {
  max-width: 320px;
  margin: 10px 0 0;
  color: rgba(235, 245, 255, 0.82);
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.quick-stats span {
  padding: 10px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 12px;
}

.quick-stats strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.agent-note {
  margin: 0 14px 4px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(23, 93, 56, 0.2);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 36, 74, 0.06);
}
.agent-note strong {
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}
.agent-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.hero-links a::after {
  content: " ->";
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.cards {
  display: grid;
  gap: 14px;
  padding: 0 14px 20px;
}

.brief-card {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(16, 36, 74, 0.08);
}

.brief-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topic {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--green);
  background: #edf8f1;
  border-radius: 999px;
  text-transform: uppercase;
}

.source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #46566c;
  background: #f2f6f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.brief-visual {
  height: 174px;
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7,21,38,0.96), rgba(16,36,74,0.9)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 14px);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.brief-visual::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -38px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(168, 228, 119, 0.22);
}
.brief-visual::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 62px;
  height: 1px;
  background: rgba(255,255,255,0.22);
}
.brief-visual span {
  position: relative;
  z-index: 1;
  font-size: 52px;
  font-weight: 950;
  letter-spacing: 0;
}
.brief-visual small {
  position: relative;
  z-index: 1;
  max-width: 260px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.visual-AI {
  background: linear-gradient(135deg, #0b2e4f, #0a72b8);
}
.visual-Career {
  background: linear-gradient(135deg, #10244a, #d2a323);
}

.brief-card h2 {
  margin: 22px 0 12px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.summary {
  color: #263548;
  font-size: 17px;
}

.impact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff8e7;
  border: 1px solid #f1d89a;
}

.impact b {
  color: #9a6500;
  font-size: 12px;
  text-transform: uppercase;
}

.impact span {
  color: #4a3a1c;
  font-size: 14px;
}

.why,
.learn-next {
  padding: 14px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 10px;
}

.why strong,
.learn-next strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.actions,
.secondary-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.actions {
  grid-template-columns: 1fr 1fr;
}

.secondary-actions {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.actions a,
.actions button,
.secondary-actions button {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.secondary-actions button {
  min-height: 38px;
  color: #536276;
  font-size: 12px;
}

.actions .primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 16px;
  background: rgba(9, 22, 41, 0.52);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(100%, 430px);
  position: relative;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
}

.digest-panel {
  margin: 0 14px 88px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #0d4e69);
  border-radius: 16px;
}

.digest-panel p {
  margin: 0 0 8px;
  color: #dff4d2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.digest-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.12;
}

.digest-panel button {
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.modal h2 {
  margin: 0 38px 8px 0;
  color: var(--navy);
}

.modal p {
  color: var(--muted);
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.plan-list article {
  padding: 12px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-list strong,
.plan-list span {
  display: block;
}

.plan-list strong {
  color: var(--navy);
}

.plan-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.modal form {
  display: grid;
  gap: 10px;
}

.modal input,
.modal form button {
  min-height: 48px;
  padding: 0 14px;
}

.modal input {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}
